2018-11-27 20:52:19 +00:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
2018-07-06 20:43:53 +01:00
|
|
|
// source: pointerdb.proto
|
2018-07-27 07:02:59 +01:00
|
|
|
|
2018-09-18 05:39:06 +01:00
|
|
|
package pb
|
2018-07-06 20:43:53 +01:00
|
|
|
|
2018-12-14 20:17:30 +00:00
|
|
|
import (
|
2019-03-18 13:08:24 +00:00
|
|
|
fmt "fmt"
|
|
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
|
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
|
|
|
math "math"
|
2018-12-14 20:17:30 +00:00
|
|
|
)
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
2018-11-27 20:52:19 +00:00
|
|
|
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
type RedundancyScheme_SchemeType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
RedundancyScheme_RS RedundancyScheme_SchemeType = 0
|
|
|
|
)
|
|
|
|
|
|
|
|
var RedundancyScheme_SchemeType_name = map[int32]string{
|
|
|
|
0: "RS",
|
|
|
|
}
|
2019-03-18 13:08:24 +00:00
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
var RedundancyScheme_SchemeType_value = map[string]int32{
|
|
|
|
"RS": 0,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x RedundancyScheme_SchemeType) String() string {
|
|
|
|
return proto.EnumName(RedundancyScheme_SchemeType_name, int32(x))
|
|
|
|
}
|
2019-03-18 13:08:24 +00:00
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
func (RedundancyScheme_SchemeType) EnumDescriptor() ([]byte, []int) {
|
2019-03-18 13:08:24 +00:00
|
|
|
return fileDescriptor_75fef806d28fc810, []int{0, 0}
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Pointer_DataType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
Pointer_INLINE Pointer_DataType = 0
|
|
|
|
Pointer_REMOTE Pointer_DataType = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
var Pointer_DataType_name = map[int32]string{
|
|
|
|
0: "INLINE",
|
|
|
|
1: "REMOTE",
|
|
|
|
}
|
2019-03-18 13:08:24 +00:00
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
var Pointer_DataType_value = map[string]int32{
|
|
|
|
"INLINE": 0,
|
|
|
|
"REMOTE": 1,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Pointer_DataType) String() string {
|
|
|
|
return proto.EnumName(Pointer_DataType_name, int32(x))
|
|
|
|
}
|
2019-03-18 13:08:24 +00:00
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (Pointer_DataType) EnumDescriptor() ([]byte, []int) {
|
2019-03-18 13:08:24 +00:00
|
|
|
return fileDescriptor_75fef806d28fc810, []int{3, 0}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
type RedundancyScheme struct {
|
2018-09-07 15:20:15 +01:00
|
|
|
Type RedundancyScheme_SchemeType `protobuf:"varint,1,opt,name=type,proto3,enum=pointerdb.RedundancyScheme_SchemeType" json:"type,omitempty"`
|
2018-07-06 20:43:53 +01:00
|
|
|
// these values apply to RS encoding
|
2018-09-07 15:20:15 +01:00
|
|
|
MinReq int32 `protobuf:"varint,2,opt,name=min_req,json=minReq,proto3" json:"min_req,omitempty"`
|
|
|
|
Total int32 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
|
|
|
|
RepairThreshold int32 `protobuf:"varint,4,opt,name=repair_threshold,json=repairThreshold,proto3" json:"repair_threshold,omitempty"`
|
|
|
|
SuccessThreshold int32 `protobuf:"varint,5,opt,name=success_threshold,json=successThreshold,proto3" json:"success_threshold,omitempty"`
|
|
|
|
ErasureShareSize int32 `protobuf:"varint,6,opt,name=erasure_share_size,json=erasureShareSize,proto3" json:"erasure_share_size,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RedundancyScheme) Reset() { *m = RedundancyScheme{} }
|
|
|
|
func (m *RedundancyScheme) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RedundancyScheme) ProtoMessage() {}
|
|
|
|
func (*RedundancyScheme) Descriptor() ([]byte, []int) {
|
2019-03-18 13:08:24 +00:00
|
|
|
return fileDescriptor_75fef806d28fc810, []int{0}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *RedundancyScheme) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RedundancyScheme.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *RedundancyScheme) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RedundancyScheme.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-18 13:08:24 +00:00
|
|
|
func (m *RedundancyScheme) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RedundancyScheme.Merge(m, src)
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *RedundancyScheme) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RedundancyScheme.Size(m)
|
|
|
|
}
|
|
|
|
func (m *RedundancyScheme) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RedundancyScheme.DiscardUnknown(m)
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
var xxx_messageInfo_RedundancyScheme proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
func (m *RedundancyScheme) GetType() RedundancyScheme_SchemeType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return RedundancyScheme_RS
|
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *RedundancyScheme) GetMinReq() int32 {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.MinReq
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *RedundancyScheme) GetTotal() int32 {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.Total
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *RedundancyScheme) GetRepairThreshold() int32 {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.RepairThreshold
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *RedundancyScheme) GetSuccessThreshold() int32 {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.SuccessThreshold
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-08-14 16:15:22 +01:00
|
|
|
func (m *RedundancyScheme) GetErasureShareSize() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ErasureShareSize
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
type RemotePiece struct {
|
2019-03-18 10:55:06 +00:00
|
|
|
PieceNum int32 `protobuf:"varint,1,opt,name=piece_num,json=pieceNum,proto3" json:"piece_num,omitempty"`
|
|
|
|
NodeId NodeID `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3,customtype=NodeID" json:"node_id"`
|
|
|
|
Hash *PieceHash `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *RemotePiece) Reset() { *m = RemotePiece{} }
|
|
|
|
func (m *RemotePiece) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RemotePiece) ProtoMessage() {}
|
|
|
|
func (*RemotePiece) Descriptor() ([]byte, []int) {
|
2019-03-18 13:08:24 +00:00
|
|
|
return fileDescriptor_75fef806d28fc810, []int{1}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *RemotePiece) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RemotePiece.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *RemotePiece) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RemotePiece.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-18 13:08:24 +00:00
|
|
|
func (m *RemotePiece) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RemotePiece.Merge(m, src)
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *RemotePiece) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RemotePiece.Size(m)
|
|
|
|
}
|
|
|
|
func (m *RemotePiece) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RemotePiece.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RemotePiece proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *RemotePiece) GetPieceNum() int32 {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.PieceNum
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *RemotePiece) GetHash() *PieceHash {
|
2019-02-28 14:14:54 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Hash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
type RemoteSegment struct {
|
2019-03-18 10:55:06 +00:00
|
|
|
Redundancy *RedundancyScheme `protobuf:"bytes,1,opt,name=redundancy,proto3" json:"redundancy,omitempty"`
|
|
|
|
RootPieceId PieceID `protobuf:"bytes,2,opt,name=root_piece_id,json=rootPieceId,proto3,customtype=PieceID" json:"root_piece_id"`
|
|
|
|
RemotePieces []*RemotePiece `protobuf:"bytes,3,rep,name=remote_pieces,json=remotePieces,proto3" json:"remote_pieces,omitempty"`
|
|
|
|
MerkleRoot []byte `protobuf:"bytes,4,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *RemoteSegment) Reset() { *m = RemoteSegment{} }
|
|
|
|
func (m *RemoteSegment) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RemoteSegment) ProtoMessage() {}
|
|
|
|
func (*RemoteSegment) Descriptor() ([]byte, []int) {
|
2019-03-18 13:08:24 +00:00
|
|
|
return fileDescriptor_75fef806d28fc810, []int{2}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *RemoteSegment) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RemoteSegment.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *RemoteSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RemoteSegment.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-18 13:08:24 +00:00
|
|
|
func (m *RemoteSegment) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RemoteSegment.Merge(m, src)
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *RemoteSegment) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RemoteSegment.Size(m)
|
|
|
|
}
|
|
|
|
func (m *RemoteSegment) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RemoteSegment.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RemoteSegment proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
func (m *RemoteSegment) GetRedundancy() *RedundancyScheme {
|
|
|
|
if m != nil {
|
|
|
|
return m.Redundancy
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RemoteSegment) GetRemotePieces() []*RemotePiece {
|
|
|
|
if m != nil {
|
|
|
|
return m.RemotePieces
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RemoteSegment) GetMerkleRoot() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.MerkleRoot
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type Pointer struct {
|
2019-01-02 18:47:34 +00:00
|
|
|
Type Pointer_DataType `protobuf:"varint,1,opt,name=type,proto3,enum=pointerdb.Pointer_DataType" json:"type,omitempty"`
|
|
|
|
InlineSegment []byte `protobuf:"bytes,3,opt,name=inline_segment,json=inlineSegment,proto3" json:"inline_segment,omitempty"`
|
2019-01-28 19:45:25 +00:00
|
|
|
Remote *RemoteSegment `protobuf:"bytes,4,opt,name=remote,proto3" json:"remote,omitempty"`
|
2018-11-20 17:09:35 +00:00
|
|
|
SegmentSize int64 `protobuf:"varint,5,opt,name=segment_size,json=segmentSize,proto3" json:"segment_size,omitempty"`
|
2019-01-28 19:45:25 +00:00
|
|
|
CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"`
|
|
|
|
ExpirationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"`
|
2018-09-07 15:20:15 +01:00
|
|
|
Metadata []byte `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *Pointer) Reset() { *m = Pointer{} }
|
|
|
|
func (m *Pointer) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Pointer) ProtoMessage() {}
|
|
|
|
func (*Pointer) Descriptor() ([]byte, []int) {
|
2019-03-18 13:08:24 +00:00
|
|
|
return fileDescriptor_75fef806d28fc810, []int{3}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *Pointer) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Pointer.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Pointer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Pointer.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-18 13:08:24 +00:00
|
|
|
func (m *Pointer) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Pointer.Merge(m, src)
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *Pointer) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Pointer.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Pointer) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Pointer.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Pointer proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
func (m *Pointer) GetType() Pointer_DataType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return Pointer_INLINE
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Pointer) GetInlineSegment() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.InlineSegment
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Pointer) GetRemote() *RemoteSegment {
|
|
|
|
if m != nil {
|
|
|
|
return m.Remote
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-11-20 17:09:35 +00:00
|
|
|
func (m *Pointer) GetSegmentSize() int64 {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
2018-11-20 17:09:35 +00:00
|
|
|
return m.SegmentSize
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *Pointer) GetCreationDate() *timestamp.Timestamp {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.CreationDate
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *Pointer) GetExpirationDate() *timestamp.Timestamp {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.ExpirationDate
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Pointer) GetMetadata() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListResponse is a response message for the List rpc call
|
|
|
|
type ListResponse struct {
|
2019-01-28 19:45:25 +00:00
|
|
|
Items []*ListResponse_Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
2018-09-07 15:20:15 +01:00
|
|
|
More bool `protobuf:"varint,2,opt,name=more,proto3" json:"more,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *ListResponse) Reset() { *m = ListResponse{} }
|
|
|
|
func (m *ListResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListResponse) ProtoMessage() {}
|
|
|
|
func (*ListResponse) Descriptor() ([]byte, []int) {
|
2019-03-30 11:21:49 +00:00
|
|
|
return fileDescriptor_75fef806d28fc810, []int{4}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-18 13:08:24 +00:00
|
|
|
func (m *ListResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListResponse.Merge(m, src)
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ListResponse proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *ListResponse) GetItems() []*ListResponse_Item {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
2018-07-27 07:02:59 +01:00
|
|
|
return m.Items
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *ListResponse) GetMore() bool {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
2018-07-27 07:02:59 +01:00
|
|
|
return m.More
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
type ListResponse_Item struct {
|
2018-09-07 15:20:15 +01:00
|
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
2019-01-28 19:45:25 +00:00
|
|
|
Pointer *Pointer `protobuf:"bytes,2,opt,name=pointer,proto3" json:"pointer,omitempty"`
|
2018-09-07 15:20:15 +01:00
|
|
|
IsPrefix bool `protobuf:"varint,3,opt,name=is_prefix,json=isPrefix,proto3" json:"is_prefix,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *ListResponse_Item) Reset() { *m = ListResponse_Item{} }
|
|
|
|
func (m *ListResponse_Item) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListResponse_Item) ProtoMessage() {}
|
|
|
|
func (*ListResponse_Item) Descriptor() ([]byte, []int) {
|
2019-03-30 11:21:49 +00:00
|
|
|
return fileDescriptor_75fef806d28fc810, []int{4, 0}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *ListResponse_Item) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListResponse_Item.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ListResponse_Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListResponse_Item.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-18 13:08:24 +00:00
|
|
|
func (m *ListResponse_Item) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListResponse_Item.Merge(m, src)
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *ListResponse_Item) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListResponse_Item.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ListResponse_Item) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListResponse_Item.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ListResponse_Item proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *ListResponse_Item) GetPath() string {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.Path
|
|
|
|
}
|
2018-07-27 07:02:59 +01:00
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-07-30 19:57:50 +01:00
|
|
|
func (m *ListResponse_Item) GetPointer() *Pointer {
|
2018-07-27 07:02:59 +01:00
|
|
|
if m != nil {
|
2018-07-30 19:57:50 +01:00
|
|
|
return m.Pointer
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *ListResponse_Item) GetIsPrefix() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.IsPrefix
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
func init() {
|
2019-03-18 13:08:24 +00:00
|
|
|
proto.RegisterEnum("pointerdb.RedundancyScheme_SchemeType", RedundancyScheme_SchemeType_name, RedundancyScheme_SchemeType_value)
|
|
|
|
proto.RegisterEnum("pointerdb.Pointer_DataType", Pointer_DataType_name, Pointer_DataType_value)
|
2018-07-06 20:43:53 +01:00
|
|
|
proto.RegisterType((*RedundancyScheme)(nil), "pointerdb.RedundancyScheme")
|
|
|
|
proto.RegisterType((*RemotePiece)(nil), "pointerdb.RemotePiece")
|
|
|
|
proto.RegisterType((*RemoteSegment)(nil), "pointerdb.RemoteSegment")
|
|
|
|
proto.RegisterType((*Pointer)(nil), "pointerdb.Pointer")
|
|
|
|
proto.RegisterType((*ListResponse)(nil), "pointerdb.ListResponse")
|
2018-07-27 07:02:59 +01:00
|
|
|
proto.RegisterType((*ListResponse_Item)(nil), "pointerdb.ListResponse.Item")
|
2019-03-18 13:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("pointerdb.proto", fileDescriptor_75fef806d28fc810) }
|
|
|
|
|
|
|
|
var fileDescriptor_75fef806d28fc810 = []byte{
|
2019-06-06 16:16:14 +01:00
|
|
|
// 713 bytes of a gzipped FileDescriptorProto
|
2019-03-30 11:21:49 +00:00
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xcd, 0x6e, 0xeb, 0x44,
|
|
|
|
0x14, 0x6e, 0xfe, 0x9c, 0xf4, 0xd8, 0xf9, 0xb9, 0xa3, 0x2b, 0xb0, 0x72, 0x91, 0x52, 0x2c, 0x5d,
|
|
|
|
0x28, 0xe2, 0xca, 0x45, 0xbe, 0x3b, 0xba, 0x40,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