// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: commonspace/spacesyncproto/protos/spacesync.proto package spacesyncproto import ( fmt "fmt" proto "github.com/gogo/protobuf/proto" 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package type ErrCodes int32 const ( ErrCodes_Unexpected ErrCodes = 0 ErrCodes_SpaceMissing ErrCodes = 1 ErrCodes_SpaceExists ErrCodes = 2 ErrCodes_SpaceNotInCache ErrCodes = 3 ErrCodes_ErrorOffset ErrCodes = 100 ) var ErrCodes_name = map[int32]string{ 0: "Unexpected", 1: "SpaceMissing", 2: "SpaceExists", 3: "SpaceNotInCache", 100: "ErrorOffset", } var ErrCodes_value = map[string]int32{ "Unexpected": 0, "SpaceMissing": 1, "SpaceExists": 2, "SpaceNotInCache": 3, "ErrorOffset": 100, } func (x ErrCodes) String() string { return proto.EnumName(ErrCodes_name, int32(x)) } func (ErrCodes) EnumDescriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{0} } // SpaceSubscription contains in ObjectSyncMessage.Payload and indicates that we need to subscribe or unsubscribe the current stream to this space type SpaceSubscriptionAction int32 const ( SpaceSubscriptionAction_Subscribe SpaceSubscriptionAction = 0 SpaceSubscriptionAction_Unsubscribe SpaceSubscriptionAction = 1 ) var SpaceSubscriptionAction_name = map[int32]string{ 0: "Subscribe", 1: "Unsubscribe", } var SpaceSubscriptionAction_value = map[string]int32{ "Subscribe": 0, "Unsubscribe": 1, } func (x SpaceSubscriptionAction) String() string { return proto.EnumName(SpaceSubscriptionAction_name, int32(x)) } func (SpaceSubscriptionAction) EnumDescriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{1} } // HeadSyncRange presenting a request for one range type HeadSyncRange struct { From uint64 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` To uint64 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"` Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` } func (m *HeadSyncRange) Reset() { *m = HeadSyncRange{} } func (m *HeadSyncRange) String() string { return proto.CompactTextString(m) } func (*HeadSyncRange) ProtoMessage() {} func (*HeadSyncRange) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{0} } func (m *HeadSyncRange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HeadSyncRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_HeadSyncRange.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *HeadSyncRange) XXX_Merge(src proto.Message) { xxx_messageInfo_HeadSyncRange.Merge(m, src) } func (m *HeadSyncRange) XXX_Size() int { return m.Size() } func (m *HeadSyncRange) XXX_DiscardUnknown() { xxx_messageInfo_HeadSyncRange.DiscardUnknown(m) } var xxx_messageInfo_HeadSyncRange proto.InternalMessageInfo func (m *HeadSyncRange) GetFrom() uint64 { if m != nil { return m.From } return 0 } func (m *HeadSyncRange) GetTo() uint64 { if m != nil { return m.To } return 0 } func (m *HeadSyncRange) GetLimit() uint32 { if m != nil { return m.Limit } return 0 } // HeadSyncResult presenting a response for one range type HeadSyncResult struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Elements []*HeadSyncResultElement `protobuf:"bytes,2,rep,name=elements,proto3" json:"elements,omitempty"` Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` } func (m *HeadSyncResult) Reset() { *m = HeadSyncResult{} } func (m *HeadSyncResult) String() string { return proto.CompactTextString(m) } func (*HeadSyncResult) ProtoMessage() {} func (*HeadSyncResult) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{1} } func (m *HeadSyncResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HeadSyncResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_HeadSyncResult.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *HeadSyncResult) XXX_Merge(src proto.Message) { xxx_messageInfo_HeadSyncResult.Merge(m, src) } func (m *HeadSyncResult) XXX_Size() int { return m.Size() } func (m *HeadSyncResult) XXX_DiscardUnknown() { xxx_messageInfo_HeadSyncResult.DiscardUnknown(m) } var xxx_messageInfo_HeadSyncResult proto.InternalMessageInfo func (m *HeadSyncResult) GetHash() []byte { if m != nil { return m.Hash } return nil } func (m *HeadSyncResult) GetElements() []*HeadSyncResultElement { if m != nil { return m.Elements } return nil } func (m *HeadSyncResult) GetCount() uint32 { if m != nil { return m.Count } return 0 } // HeadSyncResultElement presenting state of one object type HeadSyncResultElement struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Head string `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"` } func (m *HeadSyncResultElement) Reset() { *m = HeadSyncResultElement{} } func (m *HeadSyncResultElement) String() string { return proto.CompactTextString(m) } func (*HeadSyncResultElement) ProtoMessage() {} func (*HeadSyncResultElement) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{2} } func (m *HeadSyncResultElement) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HeadSyncResultElement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_HeadSyncResultElement.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *HeadSyncResultElement) XXX_Merge(src proto.Message) { xxx_messageInfo_HeadSyncResultElement.Merge(m, src) } func (m *HeadSyncResultElement) XXX_Size() int { return m.Size() } func (m *HeadSyncResultElement) XXX_DiscardUnknown() { xxx_messageInfo_HeadSyncResultElement.DiscardUnknown(m) } var xxx_messageInfo_HeadSyncResultElement proto.InternalMessageInfo func (m *HeadSyncResultElement) GetId() string { if m != nil { return m.Id } return "" } func (m *HeadSyncResultElement) GetHead() string { if m != nil { return m.Head } return "" } // HeadSyncRequest is a request for HeadSync type HeadSyncRequest struct { SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"` Ranges []*HeadSyncRange `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"` } func (m *HeadSyncRequest) Reset() { *m = HeadSyncRequest{} } func (m *HeadSyncRequest) String() string { return proto.CompactTextString(m) } func (*HeadSyncRequest) ProtoMessage() {} func (*HeadSyncRequest) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{3} } func (m *HeadSyncRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HeadSyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_HeadSyncRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *HeadSyncRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_HeadSyncRequest.Merge(m, src) } func (m *HeadSyncRequest) XXX_Size() int { return m.Size() } func (m *HeadSyncRequest) XXX_DiscardUnknown() { xxx_messageInfo_HeadSyncRequest.DiscardUnknown(m) } var xxx_messageInfo_HeadSyncRequest proto.InternalMessageInfo func (m *HeadSyncRequest) GetSpaceId() string { if m != nil { return m.SpaceId } return "" } func (m *HeadSyncRequest) GetRanges() []*HeadSyncRange { if m != nil { return m.Ranges } return nil } // HeadSyncResponse is a response for HeadSync type HeadSyncResponse struct { Results []*HeadSyncResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` } func (m *HeadSyncResponse) Reset() { *m = HeadSyncResponse{} } func (m *HeadSyncResponse) String() string { return proto.CompactTextString(m) } func (*HeadSyncResponse) ProtoMessage() {} func (*HeadSyncResponse) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{4} } func (m *HeadSyncResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HeadSyncResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_HeadSyncResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *HeadSyncResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_HeadSyncResponse.Merge(m, src) } func (m *HeadSyncResponse) XXX_Size() int { return m.Size() } func (m *HeadSyncResponse) XXX_DiscardUnknown() { xxx_messageInfo_HeadSyncResponse.DiscardUnknown(m) } var xxx_messageInfo_HeadSyncResponse proto.InternalMessageInfo func (m *HeadSyncResponse) GetResults() []*HeadSyncResult { if m != nil { return m.Results } return nil } // ObjectSyncMessage is a message sent on object sync type ObjectSyncMessage struct { SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"` RequestId string `protobuf:"bytes,2,opt,name=requestId,proto3" json:"requestId,omitempty"` ReplyId string `protobuf:"bytes,3,opt,name=replyId,proto3" json:"replyId,omitempty"` Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` ObjectId string `protobuf:"bytes,5,opt,name=objectId,proto3" json:"objectId,omitempty"` } func (m *ObjectSyncMessage) Reset() { *m = ObjectSyncMessage{} } func (m *ObjectSyncMessage) String() string { return proto.CompactTextString(m) } func (*ObjectSyncMessage) ProtoMessage() {} func (*ObjectSyncMessage) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{5} } func (m *ObjectSyncMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ObjectSyncMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ObjectSyncMessage.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *ObjectSyncMessage) XXX_Merge(src proto.Message) { xxx_messageInfo_ObjectSyncMessage.Merge(m, src) } func (m *ObjectSyncMessage) XXX_Size() int { return m.Size() } func (m *ObjectSyncMessage) XXX_DiscardUnknown() { xxx_messageInfo_ObjectSyncMessage.DiscardUnknown(m) } var xxx_messageInfo_ObjectSyncMessage proto.InternalMessageInfo func (m *ObjectSyncMessage) GetSpaceId() string { if m != nil { return m.SpaceId } return "" } func (m *ObjectSyncMessage) GetRequestId() string { if m != nil { return m.RequestId } return "" } func (m *ObjectSyncMessage) GetReplyId() string { if m != nil { return m.ReplyId } return "" } func (m *ObjectSyncMessage) GetPayload() []byte { if m != nil { return m.Payload } return nil } func (m *ObjectSyncMessage) GetObjectId() string { if m != nil { return m.ObjectId } return "" } // SpacePushRequest is a request to add space on a node containing only one acl record type SpacePushRequest struct { Payload *SpacePayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` } func (m *SpacePushRequest) Reset() { *m = SpacePushRequest{} } func (m *SpacePushRequest) String() string { return proto.CompactTextString(m) } func (*SpacePushRequest) ProtoMessage() {} func (*SpacePushRequest) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{6} } func (m *SpacePushRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SpacePushRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SpacePushRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *SpacePushRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_SpacePushRequest.Merge(m, src) } func (m *SpacePushRequest) XXX_Size() int { return m.Size() } func (m *SpacePushRequest) XXX_DiscardUnknown() { xxx_messageInfo_SpacePushRequest.DiscardUnknown(m) } var xxx_messageInfo_SpacePushRequest proto.InternalMessageInfo func (m *SpacePushRequest) GetPayload() *SpacePayload { if m != nil { return m.Payload } return nil } // SpacePushResponse is an empty response type SpacePushResponse struct { } func (m *SpacePushResponse) Reset() { *m = SpacePushResponse{} } func (m *SpacePushResponse) String() string { return proto.CompactTextString(m) } func (*SpacePushResponse) ProtoMessage() {} func (*SpacePushResponse) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{7} } func (m *SpacePushResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SpacePushResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SpacePushResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *SpacePushResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_SpacePushResponse.Merge(m, src) } func (m *SpacePushResponse) XXX_Size() int { return m.Size() } func (m *SpacePushResponse) XXX_DiscardUnknown() { xxx_messageInfo_SpacePushResponse.DiscardUnknown(m) } var xxx_messageInfo_SpacePushResponse proto.InternalMessageInfo // SpacePullRequest is a request to request a space on a node that doesn't have it type SpacePullRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } func (m *SpacePullRequest) Reset() { *m = SpacePullRequest{} } func (m *SpacePullRequest) String() string { return proto.CompactTextString(m) } func (*SpacePullRequest) ProtoMessage() {} func (*SpacePullRequest) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{8} } func (m *SpacePullRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SpacePullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SpacePullRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *SpacePullRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_SpacePullRequest.Merge(m, src) } func (m *SpacePullRequest) XXX_Size() int { return m.Size() } func (m *SpacePullRequest) XXX_DiscardUnknown() { xxx_messageInfo_SpacePullRequest.DiscardUnknown(m) } var xxx_messageInfo_SpacePullRequest proto.InternalMessageInfo func (m *SpacePullRequest) GetId() string { if m != nil { return m.Id } return "" } // SpacePullResponse is a response with header and acl root type SpacePullResponse struct { Payload *SpacePayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` } func (m *SpacePullResponse) Reset() { *m = SpacePullResponse{} } func (m *SpacePullResponse) String() string { return proto.CompactTextString(m) } func (*SpacePullResponse) ProtoMessage() {} func (*SpacePullResponse) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{9} } func (m *SpacePullResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SpacePullResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SpacePullResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *SpacePullResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_SpacePullResponse.Merge(m, src) } func (m *SpacePullResponse) XXX_Size() int { return m.Size() } func (m *SpacePullResponse) XXX_DiscardUnknown() { xxx_messageInfo_SpacePullResponse.DiscardUnknown(m) } var xxx_messageInfo_SpacePullResponse proto.InternalMessageInfo func (m *SpacePullResponse) GetPayload() *SpacePayload { if m != nil { return m.Payload } return nil } // SpacePayload is a payload for pushing a space type SpacePayload struct { SpaceHeader *RawSpaceHeaderWithId `protobuf:"bytes,1,opt,name=spaceHeader,proto3" json:"spaceHeader,omitempty"` AclPayload []byte `protobuf:"bytes,2,opt,name=aclPayload,proto3" json:"aclPayload,omitempty"` AclPayloadId string `protobuf:"bytes,3,opt,name=aclPayloadId,proto3" json:"aclPayloadId,omitempty"` SpaceSettingsPayload []byte `protobuf:"bytes,4,opt,name=spaceSettingsPayload,proto3" json:"spaceSettingsPayload,omitempty"` SpaceSettingsPayloadId string `protobuf:"bytes,5,opt,name=spaceSettingsPayloadId,proto3" json:"spaceSettingsPayloadId,omitempty"` } func (m *SpacePayload) Reset() { *m = SpacePayload{} } func (m *SpacePayload) String() string { return proto.CompactTextString(m) } func (*SpacePayload) ProtoMessage() {} func (*SpacePayload) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{10} } func (m *SpacePayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SpacePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SpacePayload.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *SpacePayload) XXX_Merge(src proto.Message) { xxx_messageInfo_SpacePayload.Merge(m, src) } func (m *SpacePayload) XXX_Size() int { return m.Size() } func (m *SpacePayload) XXX_DiscardUnknown() { xxx_messageInfo_SpacePayload.DiscardUnknown(m) } var xxx_messageInfo_SpacePayload proto.InternalMessageInfo func (m *SpacePayload) GetSpaceHeader() *RawSpaceHeaderWithId { if m != nil { return m.SpaceHeader } return nil } func (m *SpacePayload) GetAclPayload() []byte { if m != nil { return m.AclPayload } return nil } func (m *SpacePayload) GetAclPayloadId() string { if m != nil { return m.AclPayloadId } return "" } func (m *SpacePayload) GetSpaceSettingsPayload() []byte { if m != nil { return m.SpaceSettingsPayload } return nil } func (m *SpacePayload) GetSpaceSettingsPayloadId() string { if m != nil { return m.SpaceSettingsPayloadId } return "" } // SpaceHeader is a header for a space type SpaceHeader struct { Identity []byte `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` SpaceType string `protobuf:"bytes,3,opt,name=spaceType,proto3" json:"spaceType,omitempty"` ReplicationKey uint64 `protobuf:"varint,4,opt,name=replicationKey,proto3" json:"replicationKey,omitempty"` Seed []byte `protobuf:"bytes,5,opt,name=seed,proto3" json:"seed,omitempty"` } func (m *SpaceHeader) Reset() { *m = SpaceHeader{} } func (m *SpaceHeader) String() string { return proto.CompactTextString(m) } func (*SpaceHeader) ProtoMessage() {} func (*SpaceHeader) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{11} } func (m *SpaceHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SpaceHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SpaceHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *SpaceHeader) XXX_Merge(src proto.Message) { xxx_messageInfo_SpaceHeader.Merge(m, src) } func (m *SpaceHeader) XXX_Size() int { return m.Size() } func (m *SpaceHeader) XXX_DiscardUnknown() { xxx_messageInfo_SpaceHeader.DiscardUnknown(m) } var xxx_messageInfo_SpaceHeader proto.InternalMessageInfo func (m *SpaceHeader) GetIdentity() []byte { if m != nil { return m.Identity } return nil } func (m *SpaceHeader) GetTimestamp() int64 { if m != nil { return m.Timestamp } return 0 } func (m *SpaceHeader) GetSpaceType() string { if m != nil { return m.SpaceType } return "" } func (m *SpaceHeader) GetReplicationKey() uint64 { if m != nil { return m.ReplicationKey } return 0 } func (m *SpaceHeader) GetSeed() []byte { if m != nil { return m.Seed } return nil } // RawSpaceHeader is raw header for SpaceHeader type RawSpaceHeader struct { SpaceHeader []byte `protobuf:"bytes,1,opt,name=spaceHeader,proto3" json:"spaceHeader,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } func (m *RawSpaceHeader) Reset() { *m = RawSpaceHeader{} } func (m *RawSpaceHeader) String() string { return proto.CompactTextString(m) } func (*RawSpaceHeader) ProtoMessage() {} func (*RawSpaceHeader) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{12} } func (m *RawSpaceHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *RawSpaceHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_RawSpaceHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *RawSpaceHeader) XXX_Merge(src proto.Message) { xxx_messageInfo_RawSpaceHeader.Merge(m, src) } func (m *RawSpaceHeader) XXX_Size() int { return m.Size() } func (m *RawSpaceHeader) XXX_DiscardUnknown() { xxx_messageInfo_RawSpaceHeader.DiscardUnknown(m) } var xxx_messageInfo_RawSpaceHeader proto.InternalMessageInfo func (m *RawSpaceHeader) GetSpaceHeader() []byte { if m != nil { return m.SpaceHeader } return nil } func (m *RawSpaceHeader) GetSignature() []byte { if m != nil { return m.Signature } return nil } // RawSpaceHeaderWithId is a marshalled RawSpaceHeader with its content id type RawSpaceHeaderWithId struct { RawHeader []byte `protobuf:"bytes,1,opt,name=rawHeader,proto3" json:"rawHeader,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` } func (m *RawSpaceHeaderWithId) Reset() { *m = RawSpaceHeaderWithId{} } func (m *RawSpaceHeaderWithId) String() string { return proto.CompactTextString(m) } func (*RawSpaceHeaderWithId) ProtoMessage() {} func (*RawSpaceHeaderWithId) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{13} } func (m *RawSpaceHeaderWithId) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *RawSpaceHeaderWithId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_RawSpaceHeaderWithId.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *RawSpaceHeaderWithId) XXX_Merge(src proto.Message) { xxx_messageInfo_RawSpaceHeaderWithId.Merge(m, src) } func (m *RawSpaceHeaderWithId) XXX_Size() int { return m.Size() } func (m *RawSpaceHeaderWithId) XXX_DiscardUnknown() { xxx_messageInfo_RawSpaceHeaderWithId.DiscardUnknown(m) } var xxx_messageInfo_RawSpaceHeaderWithId proto.InternalMessageInfo func (m *RawSpaceHeaderWithId) GetRawHeader() []byte { if m != nil { return m.RawHeader } return nil } func (m *RawSpaceHeaderWithId) GetId() string { if m != nil { return m.Id } return "" } // SpaceSettingsContent is a payload for a space settings object type SpaceSettingsContent struct { // Types that are valid to be assigned to Value: // // *SpaceSettingsContent_ObjectDelete // *SpaceSettingsContent_SpaceDelete Value isSpaceSettingsContent_Value `protobuf_oneof:"value"` } func (m *SpaceSettingsContent) Reset() { *m = SpaceSettingsContent{} } func (m *SpaceSettingsContent) String() string { return proto.CompactTextString(m) } func (*SpaceSettingsContent) ProtoMessage() {} func (*SpaceSettingsContent) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{14} } func (m *SpaceSettingsContent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SpaceSettingsContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SpaceSettingsContent.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *SpaceSettingsContent) XXX_Merge(src proto.Message) { xxx_messageInfo_SpaceSettingsContent.Merge(m, src) } func (m *SpaceSettingsContent) XXX_Size() int { return m.Size() } func (m *SpaceSettingsContent) XXX_DiscardUnknown() { xxx_messageInfo_SpaceSettingsContent.DiscardUnknown(m) } var xxx_messageInfo_SpaceSettingsContent proto.InternalMessageInfo type isSpaceSettingsContent_Value interface { isSpaceSettingsContent_Value() MarshalTo([]byte) (int, error) Size() int } type SpaceSettingsContent_ObjectDelete struct { ObjectDelete *ObjectDelete `protobuf:"bytes,1,opt,name=objectDelete,proto3,oneof" json:"objectDelete,omitempty"` } type SpaceSettingsContent_SpaceDelete struct { SpaceDelete *SpaceDelete `protobuf:"bytes,2,opt,name=spaceDelete,proto3,oneof" json:"spaceDelete,omitempty"` } func (*SpaceSettingsContent_ObjectDelete) isSpaceSettingsContent_Value() {} func (*SpaceSettingsContent_SpaceDelete) isSpaceSettingsContent_Value() {} func (m *SpaceSettingsContent) GetValue() isSpaceSettingsContent_Value { if m != nil { return m.Value } return nil } func (m *SpaceSettingsContent) GetObjectDelete() *ObjectDelete { if x, ok := m.GetValue().(*SpaceSettingsContent_ObjectDelete); ok { return x.ObjectDelete } return nil } func (m *SpaceSettingsContent) GetSpaceDelete() *SpaceDelete { if x, ok := m.GetValue().(*SpaceSettingsContent_SpaceDelete); ok { return x.SpaceDelete } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*SpaceSettingsContent) XXX_OneofWrappers() []interface{} { return []interface{}{ (*SpaceSettingsContent_ObjectDelete)(nil), (*SpaceSettingsContent_SpaceDelete)(nil), } } // ObjectDelete is a message containing an object id which should be deleted type ObjectDelete struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } func (m *ObjectDelete) Reset() { *m = ObjectDelete{} } func (m *ObjectDelete) String() string { return proto.CompactTextString(m) } func (*ObjectDelete) ProtoMessage() {} func (*ObjectDelete) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{15} } func (m *ObjectDelete) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ObjectDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ObjectDelete.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *ObjectDelete) XXX_Merge(src proto.Message) { xxx_messageInfo_ObjectDelete.Merge(m, src) } func (m *ObjectDelete) XXX_Size() int { return m.Size() } func (m *ObjectDelete) XXX_DiscardUnknown() { xxx_messageInfo_ObjectDelete.DiscardUnknown(m) } var xxx_messageInfo_ObjectDelete proto.InternalMessageInfo func (m *ObjectDelete) GetId() string { if m != nil { return m.Id } return "" } // SpaceDelete is a message containing timestamp when space was deleted type SpaceDelete struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } func (m *SpaceDelete) Reset() { *m = SpaceDelete{} } func (m *SpaceDelete) String() string { return proto.CompactTextString(m) } func (*SpaceDelete) ProtoMessage() {} func (*SpaceDelete) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{16} } func (m *SpaceDelete) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SpaceDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SpaceDelete.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *SpaceDelete) XXX_Merge(src proto.Message) { xxx_messageInfo_SpaceDelete.Merge(m, src) } func (m *SpaceDelete) XXX_Size() int { return m.Size() } func (m *SpaceDelete) XXX_DiscardUnknown() { xxx_messageInfo_SpaceDelete.DiscardUnknown(m) } var xxx_messageInfo_SpaceDelete proto.InternalMessageInfo func (m *SpaceDelete) GetTimestamp() int64 { if m != nil { return m.Timestamp } return 0 } // SpaceSettingsSnapshot contains all the deleted ids in a snapshot type SpaceSettingsSnapshot struct { DeletedIds []string `protobuf:"bytes,1,rep,name=deletedIds,proto3" json:"deletedIds,omitempty"` SpaceDeletionTimestamp int64 `protobuf:"varint,2,opt,name=spaceDeletionTimestamp,proto3" json:"spaceDeletionTimestamp,omitempty"` } func (m *SpaceSettingsSnapshot) Reset() { *m = SpaceSettingsSnapshot{} } func (m *SpaceSettingsSnapshot) String() string { return proto.CompactTextString(m) } func (*SpaceSettingsSnapshot) ProtoMessage() {} func (*SpaceSettingsSnapshot) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{17} } func (m *SpaceSettingsSnapshot) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SpaceSettingsSnapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SpaceSettingsSnapshot.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *SpaceSettingsSnapshot) XXX_Merge(src proto.Message) { xxx_messageInfo_SpaceSettingsSnapshot.Merge(m, src) } func (m *SpaceSettingsSnapshot) XXX_Size() int { return m.Size() } func (m *SpaceSettingsSnapshot) XXX_DiscardUnknown() { xxx_messageInfo_SpaceSettingsSnapshot.DiscardUnknown(m) } var xxx_messageInfo_SpaceSettingsSnapshot proto.InternalMessageInfo func (m *SpaceSettingsSnapshot) GetDeletedIds() []string { if m != nil { return m.DeletedIds } return nil } func (m *SpaceSettingsSnapshot) GetSpaceDeletionTimestamp() int64 { if m != nil { return m.SpaceDeletionTimestamp } return 0 } // SettingsData contains ObjectTree change payload type SettingsData struct { Content []*SpaceSettingsContent `protobuf:"bytes,1,rep,name=content,proto3" json:"content,omitempty"` Snapshot *SpaceSettingsSnapshot `protobuf:"bytes,2,opt,name=snapshot,proto3" json:"snapshot,omitempty"` } func (m *SettingsData) Reset() { *m = SettingsData{} } func (m *SettingsData) String() string { return proto.CompactTextString(m) } func (*SettingsData) ProtoMessage() {} func (*SettingsData) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{18} } func (m *SettingsData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SettingsData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SettingsData.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *SettingsData) XXX_Merge(src proto.Message) { xxx_messageInfo_SettingsData.Merge(m, src) } func (m *SettingsData) XXX_Size() int { return m.Size() } func (m *SettingsData) XXX_DiscardUnknown() { xxx_messageInfo_SettingsData.DiscardUnknown(m) } var xxx_messageInfo_SettingsData proto.InternalMessageInfo func (m *SettingsData) GetContent() []*SpaceSettingsContent { if m != nil { return m.Content } return nil } func (m *SettingsData) GetSnapshot() *SpaceSettingsSnapshot { if m != nil { return m.Snapshot } return nil } type SpaceSubscription struct { SpaceIds []string `protobuf:"bytes,1,rep,name=spaceIds,proto3" json:"spaceIds,omitempty"` Action SpaceSubscriptionAction `protobuf:"varint,2,opt,name=action,proto3,enum=spacesync.SpaceSubscriptionAction" json:"action,omitempty"` } func (m *SpaceSubscription) Reset() { *m = SpaceSubscription{} } func (m *SpaceSubscription) String() string { return proto.CompactTextString(m) } func (*SpaceSubscription) ProtoMessage() {} func (*SpaceSubscription) Descriptor() ([]byte, []int) { return fileDescriptor_80e49f1f4ac27799, []int{19} } func (m *SpaceSubscription) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SpaceSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SpaceSubscription.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *SpaceSubscription) XXX_Merge(src proto.Message) { xxx_messageInfo_SpaceSubscription.Merge(m, src) } func (m *SpaceSubscription) XXX_Size() int { return m.Size() } func (m *SpaceSubscription) XXX_DiscardUnknown() { xxx_messageInfo_SpaceSubscription.DiscardUnknown(m) } var xxx_messageInfo_SpaceSubscription proto.InternalMessageInfo func (m *SpaceSubscription) GetSpaceIds() []string { if m != nil { return m.SpaceIds } return nil } func (m *SpaceSubscription) GetAction() SpaceSubscriptionAction { if m != nil { return m.Action } return SpaceSubscriptionAction_Subscribe } func init() { proto.RegisterEnum("spacesync.ErrCodes", ErrCodes_name, ErrCodes_value) proto.RegisterEnum("spacesync.SpaceSubscriptionAction", SpaceSubscriptionAction_name, SpaceSubscriptionAction_value) proto.RegisterType((*HeadSyncRange)(nil), "spacesync.HeadSyncRange") proto.RegisterType((*HeadSyncResult)(nil), "spacesync.HeadSyncResult") proto.RegisterType((*HeadSyncResultElement)(nil), "spacesync.HeadSyncResultElement") proto.RegisterType((*HeadSyncRequest)(nil), "spacesync.HeadSyncRequest") proto.RegisterType((*HeadSyncResponse)(nil), "spacesync.HeadSyncResponse") proto.RegisterType((*ObjectSyncMessage)(nil), "spacesync.ObjectSyncMessage") proto.RegisterType((*SpacePushRequest)(nil), "spacesync.SpacePushRequest") proto.RegisterType((*SpacePushResponse)(nil), "spacesync.SpacePushResponse") proto.RegisterType((*SpacePullRequest)(nil), "spacesync.SpacePullRequest") proto.RegisterType((*SpacePullResponse)(nil), "spacesync.SpacePullResponse") proto.RegisterType((*SpacePayload)(nil), "spacesync.SpacePayload") proto.RegisterType((*SpaceHeader)(nil), "spacesync.SpaceHeader") proto.RegisterType((*RawSpaceHeader)(nil), "spacesync.RawSpaceHeader") proto.RegisterType((*RawSpaceHeaderWithId)(nil), "spacesync.RawSpaceHeaderWithId") proto.RegisterType((*SpaceSettingsContent)(nil), "spacesync.SpaceSettingsContent") proto.RegisterType((*ObjectDelete)(nil), "spacesync.ObjectDelete") proto.RegisterType((*SpaceDelete)(nil), "spacesync.SpaceDelete") proto.RegisterType((*SpaceSettingsSnapshot)(nil), "spacesync.SpaceSettingsSnapshot") proto.RegisterType((*SettingsData)(nil), "spacesync.SettingsData") proto.RegisterType((*SpaceSubscription)(nil), "spacesync.SpaceSubscription") } func init() { proto.RegisterFile("commonspace/spacesyncproto/protos/spacesync.proto", fileDescriptor_80e49f1f4ac27799) } var fileDescriptor_80e49f1f4ac27799 = []byte{ // 1007 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcb, 0x6f, 0x1b, 0x45, 0x18, 0xf7, 0x6e, 0x9e, 0xfe, 0xe2, 0x38, 0xdb, 0x69, 0xda, 0x1a, 0x37, 0x72, 0xad, 0x39, 0xa0, 0xa8, 0x48, 0x7d, 0xa4, 0x08, 0xa9, 0x05, 0x0e, 0x6d, 0xe2, 0x52, 0x0b, 0x95, 0x44, 0xe3, 0x56, 0x48, 0x48, 0x1c, 0x26, 0xbb, 0x13, 0x7b, 0x61, 0x3d, 0xb3, 0xec, 0x8c, 0x69, 0x7c, 0xe4, 0xc4, 0x95, 0x33, 0x9c, 0xf8, 0x1f, 0xf8, 0x23, 0x38, 0xf6, 0xc8, 0x11, 0x25, 0xff, 0x08, 0x9a, 0xd9, 0xd9, 0x97, 0xbd, 0xee, 0x81, 0x8b, 0xb3, 0xdf, 0xeb, 0xf7, 0x3d, 0xe7, 0xfb, 0x02, 0x8f, 0x7d, 0x31, 0x9d, 0x0a, 0x2e, 0x63, 0xea, 0xb3, 0x87, 0xe6, 0x57, 0xce, 0xb9, 0x1f, 0x27, 0x42, 0x89, 0x87, 0xe6, 0x57, 0x16, 0xdc, 0x07, 0x86, 0x81, 0x9a, 0x39, 0x03, 0x0f, 0x61, 0xf7, 0x15, 0xa3, 0xc1, 0x68, 0xce, 0x7d, 0x42, 0xf9, 0x98, 0x21, 0x04, 0xeb, 0x17, 0x89, 0x98, 0x76, 0x9c, 0xbe, 0x73, 0xb8, 0x4e, 0xcc, 0x37, 0x6a, 0x83, 0xab, 0x44, 0xc7, 0x35, 0x1c, 0x57, 0x09, 0xb4, 0x0f, 0x1b, 0x51, 0x38, 0x0d, 0x55, 0x67, 0xad, 0xef, 0x1c, 0xee, 0x92, 0x94, 0xc0, 0x97, 0xd0, 0xce, 0xa1, 0x98, 0x9c, 0x45, 0x4a, 0x63, 0x4d, 0xa8, 0x9c, 0x18, 0xac, 0x16, 0x31, 0xdf, 0xe8, 0x0b, 0xd8, 0x66, 0x11, 0x9b, 0x32, 0xae, 0x64, 0xc7, 0xed, 0xaf, 0x1d, 0xee, 0x1c, 0xf5, 0x1f, 0x14, 0xf1, 0x55, 0x01, 0x06, 0xa9, 0x22, 0xc9, 0x2d, 0xb4, 0x67, 0x5f, 0xcc, 0x78, 0xee, 0xd9, 0x10, 0xf8, 0x73, 0xb8, 0x55, 0x6b, 0xa8, 0x03, 0x0f, 0x03, 0xe3, 0xbe, 0x49, 0xdc, 0x30, 0x30, 0x01, 0x31, 0x1a, 0x98, 0x54, 0x9a, 0xc4, 0x7c, 0xe3, 0xef, 0x61, 0xaf, 0x30, 0xfe, 0x69, 0xc6, 0xa4, 0x42, 0x1d, 0xd8, 0x32, 0x21, 0x0d, 0x33, 0xdb, 0x8c, 0x44, 0x8f, 0x60, 0x33, 0xd1, 0x65, 0xca, 0x62, 0xef, 0xd4, 0xc5, 0xae, 0x15, 0x88, 0xd5, 0xc3, 0x5f, 0x81, 0x57, 0x8a, 0x2d, 0x16, 0x5c, 0x32, 0xf4, 0x04, 0xb6, 0x12, 0x13, 0xa7, 0xec, 0x38, 0x06, 0xe6, 0xa3, 0x95, 0x25, 0x20, 0x99, 0x26, 0xfe, 0xc3, 0x81, 0x1b, 0xa7, 0xe7, 0x3f, 0x30, 0x5f, 0x69, 0xe9, 0x6b, 0x26, 0x25, 0x1d, 0xb3, 0x0f, 0x84, 0x7a, 0x00, 0xcd, 0x24, 0xcd, 0x67, 0x98, 0x25, 0x5c, 0x30, 0xb4, 0x5d, 0xc2, 0xe2, 0x68, 0x3e, 0x0c, 0x4c, 0x29, 0x9b, 0x24, 0x23, 0xb5, 0x24, 0xa6, 0xf3, 0x48, 0xd0, 0xa0, 0xb3, 0x6e, 0xfa, 0x96, 0x91, 0xa8, 0x0b, 0xdb, 0xc2, 0x04, 0x30, 0x0c, 0x3a, 0x1b, 0xc6, 0x28, 0xa7, 0xf1, 0x00, 0xbc, 0x91, 0x76, 0x7c, 0x36, 0x93, 0x93, 0xac, 0x8c, 0x8f, 0x0b, 0x24, 0x1d, 0xdb, 0xce, 0xd1, 0x9d, 0x52, 0x9a, 0xa9, 0x76, 0x2a, 0xce, 0x5d, 0xe0, 0x9b, 0x70, 0xa3, 0x04, 0x93, 0x96, 0x0b, 0xe3, 0x1c, 0x3b, 0x8a, 0x32, 0xec, 0x85, 0xce, 0xe2, 0x97, 0xb9, 0xa1, 0xd6, 0xb1, 0x75, 0xfe, 0x1f, 0x01, 0xfc, 0xe2, 0x42, 0xab, 0x2c, 0x41, 0xcf, 0x61, 0xc7, 0xd8, 0xe8, 0xb6, 0xb0, 0xc4, 0xe2, 0xdc, 0x2b, 0xe1, 0x10, 0xfa, 0x6e, 0x54, 0x28, 0x7c, 0x1b, 0xaa, 0xc9, 0x30, 0x20, 0x65, 0x1b, 0xd4, 0x03, 0xa0, 0x7e, 0x64, 0x01, 0x4d, 0x2b, 0x5a, 0xa4, 0xc4, 0x41, 0x18, 0x5a, 0x05, 0x95, 0x37, 0xa4, 0xc2, 0x43, 0x47, 0xb0, 0x6f, 0x20, 0x47, 0x4c, 0xa9, 0x90, 0x8f, 0xe5, 0x59, 0xa5, 0x45, 0xb5, 0x32, 0xf4, 0x19, 0xdc, 0xae, 0xe3, 0xe7, 0xdd, 0x5b, 0x21, 0xc5, 0x7f, 0x3a, 0xb0, 0x53, 0x4a, 0x49, 0xf7, 0x3d, 0x0c, 0x18, 0x57, 0xa1, 0x9a, 0xdb, 0xa7, 0x9c, 0xd3, 0x7a, 0xca, 0x54, 0x38, 0x65, 0x52, 0xd1, 0x69, 0x6c, 0x52, 0x5b, 0x23, 0x05, 0x43, 0x4b, 0x8d, 0x8f, 0x37, 0xf3, 0x98, 0xd9, 0xb4, 0x0a, 0x06, 0xfa, 0x18, 0xda, 0x7a, 0xe8, 0x42, 0x9f, 0xaa, 0x50, 0xf0, 0xaf, 0xd9, 0xdc, 0x64, 0xb3, 0x4e, 0x16, 0xb8, 0xfa, 0xd5, 0x4a, 0xc6, 0xd2, 0xa8, 0x5b, 0xc4, 0x7c, 0xe3, 0x33, 0x68, 0x57, 0x0b, 0x8f, 0xfa, 0xcb, 0x8d, 0x6a, 0x55, 0xfb, 0xa0, 0xa3, 0x09, 0xc7, 0x9c, 0xaa, 0x59, 0xc2, 0x6c, 0x1b, 0x0a, 0x06, 0x3e, 0x81, 0xfd, 0xba, 0x56, 0x9a, 0x77, 0x44, 0xdf, 0x55, 0x50, 0x0b, 0x86, 0x9d, 0x43, 0x37, 0x9f, 0xc3, 0xdf, 0x1d, 0xd8, 0x1f, 0x95, 0xcb, 0x7a, 0x2c, 0xb8, 0xd2, 0xab, 0xe8, 0x4b, 0x68, 0xa5, 0x8f, 0xe5, 0x84, 0x45, 0x4c, 0xb1, 0x9a, 0x81, 0x3c, 0x2d, 0x89, 0x5f, 0x35, 0x48, 0x45, 0x1d, 0x3d, 0xb3, 0xd9, 0x59, 0x6b, 0xd7, 0x58, 0xdf, 0x5e, 0x1c, 0xe7, 0xdc, 0xb8, 0xac, 0xfc, 0x62, 0x0b, 0x36, 0x7e, 0xa6, 0xd1, 0x8c, 0xe1, 0x1e, 0xb4, 0xca, 0x4e, 0x96, 0x1e, 0xd1, 0x27, 0xb6, 0xef, 0x56, 0x5c, 0xe9, 0xad, 0xb3, 0xd0, 0x5b, 0x2c, 0xe0, 0x56, 0x25, 0xd1, 0x11, 0xa7, 0xb1, 0x9c, 0x08, 0xa5, 0xc7, 0x3d, 0x30, 0x00, 0xc1, 0x30, 0x48, 0x17, 0x5c, 0x93, 0x94, 0x38, 0xf9, 0x58, 0x1a, 0x2f, 0xa1, 0xe0, 0x6f, 0x16, 0xe6, 0x67, 0x85, 0x14, 0xff, 0xea, 0x40, 0x2b, 0x73, 0x76, 0x42, 0x15, 0x45, 0x4f, 0x61, 0xcb, 0x4f, 0xab, 0x6b, 0xd7, 0xe8, 0xbd, 0xc5, 0x7a, 0x2c, 0x34, 0x81, 0x64, 0xfa, 0xfa, 0x0a, 0x49, 0x1b, 0xaf, 0xad, 0x65, 0x7f, 0x95, 0x6d, 0x96, 0x17, 0xc9, 0x2d, 0xf0, 0x8f, 0x76, 0xd9, 0x8c, 0x66, 0xe7, 0xd2, 0x4f, 0xc2, 0x58, 0xc7, 0xa9, 0x5f, 0x89, 0x5d, 0xbd, 0x59, 0xd2, 0x39, 0x8d, 0x9e, 0xc1, 0x26, 0xf5, 0xb5, 0x96, 0x71, 0xd6, 0x3e, 0xc2, 0x4b, 0xce, 0x4a, 0x48, 0xcf, 0x8d, 0x26, 0xb1, 0x16, 0xf7, 0x7d, 0xd8, 0x1e, 0x24, 0xc9, 0xb1, 0x08, 0x98, 0x44, 0x6d, 0x80, 0xb7, 0x9c, 0x5d, 0xc6, 0xcc, 0x57, 0x2c, 0xf0, 0x1a, 0xc8, 0xb3, 0xcb, 0xea, 0x75, 0x28, 0x65, 0xc8, 0xc7, 0x9e, 0x83, 0xf6, 0x6c, 0x0b, 0x07, 0x97, 0xa1, 0x54, 0xd2, 0x73, 0xd1, 0x4d, 0xd8, 0x33, 0x8c, 0x6f, 0x84, 0x1a, 0xf2, 0x63, 0xea, 0x4f, 0x98, 0xb7, 0xa6, 0xb5, 0x06, 0x49, 0x22, 0x92, 0xd3, 0x8b, 0x0b, 0xc9, 0x94, 0x17, 0xdc, 0x7f, 0x0a, 0x77, 0x56, 0xc4, 0x81, 0x76, 0xa1, 0x69, 0xb9, 0xe7, 0xcc, 0x6b, 0x68, 0xd3, 0xb7, 0x5c, 0xe6, 0x0c, 0xe7, 0xe8, 0x2f, 0x17, 0x9a, 0xa9, 0xed, 0x9c, 0xfb, 0xe8, 0x18, 0xb6, 0xb3, 0x03, 0x86, 0xba, 0xb5, 0x57, 0xcd, 0xec, 0xef, 0xee, 0xdd, 0xfa, 0x8b, 0x97, 0xee, 0xed, 0x97, 0x16, 0x51, 0x5f, 0x01, 0x74, 0x77, 0x69, 0x67, 0x17, 0x27, 0xa6, 0x7b, 0x50, 0x2f, 0x5c, 0xc2, 0x89, 0xa2, 0x3a, 0x9c, 0xfc, 0x9c, 0xd4, 0xe1, 0x94, 0xee, 0x08, 0x01, 0xaf, 0xb8, 0xbc, 0x23, 0x95, 0x30, 0x3a, 0x45, 0x07, 0x4b, 0x2f, 0xb7, 0x74, 0x96, 0xbb, 0x1f, 0x94, 0x1e, 0x3a, 0x8f, 0x9c, 0x17, 0x9f, 0xfe, 0x7d, 0xd5, 0x73, 0xde, 0x5f, 0xf5, 0x9c, 0x7f, 0xaf, 0x7a, 0xce, 0x6f, 0xd7, 0xbd, 0xc6, 0xfb, 0xeb, 0x5e, 0xe3, 0x9f, 0xeb, 0x5e, 0xe3, 0xbb, 0xee, 0xea, 0x7f, 0xe8, 0xce, 0x37, 0xcd, 0x9f, 0x27, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x33, 0x0a, 0x59, 0xe5, 0xf5, 0x09, 0x00, 0x00, } func (m *HeadSyncRange) 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 *HeadSyncRange) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *HeadSyncRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Limit != 0 { i = encodeVarintSpacesync(dAtA, i, uint64(m.Limit)) i-- dAtA[i] = 0x18 } if m.To != 0 { i = encodeVarintSpacesync(dAtA, i, uint64(m.To)) i-- dAtA[i] = 0x10 } if m.From != 0 { i = encodeVarintSpacesync(dAtA, i, uint64(m.From)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *HeadSyncResult) 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 *HeadSyncResult) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *HeadSyncResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Count != 0 { i = encodeVarintSpacesync(dAtA, i, uint64(m.Count)) i-- dAtA[i] = 0x18 } if len(m.Elements) > 0 { for iNdEx := len(m.Elements) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Elements[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintSpacesync(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if len(m.Hash) > 0 { i -= len(m.Hash) copy(dAtA[i:], m.Hash) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.Hash))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *HeadSyncResultElement) 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 *HeadSyncResultElement) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *HeadSyncResultElement) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Head) > 0 { i -= len(m.Head) copy(dAtA[i:], m.Head) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.Head))) i-- dAtA[i] = 0x12 } if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *HeadSyncRequest) 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 *HeadSyncRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *HeadSyncRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l 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 = encodeVarintSpacesync(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if len(m.SpaceId) > 0 { i -= len(m.SpaceId) copy(dAtA[i:], m.SpaceId) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.SpaceId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *HeadSyncResponse) 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 *HeadSyncResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *HeadSyncResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Results) > 0 { for iNdEx := len(m.Results) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Results[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintSpacesync(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *ObjectSyncMessage) 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 *ObjectSyncMessage) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ObjectSyncMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.ObjectId) > 0 { i -= len(m.ObjectId) copy(dAtA[i:], m.ObjectId) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.ObjectId))) i-- dAtA[i] = 0x2a } if len(m.Payload) > 0 { i -= len(m.Payload) copy(dAtA[i:], m.Payload) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.Payload))) i-- dAtA[i] = 0x22 } if len(m.ReplyId) > 0 { i -= len(m.ReplyId) copy(dAtA[i:], m.ReplyId) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.ReplyId))) i-- dAtA[i] = 0x1a } if len(m.RequestId) > 0 { i -= len(m.RequestId) copy(dAtA[i:], m.RequestId) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.RequestId))) i-- dAtA[i] = 0x12 } if len(m.SpaceId) > 0 { i -= len(m.SpaceId) copy(dAtA[i:], m.SpaceId) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.SpaceId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *SpacePushRequest) 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 *SpacePushRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SpacePushRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Payload != nil { { size, err := m.Payload.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintSpacesync(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *SpacePushResponse) 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 *SpacePushResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SpacePushResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l return len(dAtA) - i, nil } func (m *SpacePullRequest) 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 *SpacePullRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SpacePullRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *SpacePullResponse) 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 *SpacePullResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SpacePullResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Payload != nil { { size, err := m.Payload.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintSpacesync(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *SpacePayload) 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 *SpacePayload) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SpacePayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.SpaceSettingsPayloadId) > 0 { i -= len(m.SpaceSettingsPayloadId) copy(dAtA[i:], m.SpaceSettingsPayloadId) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.SpaceSettingsPayloadId))) i-- dAtA[i] = 0x2a } if len(m.SpaceSettingsPayload) > 0 { i -= len(m.SpaceSettingsPayload) copy(dAtA[i:], m.SpaceSettingsPayload) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.SpaceSettingsPayload))) i-- dAtA[i] = 0x22 } if len(m.AclPayloadId) > 0 { i -= len(m.AclPayloadId) copy(dAtA[i:], m.AclPayloadId) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.AclPayloadId))) i-- dAtA[i] = 0x1a } if len(m.AclPayload) > 0 { i -= len(m.AclPayload) copy(dAtA[i:], m.AclPayload) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.AclPayload))) i-- dAtA[i] = 0x12 } if m.SpaceHeader != nil { { size, err := m.SpaceHeader.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintSpacesync(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *SpaceHeader) 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 *SpaceHeader) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SpaceHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Seed) > 0 { i -= len(m.Seed) copy(dAtA[i:], m.Seed) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.Seed))) i-- dAtA[i] = 0x2a } if m.ReplicationKey != 0 { i = encodeVarintSpacesync(dAtA, i, uint64(m.ReplicationKey)) i-- dAtA[i] = 0x20 } if len(m.SpaceType) > 0 { i -= len(m.SpaceType) copy(dAtA[i:], m.SpaceType) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.SpaceType))) i-- dAtA[i] = 0x1a } if m.Timestamp != 0 { i = encodeVarintSpacesync(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x10 } if len(m.Identity) > 0 { i -= len(m.Identity) copy(dAtA[i:], m.Identity) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.Identity))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *RawSpaceHeader) 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 *RawSpaceHeader) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *RawSpaceHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Signature) > 0 { i -= len(m.Signature) copy(dAtA[i:], m.Signature) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.Signature))) i-- dAtA[i] = 0x12 } if len(m.SpaceHeader) > 0 { i -= len(m.SpaceHeader) copy(dAtA[i:], m.SpaceHeader) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.SpaceHeader))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *RawSpaceHeaderWithId) 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 *RawSpaceHeaderWithId) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *RawSpaceHeaderWithId) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0x12 } if len(m.RawHeader) > 0 { i -= len(m.RawHeader) copy(dAtA[i:], m.RawHeader) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.RawHeader))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *SpaceSettingsContent) 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 *SpaceSettingsContent) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SpaceSettingsContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Value != nil { { size := m.Value.Size() i -= size if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { return 0, err } } } return len(dAtA) - i, nil } func (m *SpaceSettingsContent_ObjectDelete) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SpaceSettingsContent_ObjectDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.ObjectDelete != nil { { size, err := m.ObjectDelete.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintSpacesync(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *SpaceSettingsContent_SpaceDelete) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SpaceSettingsContent_SpaceDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.SpaceDelete != nil { { size, err := m.SpaceDelete.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintSpacesync(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } return len(dAtA) - i, nil } func (m *ObjectDelete) 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 *ObjectDelete) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ObjectDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *SpaceDelete) 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 *SpaceDelete) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SpaceDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Timestamp != 0 { i = encodeVarintSpacesync(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *SpaceSettingsSnapshot) 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 *SpaceSettingsSnapshot) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SpaceSettingsSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.SpaceDeletionTimestamp != 0 { i = encodeVarintSpacesync(dAtA, i, uint64(m.SpaceDeletionTimestamp)) i-- dAtA[i] = 0x10 } if len(m.DeletedIds) > 0 { for iNdEx := len(m.DeletedIds) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.DeletedIds[iNdEx]) copy(dAtA[i:], m.DeletedIds[iNdEx]) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.DeletedIds[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *SettingsData) 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 *SettingsData) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SettingsData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Snapshot != nil { { size, err := m.Snapshot.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintSpacesync(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if len(m.Content) > 0 { for iNdEx := len(m.Content) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Content[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintSpacesync(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *SpaceSubscription) 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 *SpaceSubscription) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SpaceSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Action != 0 { i = encodeVarintSpacesync(dAtA, i, uint64(m.Action)) i-- dAtA[i] = 0x10 } if len(m.SpaceIds) > 0 { for iNdEx := len(m.SpaceIds) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.SpaceIds[iNdEx]) copy(dAtA[i:], m.SpaceIds[iNdEx]) i = encodeVarintSpacesync(dAtA, i, uint64(len(m.SpaceIds[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func encodeVarintSpacesync(dAtA []byte, offset int, v uint64) int { offset -= sovSpacesync(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *HeadSyncRange) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.From != 0 { n += 1 + sovSpacesync(uint64(m.From)) } if m.To != 0 { n += 1 + sovSpacesync(uint64(m.To)) } if m.Limit != 0 { n += 1 + sovSpacesync(uint64(m.Limit)) } return n } func (m *HeadSyncResult) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Hash) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } if len(m.Elements) > 0 { for _, e := range m.Elements { l = e.Size() n += 1 + l + sovSpacesync(uint64(l)) } } if m.Count != 0 { n += 1 + sovSpacesync(uint64(m.Count)) } return n } func (m *HeadSyncResultElement) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Id) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } l = len(m.Head) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } return n } func (m *HeadSyncRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.SpaceId) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } if len(m.Ranges) > 0 { for _, e := range m.Ranges { l = e.Size() n += 1 + l + sovSpacesync(uint64(l)) } } return n } func (m *HeadSyncResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Results) > 0 { for _, e := range m.Results { l = e.Size() n += 1 + l + sovSpacesync(uint64(l)) } } return n } func (m *ObjectSyncMessage) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.SpaceId) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } l = len(m.RequestId) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } l = len(m.ReplyId) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } l = len(m.Payload) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } l = len(m.ObjectId) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } return n } func (m *SpacePushRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Payload != nil { l = m.Payload.Size() n += 1 + l + sovSpacesync(uint64(l)) } return n } func (m *SpacePushResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l return n } func (m *SpacePullRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Id) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } return n } func (m *SpacePullResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Payload != nil { l = m.Payload.Size() n += 1 + l + sovSpacesync(uint64(l)) } return n } func (m *SpacePayload) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.SpaceHeader != nil { l = m.SpaceHeader.Size() n += 1 + l + sovSpacesync(uint64(l)) } l = len(m.AclPayload) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } l = len(m.AclPayloadId) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } l = len(m.SpaceSettingsPayload) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } l = len(m.SpaceSettingsPayloadId) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } return n } func (m *SpaceHeader) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Identity) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } if m.Timestamp != 0 { n += 1 + sovSpacesync(uint64(m.Timestamp)) } l = len(m.SpaceType) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } if m.ReplicationKey != 0 { n += 1 + sovSpacesync(uint64(m.ReplicationKey)) } l = len(m.Seed) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } return n } func (m *RawSpaceHeader) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.SpaceHeader) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } l = len(m.Signature) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } return n } func (m *RawSpaceHeaderWithId) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.RawHeader) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } l = len(m.Id) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } return n } func (m *SpaceSettingsContent) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Value != nil { n += m.Value.Size() } return n } func (m *SpaceSettingsContent_ObjectDelete) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ObjectDelete != nil { l = m.ObjectDelete.Size() n += 1 + l + sovSpacesync(uint64(l)) } return n } func (m *SpaceSettingsContent_SpaceDelete) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.SpaceDelete != nil { l = m.SpaceDelete.Size() n += 1 + l + sovSpacesync(uint64(l)) } return n } func (m *ObjectDelete) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Id) if l > 0 { n += 1 + l + sovSpacesync(uint64(l)) } return n } func (m *SpaceDelete) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Timestamp != 0 { n += 1 + sovSpacesync(uint64(m.Timestamp)) } return n } func (m *SpaceSettingsSnapshot) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.DeletedIds) > 0 { for _, s := range m.DeletedIds { l = len(s) n += 1 + l + sovSpacesync(uint64(l)) } } if m.SpaceDeletionTimestamp != 0 { n += 1 + sovSpacesync(uint64(m.SpaceDeletionTimestamp)) } return n } func (m *SettingsData) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Content) > 0 { for _, e := range m.Content { l = e.Size() n += 1 + l + sovSpacesync(uint64(l)) } } if m.Snapshot != nil { l = m.Snapshot.Size() n += 1 + l + sovSpacesync(uint64(l)) } return n } func (m *SpaceSubscription) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.SpaceIds) > 0 { for _, s := range m.SpaceIds { l = len(s) n += 1 + l + sovSpacesync(uint64(l)) } } if m.Action != 0 { n += 1 + sovSpacesync(uint64(m.Action)) } return n } func sovSpacesync(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozSpacesync(x uint64) (n int) { return sovSpacesync(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *HeadSyncRange) 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 ErrIntOverflowSpacesync } 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: HeadSyncRange: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: HeadSyncRange: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } m.From = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.From |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) } m.To = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.To |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } m.Limit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Limit |= uint32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *HeadSyncResult) 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 ErrIntOverflowSpacesync } 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: HeadSyncResult: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: HeadSyncResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) if m.Hash == nil { m.Hash = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Elements", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Elements = append(m.Elements, &HeadSyncResultElement{}) if err := m.Elements[len(m.Elements)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) } m.Count = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Count |= uint32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *HeadSyncResultElement) 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 ErrIntOverflowSpacesync } 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: HeadSyncResultElement: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: HeadSyncResultElement: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Id = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Head", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Head = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *HeadSyncRequest) 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 ErrIntOverflowSpacesync } 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: HeadSyncRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: HeadSyncRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.SpaceId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: 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 ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Ranges = append(m.Ranges, &HeadSyncRange{}) if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *HeadSyncResponse) 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 ErrIntOverflowSpacesync } 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: HeadSyncResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: HeadSyncResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Results = append(m.Results, &HeadSyncResult{}) if err := m.Results[len(m.Results)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ObjectSyncMessage) 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 ErrIntOverflowSpacesync } 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: ObjectSyncMessage: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ObjectSyncMessage: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.SpaceId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.RequestId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ReplyId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.ReplyId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) if m.Payload == nil { m.Payload = []byte{} } iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ObjectId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.ObjectId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SpacePushRequest) 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 ErrIntOverflowSpacesync } 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: SpacePushRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SpacePushRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } if m.Payload == nil { m.Payload = &SpacePayload{} } if err := m.Payload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SpacePushResponse) 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 ErrIntOverflowSpacesync } 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: SpacePushResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SpacePushResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SpacePullRequest) 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 ErrIntOverflowSpacesync } 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: SpacePullRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SpacePullRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Id = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SpacePullResponse) 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 ErrIntOverflowSpacesync } 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: SpacePullResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SpacePullResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } if m.Payload == nil { m.Payload = &SpacePayload{} } if err := m.Payload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SpacePayload) 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 ErrIntOverflowSpacesync } 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: SpacePayload: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SpacePayload: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SpaceHeader", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } if m.SpaceHeader == nil { m.SpaceHeader = &RawSpaceHeaderWithId{} } if err := m.SpaceHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AclPayload", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.AclPayload = append(m.AclPayload[:0], dAtA[iNdEx:postIndex]...) if m.AclPayload == nil { m.AclPayload = []byte{} } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AclPayloadId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.AclPayloadId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SpaceSettingsPayload", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.SpaceSettingsPayload = append(m.SpaceSettingsPayload[:0], dAtA[iNdEx:postIndex]...) if m.SpaceSettingsPayload == nil { m.SpaceSettingsPayload = []byte{} } iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SpaceSettingsPayloadId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.SpaceSettingsPayloadId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SpaceHeader) 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 ErrIntOverflowSpacesync } 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: SpaceHeader: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SpaceHeader: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Identity = append(m.Identity[:0], dAtA[iNdEx:postIndex]...) if m.Identity == nil { m.Identity = []byte{} } iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) } m.Timestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Timestamp |= int64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SpaceType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.SpaceType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ReplicationKey", wireType) } m.ReplicationKey = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ReplicationKey |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Seed", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Seed = append(m.Seed[:0], dAtA[iNdEx:postIndex]...) if m.Seed == nil { m.Seed = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *RawSpaceHeader) 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 ErrIntOverflowSpacesync } 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: RawSpaceHeader: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: RawSpaceHeader: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SpaceHeader", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.SpaceHeader = append(m.SpaceHeader[:0], dAtA[iNdEx:postIndex]...) if m.SpaceHeader == nil { m.SpaceHeader = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) if m.Signature == nil { m.Signature = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *RawSpaceHeaderWithId) 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 ErrIntOverflowSpacesync } 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: RawSpaceHeaderWithId: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: RawSpaceHeaderWithId: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RawHeader", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.RawHeader = append(m.RawHeader[:0], dAtA[iNdEx:postIndex]...) if m.RawHeader == nil { m.RawHeader = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Id = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SpaceSettingsContent) 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 ErrIntOverflowSpacesync } 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: SpaceSettingsContent: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SpaceSettingsContent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ObjectDelete", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } v := &ObjectDelete{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Value = &SpaceSettingsContent_ObjectDelete{v} iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SpaceDelete", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } v := &SpaceDelete{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Value = &SpaceSettingsContent_SpaceDelete{v} iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ObjectDelete) 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 ErrIntOverflowSpacesync } 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: ObjectDelete: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ObjectDelete: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Id = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SpaceDelete) 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 ErrIntOverflowSpacesync } 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: SpaceDelete: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SpaceDelete: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) } m.Timestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Timestamp |= int64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SpaceSettingsSnapshot) 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 ErrIntOverflowSpacesync } 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: SpaceSettingsSnapshot: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SpaceSettingsSnapshot: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DeletedIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.DeletedIds = append(m.DeletedIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field SpaceDeletionTimestamp", wireType) } m.SpaceDeletionTimestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.SpaceDeletionTimestamp |= int64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SettingsData) 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 ErrIntOverflowSpacesync } 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: SettingsData: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SettingsData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.Content = append(m.Content, &SpaceSettingsContent{}) if err := m.Content[len(m.Content)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Snapshot", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } if m.Snapshot == nil { m.Snapshot = &SpaceSettingsSnapshot{} } if err := m.Snapshot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SpaceSubscription) 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 ErrIntOverflowSpacesync } 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: SpaceSubscription: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SpaceSubscription: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SpaceIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSpacesync } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSpacesync } if postIndex > l { return io.ErrUnexpectedEOF } m.SpaceIds = append(m.SpaceIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) } m.Action = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSpacesync } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Action |= SpaceSubscriptionAction(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipSpacesync(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSpacesync } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipSpacesync(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, ErrIntOverflowSpacesync } 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, ErrIntOverflowSpacesync } 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, ErrIntOverflowSpacesync } 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, ErrInvalidLengthSpacesync } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupSpacesync } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthSpacesync } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthSpacesync = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSpacesync = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSpacesync = fmt.Errorf("proto: unexpected end of group") )