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"
|
2019-07-09 22:54:00 +01:00
|
|
|
_ "github.com/golang/protobuf/ptypes/timestamp"
|
2019-03-18 13:08:24 +00:00
|
|
|
math "math"
|
2019-07-08 23:16:50 +01:00
|
|
|
time "time"
|
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
|
2019-07-08 23:16:50 +01:00
|
|
|
var _ = time.Kitchen
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
// 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 (
|
2019-07-12 13:57:02 +01:00
|
|
|
RedundancyScheme_INVALID RedundancyScheme_SchemeType = 0
|
|
|
|
RedundancyScheme_RS RedundancyScheme_SchemeType = 1
|
2018-07-06 20:43:53 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
var RedundancyScheme_SchemeType_name = map[int32]string{
|
2019-07-12 13:57:02 +01:00
|
|
|
0: "INVALID",
|
|
|
|
1: "RS",
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
2019-03-18 13:08:24 +00:00
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
var RedundancyScheme_SchemeType_value = map[string]int32{
|
2019-07-12 13:57:02 +01:00
|
|
|
"INVALID": 0,
|
|
|
|
"RS": 1,
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
2019-07-12 13:57:02 +01:00
|
|
|
return RedundancyScheme_INVALID
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
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-07-09 22:54:00 +01: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"`
|
|
|
|
Remote *RemoteSegment `protobuf:"bytes,4,opt,name=remote,proto3" json:"remote,omitempty"`
|
|
|
|
SegmentSize int64 `protobuf:"varint,5,opt,name=segment_size,json=segmentSize,proto3" json:"segment_size,omitempty"`
|
|
|
|
CreationDate time.Time `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3,stdtime" json:"creation_date"`
|
|
|
|
ExpirationDate time.Time `protobuf:"bytes,7,opt,name=expiration_date,json=expirationDate,proto3,stdtime" json:"expiration_date"`
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2019-07-08 23:16:50 +01:00
|
|
|
func (m *Pointer) GetCreationDate() time.Time {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.CreationDate
|
|
|
|
}
|
2019-07-08 23:16:50 +01:00
|
|
|
return time.Time{}
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
2019-07-09 22:54:00 +01:00
|
|
|
func (m *Pointer) GetExpirationDate() time.Time {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.ExpirationDate
|
|
|
|
}
|
2019-07-09 22:54:00 +01:00
|
|
|
return time.Time{}
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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-07-12 13:57:02 +01:00
|
|
|
// 735 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xcd, 0x6e, 0xdb, 0x46,
|
|
|
|
0x10, 0x36, 0x2d, 0x89, 0xa2, 0x87, 0x94, 0xad, 0x2c, 0x8a, 0x96, 0x50, 0x0a, 0xc8, 0x21, 0x90,
|
|
|
|
0xd6, 0x45, 0x03, 0xba, 0x60, 0x6e, 0xcd, 0xa9, 0x86, 0x0c, 0x94, 0x80, 0xa3, 0x1a, 0x2b, 0xa1,
|
|
|
|
0x87, 0x5e, 0x88, 0x95, 0x38, 0x11, 0x17, 0x15, 0xb9, 0xcc, 0xee, 0x0a, 0x88, 0xfd, 0x14, 0x79,
|
|
|
|
0x8a, 0xbe, 0x45, 0xef, 0x7d, 0x86, 0x1e, 0x92, 0x57, 0x29, 0xb8, 0x4b, 0x4a, 0x4a, 0x03, 0x14,
|
|
|
|
0xe8, 0x85, 0x9c, 0x9f, 0x6f, 0x7e, 0xf6, 0x9b, 0x19, 0xb8, 0xa8, 0x05, 0xaf, 0x34, 0xca, 0x7c,
|
|
|
|
0x15, 0xd7, 0x52, 0x68, 0x41, 0xce, 0xf6, 0x86, 0xc9, 0x74, 0x23, 0xc4, 0x66, 0x8b, 0xd7, 0xc6,
|
|
|
|
0xb1, 0xda, 0xbd, 0xb9, 0xd6, 0xbc, 0x44, 0xa5, 0x59, 0x59, 0x5b, 0xec, 0x04, 0x36, 0x62, 0x23,
|
|
|
|
0x3a, 0xb9, 0x12, 0x39, 0xb6, 0x72, 0x20, 0x64, 0x8e, 0x52, 0x59, 0x2d, 0xfa, 0xe3, 0x14, 0xc6,
|
|
|
|
0x14, 0xf3, 0x5d, 0x95, 0xb3, 0x6a, 0xfd, 0xb0, 0x58, 0x17, 0x58, 0x22, 0xf9, 0x11, 0xfa, 0xfa,
|
|
|
|
0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