frostfs-api-go/object/service.pb.go

4832 lines
120 KiB
Go
Raw Normal View History

2019-11-18 13:34:06 +00:00
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: object/service.proto
package object
import (
context "context"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/golang/protobuf/proto"
refs "github.com/nspcc-dev/neofs-proto/refs"
2019-11-18 16:22:08 +00:00
service "github.com/nspcc-dev/neofs-proto/service"
2019-11-18 13:34:06 +00:00
session "github.com/nspcc-dev/neofs-proto/session"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// 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.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type GetRequest struct {
2019-11-21 07:34:38 +00:00
// Address of object (container id + object id)
2019-11-18 16:22:08 +00:00
Address refs.Address `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address"`
// Raw is the request flag of a physically stored representation of an object
Raw bool `protobuf:"varint,2,opt,name=Raw,proto3" json:"Raw,omitempty"`
2019-11-18 16:22:08 +00:00
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
service.RequestMetaHeader `protobuf:"bytes,98,opt,name=Meta,proto3,embedded=Meta" json:"Meta"`
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
service.RequestVerificationHeader `protobuf:"bytes,99,opt,name=Verify,proto3,embedded=Verify" json:"Verify"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2019-11-18 13:34:06 +00:00
}
func (m *GetRequest) Reset() { *m = GetRequest{} }
func (m *GetRequest) String() string { return proto.CompactTextString(m) }
func (*GetRequest) ProtoMessage() {}
func (*GetRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{0}
}
func (m *GetRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *GetRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRequest.Merge(m, src)
}
func (m *GetRequest) XXX_Size() int {
return m.Size()
}
func (m *GetRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetRequest proto.InternalMessageInfo
func (m *GetRequest) GetAddress() refs.Address {
if m != nil {
return m.Address
}
return refs.Address{}
}
func (m *GetRequest) GetRaw() bool {
if m != nil {
return m.Raw
}
return false
}
2019-11-18 13:34:06 +00:00
type GetResponse struct {
// Types that are valid to be assigned to R:
// *GetResponse_Object
// *GetResponse_Chunk
R isGetResponse_R `protobuf_oneof:"R"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetResponse) Reset() { *m = GetResponse{} }
func (m *GetResponse) String() string { return proto.CompactTextString(m) }
func (*GetResponse) ProtoMessage() {}
func (*GetResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{1}
}
func (m *GetResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *GetResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetResponse.Merge(m, src)
}
func (m *GetResponse) XXX_Size() int {
return m.Size()
}
func (m *GetResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetResponse proto.InternalMessageInfo
type isGetResponse_R interface {
isGetResponse_R()
MarshalTo([]byte) (int, error)
Size() int
}
type GetResponse_Object struct {
Object *Object `protobuf:"bytes,1,opt,name=object,proto3,oneof" json:"object,omitempty"`
}
type GetResponse_Chunk struct {
Chunk []byte `protobuf:"bytes,2,opt,name=Chunk,proto3,oneof" json:"Chunk,omitempty"`
}
func (*GetResponse_Object) isGetResponse_R() {}
func (*GetResponse_Chunk) isGetResponse_R() {}
func (m *GetResponse) GetR() isGetResponse_R {
if m != nil {
return m.R
}
return nil
}
func (m *GetResponse) GetObject() *Object {
if x, ok := m.GetR().(*GetResponse_Object); ok {
return x.Object
}
return nil
}
func (m *GetResponse) GetChunk() []byte {
if x, ok := m.GetR().(*GetResponse_Chunk); ok {
return x.Chunk
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*GetResponse) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*GetResponse_Object)(nil),
(*GetResponse_Chunk)(nil),
}
}
type PutRequest struct {
// Types that are valid to be assigned to R:
// *PutRequest_Header
// *PutRequest_Chunk
2019-11-18 16:22:08 +00:00
R isPutRequest_R `protobuf_oneof:"R"`
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
service.RequestMetaHeader `protobuf:"bytes,98,opt,name=Meta,proto3,embedded=Meta" json:"Meta"`
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
service.RequestVerificationHeader `protobuf:"bytes,99,opt,name=Verify,proto3,embedded=Verify" json:"Verify"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2019-11-18 13:34:06 +00:00
}
func (m *PutRequest) Reset() { *m = PutRequest{} }
func (m *PutRequest) String() string { return proto.CompactTextString(m) }
func (*PutRequest) ProtoMessage() {}
func (*PutRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{2}
}
func (m *PutRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *PutRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PutRequest.Merge(m, src)
}
func (m *PutRequest) XXX_Size() int {
return m.Size()
}
func (m *PutRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PutRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PutRequest proto.InternalMessageInfo
type isPutRequest_R interface {
isPutRequest_R()
MarshalTo([]byte) (int, error)
Size() int
}
type PutRequest_Header struct {
Header *PutRequest_PutHeader `protobuf:"bytes,1,opt,name=Header,proto3,oneof" json:"Header,omitempty"`
}
type PutRequest_Chunk struct {
Chunk []byte `protobuf:"bytes,2,opt,name=Chunk,proto3,oneof" json:"Chunk,omitempty"`
}
func (*PutRequest_Header) isPutRequest_R() {}
func (*PutRequest_Chunk) isPutRequest_R() {}
func (m *PutRequest) GetR() isPutRequest_R {
if m != nil {
return m.R
}
return nil
}
func (m *PutRequest) GetHeader() *PutRequest_PutHeader {
if x, ok := m.GetR().(*PutRequest_Header); ok {
return x.Header
}
return nil
}
func (m *PutRequest) GetChunk() []byte {
if x, ok := m.GetR().(*PutRequest_Chunk); ok {
return x.Chunk
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*PutRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*PutRequest_Header)(nil),
(*PutRequest_Chunk)(nil),
}
}
type PutRequest_PutHeader struct {
2019-11-21 07:34:38 +00:00
// Object with at least container id and owner id fields
2019-11-18 16:22:08 +00:00
Object *Object `protobuf:"bytes,1,opt,name=Object,proto3" json:"Object,omitempty"`
2019-11-21 07:34:38 +00:00
// Token with session public key and user's signature
2019-11-18 16:22:08 +00:00
Token *session.Token `protobuf:"bytes,2,opt,name=Token,proto3" json:"Token,omitempty"`
2019-11-18 13:34:06 +00:00
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PutRequest_PutHeader) Reset() { *m = PutRequest_PutHeader{} }
func (m *PutRequest_PutHeader) String() string { return proto.CompactTextString(m) }
func (*PutRequest_PutHeader) ProtoMessage() {}
func (*PutRequest_PutHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{2, 0}
}
func (m *PutRequest_PutHeader) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PutRequest_PutHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *PutRequest_PutHeader) XXX_Merge(src proto.Message) {
xxx_messageInfo_PutRequest_PutHeader.Merge(m, src)
}
func (m *PutRequest_PutHeader) XXX_Size() int {
return m.Size()
}
func (m *PutRequest_PutHeader) XXX_DiscardUnknown() {
xxx_messageInfo_PutRequest_PutHeader.DiscardUnknown(m)
}
var xxx_messageInfo_PutRequest_PutHeader proto.InternalMessageInfo
func (m *PutRequest_PutHeader) GetObject() *Object {
if m != nil {
return m.Object
}
return nil
}
func (m *PutRequest_PutHeader) GetToken() *session.Token {
if m != nil {
return m.Token
}
return nil
}
type PutResponse struct {
2019-11-21 07:34:38 +00:00
// Address of object (container id + object id)
2019-11-18 13:34:06 +00:00
Address refs.Address `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PutResponse) Reset() { *m = PutResponse{} }
func (m *PutResponse) String() string { return proto.CompactTextString(m) }
func (*PutResponse) ProtoMessage() {}
func (*PutResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{3}
}
func (m *PutResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *PutResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PutResponse.Merge(m, src)
}
func (m *PutResponse) XXX_Size() int {
return m.Size()
}
func (m *PutResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PutResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PutResponse proto.InternalMessageInfo
func (m *PutResponse) GetAddress() refs.Address {
if m != nil {
return m.Address
}
return refs.Address{}
}
type DeleteRequest struct {
2019-11-21 07:34:38 +00:00
// Address of object (container id + object id)
2019-11-18 16:22:08 +00:00
Address refs.Address `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address"`
2019-11-21 07:34:38 +00:00
// OwnerID is a wallet address
2019-11-18 16:22:08 +00:00
OwnerID OwnerID `protobuf:"bytes,2,opt,name=OwnerID,proto3,customtype=OwnerID" json:"OwnerID"`
2019-11-21 07:34:38 +00:00
// Token with session public key and user's signature
2019-11-18 16:22:08 +00:00
Token *session.Token `protobuf:"bytes,3,opt,name=Token,proto3" json:"Token,omitempty"`
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
service.RequestMetaHeader `protobuf:"bytes,98,opt,name=Meta,proto3,embedded=Meta" json:"Meta"`
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
service.RequestVerificationHeader `protobuf:"bytes,99,opt,name=Verify,proto3,embedded=Verify" json:"Verify"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2019-11-18 13:34:06 +00:00
}
func (m *DeleteRequest) Reset() { *m = DeleteRequest{} }
func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteRequest) ProtoMessage() {}
func (*DeleteRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{4}
}
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *DeleteRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteRequest.Merge(m, src)
}
func (m *DeleteRequest) XXX_Size() int {
return m.Size()
}
func (m *DeleteRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo
func (m *DeleteRequest) GetAddress() refs.Address {
if m != nil {
return m.Address
}
return refs.Address{}
}
func (m *DeleteRequest) GetToken() *session.Token {
if m != nil {
return m.Token
}
return nil
}
2019-11-20 18:18:44 +00:00
// DeleteResponse is empty because we cannot guarantee permanent object removal
// in distributed system.
2019-11-18 13:34:06 +00:00
type DeleteResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteResponse) Reset() { *m = DeleteResponse{} }
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteResponse) ProtoMessage() {}
func (*DeleteResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{5}
}
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *DeleteResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteResponse.Merge(m, src)
}
func (m *DeleteResponse) XXX_Size() int {
return m.Size()
}
func (m *DeleteResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo
type HeadRequest struct {
2019-11-21 07:34:38 +00:00
// Address of object (container id + object id)
2019-11-18 16:22:08 +00:00
Address Address `protobuf:"bytes,1,opt,name=Address,proto3,customtype=Address" json:"Address"`
2019-11-21 07:34:38 +00:00
// FullHeaders can be set true for extended headers in the object
2019-11-18 16:22:08 +00:00
FullHeaders bool `protobuf:"varint,2,opt,name=FullHeaders,proto3" json:"FullHeaders,omitempty"`
// Raw is the request flag of a physically stored representation of an object
Raw bool `protobuf:"varint,3,opt,name=Raw,proto3" json:"Raw,omitempty"`
2019-11-18 16:22:08 +00:00
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
service.RequestMetaHeader `protobuf:"bytes,98,opt,name=Meta,proto3,embedded=Meta" json:"Meta"`
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
service.RequestVerificationHeader `protobuf:"bytes,99,opt,name=Verify,proto3,embedded=Verify" json:"Verify"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2019-11-18 13:34:06 +00:00
}
func (m *HeadRequest) Reset() { *m = HeadRequest{} }
func (m *HeadRequest) String() string { return proto.CompactTextString(m) }
func (*HeadRequest) ProtoMessage() {}
func (*HeadRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{6}
}
func (m *HeadRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HeadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *HeadRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_HeadRequest.Merge(m, src)
}
func (m *HeadRequest) XXX_Size() int {
return m.Size()
}
func (m *HeadRequest) XXX_DiscardUnknown() {
xxx_messageInfo_HeadRequest.DiscardUnknown(m)
}
var xxx_messageInfo_HeadRequest proto.InternalMessageInfo
func (m *HeadRequest) GetFullHeaders() bool {
if m != nil {
return m.FullHeaders
}
return false
}
func (m *HeadRequest) GetRaw() bool {
if m != nil {
return m.Raw
}
return false
}
2019-11-18 13:34:06 +00:00
type HeadResponse struct {
2019-11-21 07:34:38 +00:00
// Object without payload
2019-11-18 13:34:06 +00:00
Object *Object `protobuf:"bytes,1,opt,name=Object,proto3" json:"Object,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HeadResponse) Reset() { *m = HeadResponse{} }
func (m *HeadResponse) String() string { return proto.CompactTextString(m) }
func (*HeadResponse) ProtoMessage() {}
func (*HeadResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{7}
}
func (m *HeadResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HeadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *HeadResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_HeadResponse.Merge(m, src)
}
func (m *HeadResponse) XXX_Size() int {
return m.Size()
}
func (m *HeadResponse) XXX_DiscardUnknown() {
xxx_messageInfo_HeadResponse.DiscardUnknown(m)
}
var xxx_messageInfo_HeadResponse proto.InternalMessageInfo
func (m *HeadResponse) GetObject() *Object {
if m != nil {
return m.Object
}
return nil
}
type SearchRequest struct {
2019-11-21 07:34:38 +00:00
// ContainerID for searching the object
2019-11-21 12:21:37 +00:00
ContainerID CID `protobuf:"bytes,1,opt,name=ContainerID,proto3,customtype=CID" json:"ContainerID"`
2019-11-21 07:34:38 +00:00
// Query in the binary serialized format
2019-11-21 12:21:37 +00:00
Query []byte `protobuf:"bytes,2,opt,name=Query,proto3" json:"Query,omitempty"`
// QueryVersion is a version of search query format
QueryVersion uint32 `protobuf:"varint,3,opt,name=QueryVersion,proto3" json:"QueryVersion,omitempty"`
2019-11-18 16:22:08 +00:00
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
service.RequestMetaHeader `protobuf:"bytes,98,opt,name=Meta,proto3,embedded=Meta" json:"Meta"`
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
service.RequestVerificationHeader `protobuf:"bytes,99,opt,name=Verify,proto3,embedded=Verify" json:"Verify"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2019-11-18 13:34:06 +00:00
}
func (m *SearchRequest) Reset() { *m = SearchRequest{} }
func (m *SearchRequest) String() string { return proto.CompactTextString(m) }
func (*SearchRequest) ProtoMessage() {}
func (*SearchRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{8}
}
func (m *SearchRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *SearchRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchRequest.Merge(m, src)
}
func (m *SearchRequest) XXX_Size() int {
return m.Size()
}
func (m *SearchRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SearchRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SearchRequest proto.InternalMessageInfo
2019-11-21 12:21:37 +00:00
func (m *SearchRequest) GetQuery() []byte {
2019-11-18 13:34:06 +00:00
if m != nil {
2019-11-21 12:21:37 +00:00
return m.Query
2019-11-18 13:34:06 +00:00
}
2019-11-21 12:21:37 +00:00
return nil
2019-11-18 13:34:06 +00:00
}
2019-11-21 12:21:37 +00:00
func (m *SearchRequest) GetQueryVersion() uint32 {
2019-11-18 13:34:06 +00:00
if m != nil {
2019-11-21 12:21:37 +00:00
return m.QueryVersion
2019-11-18 13:34:06 +00:00
}
2019-11-21 12:21:37 +00:00
return 0
2019-11-18 13:34:06 +00:00
}
type SearchResponse struct {
2019-11-21 07:34:38 +00:00
// Addresses of found objects
2019-11-18 13:34:06 +00:00
Addresses []refs.Address `protobuf:"bytes,1,rep,name=Addresses,proto3" json:"Addresses"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchResponse) Reset() { *m = SearchResponse{} }
func (m *SearchResponse) String() string { return proto.CompactTextString(m) }
func (*SearchResponse) ProtoMessage() {}
func (*SearchResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{9}
}
func (m *SearchResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *SearchResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchResponse.Merge(m, src)
}
func (m *SearchResponse) XXX_Size() int {
return m.Size()
}
func (m *SearchResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SearchResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SearchResponse proto.InternalMessageInfo
func (m *SearchResponse) GetAddresses() []refs.Address {
if m != nil {
return m.Addresses
}
return nil
}
type GetRangeRequest struct {
2019-11-21 07:34:38 +00:00
// Address of object (container id + object id)
2019-11-18 16:22:08 +00:00
Address refs.Address `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address"`
2019-11-21 07:34:38 +00:00
// Ranges of object's payload to return
2019-11-18 16:22:08 +00:00
Ranges []Range `protobuf:"bytes,2,rep,name=Ranges,proto3" json:"Ranges"`
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
service.RequestMetaHeader `protobuf:"bytes,98,opt,name=Meta,proto3,embedded=Meta" json:"Meta"`
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
service.RequestVerificationHeader `protobuf:"bytes,99,opt,name=Verify,proto3,embedded=Verify" json:"Verify"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2019-11-18 13:34:06 +00:00
}
func (m *GetRangeRequest) Reset() { *m = GetRangeRequest{} }
func (m *GetRangeRequest) String() string { return proto.CompactTextString(m) }
func (*GetRangeRequest) ProtoMessage() {}
func (*GetRangeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{10}
}
func (m *GetRangeRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *GetRangeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRangeRequest.Merge(m, src)
}
func (m *GetRangeRequest) XXX_Size() int {
return m.Size()
}
func (m *GetRangeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetRangeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetRangeRequest proto.InternalMessageInfo
func (m *GetRangeRequest) GetAddress() refs.Address {
if m != nil {
return m.Address
}
return refs.Address{}
}
func (m *GetRangeRequest) GetRanges() []Range {
if m != nil {
return m.Ranges
}
return nil
}
type GetRangeResponse struct {
2019-11-21 07:34:38 +00:00
// Fragments of object's payload
2019-11-18 13:34:06 +00:00
Fragments [][]byte `protobuf:"bytes,1,rep,name=Fragments,proto3" json:"Fragments,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetRangeResponse) Reset() { *m = GetRangeResponse{} }
func (m *GetRangeResponse) String() string { return proto.CompactTextString(m) }
func (*GetRangeResponse) ProtoMessage() {}
func (*GetRangeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{11}
}
func (m *GetRangeResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *GetRangeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRangeResponse.Merge(m, src)
}
func (m *GetRangeResponse) XXX_Size() int {
return m.Size()
}
func (m *GetRangeResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetRangeResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetRangeResponse proto.InternalMessageInfo
func (m *GetRangeResponse) GetFragments() [][]byte {
if m != nil {
return m.Fragments
}
return nil
}
type GetRangeHashRequest struct {
2019-11-21 07:34:38 +00:00
// Address of object (container id + object id)
2019-11-18 16:22:08 +00:00
Address refs.Address `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address"`
2019-11-21 07:34:38 +00:00
// Ranges of object's payload to calculate homomorphic hash
2019-11-18 16:22:08 +00:00
Ranges []Range `protobuf:"bytes,2,rep,name=Ranges,proto3" json:"Ranges"`
2019-11-21 07:34:38 +00:00
// Salt is used to XOR object's payload ranges before hashing, it can be nil
2019-11-18 16:22:08 +00:00
Salt []byte `protobuf:"bytes,3,opt,name=Salt,proto3" json:"Salt,omitempty"`
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
service.RequestMetaHeader `protobuf:"bytes,98,opt,name=Meta,proto3,embedded=Meta" json:"Meta"`
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
service.RequestVerificationHeader `protobuf:"bytes,99,opt,name=Verify,proto3,embedded=Verify" json:"Verify"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2019-11-18 13:34:06 +00:00
}
func (m *GetRangeHashRequest) Reset() { *m = GetRangeHashRequest{} }
func (m *GetRangeHashRequest) String() string { return proto.CompactTextString(m) }
func (*GetRangeHashRequest) ProtoMessage() {}
func (*GetRangeHashRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{12}
}
func (m *GetRangeHashRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetRangeHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *GetRangeHashRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRangeHashRequest.Merge(m, src)
}
func (m *GetRangeHashRequest) XXX_Size() int {
return m.Size()
}
func (m *GetRangeHashRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetRangeHashRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetRangeHashRequest proto.InternalMessageInfo
func (m *GetRangeHashRequest) GetAddress() refs.Address {
if m != nil {
return m.Address
}
return refs.Address{}
}
func (m *GetRangeHashRequest) GetRanges() []Range {
if m != nil {
return m.Ranges
}
return nil
}
func (m *GetRangeHashRequest) GetSalt() []byte {
if m != nil {
return m.Salt
}
return nil
}
type GetRangeHashResponse struct {
2019-11-21 07:34:38 +00:00
// Hashes is a homomorphic hashes of all ranges
2019-11-18 13:34:06 +00:00
Hashes []Hash `protobuf:"bytes,1,rep,name=Hashes,proto3,customtype=Hash" json:"Hashes"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetRangeHashResponse) Reset() { *m = GetRangeHashResponse{} }
func (m *GetRangeHashResponse) String() string { return proto.CompactTextString(m) }
func (*GetRangeHashResponse) ProtoMessage() {}
func (*GetRangeHashResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_dfcdf610ade6a9ce, []int{13}
}
func (m *GetRangeHashResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetRangeHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
func (m *GetRangeHashResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRangeHashResponse.Merge(m, src)
}
func (m *GetRangeHashResponse) XXX_Size() int {
return m.Size()
}
func (m *GetRangeHashResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetRangeHashResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetRangeHashResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*GetRequest)(nil), "object.GetRequest")
proto.RegisterType((*GetResponse)(nil), "object.GetResponse")
proto.RegisterType((*PutRequest)(nil), "object.PutRequest")
proto.RegisterType((*PutRequest_PutHeader)(nil), "object.PutRequest.PutHeader")
proto.RegisterType((*PutResponse)(nil), "object.PutResponse")
proto.RegisterType((*DeleteRequest)(nil), "object.DeleteRequest")
proto.RegisterType((*DeleteResponse)(nil), "object.DeleteResponse")
proto.RegisterType((*HeadRequest)(nil), "object.HeadRequest")
proto.RegisterType((*HeadResponse)(nil), "object.HeadResponse")
proto.RegisterType((*SearchRequest)(nil), "object.SearchRequest")
proto.RegisterType((*SearchResponse)(nil), "object.SearchResponse")
proto.RegisterType((*GetRangeRequest)(nil), "object.GetRangeRequest")
proto.RegisterType((*GetRangeResponse)(nil), "object.GetRangeResponse")
proto.RegisterType((*GetRangeHashRequest)(nil), "object.GetRangeHashRequest")
proto.RegisterType((*GetRangeHashResponse)(nil), "object.GetRangeHashResponse")
}
func init() { proto.RegisterFile("object/service.proto", fileDescriptor_dfcdf610ade6a9ce) }
var fileDescriptor_dfcdf610ade6a9ce = []byte{
// 842 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4b, 0x4f, 0xe3, 0x56,
0x14, 0xce, 0x8d, 0x83, 0x81, 0x13, 0x07, 0xa2, 0x4b, 0x4a, 0x23, 0x17, 0x05, 0x64, 0xa1, 0x36,
0x55, 0x15, 0x87, 0x52, 0x09, 0x58, 0xc0, 0xa2, 0x49, 0x04, 0x61, 0x51, 0x41, 0x2f, 0x08, 0xa9,
0xdd, 0x39, 0xce, 0xcd, 0xa3, 0x04, 0x3b, 0xf5, 0x03, 0xc4, 0x0f, 0xe8, 0xba, 0xdb, 0x2e, 0xfa,
0x53, 0xfa, 0x03, 0xd8, 0x54, 0x62, 0x59, 0x75, 0x81, 0xaa, 0x74, 0xdd, 0x7d, 0xa5, 0xd9, 0x8c,
0xee, 0xc3, 0xb1, 0x13, 0x06, 0x66, 0x86, 0xc5, 0x64, 0x56, 0xb9, 0xe7, 0x3b, 0xaf, 0x9c, 0xcf,
0xdf, 0xb9, 0x36, 0x14, 0xdc, 0xd6, 0x4f, 0xd4, 0x0e, 0xaa, 0x3e, 0xf5, 0xae, 0xfb, 0x36, 0x35,
0x87, 0x9e, 0x1b, 0xb8, 0x58, 0x15, 0xa8, 0x9e, 0xf7, 0x68, 0xc7, 0xaf, 0x06, 0xb7, 0x43, 0xea,
0x0b, 0x8f, 0x8e, 0x65, 0x7c, 0x12, 0x5b, 0xf1, 0xa9, 0xef, 0xf7, 0x5d, 0x67, 0x32, 0x50, 0x56,
0xac, 0x5e, 0xd1, 0xc0, 0x92, 0x58, 0x21, 0xc2, 0xae, 0xa9, 0xd7, 0xef, 0xdc, 0x4a, 0xb4, 0xd2,
0xed, 0x07, 0xbd, 0xb0, 0x65, 0xda, 0xee, 0x55, 0xb5, 0xeb, 0x76, 0xdd, 0x2a, 0x87, 0x5b, 0x61,
0x87, 0x5b, 0xdc, 0xe0, 0x27, 0x11, 0x6e, 0xfc, 0x89, 0x00, 0x8e, 0x68, 0x40, 0xe8, 0xcf, 0x21,
0xf5, 0x03, 0x5c, 0x81, 0xf9, 0x6f, 0xdb, 0x6d, 0x8f, 0xfa, 0x7e, 0x11, 0x6d, 0xa0, 0x72, 0x76,
0x3b, 0x67, 0xb2, 0x3f, 0x6d, 0x4a, 0xb0, 0x96, 0xb9, 0x7b, 0x58, 0x4f, 0x91, 0x28, 0x06, 0xe7,
0x41, 0x21, 0xd6, 0x4d, 0x31, 0xbd, 0x81, 0xca, 0x0b, 0x84, 0x1d, 0xf1, 0x1e, 0x64, 0xbe, 0xa3,
0x81, 0x55, 0x6c, 0xf1, 0x6c, 0xdd, 0x8c, 0x98, 0x90, 0x0d, 0x98, 0xaf, 0x49, 0xad, 0x36, 0xf5,
0x6a, 0x0b, 0xac, 0xd4, 0xfd, 0xc3, 0x3a, 0x22, 0x3c, 0x03, 0x37, 0x40, 0xbd, 0xe0, 0x83, 0x14,
0x6d, 0x9e, 0x6b, 0x4c, 0xe7, 0x72, 0x6f, 0xdf, 0xb6, 0x82, 0xbe, 0xeb, 0x3c, 0xaa, 0x21, 0x73,
0x8d, 0x73, 0xc8, 0xf2, 0x71, 0xfc, 0xa1, 0xeb, 0xf8, 0x14, 0x97, 0x41, 0x92, 0x2f, 0xc7, 0x59,
0x32, 0x85, 0x69, 0x9e, 0xf0, 0x9f, 0x66, 0x8a, 0x48, 0x3f, 0x5e, 0x85, 0xb9, 0x7a, 0x2f, 0x74,
0x2e, 0xf9, 0x30, 0x5a, 0x33, 0x45, 0x84, 0x59, 0x53, 0x00, 0x11, 0xe3, 0x8f, 0x34, 0xc0, 0x69,
0x38, 0x66, 0x69, 0x07, 0x54, 0xf1, 0x07, 0x64, 0xd5, 0xb5, 0xa8, 0x6a, 0x1c, 0xc3, 0x8e, 0x22,
0x86, 0xf5, 0x10, 0xa7, 0xa7, 0x7a, 0xcc, 0x9a, 0x34, 0xfd, 0x07, 0x58, 0x1c, 0xff, 0x5d, 0xfc,
0x39, 0xa8, 0x27, 0xcf, 0x50, 0x46, 0xa4, 0x17, 0x6f, 0xc2, 0xdc, 0xb9, 0x7b, 0x49, 0x1d, 0x3e,
0x0c, 0x0b, 0x93, 0xba, 0x35, 0x39, 0x4a, 0x84, 0x53, 0xd0, 0xb7, 0x0f, 0x59, 0xce, 0x8c, 0x7c,
0x28, 0xef, 0x27, 0x32, 0xe3, 0xd7, 0x34, 0xe4, 0x1a, 0x74, 0x40, 0x03, 0xfa, 0x42, 0x95, 0x7e,
0x09, 0xf3, 0x27, 0x37, 0x0e, 0xf5, 0x8e, 0x1b, 0x82, 0xf8, 0xda, 0x32, 0xf3, 0xff, 0xfd, 0xb0,
0x1e, 0xc1, 0x24, 0x3a, 0xc4, 0x43, 0x29, 0xcf, 0x0c, 0x35, 0x73, 0x91, 0xe7, 0x61, 0x29, 0x22,
0x44, 0x50, 0x6a, 0xbc, 0x42, 0x90, 0x65, 0xe1, 0x11, 0x43, 0x7b, 0x6f, 0x61, 0x68, 0xcc, 0x80,
0x04, 0x62, 0xb2, 0x36, 0x20, 0x7b, 0x18, 0x0e, 0x06, 0xa2, 0xb7, 0x2f, 0x57, 0x3b, 0x09, 0x45,
0x4b, 0xaf, 0x7c, 0x3c, 0x4b, 0xbf, 0x03, 0x9a, 0x18, 0x5e, 0x0a, 0xec, 0x1d, 0x25, 0x6c, 0xfc,
0x8f, 0x20, 0x77, 0x46, 0x2d, 0xcf, 0xee, 0xc5, 0xca, 0xca, 0xd6, 0x5d, 0x27, 0xb0, 0xfa, 0x42,
0x2e, 0x88, 0xcb, 0x25, 0x2b, 0xc9, 0x52, 0xea, 0xc7, 0x0d, 0x92, 0xf4, 0xe3, 0x02, 0xcc, 0x7d,
0x1f, 0x52, 0xef, 0x56, 0xe8, 0x8a, 0x08, 0x03, 0x1b, 0xa0, 0xf1, 0xc3, 0x05, 0xf5, 0x98, 0x76,
0x38, 0x53, 0x39, 0x32, 0x81, 0xcd, 0x9c, 0xb2, 0x3a, 0x2c, 0x45, 0x93, 0x4b, 0xd2, 0xbe, 0x86,
0x45, 0xa9, 0x01, 0xca, 0x44, 0xa3, 0x3c, 0xb5, 0x56, 0x71, 0x94, 0xf1, 0x1f, 0x82, 0x65, 0x76,
0xdb, 0x5a, 0x4e, 0xf7, 0xa5, 0xbb, 0xf9, 0x15, 0xa8, 0x3c, 0x9d, 0x29, 0x4d, 0xb4, 0x94, 0x8f,
0x8a, 0xa3, 0x32, 0x5a, 0x86, 0xcc, 0x9c, 0xb4, 0x2d, 0xc8, 0xc7, 0xe3, 0x4a, 0xda, 0xd6, 0x60,
0xf1, 0xd0, 0xb3, 0xba, 0x57, 0xd4, 0x09, 0x04, 0x6d, 0x1a, 0x89, 0x01, 0xe3, 0x97, 0x34, 0xac,
0x44, 0x29, 0x4d, 0xcb, 0xef, 0x7d, 0x08, 0x96, 0x30, 0x64, 0xce, 0xac, 0x41, 0xc0, 0x65, 0xa7,
0x11, 0x7e, 0x9e, 0x39, 0x73, 0xfb, 0x50, 0x98, 0xa4, 0x41, 0xb2, 0xb7, 0x09, 0x2a, 0xb3, 0xa5,
0xe2, 0xb4, 0x9a, 0x26, 0x57, 0x2d, 0xc3, 0xa3, 0xa4, 0x6f, 0xfb, 0x77, 0x05, 0xe6, 0xcf, 0x44,
0x57, 0xbc, 0x05, 0xca, 0x11, 0x0d, 0x30, 0x8e, 0x18, 0x88, 0x3f, 0x5e, 0xf4, 0x95, 0x09, 0x4c,
0x74, 0xd8, 0x42, 0x2c, 0xe3, 0x34, 0x4c, 0x64, 0xc4, 0x2f, 0xe9, 0x38, 0x23, 0xf1, 0x7a, 0x2a,
0x23, 0xbc, 0x0b, 0xaa, 0xb8, 0x5f, 0xf1, 0x27, 0x51, 0xc0, 0xc4, 0x0b, 0x48, 0x5f, 0x9d, 0x86,
0xc7, 0x3b, 0x94, 0x61, 0x14, 0xe0, 0x71, 0xdd, 0xc4, 0x9d, 0xac, 0x17, 0x26, 0x41, 0x99, 0xb2,
0x0b, 0xaa, 0x58, 0xc4, 0xb8, 0xd7, 0xc4, 0x95, 0x14, 0xf7, 0x9a, 0xda, 0xd7, 0x03, 0x58, 0x88,
0x28, 0xc5, 0x9f, 0x26, 0x27, 0x4f, 0x6c, 0xa3, 0x5e, 0x7c, 0xec, 0x90, 0xe9, 0xc7, 0xa0, 0x25,
0x9f, 0x08, 0xfe, 0x6c, 0x3a, 0x32, 0x21, 0x57, 0x7d, 0xed, 0xcd, 0x4e, 0x51, 0xaa, 0x76, 0x70,
0x37, 0x2a, 0xa1, 0xfb, 0x51, 0x09, 0xfd, 0x35, 0x2a, 0xa1, 0x7f, 0x46, 0x25, 0xf4, 0xdb, 0xbf,
0xa5, 0xd4, 0x8f, 0x5f, 0x24, 0x3e, 0x44, 0x1d, 0x7f, 0x68, 0xdb, 0x95, 0x36, 0xbd, 0xae, 0x3a,
0xd4, 0xed, 0xf8, 0x15, 0xf1, 0x19, 0x2a, 0x6a, 0xb6, 0x54, 0x6e, 0x7d, 0xf3, 0x3a, 0x00, 0x00,
0xff, 0xff, 0xbe, 0x82, 0x72, 0x84, 0x3d, 0x0b, 0x00, 0x00,
2019-11-18 13:34:06 +00:00
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ServiceClient is the client API for Service service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ServiceClient interface {
2019-11-20 18:18:44 +00:00
// Get the object from container. Response uses gRPC stream. First response
// message carry object of requested address. Chunk messages are parts of
// the object's payload if it is needed. All messages except first carry
// chunks. Requested object can be restored by concatenation of object
// message payload and all chunks keeping receiving order.
2019-11-18 13:34:06 +00:00
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (Service_GetClient, error)
2019-11-20 18:18:44 +00:00
// Put the object into container. Request uses gRPC stream. First message
// SHOULD BE type of PutHeader. Container id and Owner id of object SHOULD
// BE set. Session token SHOULD BE obtained before put operation (see
// session package). Chunk messages considered by server as part of object
// payload. All messages except first SHOULD BE chunks. Chunk messages
// SHOULD BE sent in direct order of fragmentation.
2019-11-18 13:34:06 +00:00
Put(ctx context.Context, opts ...grpc.CallOption) (Service_PutClient, error)
// Delete the object from a container
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
2019-11-20 18:18:44 +00:00
// Head returns the object without data payload. Object in the
// response has system header only. If full headers flag is set, extended
// headers are also present.
2019-11-18 13:34:06 +00:00
Head(ctx context.Context, in *HeadRequest, opts ...grpc.CallOption) (*HeadResponse, error)
2019-11-20 18:18:44 +00:00
// Search objects in container. Version of query language format SHOULD BE
// set to 1. Search query represented in serialized format (see query
// package).
2019-11-18 13:34:06 +00:00
Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
2019-11-20 18:18:44 +00:00
// GetRange of data payload. Ranges are set of pairs (offset, length).
// Fragments order in response corresponds to ranges order in request.
2019-11-18 13:34:06 +00:00
GetRange(ctx context.Context, in *GetRangeRequest, opts ...grpc.CallOption) (*GetRangeResponse, error)
2019-11-20 18:18:44 +00:00
// GetRangeHash returns homomorphic hash of object payload range after XOR
// operation. Ranges are set of pairs (offset, length). Hashes order in
// response corresponds to ranges order in request. Homomorphic hash is
// calculated for XORed data.
2019-11-18 13:34:06 +00:00
GetRangeHash(ctx context.Context, in *GetRangeHashRequest, opts ...grpc.CallOption) (*GetRangeHashResponse, error)
}
type serviceClient struct {
cc *grpc.ClientConn
}
func NewServiceClient(cc *grpc.ClientConn) ServiceClient {
return &serviceClient{cc}
}
func (c *serviceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (Service_GetClient, error) {
stream, err := c.cc.NewStream(ctx, &_Service_serviceDesc.Streams[0], "/object.Service/Get", opts...)
if err != nil {
return nil, err
}
x := &serviceGetClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type Service_GetClient interface {
Recv() (*GetResponse, error)
grpc.ClientStream
}
type serviceGetClient struct {
grpc.ClientStream
}
func (x *serviceGetClient) Recv() (*GetResponse, error) {
m := new(GetResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *serviceClient) Put(ctx context.Context, opts ...grpc.CallOption) (Service_PutClient, error) {
stream, err := c.cc.NewStream(ctx, &_Service_serviceDesc.Streams[1], "/object.Service/Put", opts...)
if err != nil {
return nil, err
}
x := &servicePutClient{stream}
return x, nil
}
type Service_PutClient interface {
Send(*PutRequest) error
CloseAndRecv() (*PutResponse, error)
grpc.ClientStream
}
type servicePutClient struct {
grpc.ClientStream
}
func (x *servicePutClient) Send(m *PutRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *servicePutClient) CloseAndRecv() (*PutResponse, error) {
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
m := new(PutResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *serviceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {
out := new(DeleteResponse)
err := c.cc.Invoke(ctx, "/object.Service/Delete", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *serviceClient) Head(ctx context.Context, in *HeadRequest, opts ...grpc.CallOption) (*HeadResponse, error) {
out := new(HeadResponse)
err := c.cc.Invoke(ctx, "/object.Service/Head", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *serviceClient) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) {
out := new(SearchResponse)
err := c.cc.Invoke(ctx, "/object.Service/Search", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *serviceClient) GetRange(ctx context.Context, in *GetRangeRequest, opts ...grpc.CallOption) (*GetRangeResponse, error) {
out := new(GetRangeResponse)
err := c.cc.Invoke(ctx, "/object.Service/GetRange", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *serviceClient) GetRangeHash(ctx context.Context, in *GetRangeHashRequest, opts ...grpc.CallOption) (*GetRangeHashResponse, error) {
out := new(GetRangeHashResponse)
err := c.cc.Invoke(ctx, "/object.Service/GetRangeHash", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ServiceServer is the server API for Service service.
type ServiceServer interface {
2019-11-20 18:18:44 +00:00
// Get the object from container. Response uses gRPC stream. First response
// message carry object of requested address. Chunk messages are parts of
// the object's payload if it is needed. All messages except first carry
// chunks. Requested object can be restored by concatenation of object
// message payload and all chunks keeping receiving order.
2019-11-18 13:34:06 +00:00
Get(*GetRequest, Service_GetServer) error
2019-11-20 18:18:44 +00:00
// Put the object into container. Request uses gRPC stream. First message
// SHOULD BE type of PutHeader. Container id and Owner id of object SHOULD
// BE set. Session token SHOULD BE obtained before put operation (see
// session package). Chunk messages considered by server as part of object
// payload. All messages except first SHOULD BE chunks. Chunk messages
// SHOULD BE sent in direct order of fragmentation.
2019-11-18 13:34:06 +00:00
Put(Service_PutServer) error
// Delete the object from a container
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
2019-11-20 18:18:44 +00:00
// Head returns the object without data payload. Object in the
// response has system header only. If full headers flag is set, extended
// headers are also present.
2019-11-18 13:34:06 +00:00
Head(context.Context, *HeadRequest) (*HeadResponse, error)
2019-11-20 18:18:44 +00:00
// Search objects in container. Version of query language format SHOULD BE
// set to 1. Search query represented in serialized format (see query
// package).
2019-11-18 13:34:06 +00:00
Search(context.Context, *SearchRequest) (*SearchResponse, error)
2019-11-20 18:18:44 +00:00
// GetRange of data payload. Ranges are set of pairs (offset, length).
// Fragments order in response corresponds to ranges order in request.
2019-11-18 13:34:06 +00:00
GetRange(context.Context, *GetRangeRequest) (*GetRangeResponse, error)
2019-11-20 18:18:44 +00:00
// GetRangeHash returns homomorphic hash of object payload range after XOR
// operation. Ranges are set of pairs (offset, length). Hashes order in
// response corresponds to ranges order in request. Homomorphic hash is
// calculated for XORed data.
2019-11-18 13:34:06 +00:00
GetRangeHash(context.Context, *GetRangeHashRequest) (*GetRangeHashResponse, error)
}
// UnimplementedServiceServer can be embedded to have forward compatible implementations.
type UnimplementedServiceServer struct {
}
func (*UnimplementedServiceServer) Get(req *GetRequest, srv Service_GetServer) error {
return status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedServiceServer) Put(srv Service_PutServer) error {
return status.Errorf(codes.Unimplemented, "method Put not implemented")
}
func (*UnimplementedServiceServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
}
func (*UnimplementedServiceServer) Head(ctx context.Context, req *HeadRequest) (*HeadResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Head not implemented")
}
func (*UnimplementedServiceServer) Search(ctx context.Context, req *SearchRequest) (*SearchResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Search not implemented")
}
func (*UnimplementedServiceServer) GetRange(ctx context.Context, req *GetRangeRequest) (*GetRangeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRange not implemented")
}
func (*UnimplementedServiceServer) GetRangeHash(ctx context.Context, req *GetRangeHashRequest) (*GetRangeHashResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRangeHash not implemented")
}
func RegisterServiceServer(s *grpc.Server, srv ServiceServer) {
s.RegisterService(&_Service_serviceDesc, srv)
}
func _Service_Get_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(GetRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(ServiceServer).Get(m, &serviceGetServer{stream})
}
type Service_GetServer interface {
Send(*GetResponse) error
grpc.ServerStream
}
type serviceGetServer struct {
grpc.ServerStream
}
func (x *serviceGetServer) Send(m *GetResponse) error {
return x.ServerStream.SendMsg(m)
}
func _Service_Put_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(ServiceServer).Put(&servicePutServer{stream})
}
type Service_PutServer interface {
SendAndClose(*PutResponse) error
Recv() (*PutRequest, error)
grpc.ServerStream
}
type servicePutServer struct {
grpc.ServerStream
}
func (x *servicePutServer) SendAndClose(m *PutResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *servicePutServer) Recv() (*PutRequest, error) {
m := new(PutRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func _Service_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServiceServer).Delete(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/object.Service/Delete",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServiceServer).Delete(ctx, req.(*DeleteRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Service_Head_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HeadRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServiceServer).Head(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/object.Service/Head",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServiceServer).Head(ctx, req.(*HeadRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Service_Search_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SearchRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServiceServer).Search(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/object.Service/Search",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServiceServer).Search(ctx, req.(*SearchRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Service_GetRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRangeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServiceServer).GetRange(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/object.Service/GetRange",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServiceServer).GetRange(ctx, req.(*GetRangeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Service_GetRangeHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRangeHashRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServiceServer).GetRangeHash(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/object.Service/GetRangeHash",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServiceServer).GetRangeHash(ctx, req.(*GetRangeHashRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Service_serviceDesc = grpc.ServiceDesc{
ServiceName: "object.Service",
HandlerType: (*ServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Delete",
Handler: _Service_Delete_Handler,
},
{
MethodName: "Head",
Handler: _Service_Head_Handler,
},
{
MethodName: "Search",
Handler: _Service_Search_Handler,
},
{
MethodName: "GetRange",
Handler: _Service_GetRange_Handler,
},
{
MethodName: "GetRangeHash",
Handler: _Service_GetRangeHash_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "Get",
Handler: _Service_Get_Handler,
ServerStreams: true,
},
{
StreamName: "Put",
Handler: _Service_Put_Handler,
ClientStreams: true,
},
},
Metadata: "object/service.proto",
}
func (m *GetRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
2019-11-18 16:22:08 +00:00
{
size, err := m.RequestVerificationHeader.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0x9a
2019-11-18 13:34:06 +00:00
{
2019-11-18 16:22:08 +00:00
size, err := m.RequestMetaHeader.MarshalToSizedBuffer(dAtA[:i])
2019-11-18 13:34:06 +00:00
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
2019-11-18 16:22:08 +00:00
dAtA[i] = 0x6
i--
dAtA[i] = 0x92
if m.Raw {
i--
if m.Raw {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x10
}
2019-11-18 16:22:08 +00:00
{
size, err := m.Address.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
i--
dAtA[i] = 0xa
2019-11-18 13:34:06 +00:00
return len(dAtA) - i, nil
}
func (m *GetResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.R != nil {
{
size := m.R.Size()
i -= size
if _, err := m.R.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
}
}
return len(dAtA) - i, nil
}
func (m *GetResponse_Object) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GetResponse_Object) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
if m.Object != nil {
{
size, err := m.Object.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *GetResponse_Chunk) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GetResponse_Chunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
if m.Chunk != nil {
i -= len(m.Chunk)
copy(dAtA[i:], m.Chunk)
i = encodeVarintService(dAtA, i, uint64(len(m.Chunk)))
i--
dAtA[i] = 0x12
}
return len(dAtA) - i, nil
}
func (m *PutRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *PutRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *PutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
2019-11-18 16:22:08 +00:00
{
size, err := m.RequestVerificationHeader.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0x9a
{
size, err := m.RequestMetaHeader.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0x92
2019-11-18 13:34:06 +00:00
if m.R != nil {
{
size := m.R.Size()
i -= size
if _, err := m.R.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
}
}
return len(dAtA) - i, nil
}
func (m *PutRequest_Header) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *PutRequest_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
if m.Header != nil {
{
size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *PutRequest_Chunk) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *PutRequest_Chunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
if m.Chunk != nil {
i -= len(m.Chunk)
copy(dAtA[i:], m.Chunk)
i = encodeVarintService(dAtA, i, uint64(len(m.Chunk)))
i--
dAtA[i] = 0x12
}
return len(dAtA) - i, nil
}
func (m *PutRequest_PutHeader) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *PutRequest_PutHeader) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *PutRequest_PutHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.Token != nil {
{
size, err := m.Token.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
2019-11-18 16:22:08 +00:00
dAtA[i] = 0x12
2019-11-18 13:34:06 +00:00
}
if m.Object != nil {
{
size, err := m.Object.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
2019-11-18 16:22:08 +00:00
dAtA[i] = 0xa
2019-11-18 13:34:06 +00:00
}
return len(dAtA) - i, nil
}
func (m *PutResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *PutResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *PutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
{
size, err := m.Address.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *DeleteRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
2019-11-18 16:22:08 +00:00
{
size, err := m.RequestVerificationHeader.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0x9a
{
size, err := m.RequestMetaHeader.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0x92
2019-11-18 13:34:06 +00:00
if m.Token != nil {
{
size, err := m.Token.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
2019-11-18 16:22:08 +00:00
dAtA[i] = 0x1a
2019-11-18 13:34:06 +00:00
}
{
size := m.OwnerID.Size()
i -= size
if _, err := m.OwnerID.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
2019-11-18 16:22:08 +00:00
dAtA[i] = 0x12
2019-11-18 13:34:06 +00:00
{
size, err := m.Address.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
2019-11-18 16:22:08 +00:00
dAtA[i] = 0xa
2019-11-18 13:34:06 +00:00
return len(dAtA) - i, nil
}
func (m *DeleteResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
return len(dAtA) - i, nil
}
func (m *HeadRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *HeadRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *HeadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
2019-11-18 16:22:08 +00:00
{
size, err := m.RequestVerificationHeader.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0x9a
{
size, err := m.RequestMetaHeader.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0x92
if m.Raw {
i--
if m.Raw {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x18
}
2019-11-18 13:34:06 +00:00
if m.FullHeaders {
i--
if m.FullHeaders {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
2019-11-18 16:22:08 +00:00
dAtA[i] = 0x10
2019-11-18 13:34:06 +00:00
}
{
size := m.Address.Size()
i -= size
if _, err := m.Address.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
2019-11-18 16:22:08 +00:00
dAtA[i] = 0xa
2019-11-18 13:34:06 +00:00
return len(dAtA) - i, nil
}
func (m *HeadResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *HeadResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *HeadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.Object != nil {
{
size, err := m.Object.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *SearchRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *SearchRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *SearchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
2019-11-18 16:22:08 +00:00
{
size, err := m.RequestVerificationHeader.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0x9a
{
size, err := m.RequestMetaHeader.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0x92
2019-11-21 12:21:37 +00:00
if m.QueryVersion != 0 {
i = encodeVarintService(dAtA, i, uint64(m.QueryVersion))
i--
dAtA[i] = 0x18
}
2019-11-18 13:34:06 +00:00
if len(m.Query) > 0 {
i -= len(m.Query)
copy(dAtA[i:], m.Query)
i = encodeVarintService(dAtA, i, uint64(len(m.Query)))
i--
2019-11-21 12:21:37 +00:00
dAtA[i] = 0x12
2019-11-18 13:34:06 +00:00
}
{
size := m.ContainerID.Size()
i -= size
if _, err := m.ContainerID.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
2019-11-21 12:21:37 +00:00
dAtA[i] = 0xa
2019-11-18 13:34:06 +00:00
return len(dAtA) - i, nil
}
func (m *SearchResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *SearchResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *SearchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.Addresses) > 0 {
for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Addresses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *GetRangeRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GetRangeRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GetRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
2019-11-18 16:22:08 +00:00
{
size, err := m.RequestVerificationHeader.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0x9a
{
size, err := m.RequestMetaHeader.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0x92
2019-11-18 13:34:06 +00:00
if len(m.Ranges) > 0 {
for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
2019-11-18 16:22:08 +00:00
dAtA[i] = 0x12
2019-11-18 13:34:06 +00:00
}
}
{
size, err := m.Address.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
2019-11-18 16:22:08 +00:00
dAtA[i] = 0xa
2019-11-18 13:34:06 +00:00
return len(dAtA) - i, nil
}
func (m *GetRangeResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GetRangeResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GetRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.Fragments) > 0 {
for iNdEx := len(m.Fragments) - 1; iNdEx >= 0; iNdEx-- {
i -= len(m.Fragments[iNdEx])
copy(dAtA[i:], m.Fragments[iNdEx])
i = encodeVarintService(dAtA, i, uint64(len(m.Fragments[iNdEx])))
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *GetRangeHashRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GetRangeHashRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GetRangeHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
2019-11-18 16:22:08 +00:00
{
size, err := m.RequestVerificationHeader.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0x9a
{
size, err := m.RequestMetaHeader.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0x92
2019-11-18 13:34:06 +00:00
if len(m.Salt) > 0 {
i -= len(m.Salt)
copy(dAtA[i:], m.Salt)
i = encodeVarintService(dAtA, i, uint64(len(m.Salt)))
i--
2019-11-18 16:22:08 +00:00
dAtA[i] = 0x1a
2019-11-18 13:34:06 +00:00
}
if len(m.Ranges) > 0 {
for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
2019-11-18 16:22:08 +00:00
dAtA[i] = 0x12
2019-11-18 13:34:06 +00:00
}
}
{
size, err := m.Address.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
2019-11-18 16:22:08 +00:00
dAtA[i] = 0xa
2019-11-18 13:34:06 +00:00
return len(dAtA) - i, nil
}
func (m *GetRangeHashResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GetRangeHashResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GetRangeHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.Hashes) > 0 {
for iNdEx := len(m.Hashes) - 1; iNdEx >= 0; iNdEx-- {
{
size := m.Hashes[iNdEx].Size()
i -= size
if _, err := m.Hashes[iNdEx].MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintService(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func encodeVarintService(dAtA []byte, offset int, v uint64) int {
offset -= sovService(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *GetRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Address.Size()
n += 1 + l + sovService(uint64(l))
if m.Raw {
n += 2
}
2019-11-18 16:22:08 +00:00
l = m.RequestMetaHeader.Size()
n += 2 + l + sovService(uint64(l))
l = m.RequestVerificationHeader.Size()
n += 2 + l + sovService(uint64(l))
2019-11-18 13:34:06 +00:00
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *GetResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.R != nil {
n += m.R.Size()
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *GetResponse_Object) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Object != nil {
l = m.Object.Size()
n += 1 + l + sovService(uint64(l))
}
return n
}
func (m *GetResponse_Chunk) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Chunk != nil {
l = len(m.Chunk)
n += 1 + l + sovService(uint64(l))
}
return n
}
func (m *PutRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.R != nil {
n += m.R.Size()
}
2019-11-18 16:22:08 +00:00
l = m.RequestMetaHeader.Size()
n += 2 + l + sovService(uint64(l))
l = m.RequestVerificationHeader.Size()
n += 2 + l + sovService(uint64(l))
2019-11-18 13:34:06 +00:00
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *PutRequest_Header) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Header != nil {
l = m.Header.Size()
n += 1 + l + sovService(uint64(l))
}
return n
}
func (m *PutRequest_Chunk) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Chunk != nil {
l = len(m.Chunk)
n += 1 + l + sovService(uint64(l))
}
return n
}
func (m *PutRequest_PutHeader) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Object != nil {
l = m.Object.Size()
n += 1 + l + sovService(uint64(l))
}
if m.Token != nil {
l = m.Token.Size()
n += 1 + l + sovService(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *PutResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Address.Size()
n += 1 + l + sovService(uint64(l))
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *DeleteRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Address.Size()
n += 1 + l + sovService(uint64(l))
l = m.OwnerID.Size()
n += 1 + l + sovService(uint64(l))
if m.Token != nil {
l = m.Token.Size()
n += 1 + l + sovService(uint64(l))
}
2019-11-18 16:22:08 +00:00
l = m.RequestMetaHeader.Size()
n += 2 + l + sovService(uint64(l))
l = m.RequestVerificationHeader.Size()
n += 2 + l + sovService(uint64(l))
2019-11-18 13:34:06 +00:00
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *DeleteResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *HeadRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Address.Size()
n += 1 + l + sovService(uint64(l))
if m.FullHeaders {
n += 2
}
if m.Raw {
n += 2
}
2019-11-18 16:22:08 +00:00
l = m.RequestMetaHeader.Size()
n += 2 + l + sovService(uint64(l))
l = m.RequestVerificationHeader.Size()
n += 2 + l + sovService(uint64(l))
2019-11-18 13:34:06 +00:00
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *HeadResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Object != nil {
l = m.Object.Size()
n += 1 + l + sovService(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *SearchRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.ContainerID.Size()
n += 1 + l + sovService(uint64(l))
l = len(m.Query)
if l > 0 {
n += 1 + l + sovService(uint64(l))
}
2019-11-21 12:21:37 +00:00
if m.QueryVersion != 0 {
n += 1 + sovService(uint64(m.QueryVersion))
}
2019-11-18 16:22:08 +00:00
l = m.RequestMetaHeader.Size()
n += 2 + l + sovService(uint64(l))
l = m.RequestVerificationHeader.Size()
n += 2 + l + sovService(uint64(l))
2019-11-18 13:34:06 +00:00
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *SearchResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.Addresses) > 0 {
for _, e := range m.Addresses {
l = e.Size()
n += 1 + l + sovService(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *GetRangeRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Address.Size()
n += 1 + l + sovService(uint64(l))
if len(m.Ranges) > 0 {
for _, e := range m.Ranges {
l = e.Size()
n += 1 + l + sovService(uint64(l))
}
}
2019-11-18 16:22:08 +00:00
l = m.RequestMetaHeader.Size()
n += 2 + l + sovService(uint64(l))
l = m.RequestVerificationHeader.Size()
n += 2 + l + sovService(uint64(l))
2019-11-18 13:34:06 +00:00
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *GetRangeResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.Fragments) > 0 {
for _, b := range m.Fragments {
l = len(b)
n += 1 + l + sovService(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *GetRangeHashRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Address.Size()
n += 1 + l + sovService(uint64(l))
if len(m.Ranges) > 0 {
for _, e := range m.Ranges {
l = e.Size()
n += 1 + l + sovService(uint64(l))
}
}
l = len(m.Salt)
if l > 0 {
n += 1 + l + sovService(uint64(l))
}
2019-11-18 16:22:08 +00:00
l = m.RequestMetaHeader.Size()
n += 2 + l + sovService(uint64(l))
l = m.RequestVerificationHeader.Size()
n += 2 + l + sovService(uint64(l))
2019-11-18 13:34:06 +00:00
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *GetRangeHashResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.Hashes) > 0 {
for _, e := range m.Hashes {
l = e.Size()
n += 1 + l + sovService(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovService(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozService(x uint64) (n int) {
return sovService(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *GetRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GetRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
2019-11-18 16:22:08 +00:00
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
var msglen int
2019-11-18 13:34:06 +00:00
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
2019-11-18 16:22:08 +00:00
msglen |= int(b&0x7F) << shift
2019-11-18 13:34:06 +00:00
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.Raw = bool(v != 0)
2019-11-18 16:22:08 +00:00
case 98:
2019-11-18 13:34:06 +00:00
if wireType != 2 {
2019-11-18 16:22:08 +00:00
return fmt.Errorf("proto: wrong wireType = %d for field RequestMetaHeader", wireType)
2019-11-18 13:34:06 +00:00
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
2019-11-18 16:22:08 +00:00
if err := m.RequestMetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2019-11-18 13:34:06 +00:00
return err
}
iNdEx = postIndex
2019-11-18 16:22:08 +00:00
case 99:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RequestVerificationHeader", wireType)
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
var msglen int
2019-11-18 13:34:06 +00:00
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
2019-11-18 16:22:08 +00:00
msglen |= int(b&0x7F) << shift
2019-11-18 13:34:06 +00:00
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.RequestVerificationHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
2019-11-18 13:34:06 +00:00
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *GetResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GetResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
v := &Object{}
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
m.R = &GetResponse_Object{v}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Chunk", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
v := make([]byte, postIndex-iNdEx)
copy(v, dAtA[iNdEx:postIndex])
m.R = &GetResponse_Chunk{v}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *PutRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: PutRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: PutRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
v := &PutRequest_PutHeader{}
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
m.R = &PutRequest_Header{v}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Chunk", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
v := make([]byte, postIndex-iNdEx)
copy(v, dAtA[iNdEx:postIndex])
m.R = &PutRequest_Chunk{v}
iNdEx = postIndex
2019-11-18 16:22:08 +00:00
case 98:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RequestMetaHeader", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.RequestMetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 99:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RequestVerificationHeader", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.RequestVerificationHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
2019-11-18 13:34:06 +00:00
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *PutRequest_PutHeader) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: PutHeader: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: PutHeader: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Object == nil {
m.Object = &Object{}
}
if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
2019-11-18 16:22:08 +00:00
case 2:
2019-11-18 13:34:06 +00:00
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Token == nil {
m.Token = &session.Token{}
}
if err := m.Token.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *PutResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: PutResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: PutResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *DeleteRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: DeleteRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: DeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
2019-11-18 16:22:08 +00:00
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
var msglen int
2019-11-18 13:34:06 +00:00
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
2019-11-18 16:22:08 +00:00
msglen |= int(b&0x7F) << shift
2019-11-18 13:34:06 +00:00
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
2019-11-18 13:34:06 +00:00
case 2:
if wireType != 2 {
2019-11-18 16:22:08 +00:00
return fmt.Errorf("proto: wrong wireType = %d for field OwnerID", wireType)
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
var byteLen int
2019-11-18 13:34:06 +00:00
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
2019-11-18 16:22:08 +00:00
byteLen |= int(b&0x7F) << shift
2019-11-18 13:34:06 +00:00
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
if byteLen < 0 {
2019-11-18 13:34:06 +00:00
return ErrInvalidLengthService
}
2019-11-18 16:22:08 +00:00
postIndex := iNdEx + byteLen
2019-11-18 13:34:06 +00:00
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
2019-11-18 16:22:08 +00:00
if err := m.OwnerID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2019-11-18 13:34:06 +00:00
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
2019-11-18 16:22:08 +00:00
return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
var msglen int
2019-11-18 13:34:06 +00:00
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
2019-11-18 16:22:08 +00:00
msglen |= int(b&0x7F) << shift
2019-11-18 13:34:06 +00:00
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
if msglen < 0 {
2019-11-18 13:34:06 +00:00
return ErrInvalidLengthService
}
2019-11-18 16:22:08 +00:00
postIndex := iNdEx + msglen
2019-11-18 13:34:06 +00:00
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
2019-11-18 16:22:08 +00:00
if m.Token == nil {
m.Token = &session.Token{}
}
if err := m.Token.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2019-11-18 13:34:06 +00:00
return err
}
iNdEx = postIndex
2019-11-18 16:22:08 +00:00
case 98:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RequestMetaHeader", wireType)
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
var msglen int
2019-11-18 13:34:06 +00:00
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
2019-11-18 16:22:08 +00:00
msglen |= int(b&0x7F) << shift
2019-11-18 13:34:06 +00:00
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.RequestMetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 99:
2019-11-18 13:34:06 +00:00
if wireType != 2 {
2019-11-18 16:22:08 +00:00
return fmt.Errorf("proto: wrong wireType = %d for field RequestVerificationHeader", wireType)
2019-11-18 13:34:06 +00:00
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
2019-11-18 16:22:08 +00:00
if err := m.RequestVerificationHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2019-11-18 13:34:06 +00:00
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *DeleteResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: DeleteResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: DeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *HeadRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: HeadRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: HeadRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
2019-11-18 16:22:08 +00:00
case 2:
2019-11-18 13:34:06 +00:00
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field FullHeaders", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.FullHeaders = bool(v != 0)
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.Raw = bool(v != 0)
2019-11-18 16:22:08 +00:00
case 98:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RequestMetaHeader", wireType)
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
var msglen int
2019-11-18 13:34:06 +00:00
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
2019-11-18 16:22:08 +00:00
msglen |= int(b&0x7F) << shift
2019-11-18 13:34:06 +00:00
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.RequestMetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 99:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RequestVerificationHeader", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.RequestVerificationHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
2019-11-18 13:34:06 +00:00
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *HeadResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: HeadResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: HeadResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Object == nil {
m.Object = &Object{}
}
if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *SearchRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: SearchRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: SearchRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
2019-11-18 16:22:08 +00:00
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType)
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
var byteLen int
2019-11-18 13:34:06 +00:00
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
2019-11-18 16:22:08 +00:00
byteLen |= int(b&0x7F) << shift
2019-11-18 13:34:06 +00:00
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
if byteLen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.ContainerID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
2019-11-21 12:21:37 +00:00
case 2:
2019-11-18 13:34:06 +00:00
if wireType != 2 {
2019-11-18 16:22:08 +00:00
return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
2019-11-18 13:34:06 +00:00
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
2019-11-18 16:22:08 +00:00
m.Query = append(m.Query[:0], dAtA[iNdEx:postIndex]...)
if m.Query == nil {
m.Query = []byte{}
2019-11-18 13:34:06 +00:00
}
iNdEx = postIndex
2019-11-21 12:21:37 +00:00
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field QueryVersion", wireType)
}
m.QueryVersion = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.QueryVersion |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
case 98:
2019-11-18 13:34:06 +00:00
if wireType != 2 {
2019-11-18 16:22:08 +00:00
return fmt.Errorf("proto: wrong wireType = %d for field RequestMetaHeader", wireType)
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
var msglen int
2019-11-18 13:34:06 +00:00
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
2019-11-18 16:22:08 +00:00
msglen |= int(b&0x7F) << shift
2019-11-18 13:34:06 +00:00
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
if msglen < 0 {
2019-11-18 13:34:06 +00:00
return ErrInvalidLengthService
}
2019-11-18 16:22:08 +00:00
postIndex := iNdEx + msglen
2019-11-18 13:34:06 +00:00
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
2019-11-18 16:22:08 +00:00
if err := m.RequestMetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
2019-11-18 13:34:06 +00:00
}
iNdEx = postIndex
2019-11-18 16:22:08 +00:00
case 99:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RequestVerificationHeader", wireType)
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
var msglen int
2019-11-18 13:34:06 +00:00
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
2019-11-18 16:22:08 +00:00
msglen |= int(b&0x7F) << shift
2019-11-18 13:34:06 +00:00
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.RequestVerificationHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
2019-11-18 13:34:06 +00:00
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *SearchResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: SearchResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: SearchResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Addresses = append(m.Addresses, refs.Address{})
if err := m.Addresses[len(m.Addresses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *GetRangeRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GetRangeRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GetRangeRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
2019-11-18 16:22:08 +00:00
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
var msglen int
2019-11-18 13:34:06 +00:00
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
2019-11-18 16:22:08 +00:00
msglen |= int(b&0x7F) << shift
2019-11-18 13:34:06 +00:00
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
2019-11-18 13:34:06 +00:00
case 2:
if wireType != 2 {
2019-11-18 16:22:08 +00:00
return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType)
2019-11-18 13:34:06 +00:00
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
2019-11-18 16:22:08 +00:00
m.Ranges = append(m.Ranges, Range{})
if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2019-11-18 13:34:06 +00:00
return err
}
iNdEx = postIndex
2019-11-18 16:22:08 +00:00
case 98:
2019-11-18 13:34:06 +00:00
if wireType != 2 {
2019-11-18 16:22:08 +00:00
return fmt.Errorf("proto: wrong wireType = %d for field RequestMetaHeader", wireType)
2019-11-18 13:34:06 +00:00
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
2019-11-18 16:22:08 +00:00
if err := m.RequestMetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2019-11-18 13:34:06 +00:00
return err
}
iNdEx = postIndex
2019-11-18 16:22:08 +00:00
case 99:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RequestVerificationHeader", wireType)
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
var msglen int
2019-11-18 13:34:06 +00:00
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
2019-11-18 16:22:08 +00:00
msglen |= int(b&0x7F) << shift
2019-11-18 13:34:06 +00:00
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.RequestVerificationHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
2019-11-18 13:34:06 +00:00
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *GetRangeResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GetRangeResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GetRangeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Fragments", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Fragments = append(m.Fragments, make([]byte, postIndex-iNdEx))
copy(m.Fragments[len(m.Fragments)-1], dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *GetRangeHashRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GetRangeHashRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GetRangeHashRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
2019-11-18 16:22:08 +00:00
case 2:
2019-11-18 13:34:06 +00:00
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Ranges = append(m.Ranges, Range{})
if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
2019-11-18 16:22:08 +00:00
case 3:
2019-11-18 13:34:06 +00:00
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Salt", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Salt = append(m.Salt[:0], dAtA[iNdEx:postIndex]...)
if m.Salt == nil {
m.Salt = []byte{}
}
iNdEx = postIndex
2019-11-18 16:22:08 +00:00
case 98:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RequestMetaHeader", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.RequestMetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
2019-11-18 13:34:06 +00:00
}
2019-11-18 16:22:08 +00:00
iNdEx = postIndex
case 99:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RequestVerificationHeader", wireType)
}
var msglen int
2019-11-18 13:34:06 +00:00
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
2019-11-18 16:22:08 +00:00
msglen |= int(b&0x7F) << shift
2019-11-18 13:34:06 +00:00
if b < 0x80 {
break
}
}
2019-11-18 16:22:08 +00:00
if msglen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.RequestVerificationHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
2019-11-18 13:34:06 +00:00
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *GetRangeHashResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GetRangeHashResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GetRangeHashResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Hashes", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowService
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthService
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthService
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
var v Hash
m.Hashes = append(m.Hashes, v)
if err := m.Hashes[len(m.Hashes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipService(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthService
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipService(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowService
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowService
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowService
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthService
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupService
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthService
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowService = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupService = fmt.Errorf("proto: unexpected end of group")
)