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"`
|
2019-09-17 20:18:48 +01:00
|
|
|
LastRepaired time.Time `protobuf:"bytes,9,opt,name=last_repaired,json=lastRepaired,proto3,stdtime" json:"last_repaired"`
|
|
|
|
RepairCount int32 `protobuf:"varint,10,opt,name=repair_count,json=repairCount,proto3" json:"repair_count,omitempty"`
|
2019-07-09 22:54:00 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2019-09-17 20:18:48 +01:00
|
|
|
func (m *Pointer) GetLastRepaired() time.Time {
|
|
|
|
if m != nil {
|
|
|
|
return m.LastRepaired
|
|
|
|
}
|
|
|
|
return time.Time{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Pointer) GetRepairCount() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.RepairCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
// 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-09-17 20:18:48 +01:00
|
|
|
// 770 bytes of a gzipped FileDescriptorProto
|
2019-07-12 13:57:02 +01:00
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xcd, 0x6e, 0xdb, 0x46,
|
2019-09-17 20:18:48 +01:00
|
|
|
0x10, 0x36, 0xad, 0x5f, 0x0f, 0x29, 0x5b, 0x59, 0x14, 0x2d, 0xa1, 0x14, 0x90, 0x43, 0x20, 0xad,
|
|
|
|
0x8b, 0x06, 0x74, 0xc1, 0xdc, 0x9a, 0x53, 0x5d, 0x19, 0x28, 0x01, 0x47, 0x35, 0x56, 0x46, 0x0f,
|
|
|
|
0xbd, 0x10, 0x2b, 0x71, 0x22, 0x2e, 0x2a, 0x72, 0x99, 0xdd, 0x15, 0x10, 0xfb, 0x29, 0xfa, 0x14,
|
|
|
|
0x7d, 0x8b, 0xde, 0xfb, 0x0c, 0x3d, 0x24, 0x6f, 0x52, 0x14, 0xbb, 0x4b, 0x4a, 0x4a, 0x03, 0x14,
|
|
|
|
0xf0, 0x45, 0xda, 0x99, 0xf9, 0x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