diff --git a/client/Makefile b/client/Makefile index 2c12bf1f..f8466e93 100644 --- a/client/Makefile +++ b/client/Makefile @@ -3,7 +3,8 @@ export GOPRIVATE=github.com/anytypeio proto: @$(eval GOGO_START := GOGO_NO_UNDERSCORE=1 GOGO_EXPORT_ONEOF_INTERFACE=1) - $(GOGO_START) protoc --gogofaster_out=:. --go-drpc_out=protolib=github.com/gogo/protobuf:. api/apiproto/protos/*.proto + $(GOGO_START) protoc --gogofaster_out=:. --go-drpc_out=protolib=github.com/gogo/protobuf:. debug/clientdebugrpc/clientdebugrpcproto/protos/*.proto + $(GOGO_START) protoc --gogofaster_out=:. document/textchangeproto/protos/*.proto build: @$(eval FLAGS := $$(shell govvv -flags -pkg github.com/anytypeio/go-anytype-infrastructure-experiments/client)) diff --git a/client/debug/clientdebugrpc/clientdebugrpcproto/api.pb.go b/client/debug/clientdebugrpc/clientdebugrpcproto/clientdebugrpc.pb.go similarity index 68% rename from client/debug/clientdebugrpc/clientdebugrpcproto/api.pb.go rename to client/debug/clientdebugrpc/clientdebugrpcproto/clientdebugrpc.pb.go index 78d33553..25ac5f66 100644 --- a/client/debug/clientdebugrpc/clientdebugrpcproto/api.pb.go +++ b/client/debug/clientdebugrpc/clientdebugrpcproto/clientdebugrpc.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: api/apiproto/protos/api.proto +// source: debug/clientdebugrpc/clientdebugrpcproto/protos/clientdebugrpc.proto package clientdebugrpcproto @@ -29,7 +29,7 @@ func (m *CreateSpaceRequest) Reset() { *m = CreateSpaceRequest{} } func (m *CreateSpaceRequest) String() string { return proto.CompactTextString(m) } func (*CreateSpaceRequest) ProtoMessage() {} func (*CreateSpaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{0} + return fileDescriptor_b1497d7bbf3441cb, []int{0} } func (m *CreateSpaceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -66,7 +66,7 @@ func (m *CreateSpaceResponse) Reset() { *m = CreateSpaceResponse{} } func (m *CreateSpaceResponse) String() string { return proto.CompactTextString(m) } func (*CreateSpaceResponse) ProtoMessage() {} func (*CreateSpaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{1} + return fileDescriptor_b1497d7bbf3441cb, []int{1} } func (m *CreateSpaceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -109,7 +109,7 @@ func (m *DeriveSpaceRequest) Reset() { *m = DeriveSpaceRequest{} } func (m *DeriveSpaceRequest) String() string { return proto.CompactTextString(m) } func (*DeriveSpaceRequest) ProtoMessage() {} func (*DeriveSpaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{2} + return fileDescriptor_b1497d7bbf3441cb, []int{2} } func (m *DeriveSpaceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -146,7 +146,7 @@ func (m *DeriveSpaceResponse) Reset() { *m = DeriveSpaceResponse{} } func (m *DeriveSpaceResponse) String() string { return proto.CompactTextString(m) } func (*DeriveSpaceResponse) ProtoMessage() {} func (*DeriveSpaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{3} + return fileDescriptor_b1497d7bbf3441cb, []int{3} } func (m *DeriveSpaceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -190,7 +190,7 @@ func (m *CreateDocumentRequest) Reset() { *m = CreateDocumentRequest{} } func (m *CreateDocumentRequest) String() string { return proto.CompactTextString(m) } func (*CreateDocumentRequest) ProtoMessage() {} func (*CreateDocumentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{4} + return fileDescriptor_b1497d7bbf3441cb, []int{4} } func (m *CreateDocumentRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -234,7 +234,7 @@ func (m *CreateDocumentResponse) Reset() { *m = CreateDocumentResponse{} func (m *CreateDocumentResponse) String() string { return proto.CompactTextString(m) } func (*CreateDocumentResponse) ProtoMessage() {} func (*CreateDocumentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{5} + return fileDescriptor_b1497d7bbf3441cb, []int{5} } func (m *CreateDocumentResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -279,7 +279,7 @@ func (m *DeleteDocumentRequest) Reset() { *m = DeleteDocumentRequest{} } func (m *DeleteDocumentRequest) String() string { return proto.CompactTextString(m) } func (*DeleteDocumentRequest) ProtoMessage() {} func (*DeleteDocumentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{6} + return fileDescriptor_b1497d7bbf3441cb, []int{6} } func (m *DeleteDocumentRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -329,7 +329,7 @@ func (m *DeleteDocumentResponse) Reset() { *m = DeleteDocumentResponse{} func (m *DeleteDocumentResponse) String() string { return proto.CompactTextString(m) } func (*DeleteDocumentResponse) ProtoMessage() {} func (*DeleteDocumentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{7} + return fileDescriptor_b1497d7bbf3441cb, []int{7} } func (m *DeleteDocumentResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -369,7 +369,7 @@ func (m *AddTextRequest) Reset() { *m = AddTextRequest{} } func (m *AddTextRequest) String() string { return proto.CompactTextString(m) } func (*AddTextRequest) ProtoMessage() {} func (*AddTextRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{8} + return fileDescriptor_b1497d7bbf3441cb, []int{8} } func (m *AddTextRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -436,7 +436,7 @@ func (m *AddTextResponse) Reset() { *m = AddTextResponse{} } func (m *AddTextResponse) String() string { return proto.CompactTextString(m) } func (*AddTextResponse) ProtoMessage() {} func (*AddTextResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{9} + return fileDescriptor_b1497d7bbf3441cb, []int{9} } func (m *AddTextResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -495,7 +495,7 @@ func (m *DumpTreeRequest) Reset() { *m = DumpTreeRequest{} } func (m *DumpTreeRequest) String() string { return proto.CompactTextString(m) } func (*DumpTreeRequest) ProtoMessage() {} func (*DumpTreeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{10} + return fileDescriptor_b1497d7bbf3441cb, []int{10} } func (m *DumpTreeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -546,7 +546,7 @@ func (m *DumpTreeResponse) Reset() { *m = DumpTreeResponse{} } func (m *DumpTreeResponse) String() string { return proto.CompactTextString(m) } func (*DumpTreeResponse) ProtoMessage() {} func (*DumpTreeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{11} + return fileDescriptor_b1497d7bbf3441cb, []int{11} } func (m *DumpTreeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -590,7 +590,7 @@ func (m *AllTreesRequest) Reset() { *m = AllTreesRequest{} } func (m *AllTreesRequest) String() string { return proto.CompactTextString(m) } func (*AllTreesRequest) ProtoMessage() {} func (*AllTreesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{12} + return fileDescriptor_b1497d7bbf3441cb, []int{12} } func (m *AllTreesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -635,7 +635,7 @@ func (m *Tree) Reset() { *m = Tree{} } func (m *Tree) String() string { return proto.CompactTextString(m) } func (*Tree) ProtoMessage() {} func (*Tree) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{13} + return fileDescriptor_b1497d7bbf3441cb, []int{13} } func (m *Tree) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -686,7 +686,7 @@ func (m *AllTreesResponse) Reset() { *m = AllTreesResponse{} } func (m *AllTreesResponse) String() string { return proto.CompactTextString(m) } func (*AllTreesResponse) ProtoMessage() {} func (*AllTreesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{14} + return fileDescriptor_b1497d7bbf3441cb, []int{14} } func (m *AllTreesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -729,7 +729,7 @@ func (m *AllSpacesRequest) Reset() { *m = AllSpacesRequest{} } func (m *AllSpacesRequest) String() string { return proto.CompactTextString(m) } func (*AllSpacesRequest) ProtoMessage() {} func (*AllSpacesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{15} + return fileDescriptor_b1497d7bbf3441cb, []int{15} } func (m *AllSpacesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -766,7 +766,7 @@ func (m *AllSpacesResponse) Reset() { *m = AllSpacesResponse{} } func (m *AllSpacesResponse) String() string { return proto.CompactTextString(m) } func (*AllSpacesResponse) ProtoMessage() {} func (*AllSpacesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{16} + return fileDescriptor_b1497d7bbf3441cb, []int{16} } func (m *AllSpacesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -810,7 +810,7 @@ func (m *LoadSpaceRequest) Reset() { *m = LoadSpaceRequest{} } func (m *LoadSpaceRequest) String() string { return proto.CompactTextString(m) } func (*LoadSpaceRequest) ProtoMessage() {} func (*LoadSpaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{17} + return fileDescriptor_b1497d7bbf3441cb, []int{17} } func (m *LoadSpaceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -853,7 +853,7 @@ func (m *LoadSpaceResponse) Reset() { *m = LoadSpaceResponse{} } func (m *LoadSpaceResponse) String() string { return proto.CompactTextString(m) } func (*LoadSpaceResponse) ProtoMessage() {} func (*LoadSpaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{18} + return fileDescriptor_b1497d7bbf3441cb, []int{18} } func (m *LoadSpaceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -891,7 +891,7 @@ func (m *TreeParamsRequest) Reset() { *m = TreeParamsRequest{} } func (m *TreeParamsRequest) String() string { return proto.CompactTextString(m) } func (*TreeParamsRequest) ProtoMessage() {} func (*TreeParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{19} + return fileDescriptor_b1497d7bbf3441cb, []int{19} } func (m *TreeParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -943,7 +943,7 @@ func (m *TreeParamsResponse) Reset() { *m = TreeParamsResponse{} } func (m *TreeParamsResponse) String() string { return proto.CompactTextString(m) } func (*TreeParamsResponse) ProtoMessage() {} func (*TreeParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{20} + return fileDescriptor_b1497d7bbf3441cb, []int{20} } func (m *TreeParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -995,7 +995,7 @@ func (m *WatchRequest) Reset() { *m = WatchRequest{} } func (m *WatchRequest) String() string { return proto.CompactTextString(m) } func (*WatchRequest) ProtoMessage() {} func (*WatchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{21} + return fileDescriptor_b1497d7bbf3441cb, []int{21} } func (m *WatchRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1045,7 +1045,7 @@ func (m *WatchResponse) Reset() { *m = WatchResponse{} } func (m *WatchResponse) String() string { return proto.CompactTextString(m) } func (*WatchResponse) ProtoMessage() {} func (*WatchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{22} + return fileDescriptor_b1497d7bbf3441cb, []int{22} } func (m *WatchResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1083,7 +1083,7 @@ func (m *UnwatchRequest) Reset() { *m = UnwatchRequest{} } func (m *UnwatchRequest) String() string { return proto.CompactTextString(m) } func (*UnwatchRequest) ProtoMessage() {} func (*UnwatchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{23} + return fileDescriptor_b1497d7bbf3441cb, []int{23} } func (m *UnwatchRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1133,7 +1133,7 @@ func (m *UnwatchResponse) Reset() { *m = UnwatchResponse{} } func (m *UnwatchResponse) String() string { return proto.CompactTextString(m) } func (*UnwatchResponse) ProtoMessage() {} func (*UnwatchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fc31080c27db9707, []int{24} + return fileDescriptor_b1497d7bbf3441cb, []int{24} } func (m *UnwatchResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1162,82 +1162,370 @@ func (m *UnwatchResponse) XXX_DiscardUnknown() { var xxx_messageInfo_UnwatchResponse proto.InternalMessageInfo -func init() { - proto.RegisterType((*CreateSpaceRequest)(nil), "clientapi.CreateSpaceRequest") - proto.RegisterType((*CreateSpaceResponse)(nil), "clientapi.CreateSpaceResponse") - proto.RegisterType((*DeriveSpaceRequest)(nil), "clientapi.DeriveSpaceRequest") - proto.RegisterType((*DeriveSpaceResponse)(nil), "clientapi.DeriveSpaceResponse") - proto.RegisterType((*CreateDocumentRequest)(nil), "clientapi.CreateDocumentRequest") - proto.RegisterType((*CreateDocumentResponse)(nil), "clientapi.CreateDocumentResponse") - proto.RegisterType((*DeleteDocumentRequest)(nil), "clientapi.DeleteDocumentRequest") - proto.RegisterType((*DeleteDocumentResponse)(nil), "clientapi.DeleteDocumentResponse") - proto.RegisterType((*AddTextRequest)(nil), "clientapi.AddTextRequest") - proto.RegisterType((*AddTextResponse)(nil), "clientapi.AddTextResponse") - proto.RegisterType((*DumpTreeRequest)(nil), "clientapi.DumpTreeRequest") - proto.RegisterType((*DumpTreeResponse)(nil), "clientapi.DumpTreeResponse") - proto.RegisterType((*AllTreesRequest)(nil), "clientapi.AllTreesRequest") - proto.RegisterType((*Tree)(nil), "clientapi.Tree") - proto.RegisterType((*AllTreesResponse)(nil), "clientapi.AllTreesResponse") - proto.RegisterType((*AllSpacesRequest)(nil), "clientapi.AllSpacesRequest") - proto.RegisterType((*AllSpacesResponse)(nil), "clientapi.AllSpacesResponse") - proto.RegisterType((*LoadSpaceRequest)(nil), "clientapi.LoadSpaceRequest") - proto.RegisterType((*LoadSpaceResponse)(nil), "clientapi.LoadSpaceResponse") - proto.RegisterType((*TreeParamsRequest)(nil), "clientapi.TreeParamsRequest") - proto.RegisterType((*TreeParamsResponse)(nil), "clientapi.TreeParamsResponse") - proto.RegisterType((*WatchRequest)(nil), "clientapi.WatchRequest") - proto.RegisterType((*WatchResponse)(nil), "clientapi.WatchResponse") - proto.RegisterType((*UnwatchRequest)(nil), "clientapi.UnwatchRequest") - proto.RegisterType((*UnwatchResponse)(nil), "clientapi.UnwatchResponse") +type PutFileRequest struct { + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + SpaceId string `protobuf:"bytes,2,opt,name=spaceId,proto3" json:"spaceId,omitempty"` } -func init() { proto.RegisterFile("api/apiproto/protos/api.proto", fileDescriptor_fc31080c27db9707) } +func (m *PutFileRequest) Reset() { *m = PutFileRequest{} } +func (m *PutFileRequest) String() string { return proto.CompactTextString(m) } +func (*PutFileRequest) ProtoMessage() {} +func (*PutFileRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b1497d7bbf3441cb, []int{25} +} +func (m *PutFileRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PutFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PutFileRequest.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 *PutFileRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutFileRequest.Merge(m, src) +} +func (m *PutFileRequest) XXX_Size() int { + return m.Size() +} +func (m *PutFileRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PutFileRequest.DiscardUnknown(m) +} -var fileDescriptor_fc31080c27db9707 = []byte{ - // 700 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcd, 0x4e, 0xdb, 0x40, - 0x10, 0xc6, 0x21, 0x04, 0x3c, 0xd0, 0x98, 0x2c, 0x90, 0xba, 0x2e, 0x58, 0xe9, 0x4a, 0xa0, 0x48, - 0x45, 0xa0, 0xd2, 0x53, 0x7b, 0xe2, 0x27, 0x42, 0x42, 0x4d, 0xa5, 0x36, 0x80, 0x2a, 0xf5, 0xb6, - 0x8d, 0x57, 0x8a, 0xa5, 0x24, 0x76, 0x6d, 0xa7, 0xe5, 0xd4, 0x67, 0xe8, 0x63, 0xf5, 0xc8, 0xb1, - 0xc7, 0x2a, 0x79, 0x8b, 0x9e, 0xaa, 0x5d, 0xaf, 0xed, 0x5d, 0xdb, 0x01, 0x55, 0xb9, 0x80, 0xe7, - 0xef, 0x9b, 0x6f, 0x77, 0x67, 0x3e, 0x05, 0xf6, 0x88, 0xef, 0x1e, 0x13, 0xdf, 0xf5, 0x03, 0x2f, - 0xf2, 0x8e, 0xf9, 0xdf, 0x90, 0xd9, 0x47, 0xfc, 0x13, 0xe9, 0xfd, 0xa1, 0x4b, 0xc7, 0x11, 0xf1, - 0x5d, 0xbc, 0x0d, 0xe8, 0x22, 0xa0, 0x24, 0xa2, 0xd7, 0x3e, 0xe9, 0xd3, 0x1e, 0xfd, 0x3a, 0xa1, - 0x61, 0x84, 0xf7, 0x61, 0x4b, 0xf1, 0x86, 0xbe, 0x37, 0x0e, 0x29, 0xaa, 0x43, 0xc5, 0x75, 0x4c, - 0xad, 0xa5, 0xb5, 0xf5, 0x5e, 0xc5, 0x75, 0x58, 0x71, 0x87, 0x06, 0xee, 0xb7, 0x42, 0xb1, 0xe2, - 0x9d, 0x53, 0xfc, 0x0a, 0x76, 0xe2, 0x1e, 0x1d, 0xaf, 0x3f, 0x19, 0xd1, 0x71, 0x24, 0xea, 0x91, - 0x09, 0xab, 0x21, 0xab, 0xbc, 0x4a, 0xb2, 0x13, 0x13, 0xb7, 0xa1, 0x99, 0x2f, 0x99, 0x03, 0xfe, - 0x11, 0x76, 0x3a, 0x74, 0x48, 0xff, 0x03, 0x1c, 0xd9, 0x00, 0x8e, 0x48, 0xbe, 0x72, 0xcc, 0x0a, - 0x0f, 0x4a, 0x1e, 0x6c, 0x42, 0x33, 0x0f, 0x19, 0x37, 0xc7, 0x3f, 0xa0, 0x7e, 0xe6, 0x38, 0x37, - 0xf4, 0x6e, 0xf1, 0x2e, 0x08, 0x41, 0x35, 0xa2, 0x77, 0x91, 0xb9, 0xcc, 0x23, 0xfc, 0x9b, 0xd5, - 0xb8, 0xe1, 0xf5, 0x98, 0xf8, 0xe1, 0xc0, 0x8b, 0xcc, 0x6a, 0x4b, 0x6b, 0xaf, 0xf5, 0x24, 0x0f, - 0x26, 0x60, 0xa4, 0xfd, 0xc5, 0x7d, 0xa8, 0x6d, 0xb4, 0x42, 0x9b, 0x26, 0xd4, 0x06, 0x94, 0x38, - 0x29, 0x05, 0x61, 0x31, 0x7f, 0xe0, 0x79, 0xac, 0x26, 0x26, 0x20, 0x2c, 0xfc, 0x0e, 0x8c, 0xce, - 0x64, 0xe4, 0xdf, 0x04, 0x94, 0x2e, 0x7e, 0x93, 0x07, 0xb0, 0x99, 0x81, 0x09, 0xc2, 0x08, 0xaa, - 0xce, 0x64, 0xe4, 0x0b, 0x28, 0xfe, 0x8d, 0x5f, 0x82, 0x71, 0x36, 0x1c, 0xb2, 0xb4, 0xf0, 0xf1, - 0xd9, 0x38, 0x84, 0x2a, 0xcb, 0xcc, 0x4f, 0x02, 0xda, 0x86, 0x15, 0x76, 0xb6, 0xd0, 0xac, 0xb4, - 0x96, 0xdb, 0x7a, 0x2f, 0x36, 0xf0, 0x1b, 0xd8, 0xcc, 0xa0, 0x05, 0x85, 0x7d, 0x58, 0x89, 0x98, - 0xc3, 0xd4, 0x5a, 0xcb, 0xed, 0xf5, 0x13, 0xe3, 0x28, 0xdd, 0x92, 0x23, 0x4e, 0x35, 0x8e, 0x62, - 0xc4, 0x4b, 0xf9, 0x6c, 0x27, 0xb4, 0xf0, 0x31, 0x34, 0x24, 0x9f, 0xc0, 0xb3, 0x60, 0x4d, 0x90, - 0x8b, 0x21, 0xf5, 0x5e, 0x6a, 0xe3, 0x43, 0xd8, 0xec, 0x7a, 0xc4, 0x91, 0xf7, 0xe6, 0x81, 0xb3, - 0x6d, 0x41, 0x43, 0xca, 0x16, 0x53, 0xf7, 0x1e, 0x1a, 0x8c, 0xd6, 0x07, 0x12, 0x90, 0x51, 0xb8, - 0xf8, 0xa3, 0x5c, 0x02, 0x92, 0xe1, 0xc4, 0x19, 0xb2, 0x79, 0xd0, 0xe4, 0x79, 0x60, 0x7d, 0xe2, - 0x89, 0x49, 0xee, 0x35, 0x31, 0xf1, 0x29, 0x6c, 0x7c, 0x22, 0x51, 0x7f, 0xf0, 0x38, 0xa3, 0x26, - 0xd4, 0xd8, 0x8d, 0x66, 0x33, 0x18, 0x5b, 0xd8, 0x80, 0x27, 0x02, 0x41, 0x9c, 0xf4, 0x1c, 0xea, - 0xb7, 0xe3, 0xef, 0x8b, 0x81, 0x36, 0xc0, 0x48, 0x31, 0x62, 0xd8, 0x93, 0xbf, 0x35, 0xd0, 0x2f, - 0xf8, 0x13, 0x9f, 0xf9, 0x2e, 0xea, 0xc2, 0xba, 0x24, 0x79, 0x68, 0x4f, 0x7a, 0xfd, 0xa2, 0x40, - 0x5a, 0xf6, 0xbc, 0xb0, 0xb8, 0xb7, 0x2e, 0xac, 0x4b, 0x1a, 0xa8, 0xa0, 0x15, 0x15, 0x53, 0x41, - 0x2b, 0x93, 0xce, 0x5b, 0xa8, 0xab, 0xba, 0x87, 0x5a, 0x85, 0xfe, 0x39, 0xa1, 0xb3, 0x5e, 0x3c, - 0x90, 0x91, 0xc1, 0xaa, 0x8a, 0xa6, 0xc0, 0x96, 0xea, 0xa7, 0x02, 0x5b, 0x2e, 0x87, 0xe8, 0x14, - 0x56, 0x85, 0x1c, 0xa1, 0x67, 0x52, 0xb6, 0x2a, 0x91, 0x96, 0x55, 0x16, 0x12, 0x08, 0x17, 0xb0, - 0x96, 0x08, 0x04, 0x92, 0xf3, 0x72, 0x12, 0x64, 0x3d, 0x2f, 0x8d, 0x09, 0x90, 0x2b, 0x80, 0x6c, - 0xa0, 0xd1, 0x6e, 0x6e, 0x9b, 0x95, 0xb5, 0xb1, 0xf6, 0xe6, 0x44, 0x33, 0x3e, 0x89, 0x5a, 0x28, - 0x7c, 0x72, 0xea, 0xa4, 0xf0, 0x29, 0xc8, 0xcb, 0x25, 0xe8, 0xa9, 0x46, 0xa0, 0x5c, 0xa6, 0xa2, - 0x26, 0xd6, 0x6e, 0x79, 0x30, 0xc3, 0x49, 0xc5, 0x40, 0xc1, 0xc9, 0x0b, 0x8a, 0x82, 0x53, 0xd0, - 0x0f, 0xf4, 0x16, 0x56, 0xf8, 0x9a, 0xa1, 0xa7, 0x52, 0x9a, 0xbc, 0xba, 0x96, 0x59, 0x0c, 0x64, - 0x4f, 0x2c, 0xb6, 0x49, 0x79, 0x62, 0x75, 0x4b, 0x95, 0x27, 0xce, 0x2d, 0xdf, 0xf9, 0xc1, 0xaf, - 0xa9, 0xad, 0xdd, 0x4f, 0x6d, 0xed, 0xcf, 0xd4, 0xd6, 0x7e, 0xce, 0xec, 0xa5, 0xfb, 0x99, 0xbd, - 0xf4, 0x7b, 0x66, 0x2f, 0x7d, 0xde, 0x90, 0x7f, 0xbb, 0x7c, 0xa9, 0xf1, 0x7f, 0xaf, 0xff, 0x05, - 0x00, 0x00, 0xff, 0xff, 0x7d, 0xa4, 0xb1, 0xae, 0xd2, 0x08, 0x00, 0x00, +var xxx_messageInfo_PutFileRequest proto.InternalMessageInfo + +func (m *PutFileRequest) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *PutFileRequest) GetSpaceId() string { + if m != nil { + return m.SpaceId + } + return "" +} + +type PutFileResponse struct { + Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` +} + +func (m *PutFileResponse) Reset() { *m = PutFileResponse{} } +func (m *PutFileResponse) String() string { return proto.CompactTextString(m) } +func (*PutFileResponse) ProtoMessage() {} +func (*PutFileResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b1497d7bbf3441cb, []int{26} +} +func (m *PutFileResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PutFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PutFileResponse.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 *PutFileResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutFileResponse.Merge(m, src) +} +func (m *PutFileResponse) XXX_Size() int { + return m.Size() +} +func (m *PutFileResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PutFileResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PutFileResponse proto.InternalMessageInfo + +func (m *PutFileResponse) GetHash() string { + if m != nil { + return m.Hash + } + return "" +} + +type GetFileRequest struct { + Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` +} + +func (m *GetFileRequest) Reset() { *m = GetFileRequest{} } +func (m *GetFileRequest) String() string { return proto.CompactTextString(m) } +func (*GetFileRequest) ProtoMessage() {} +func (*GetFileRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b1497d7bbf3441cb, []int{27} +} +func (m *GetFileRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetFileRequest.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 *GetFileRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetFileRequest.Merge(m, src) +} +func (m *GetFileRequest) XXX_Size() int { + return m.Size() +} +func (m *GetFileRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetFileRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetFileRequest proto.InternalMessageInfo + +func (m *GetFileRequest) GetHash() string { + if m != nil { + return m.Hash + } + return "" +} + +func (m *GetFileRequest) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +type GetFileResponse struct { + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` +} + +func (m *GetFileResponse) Reset() { *m = GetFileResponse{} } +func (m *GetFileResponse) String() string { return proto.CompactTextString(m) } +func (*GetFileResponse) ProtoMessage() {} +func (*GetFileResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b1497d7bbf3441cb, []int{28} +} +func (m *GetFileResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetFileResponse.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 *GetFileResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetFileResponse.Merge(m, src) +} +func (m *GetFileResponse) XXX_Size() int { + return m.Size() +} +func (m *GetFileResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetFileResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetFileResponse proto.InternalMessageInfo + +func (m *GetFileResponse) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +type DeleteFileRequest struct { + Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` +} + +func (m *DeleteFileRequest) Reset() { *m = DeleteFileRequest{} } +func (m *DeleteFileRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteFileRequest) ProtoMessage() {} +func (*DeleteFileRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b1497d7bbf3441cb, []int{29} +} +func (m *DeleteFileRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteFileRequest.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 *DeleteFileRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteFileRequest.Merge(m, src) +} +func (m *DeleteFileRequest) XXX_Size() int { + return m.Size() +} +func (m *DeleteFileRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteFileRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteFileRequest proto.InternalMessageInfo + +func (m *DeleteFileRequest) GetHash() string { + if m != nil { + return m.Hash + } + return "" +} + +type DeleteFileResponse struct { +} + +func (m *DeleteFileResponse) Reset() { *m = DeleteFileResponse{} } +func (m *DeleteFileResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteFileResponse) ProtoMessage() {} +func (*DeleteFileResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b1497d7bbf3441cb, []int{30} +} +func (m *DeleteFileResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteFileResponse.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 *DeleteFileResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteFileResponse.Merge(m, src) +} +func (m *DeleteFileResponse) XXX_Size() int { + return m.Size() +} +func (m *DeleteFileResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteFileResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteFileResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*CreateSpaceRequest)(nil), "clientdebugrpc.CreateSpaceRequest") + proto.RegisterType((*CreateSpaceResponse)(nil), "clientdebugrpc.CreateSpaceResponse") + proto.RegisterType((*DeriveSpaceRequest)(nil), "clientdebugrpc.DeriveSpaceRequest") + proto.RegisterType((*DeriveSpaceResponse)(nil), "clientdebugrpc.DeriveSpaceResponse") + proto.RegisterType((*CreateDocumentRequest)(nil), "clientdebugrpc.CreateDocumentRequest") + proto.RegisterType((*CreateDocumentResponse)(nil), "clientdebugrpc.CreateDocumentResponse") + proto.RegisterType((*DeleteDocumentRequest)(nil), "clientdebugrpc.DeleteDocumentRequest") + proto.RegisterType((*DeleteDocumentResponse)(nil), "clientdebugrpc.DeleteDocumentResponse") + proto.RegisterType((*AddTextRequest)(nil), "clientdebugrpc.AddTextRequest") + proto.RegisterType((*AddTextResponse)(nil), "clientdebugrpc.AddTextResponse") + proto.RegisterType((*DumpTreeRequest)(nil), "clientdebugrpc.DumpTreeRequest") + proto.RegisterType((*DumpTreeResponse)(nil), "clientdebugrpc.DumpTreeResponse") + proto.RegisterType((*AllTreesRequest)(nil), "clientdebugrpc.AllTreesRequest") + proto.RegisterType((*Tree)(nil), "clientdebugrpc.Tree") + proto.RegisterType((*AllTreesResponse)(nil), "clientdebugrpc.AllTreesResponse") + proto.RegisterType((*AllSpacesRequest)(nil), "clientdebugrpc.AllSpacesRequest") + proto.RegisterType((*AllSpacesResponse)(nil), "clientdebugrpc.AllSpacesResponse") + proto.RegisterType((*LoadSpaceRequest)(nil), "clientdebugrpc.LoadSpaceRequest") + proto.RegisterType((*LoadSpaceResponse)(nil), "clientdebugrpc.LoadSpaceResponse") + proto.RegisterType((*TreeParamsRequest)(nil), "clientdebugrpc.TreeParamsRequest") + proto.RegisterType((*TreeParamsResponse)(nil), "clientdebugrpc.TreeParamsResponse") + proto.RegisterType((*WatchRequest)(nil), "clientdebugrpc.WatchRequest") + proto.RegisterType((*WatchResponse)(nil), "clientdebugrpc.WatchResponse") + proto.RegisterType((*UnwatchRequest)(nil), "clientdebugrpc.UnwatchRequest") + proto.RegisterType((*UnwatchResponse)(nil), "clientdebugrpc.UnwatchResponse") + proto.RegisterType((*PutFileRequest)(nil), "clientdebugrpc.PutFileRequest") + proto.RegisterType((*PutFileResponse)(nil), "clientdebugrpc.PutFileResponse") + proto.RegisterType((*GetFileRequest)(nil), "clientdebugrpc.GetFileRequest") + proto.RegisterType((*GetFileResponse)(nil), "clientdebugrpc.GetFileResponse") + proto.RegisterType((*DeleteFileRequest)(nil), "clientdebugrpc.DeleteFileRequest") + proto.RegisterType((*DeleteFileResponse)(nil), "clientdebugrpc.DeleteFileResponse") +} + +func init() { + proto.RegisterFile("debug/clientdebugrpc/clientdebugrpcproto/protos/clientdebugrpc.proto", fileDescriptor_b1497d7bbf3441cb) +} + +var fileDescriptor_b1497d7bbf3441cb = []byte{ + // 819 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0xad, 0xd3, 0xf4, 0x23, 0x53, 0x70, 0x9a, 0x6d, 0x1b, 0x59, 0x16, 0x98, 0x74, 0x51, 0x4b, + 0x04, 0x55, 0x2b, 0xca, 0x85, 0x53, 0x45, 0xdb, 0xa8, 0xa8, 0x85, 0x4a, 0x25, 0x29, 0x45, 0xe2, + 0x82, 0xdc, 0x78, 0x45, 0x2c, 0x25, 0xb1, 0xb1, 0x1d, 0xe8, 0x89, 0xdf, 0xc0, 0xcf, 0xe2, 0xd8, + 0x23, 0x37, 0x50, 0xf3, 0x47, 0xd0, 0xda, 0x6b, 0xaf, 0x77, 0x37, 0x1f, 0xa0, 0x5c, 0xda, 0xdd, + 0xd9, 0x37, 0xef, 0x8d, 0xd7, 0xe3, 0x37, 0x81, 0x86, 0x43, 0xae, 0x07, 0x9f, 0xf7, 0xda, 0x5d, + 0x97, 0xf4, 0xa3, 0x78, 0x1d, 0xf8, 0x6d, 0x69, 0xeb, 0x07, 0x5e, 0xe4, 0xed, 0xc5, 0x7f, 0x43, + 0xe9, 0x68, 0x37, 0x8e, 0x22, 0x5d, 0x8c, 0xe2, 0x75, 0x40, 0xc7, 0x01, 0xb1, 0x23, 0xd2, 0xf2, + 0xed, 0x36, 0x69, 0x92, 0x2f, 0x03, 0x12, 0x46, 0x78, 0x0b, 0xd6, 0x84, 0x68, 0xe8, 0x7b, 0xfd, + 0x90, 0x20, 0x1d, 0x0a, 0xae, 0x63, 0x68, 0x35, 0xad, 0x5e, 0x6a, 0x16, 0x5c, 0x87, 0x26, 0x37, + 0x48, 0xe0, 0x7e, 0x55, 0x92, 0x85, 0xe8, 0x98, 0xe4, 0xe7, 0xb0, 0x91, 0x68, 0x34, 0xbc, 0xf6, + 0xa0, 0x47, 0xfa, 0x11, 0xcb, 0x47, 0x06, 0x2c, 0x85, 0x34, 0xf3, 0x34, 0x45, 0xa7, 0x5b, 0x5c, + 0x87, 0xaa, 0x9c, 0x32, 0x86, 0xfc, 0x1d, 0x6c, 0x34, 0x48, 0x97, 0xfc, 0x07, 0x39, 0xb2, 0x00, + 0x1c, 0x06, 0x3e, 0x75, 0x8c, 0x42, 0x7c, 0x98, 0x8b, 0x60, 0x03, 0xaa, 0x32, 0x65, 0x22, 0x8e, + 0xbf, 0x83, 0x7e, 0xe8, 0x38, 0x97, 0xe4, 0x66, 0x76, 0x15, 0x84, 0xa0, 0x18, 0x91, 0x9b, 0xc8, + 0x98, 0x8f, 0x4f, 0xe2, 0x35, 0xcd, 0x71, 0xc3, 0x56, 0xdf, 0xf6, 0xc3, 0x8e, 0x17, 0x19, 0xc5, + 0x9a, 0x56, 0x5f, 0x6e, 0xe6, 0x22, 0xd8, 0x86, 0x72, 0xa6, 0xcf, 0xee, 0x43, 0x94, 0xd1, 0x14, + 0x99, 0x2a, 0x2c, 0x76, 0x88, 0xed, 0x64, 0x25, 0xb0, 0x1d, 0x8d, 0x07, 0x9e, 0x47, 0x73, 0x92, + 0x02, 0xd8, 0x0e, 0xbf, 0x81, 0x72, 0x63, 0xd0, 0xf3, 0x2f, 0x03, 0x42, 0x66, 0xbf, 0xc9, 0x6d, + 0x58, 0xe5, 0x64, 0xac, 0x60, 0x04, 0x45, 0x67, 0xd0, 0xf3, 0x19, 0x55, 0xbc, 0xc6, 0xcf, 0xa0, + 0x7c, 0xd8, 0xed, 0x52, 0x58, 0x38, 0xbd, 0x37, 0x76, 0xa0, 0x48, 0x91, 0x72, 0x27, 0xa0, 0x75, + 0x58, 0xa0, 0xcf, 0x16, 0x1a, 0x85, 0xda, 0x7c, 0xbd, 0xd4, 0x4c, 0x36, 0xf8, 0x00, 0x56, 0x39, + 0x35, 0x2b, 0xe1, 0x29, 0x2c, 0x44, 0x34, 0x60, 0x68, 0xb5, 0xf9, 0xfa, 0xca, 0xfe, 0xfa, 0xae, + 0xf4, 0x01, 0xc5, 0xf5, 0x26, 0x10, 0x8c, 0xe2, 0xfc, 0xb8, 0xc1, 0xd3, 0xda, 0xf0, 0x1e, 0x54, + 0x72, 0x31, 0x46, 0x6a, 0xc2, 0x32, 0xab, 0x30, 0xe1, 0x2d, 0x35, 0xb3, 0x3d, 0xde, 0x81, 0xd5, + 0xb7, 0x9e, 0xed, 0xe4, 0x3f, 0x9e, 0x09, 0x0f, 0xb8, 0x06, 0x95, 0x1c, 0x9a, 0xb5, 0xde, 0x39, + 0x54, 0x68, 0x59, 0x17, 0x76, 0x60, 0xf7, 0xc2, 0xd9, 0xdf, 0xcc, 0x09, 0xa0, 0x3c, 0x1d, 0x7b, + 0x06, 0xde, 0x14, 0x5a, 0xbe, 0x29, 0xa8, 0x4e, 0xd2, 0x36, 0xe9, 0xe5, 0xa6, 0x5b, 0xfc, 0x0a, + 0xee, 0x7d, 0xb0, 0xa3, 0x76, 0x67, 0x7a, 0x45, 0x55, 0x58, 0xa4, 0x37, 0xca, 0x1b, 0x31, 0xd9, + 0xe1, 0x32, 0xdc, 0x67, 0x0c, 0xec, 0x49, 0x8f, 0x40, 0x7f, 0xdf, 0xff, 0x36, 0x1b, 0x69, 0x05, + 0xca, 0x19, 0x07, 0xa3, 0x3d, 0x00, 0xfd, 0x62, 0x10, 0x9d, 0xb8, 0xdd, 0xec, 0x0d, 0x20, 0x28, + 0xfa, 0x76, 0xd4, 0x49, 0x3b, 0x91, 0xae, 0xf3, 0x52, 0x05, 0xf1, 0xad, 0x6c, 0x41, 0x39, 0xcb, + 0xe7, 0xad, 0xdc, 0xb1, 0xc3, 0x8c, 0x80, 0xae, 0xf1, 0x4b, 0xd0, 0x5f, 0x13, 0x59, 0x46, 0x46, + 0x65, 0xd2, 0x05, 0x2e, 0x4d, 0x05, 0xb2, 0x4c, 0x2e, 0x20, 0x57, 0x88, 0x9f, 0x40, 0x25, 0x71, + 0xa7, 0x29, 0x1a, 0x89, 0x67, 0x73, 0x60, 0x42, 0xb9, 0xff, 0xbb, 0x04, 0xa5, 0xe3, 0xb8, 0xdd, + 0x0f, 0x7d, 0x17, 0x5d, 0xc1, 0x4a, 0xce, 0xfe, 0x11, 0x96, 0xbf, 0x04, 0x75, 0x62, 0x98, 0x8f, + 0x27, 0x62, 0x58, 0xe1, 0x57, 0xb0, 0x92, 0x9b, 0x0c, 0x2a, 0xaf, 0x3a, 0x4c, 0x54, 0xde, 0x51, + 0xa3, 0xe5, 0x13, 0xe8, 0xe2, 0x5c, 0x40, 0x5b, 0xa3, 0xcb, 0x91, 0xa6, 0x81, 0xb9, 0x3d, 0x0d, + 0xc6, 0x05, 0x44, 0xef, 0x57, 0x05, 0x46, 0x8e, 0x1b, 0x55, 0x60, 0xf4, 0x08, 0x41, 0x67, 0xb0, + 0xc4, 0x2c, 0x1c, 0x59, 0x72, 0x8a, 0x38, 0x5b, 0xcc, 0x47, 0x63, 0xcf, 0x19, 0xd7, 0x39, 0x2c, + 0xa7, 0xf6, 0x8a, 0x14, 0xb0, 0xe4, 0xe2, 0x66, 0x6d, 0x3c, 0x80, 0xd1, 0xb5, 0x00, 0xb8, 0x27, + 0xa0, 0xcd, 0x51, 0xae, 0x28, 0xd8, 0x8f, 0x89, 0x27, 0x41, 0x78, 0x8d, 0xa9, 0xff, 0xaa, 0x35, + 0x4a, 0xa6, 0xaf, 0xd6, 0xa8, 0x58, 0xf7, 0x05, 0x94, 0x32, 0xeb, 0x45, 0xa3, 0xe0, 0x82, 0x53, + 0x9b, 0x9b, 0x13, 0x10, 0x9c, 0x31, 0x73, 0x5b, 0x95, 0x51, 0xb6, 0x6d, 0x95, 0x51, 0xb1, 0x6a, + 0xd4, 0x80, 0x85, 0xd8, 0xd1, 0xd0, 0x03, 0x19, 0x9b, 0xb7, 0x4a, 0xf3, 0xe1, 0x98, 0x53, 0xde, + 0x28, 0xcc, 0xc2, 0xd4, 0x46, 0x11, 0xfd, 0x51, 0x6d, 0x14, 0xc9, 0xfb, 0x28, 0x17, 0xf3, 0x2e, + 0x95, 0x4b, 0x34, 0x45, 0x95, 0x4b, 0x36, 0xbd, 0x33, 0x58, 0x62, 0x36, 0xa5, 0x72, 0x89, 0xce, + 0xa7, 0x72, 0xc9, 0xfe, 0xd6, 0x02, 0xe0, 0x16, 0xa5, 0x76, 0x9c, 0xe2, 0x73, 0x26, 0x9e, 0x04, + 0x49, 0x48, 0x8f, 0x8e, 0x7e, 0xde, 0x59, 0xda, 0xed, 0x9d, 0xa5, 0xfd, 0xb9, 0xb3, 0xb4, 0x1f, + 0x43, 0x6b, 0xee, 0x76, 0x68, 0xcd, 0xfd, 0x1a, 0x5a, 0x73, 0x1f, 0xeb, 0xff, 0xfa, 0xc3, 0xfa, + 0x7a, 0x31, 0xfe, 0xf7, 0xe2, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x4d, 0xcd, 0x76, 0x8b, + 0x0b, 0x00, 0x00, } func (m *CreateSpaceRequest) Marshal() (dAtA []byte, err error) { @@ -1286,7 +1574,7 @@ func (m *CreateSpaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) - i = encodeVarintApi(dAtA, i, uint64(len(m.Id))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } @@ -1339,7 +1627,7 @@ func (m *DeriveSpaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) - i = encodeVarintApi(dAtA, i, uint64(len(m.Id))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } @@ -1369,7 +1657,7 @@ func (m *CreateDocumentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.SpaceId) > 0 { i -= len(m.SpaceId) copy(dAtA[i:], m.SpaceId) - i = encodeVarintApi(dAtA, i, uint64(len(m.SpaceId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.SpaceId))) i-- dAtA[i] = 0xa } @@ -1399,7 +1687,7 @@ func (m *CreateDocumentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) - i = encodeVarintApi(dAtA, i, uint64(len(m.Id))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } @@ -1429,14 +1717,14 @@ func (m *DeleteDocumentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.DocumentId) > 0 { i -= len(m.DocumentId) copy(dAtA[i:], m.DocumentId) - i = encodeVarintApi(dAtA, i, uint64(len(m.DocumentId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.DocumentId))) i-- dAtA[i] = 0x12 } if len(m.SpaceId) > 0 { i -= len(m.SpaceId) copy(dAtA[i:], m.SpaceId) - i = encodeVarintApi(dAtA, i, uint64(len(m.SpaceId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.SpaceId))) i-- dAtA[i] = 0xa } @@ -1499,21 +1787,21 @@ func (m *AddTextRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Text) > 0 { i -= len(m.Text) copy(dAtA[i:], m.Text) - i = encodeVarintApi(dAtA, i, uint64(len(m.Text))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.Text))) i-- dAtA[i] = 0x1a } if len(m.DocumentId) > 0 { i -= len(m.DocumentId) copy(dAtA[i:], m.DocumentId) - i = encodeVarintApi(dAtA, i, uint64(len(m.DocumentId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.DocumentId))) i-- dAtA[i] = 0x12 } if len(m.SpaceId) > 0 { i -= len(m.SpaceId) copy(dAtA[i:], m.SpaceId) - i = encodeVarintApi(dAtA, i, uint64(len(m.SpaceId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.SpaceId))) i-- dAtA[i] = 0xa } @@ -1543,21 +1831,21 @@ func (m *AddTextResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.RootId) > 0 { i -= len(m.RootId) copy(dAtA[i:], m.RootId) - i = encodeVarintApi(dAtA, i, uint64(len(m.RootId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.RootId))) i-- dAtA[i] = 0x1a } if len(m.HeadId) > 0 { i -= len(m.HeadId) copy(dAtA[i:], m.HeadId) - i = encodeVarintApi(dAtA, i, uint64(len(m.HeadId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.HeadId))) i-- dAtA[i] = 0x12 } if len(m.DocumentId) > 0 { i -= len(m.DocumentId) copy(dAtA[i:], m.DocumentId) - i = encodeVarintApi(dAtA, i, uint64(len(m.DocumentId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.DocumentId))) i-- dAtA[i] = 0xa } @@ -1587,14 +1875,14 @@ func (m *DumpTreeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.DocumentId) > 0 { i -= len(m.DocumentId) copy(dAtA[i:], m.DocumentId) - i = encodeVarintApi(dAtA, i, uint64(len(m.DocumentId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.DocumentId))) i-- dAtA[i] = 0x12 } if len(m.SpaceId) > 0 { i -= len(m.SpaceId) copy(dAtA[i:], m.SpaceId) - i = encodeVarintApi(dAtA, i, uint64(len(m.SpaceId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.SpaceId))) i-- dAtA[i] = 0xa } @@ -1624,7 +1912,7 @@ func (m *DumpTreeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Dump) > 0 { i -= len(m.Dump) copy(dAtA[i:], m.Dump) - i = encodeVarintApi(dAtA, i, uint64(len(m.Dump))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.Dump))) i-- dAtA[i] = 0xa } @@ -1654,7 +1942,7 @@ func (m *AllTreesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.SpaceId) > 0 { i -= len(m.SpaceId) copy(dAtA[i:], m.SpaceId) - i = encodeVarintApi(dAtA, i, uint64(len(m.SpaceId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.SpaceId))) i-- dAtA[i] = 0xa } @@ -1685,7 +1973,7 @@ func (m *Tree) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.Heads) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Heads[iNdEx]) copy(dAtA[i:], m.Heads[iNdEx]) - i = encodeVarintApi(dAtA, i, uint64(len(m.Heads[iNdEx]))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.Heads[iNdEx]))) i-- dAtA[i] = 0x12 } @@ -1693,7 +1981,7 @@ func (m *Tree) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) - i = encodeVarintApi(dAtA, i, uint64(len(m.Id))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } @@ -1728,7 +2016,7 @@ func (m *AllTreesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1784,7 +2072,7 @@ func (m *AllSpacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.SpaceIds) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.SpaceIds[iNdEx]) copy(dAtA[i:], m.SpaceIds[iNdEx]) - i = encodeVarintApi(dAtA, i, uint64(len(m.SpaceIds[iNdEx]))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.SpaceIds[iNdEx]))) i-- dAtA[i] = 0xa } @@ -1815,7 +2103,7 @@ func (m *LoadSpaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.SpaceId) > 0 { i -= len(m.SpaceId) copy(dAtA[i:], m.SpaceId) - i = encodeVarintApi(dAtA, i, uint64(len(m.SpaceId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.SpaceId))) i-- dAtA[i] = 0xa } @@ -1868,14 +2156,14 @@ func (m *TreeParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.DocumentId) > 0 { i -= len(m.DocumentId) copy(dAtA[i:], m.DocumentId) - i = encodeVarintApi(dAtA, i, uint64(len(m.DocumentId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.DocumentId))) i-- dAtA[i] = 0x12 } if len(m.SpaceId) > 0 { i -= len(m.SpaceId) copy(dAtA[i:], m.SpaceId) - i = encodeVarintApi(dAtA, i, uint64(len(m.SpaceId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.SpaceId))) i-- dAtA[i] = 0xa } @@ -1906,7 +2194,7 @@ func (m *TreeParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.HeadIds) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.HeadIds[iNdEx]) copy(dAtA[i:], m.HeadIds[iNdEx]) - i = encodeVarintApi(dAtA, i, uint64(len(m.HeadIds[iNdEx]))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.HeadIds[iNdEx]))) i-- dAtA[i] = 0x12 } @@ -1914,7 +2202,7 @@ func (m *TreeParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.RootId) > 0 { i -= len(m.RootId) copy(dAtA[i:], m.RootId) - i = encodeVarintApi(dAtA, i, uint64(len(m.RootId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.RootId))) i-- dAtA[i] = 0xa } @@ -1944,14 +2232,14 @@ func (m *WatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.TreeId) > 0 { i -= len(m.TreeId) copy(dAtA[i:], m.TreeId) - i = encodeVarintApi(dAtA, i, uint64(len(m.TreeId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.TreeId))) i-- dAtA[i] = 0x12 } if len(m.SpaceId) > 0 { i -= len(m.SpaceId) copy(dAtA[i:], m.SpaceId) - i = encodeVarintApi(dAtA, i, uint64(len(m.SpaceId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.SpaceId))) i-- dAtA[i] = 0xa } @@ -2004,14 +2292,14 @@ func (m *UnwatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.TreeId) > 0 { i -= len(m.TreeId) copy(dAtA[i:], m.TreeId) - i = encodeVarintApi(dAtA, i, uint64(len(m.TreeId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.TreeId))) i-- dAtA[i] = 0x12 } if len(m.SpaceId) > 0 { i -= len(m.SpaceId) copy(dAtA[i:], m.SpaceId) - i = encodeVarintApi(dAtA, i, uint64(len(m.SpaceId))) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.SpaceId))) i-- dAtA[i] = 0xa } @@ -2041,8 +2329,195 @@ func (m *UnwatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintApi(dAtA []byte, offset int, v uint64) int { - offset -= sovApi(v) +func (m *PutFileRequest) 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 *PutFileRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PutFileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SpaceId) > 0 { + i -= len(m.SpaceId) + copy(dAtA[i:], m.SpaceId) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.SpaceId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PutFileResponse) 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 *PutFileResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PutFileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetFileRequest) 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 *GetFileRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetFileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0x12 + } + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetFileResponse) 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 *GetFileResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetFileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DeleteFileRequest) 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 *DeleteFileRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteFileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintClientdebugrpc(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DeleteFileResponse) 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 *DeleteFileResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteFileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintClientdebugrpc(dAtA []byte, offset int, v uint64) int { + offset -= sovClientdebugrpc(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -2069,7 +2544,7 @@ func (m *CreateSpaceResponse) Size() (n int) { _ = l l = len(m.Id) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } return n } @@ -2091,7 +2566,7 @@ func (m *DeriveSpaceResponse) Size() (n int) { _ = l l = len(m.Id) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } return n } @@ -2104,7 +2579,7 @@ func (m *CreateDocumentRequest) Size() (n int) { _ = l l = len(m.SpaceId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } return n } @@ -2117,7 +2592,7 @@ func (m *CreateDocumentResponse) Size() (n int) { _ = l l = len(m.Id) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } return n } @@ -2130,11 +2605,11 @@ func (m *DeleteDocumentRequest) Size() (n int) { _ = l l = len(m.SpaceId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } l = len(m.DocumentId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } return n } @@ -2156,15 +2631,15 @@ func (m *AddTextRequest) Size() (n int) { _ = l l = len(m.SpaceId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } l = len(m.DocumentId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } l = len(m.Text) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } if m.IsSnapshot { n += 2 @@ -2180,15 +2655,15 @@ func (m *AddTextResponse) Size() (n int) { _ = l l = len(m.DocumentId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } l = len(m.HeadId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } l = len(m.RootId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } return n } @@ -2201,11 +2676,11 @@ func (m *DumpTreeRequest) Size() (n int) { _ = l l = len(m.SpaceId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } l = len(m.DocumentId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } return n } @@ -2218,7 +2693,7 @@ func (m *DumpTreeResponse) Size() (n int) { _ = l l = len(m.Dump) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } return n } @@ -2231,7 +2706,7 @@ func (m *AllTreesRequest) Size() (n int) { _ = l l = len(m.SpaceId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } return n } @@ -2244,12 +2719,12 @@ func (m *Tree) Size() (n int) { _ = l l = len(m.Id) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } if len(m.Heads) > 0 { for _, s := range m.Heads { l = len(s) - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } } return n @@ -2264,7 +2739,7 @@ func (m *AllTreesResponse) Size() (n int) { if len(m.Trees) > 0 { for _, e := range m.Trees { l = e.Size() - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } } return n @@ -2288,7 +2763,7 @@ func (m *AllSpacesResponse) Size() (n int) { if len(m.SpaceIds) > 0 { for _, s := range m.SpaceIds { l = len(s) - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } } return n @@ -2302,7 +2777,7 @@ func (m *LoadSpaceRequest) Size() (n int) { _ = l l = len(m.SpaceId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } return n } @@ -2324,11 +2799,11 @@ func (m *TreeParamsRequest) Size() (n int) { _ = l l = len(m.SpaceId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } l = len(m.DocumentId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } return n } @@ -2341,12 +2816,12 @@ func (m *TreeParamsResponse) Size() (n int) { _ = l l = len(m.RootId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } if len(m.HeadIds) > 0 { for _, s := range m.HeadIds { l = len(s) - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } } return n @@ -2360,11 +2835,11 @@ func (m *WatchRequest) Size() (n int) { _ = l l = len(m.SpaceId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } l = len(m.TreeId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } return n } @@ -2386,11 +2861,11 @@ func (m *UnwatchRequest) Size() (n int) { _ = l l = len(m.SpaceId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } l = len(m.TreeId) if l > 0 { - n += 1 + l + sovApi(uint64(l)) + n += 1 + l + sovClientdebugrpc(uint64(l)) } return n } @@ -2404,11 +2879,93 @@ func (m *UnwatchResponse) Size() (n int) { return n } -func sovApi(x uint64) (n int) { +func (m *PutFileRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Path) + if l > 0 { + n += 1 + l + sovClientdebugrpc(uint64(l)) + } + l = len(m.SpaceId) + if l > 0 { + n += 1 + l + sovClientdebugrpc(uint64(l)) + } + return n +} + +func (m *PutFileResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovClientdebugrpc(uint64(l)) + } + return n +} + +func (m *GetFileRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovClientdebugrpc(uint64(l)) + } + l = len(m.Path) + if l > 0 { + n += 1 + l + sovClientdebugrpc(uint64(l)) + } + return n +} + +func (m *GetFileResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Path) + if l > 0 { + n += 1 + l + sovClientdebugrpc(uint64(l)) + } + return n +} + +func (m *DeleteFileRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovClientdebugrpc(uint64(l)) + } + return n +} + +func (m *DeleteFileResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovClientdebugrpc(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozApi(x uint64) (n int) { - return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozClientdebugrpc(x uint64) (n int) { + return sovClientdebugrpc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *CreateSpaceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -2418,7 +2975,7 @@ func (m *CreateSpaceRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2441,12 +2998,12 @@ func (m *CreateSpaceRequest) Unmarshal(dAtA []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2468,7 +3025,7 @@ func (m *CreateSpaceResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2496,7 +3053,7 @@ func (m *CreateSpaceResponse) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2510,11 +3067,11 @@ func (m *CreateSpaceResponse) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -2523,12 +3080,12 @@ func (m *CreateSpaceResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2550,7 +3107,7 @@ func (m *DeriveSpaceRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2573,12 +3130,12 @@ func (m *DeriveSpaceRequest) Unmarshal(dAtA []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2600,7 +3157,7 @@ func (m *DeriveSpaceResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2628,7 +3185,7 @@ func (m *DeriveSpaceResponse) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2642,11 +3199,11 @@ func (m *DeriveSpaceResponse) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -2655,12 +3212,12 @@ func (m *DeriveSpaceResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2682,7 +3239,7 @@ func (m *CreateDocumentRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2710,7 +3267,7 @@ func (m *CreateDocumentRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2724,11 +3281,11 @@ func (m *CreateDocumentRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -2737,12 +3294,12 @@ func (m *CreateDocumentRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2764,7 +3321,7 @@ func (m *CreateDocumentResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2792,7 +3349,7 @@ func (m *CreateDocumentResponse) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2806,11 +3363,11 @@ func (m *CreateDocumentResponse) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -2819,12 +3376,12 @@ func (m *CreateDocumentResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2846,7 +3403,7 @@ func (m *DeleteDocumentRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2874,7 +3431,7 @@ func (m *DeleteDocumentRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2888,11 +3445,11 @@ func (m *DeleteDocumentRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -2906,7 +3463,7 @@ func (m *DeleteDocumentRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2920,11 +3477,11 @@ func (m *DeleteDocumentRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -2933,12 +3490,12 @@ func (m *DeleteDocumentRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2960,7 +3517,7 @@ func (m *DeleteDocumentResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2983,12 +3540,12 @@ func (m *DeleteDocumentResponse) Unmarshal(dAtA []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3010,7 +3567,7 @@ func (m *AddTextRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3038,7 +3595,7 @@ func (m *AddTextRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3052,11 +3609,11 @@ func (m *AddTextRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3070,7 +3627,7 @@ func (m *AddTextRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3084,11 +3641,11 @@ func (m *AddTextRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3102,7 +3659,7 @@ func (m *AddTextRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3116,11 +3673,11 @@ func (m *AddTextRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3134,7 +3691,7 @@ func (m *AddTextRequest) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3149,12 +3706,12 @@ func (m *AddTextRequest) Unmarshal(dAtA []byte) error { m.IsSnapshot = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3176,7 +3733,7 @@ func (m *AddTextResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3204,7 +3761,7 @@ func (m *AddTextResponse) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3218,11 +3775,11 @@ func (m *AddTextResponse) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3236,7 +3793,7 @@ func (m *AddTextResponse) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3250,11 +3807,11 @@ func (m *AddTextResponse) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3268,7 +3825,7 @@ func (m *AddTextResponse) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3282,11 +3839,11 @@ func (m *AddTextResponse) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3295,12 +3852,12 @@ func (m *AddTextResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3322,7 +3879,7 @@ func (m *DumpTreeRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3350,7 +3907,7 @@ func (m *DumpTreeRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3364,11 +3921,11 @@ func (m *DumpTreeRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3382,7 +3939,7 @@ func (m *DumpTreeRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3396,11 +3953,11 @@ func (m *DumpTreeRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3409,12 +3966,12 @@ func (m *DumpTreeRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3436,7 +3993,7 @@ func (m *DumpTreeResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3464,7 +4021,7 @@ func (m *DumpTreeResponse) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3478,11 +4035,11 @@ func (m *DumpTreeResponse) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3491,12 +4048,12 @@ func (m *DumpTreeResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3518,7 +4075,7 @@ func (m *AllTreesRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3546,7 +4103,7 @@ func (m *AllTreesRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3560,11 +4117,11 @@ func (m *AllTreesRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3573,12 +4130,12 @@ func (m *AllTreesRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3600,7 +4157,7 @@ func (m *Tree) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3628,7 +4185,7 @@ func (m *Tree) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3642,11 +4199,11 @@ func (m *Tree) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3660,7 +4217,7 @@ func (m *Tree) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3674,11 +4231,11 @@ func (m *Tree) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3687,12 +4244,12 @@ func (m *Tree) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3714,7 +4271,7 @@ func (m *AllTreesResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3742,7 +4299,7 @@ func (m *AllTreesResponse) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3755,11 +4312,11 @@ func (m *AllTreesResponse) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3771,12 +4328,12 @@ func (m *AllTreesResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3798,7 +4355,7 @@ func (m *AllSpacesRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3821,12 +4378,12 @@ func (m *AllSpacesRequest) Unmarshal(dAtA []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3848,7 +4405,7 @@ func (m *AllSpacesResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3876,7 +4433,7 @@ func (m *AllSpacesResponse) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3890,11 +4447,11 @@ func (m *AllSpacesResponse) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3903,12 +4460,12 @@ func (m *AllSpacesResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3930,7 +4487,7 @@ func (m *LoadSpaceRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3958,7 +4515,7 @@ func (m *LoadSpaceRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3972,11 +4529,11 @@ func (m *LoadSpaceRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -3985,12 +4542,12 @@ func (m *LoadSpaceRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4012,7 +4569,7 @@ func (m *LoadSpaceResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4035,12 +4592,12 @@ func (m *LoadSpaceResponse) Unmarshal(dAtA []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4062,7 +4619,7 @@ func (m *TreeParamsRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4090,7 +4647,7 @@ func (m *TreeParamsRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4104,11 +4661,11 @@ func (m *TreeParamsRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -4122,7 +4679,7 @@ func (m *TreeParamsRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4136,11 +4693,11 @@ func (m *TreeParamsRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -4149,12 +4706,12 @@ func (m *TreeParamsRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4176,7 +4733,7 @@ func (m *TreeParamsResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4204,7 +4761,7 @@ func (m *TreeParamsResponse) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4218,11 +4775,11 @@ func (m *TreeParamsResponse) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -4236,7 +4793,7 @@ func (m *TreeParamsResponse) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4250,11 +4807,11 @@ func (m *TreeParamsResponse) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -4263,12 +4820,12 @@ func (m *TreeParamsResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4290,7 +4847,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4318,7 +4875,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4332,11 +4889,11 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -4350,7 +4907,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4364,11 +4921,11 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -4377,12 +4934,12 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4404,7 +4961,7 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4427,12 +4984,12 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4454,7 +5011,7 @@ func (m *UnwatchRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4482,7 +5039,7 @@ func (m *UnwatchRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4496,11 +5053,11 @@ func (m *UnwatchRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -4514,7 +5071,7 @@ func (m *UnwatchRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4528,11 +5085,11 @@ func (m *UnwatchRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if postIndex > l { return io.ErrUnexpectedEOF @@ -4541,12 +5098,12 @@ func (m *UnwatchRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4568,7 +5125,7 @@ func (m *UnwatchResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowApi + return ErrIntOverflowClientdebugrpc } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4591,12 +5148,12 @@ func (m *UnwatchResponse) Unmarshal(dAtA []byte) error { switch fieldNum { default: iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi + return ErrInvalidLengthClientdebugrpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4610,7 +5167,531 @@ func (m *UnwatchResponse) Unmarshal(dAtA []byte) error { } return nil } -func skipApi(dAtA []byte) (n int, err error) { +func (m *PutFileRequest) 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 ErrIntOverflowClientdebugrpc + } + 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: PutFileRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PutFileRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClientdebugrpc + } + 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 ErrInvalidLengthClientdebugrpc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthClientdebugrpc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 ErrIntOverflowClientdebugrpc + } + 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 ErrInvalidLengthClientdebugrpc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthClientdebugrpc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SpaceId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthClientdebugrpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PutFileResponse) 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 ErrIntOverflowClientdebugrpc + } + 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: PutFileResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PutFileResponse: 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 stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClientdebugrpc + } + 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 ErrInvalidLengthClientdebugrpc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthClientdebugrpc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthClientdebugrpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetFileRequest) 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 ErrIntOverflowClientdebugrpc + } + 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: GetFileRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetFileRequest: 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 stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClientdebugrpc + } + 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 ErrInvalidLengthClientdebugrpc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthClientdebugrpc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClientdebugrpc + } + 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 ErrInvalidLengthClientdebugrpc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthClientdebugrpc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthClientdebugrpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetFileResponse) 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 ErrIntOverflowClientdebugrpc + } + 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: GetFileResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetFileResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClientdebugrpc + } + 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 ErrInvalidLengthClientdebugrpc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthClientdebugrpc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthClientdebugrpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteFileRequest) 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 ErrIntOverflowClientdebugrpc + } + 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: DeleteFileRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteFileRequest: 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 stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClientdebugrpc + } + 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 ErrInvalidLengthClientdebugrpc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthClientdebugrpc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthClientdebugrpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteFileResponse) 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 ErrIntOverflowClientdebugrpc + } + 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: DeleteFileResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteFileResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipClientdebugrpc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthClientdebugrpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipClientdebugrpc(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -4618,7 +5699,7 @@ func skipApi(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowApi + return 0, ErrIntOverflowClientdebugrpc } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -4635,7 +5716,7 @@ func skipApi(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowApi + return 0, ErrIntOverflowClientdebugrpc } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -4651,7 +5732,7 @@ func skipApi(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowApi + return 0, ErrIntOverflowClientdebugrpc } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -4664,14 +5745,14 @@ func skipApi(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthApi + return 0, ErrInvalidLengthClientdebugrpc } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupApi + return 0, ErrUnexpectedEndOfGroupClientdebugrpc } depth-- case 5: @@ -4680,7 +5761,7 @@ func skipApi(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthApi + return 0, ErrInvalidLengthClientdebugrpc } if depth == 0 { return iNdEx, nil @@ -4690,7 +5771,7 @@ func skipApi(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthClientdebugrpc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowClientdebugrpc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupClientdebugrpc = fmt.Errorf("proto: unexpected end of group") ) diff --git a/client/debug/clientdebugrpc/clientdebugrpcproto/api_drpc.pb.go b/client/debug/clientdebugrpc/clientdebugrpcproto/clientdebugrpc_drpc.pb.go similarity index 58% rename from client/debug/clientdebugrpc/clientdebugrpcproto/api_drpc.pb.go rename to client/debug/clientdebugrpc/clientdebugrpcproto/clientdebugrpc_drpc.pb.go index 1783c3c9..7705177d 100644 --- a/client/debug/clientdebugrpc/clientdebugrpcproto/api_drpc.pb.go +++ b/client/debug/clientdebugrpc/clientdebugrpcproto/clientdebugrpc_drpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-drpc. DO NOT EDIT. // protoc-gen-go-drpc version: v0.0.32 -// source: api/apiproto/protos/api.proto +// source: debug/clientdebugrpc/clientdebugrpcproto/protos/clientdebugrpc.proto package clientdebugrpcproto @@ -14,17 +14,17 @@ import ( drpcerr "storj.io/drpc/drpcerr" ) -type drpcEncoding_File_api_apiproto_protos_api_proto struct{} +type drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto struct{} -func (drpcEncoding_File_api_apiproto_protos_api_proto) Marshal(msg drpc.Message) ([]byte, error) { +func (drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto) Marshal(msg drpc.Message) ([]byte, error) { return proto.Marshal(msg.(proto.Message)) } -func (drpcEncoding_File_api_apiproto_protos_api_proto) Unmarshal(buf []byte, msg drpc.Message) error { +func (drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto) Unmarshal(buf []byte, msg drpc.Message) error { return proto.Unmarshal(buf, msg.(proto.Message)) } -func (drpcEncoding_File_api_apiproto_protos_api_proto) JSONMarshal(msg drpc.Message) ([]byte, error) { +func (drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto) JSONMarshal(msg drpc.Message) ([]byte, error) { var buf bytes.Buffer err := new(jsonpb.Marshaler).Marshal(&buf, msg.(proto.Message)) if err != nil { @@ -33,7 +33,7 @@ func (drpcEncoding_File_api_apiproto_protos_api_proto) JSONMarshal(msg drpc.Mess return buf.Bytes(), nil } -func (drpcEncoding_File_api_apiproto_protos_api_proto) JSONUnmarshal(buf []byte, msg drpc.Message) error { +func (drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto) JSONUnmarshal(buf []byte, msg drpc.Message) error { return jsonpb.Unmarshal(bytes.NewReader(buf), msg.(proto.Message)) } @@ -52,6 +52,9 @@ type DRPCClientApiClient interface { LoadSpace(ctx context.Context, in *LoadSpaceRequest) (*LoadSpaceResponse, error) Watch(ctx context.Context, in *WatchRequest) (*WatchResponse, error) Unwatch(ctx context.Context, in *UnwatchRequest) (*UnwatchResponse, error) + PutFile(ctx context.Context, in *PutFileRequest) (*PutFileResponse, error) + GetFile(ctx context.Context, in *GetFileRequest) (*GetFileResponse, error) + DeleteFile(ctx context.Context, in *DeleteFileRequest) (*DeleteFileResponse, error) } type drpcClientApiClient struct { @@ -66,7 +69,7 @@ func (c *drpcClientApiClient) DRPCConn() drpc.Conn { return c.cc } func (c *drpcClientApiClient) CreateSpace(ctx context.Context, in *CreateSpaceRequest) (*CreateSpaceResponse, error) { out := new(CreateSpaceResponse) - err := c.cc.Invoke(ctx, "/clientapi.ClientApi/CreateSpace", drpcEncoding_File_api_apiproto_protos_api_proto{}, in, out) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/CreateSpace", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) if err != nil { return nil, err } @@ -75,7 +78,7 @@ func (c *drpcClientApiClient) CreateSpace(ctx context.Context, in *CreateSpaceRe func (c *drpcClientApiClient) DeriveSpace(ctx context.Context, in *DeriveSpaceRequest) (*DeriveSpaceResponse, error) { out := new(DeriveSpaceResponse) - err := c.cc.Invoke(ctx, "/clientapi.ClientApi/DeriveSpace", drpcEncoding_File_api_apiproto_protos_api_proto{}, in, out) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/DeriveSpace", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) if err != nil { return nil, err } @@ -84,7 +87,7 @@ func (c *drpcClientApiClient) DeriveSpace(ctx context.Context, in *DeriveSpaceRe func (c *drpcClientApiClient) CreateDocument(ctx context.Context, in *CreateDocumentRequest) (*CreateDocumentResponse, error) { out := new(CreateDocumentResponse) - err := c.cc.Invoke(ctx, "/clientapi.ClientApi/CreateDocument", drpcEncoding_File_api_apiproto_protos_api_proto{}, in, out) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/CreateDocument", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) if err != nil { return nil, err } @@ -93,7 +96,7 @@ func (c *drpcClientApiClient) CreateDocument(ctx context.Context, in *CreateDocu func (c *drpcClientApiClient) DeleteDocument(ctx context.Context, in *DeleteDocumentRequest) (*DeleteDocumentResponse, error) { out := new(DeleteDocumentResponse) - err := c.cc.Invoke(ctx, "/clientapi.ClientApi/DeleteDocument", drpcEncoding_File_api_apiproto_protos_api_proto{}, in, out) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/DeleteDocument", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) if err != nil { return nil, err } @@ -102,7 +105,7 @@ func (c *drpcClientApiClient) DeleteDocument(ctx context.Context, in *DeleteDocu func (c *drpcClientApiClient) AddText(ctx context.Context, in *AddTextRequest) (*AddTextResponse, error) { out := new(AddTextResponse) - err := c.cc.Invoke(ctx, "/clientapi.ClientApi/AddText", drpcEncoding_File_api_apiproto_protos_api_proto{}, in, out) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/AddText", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) if err != nil { return nil, err } @@ -111,7 +114,7 @@ func (c *drpcClientApiClient) AddText(ctx context.Context, in *AddTextRequest) ( func (c *drpcClientApiClient) DumpTree(ctx context.Context, in *DumpTreeRequest) (*DumpTreeResponse, error) { out := new(DumpTreeResponse) - err := c.cc.Invoke(ctx, "/clientapi.ClientApi/DumpTree", drpcEncoding_File_api_apiproto_protos_api_proto{}, in, out) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/DumpTree", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) if err != nil { return nil, err } @@ -120,7 +123,7 @@ func (c *drpcClientApiClient) DumpTree(ctx context.Context, in *DumpTreeRequest) func (c *drpcClientApiClient) TreeParams(ctx context.Context, in *TreeParamsRequest) (*TreeParamsResponse, error) { out := new(TreeParamsResponse) - err := c.cc.Invoke(ctx, "/clientapi.ClientApi/TreeParams", drpcEncoding_File_api_apiproto_protos_api_proto{}, in, out) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/TreeParams", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) if err != nil { return nil, err } @@ -129,7 +132,7 @@ func (c *drpcClientApiClient) TreeParams(ctx context.Context, in *TreeParamsRequ func (c *drpcClientApiClient) AllTrees(ctx context.Context, in *AllTreesRequest) (*AllTreesResponse, error) { out := new(AllTreesResponse) - err := c.cc.Invoke(ctx, "/clientapi.ClientApi/AllTrees", drpcEncoding_File_api_apiproto_protos_api_proto{}, in, out) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/AllTrees", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) if err != nil { return nil, err } @@ -138,7 +141,7 @@ func (c *drpcClientApiClient) AllTrees(ctx context.Context, in *AllTreesRequest) func (c *drpcClientApiClient) AllSpaces(ctx context.Context, in *AllSpacesRequest) (*AllSpacesResponse, error) { out := new(AllSpacesResponse) - err := c.cc.Invoke(ctx, "/clientapi.ClientApi/AllSpaces", drpcEncoding_File_api_apiproto_protos_api_proto{}, in, out) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/AllSpaces", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) if err != nil { return nil, err } @@ -147,7 +150,7 @@ func (c *drpcClientApiClient) AllSpaces(ctx context.Context, in *AllSpacesReques func (c *drpcClientApiClient) LoadSpace(ctx context.Context, in *LoadSpaceRequest) (*LoadSpaceResponse, error) { out := new(LoadSpaceResponse) - err := c.cc.Invoke(ctx, "/clientapi.ClientApi/LoadSpace", drpcEncoding_File_api_apiproto_protos_api_proto{}, in, out) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/LoadSpace", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) if err != nil { return nil, err } @@ -156,7 +159,7 @@ func (c *drpcClientApiClient) LoadSpace(ctx context.Context, in *LoadSpaceReques func (c *drpcClientApiClient) Watch(ctx context.Context, in *WatchRequest) (*WatchResponse, error) { out := new(WatchResponse) - err := c.cc.Invoke(ctx, "/clientapi.ClientApi/Watch", drpcEncoding_File_api_apiproto_protos_api_proto{}, in, out) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/Watch", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) if err != nil { return nil, err } @@ -165,7 +168,34 @@ func (c *drpcClientApiClient) Watch(ctx context.Context, in *WatchRequest) (*Wat func (c *drpcClientApiClient) Unwatch(ctx context.Context, in *UnwatchRequest) (*UnwatchResponse, error) { out := new(UnwatchResponse) - err := c.cc.Invoke(ctx, "/clientapi.ClientApi/Unwatch", drpcEncoding_File_api_apiproto_protos_api_proto{}, in, out) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/Unwatch", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcClientApiClient) PutFile(ctx context.Context, in *PutFileRequest) (*PutFileResponse, error) { + out := new(PutFileResponse) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/PutFile", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcClientApiClient) GetFile(ctx context.Context, in *GetFileRequest) (*GetFileResponse, error) { + out := new(GetFileResponse) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/GetFile", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcClientApiClient) DeleteFile(ctx context.Context, in *DeleteFileRequest) (*DeleteFileResponse, error) { + out := new(DeleteFileResponse) + err := c.cc.Invoke(ctx, "/clientdebugrpc.ClientApi/DeleteFile", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, in, out) if err != nil { return nil, err } @@ -185,6 +215,9 @@ type DRPCClientApiServer interface { LoadSpace(context.Context, *LoadSpaceRequest) (*LoadSpaceResponse, error) Watch(context.Context, *WatchRequest) (*WatchResponse, error) Unwatch(context.Context, *UnwatchRequest) (*UnwatchResponse, error) + PutFile(context.Context, *PutFileRequest) (*PutFileResponse, error) + GetFile(context.Context, *GetFileRequest) (*GetFileResponse, error) + DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error) } type DRPCClientApiUnimplementedServer struct{} @@ -237,14 +270,26 @@ func (s *DRPCClientApiUnimplementedServer) Unwatch(context.Context, *UnwatchRequ return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented) } +func (s *DRPCClientApiUnimplementedServer) PutFile(context.Context, *PutFileRequest) (*PutFileResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented) +} + +func (s *DRPCClientApiUnimplementedServer) GetFile(context.Context, *GetFileRequest) (*GetFileResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented) +} + +func (s *DRPCClientApiUnimplementedServer) DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented) +} + type DRPCClientApiDescription struct{} -func (DRPCClientApiDescription) NumMethods() int { return 12 } +func (DRPCClientApiDescription) NumMethods() int { return 15 } func (DRPCClientApiDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) { switch n { case 0: - return "/clientapi.ClientApi/CreateSpace", drpcEncoding_File_api_apiproto_protos_api_proto{}, + return "/clientdebugrpc.ClientApi/CreateSpace", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCClientApiServer). CreateSpace( @@ -253,7 +298,7 @@ func (DRPCClientApiDescription) Method(n int) (string, drpc.Encoding, drpc.Recei ) }, DRPCClientApiServer.CreateSpace, true case 1: - return "/clientapi.ClientApi/DeriveSpace", drpcEncoding_File_api_apiproto_protos_api_proto{}, + return "/clientdebugrpc.ClientApi/DeriveSpace", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCClientApiServer). DeriveSpace( @@ -262,7 +307,7 @@ func (DRPCClientApiDescription) Method(n int) (string, drpc.Encoding, drpc.Recei ) }, DRPCClientApiServer.DeriveSpace, true case 2: - return "/clientapi.ClientApi/CreateDocument", drpcEncoding_File_api_apiproto_protos_api_proto{}, + return "/clientdebugrpc.ClientApi/CreateDocument", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCClientApiServer). CreateDocument( @@ -271,7 +316,7 @@ func (DRPCClientApiDescription) Method(n int) (string, drpc.Encoding, drpc.Recei ) }, DRPCClientApiServer.CreateDocument, true case 3: - return "/clientapi.ClientApi/DeleteDocument", drpcEncoding_File_api_apiproto_protos_api_proto{}, + return "/clientdebugrpc.ClientApi/DeleteDocument", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCClientApiServer). DeleteDocument( @@ -280,7 +325,7 @@ func (DRPCClientApiDescription) Method(n int) (string, drpc.Encoding, drpc.Recei ) }, DRPCClientApiServer.DeleteDocument, true case 4: - return "/clientapi.ClientApi/AddText", drpcEncoding_File_api_apiproto_protos_api_proto{}, + return "/clientdebugrpc.ClientApi/AddText", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCClientApiServer). AddText( @@ -289,7 +334,7 @@ func (DRPCClientApiDescription) Method(n int) (string, drpc.Encoding, drpc.Recei ) }, DRPCClientApiServer.AddText, true case 5: - return "/clientapi.ClientApi/DumpTree", drpcEncoding_File_api_apiproto_protos_api_proto{}, + return "/clientdebugrpc.ClientApi/DumpTree", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCClientApiServer). DumpTree( @@ -298,7 +343,7 @@ func (DRPCClientApiDescription) Method(n int) (string, drpc.Encoding, drpc.Recei ) }, DRPCClientApiServer.DumpTree, true case 6: - return "/clientapi.ClientApi/TreeParams", drpcEncoding_File_api_apiproto_protos_api_proto{}, + return "/clientdebugrpc.ClientApi/TreeParams", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCClientApiServer). TreeParams( @@ -307,7 +352,7 @@ func (DRPCClientApiDescription) Method(n int) (string, drpc.Encoding, drpc.Recei ) }, DRPCClientApiServer.TreeParams, true case 7: - return "/clientapi.ClientApi/AllTrees", drpcEncoding_File_api_apiproto_protos_api_proto{}, + return "/clientdebugrpc.ClientApi/AllTrees", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCClientApiServer). AllTrees( @@ -316,7 +361,7 @@ func (DRPCClientApiDescription) Method(n int) (string, drpc.Encoding, drpc.Recei ) }, DRPCClientApiServer.AllTrees, true case 8: - return "/clientapi.ClientApi/AllSpaces", drpcEncoding_File_api_apiproto_protos_api_proto{}, + return "/clientdebugrpc.ClientApi/AllSpaces", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCClientApiServer). AllSpaces( @@ -325,7 +370,7 @@ func (DRPCClientApiDescription) Method(n int) (string, drpc.Encoding, drpc.Recei ) }, DRPCClientApiServer.AllSpaces, true case 9: - return "/clientapi.ClientApi/LoadSpace", drpcEncoding_File_api_apiproto_protos_api_proto{}, + return "/clientdebugrpc.ClientApi/LoadSpace", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCClientApiServer). LoadSpace( @@ -334,7 +379,7 @@ func (DRPCClientApiDescription) Method(n int) (string, drpc.Encoding, drpc.Recei ) }, DRPCClientApiServer.LoadSpace, true case 10: - return "/clientapi.ClientApi/Watch", drpcEncoding_File_api_apiproto_protos_api_proto{}, + return "/clientdebugrpc.ClientApi/Watch", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCClientApiServer). Watch( @@ -343,7 +388,7 @@ func (DRPCClientApiDescription) Method(n int) (string, drpc.Encoding, drpc.Recei ) }, DRPCClientApiServer.Watch, true case 11: - return "/clientapi.ClientApi/Unwatch", drpcEncoding_File_api_apiproto_protos_api_proto{}, + return "/clientdebugrpc.ClientApi/Unwatch", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCClientApiServer). Unwatch( @@ -351,6 +396,33 @@ func (DRPCClientApiDescription) Method(n int) (string, drpc.Encoding, drpc.Recei in1.(*UnwatchRequest), ) }, DRPCClientApiServer.Unwatch, true + case 12: + return "/clientdebugrpc.ClientApi/PutFile", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCClientApiServer). + PutFile( + ctx, + in1.(*PutFileRequest), + ) + }, DRPCClientApiServer.PutFile, true + case 13: + return "/clientdebugrpc.ClientApi/GetFile", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCClientApiServer). + GetFile( + ctx, + in1.(*GetFileRequest), + ) + }, DRPCClientApiServer.GetFile, true + case 14: + return "/clientdebugrpc.ClientApi/DeleteFile", drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCClientApiServer). + DeleteFile( + ctx, + in1.(*DeleteFileRequest), + ) + }, DRPCClientApiServer.DeleteFile, true default: return "", nil, nil, nil, false } @@ -370,7 +442,7 @@ type drpcClientApi_CreateSpaceStream struct { } func (x *drpcClientApi_CreateSpaceStream) SendAndClose(m *CreateSpaceResponse) error { - if err := x.MsgSend(m, drpcEncoding_File_api_apiproto_protos_api_proto{}); err != nil { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { return err } return x.CloseSend() @@ -386,7 +458,7 @@ type drpcClientApi_DeriveSpaceStream struct { } func (x *drpcClientApi_DeriveSpaceStream) SendAndClose(m *DeriveSpaceResponse) error { - if err := x.MsgSend(m, drpcEncoding_File_api_apiproto_protos_api_proto{}); err != nil { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { return err } return x.CloseSend() @@ -402,7 +474,7 @@ type drpcClientApi_CreateDocumentStream struct { } func (x *drpcClientApi_CreateDocumentStream) SendAndClose(m *CreateDocumentResponse) error { - if err := x.MsgSend(m, drpcEncoding_File_api_apiproto_protos_api_proto{}); err != nil { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { return err } return x.CloseSend() @@ -418,7 +490,7 @@ type drpcClientApi_DeleteDocumentStream struct { } func (x *drpcClientApi_DeleteDocumentStream) SendAndClose(m *DeleteDocumentResponse) error { - if err := x.MsgSend(m, drpcEncoding_File_api_apiproto_protos_api_proto{}); err != nil { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { return err } return x.CloseSend() @@ -434,7 +506,7 @@ type drpcClientApi_AddTextStream struct { } func (x *drpcClientApi_AddTextStream) SendAndClose(m *AddTextResponse) error { - if err := x.MsgSend(m, drpcEncoding_File_api_apiproto_protos_api_proto{}); err != nil { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { return err } return x.CloseSend() @@ -450,7 +522,7 @@ type drpcClientApi_DumpTreeStream struct { } func (x *drpcClientApi_DumpTreeStream) SendAndClose(m *DumpTreeResponse) error { - if err := x.MsgSend(m, drpcEncoding_File_api_apiproto_protos_api_proto{}); err != nil { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { return err } return x.CloseSend() @@ -466,7 +538,7 @@ type drpcClientApi_TreeParamsStream struct { } func (x *drpcClientApi_TreeParamsStream) SendAndClose(m *TreeParamsResponse) error { - if err := x.MsgSend(m, drpcEncoding_File_api_apiproto_protos_api_proto{}); err != nil { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { return err } return x.CloseSend() @@ -482,7 +554,7 @@ type drpcClientApi_AllTreesStream struct { } func (x *drpcClientApi_AllTreesStream) SendAndClose(m *AllTreesResponse) error { - if err := x.MsgSend(m, drpcEncoding_File_api_apiproto_protos_api_proto{}); err != nil { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { return err } return x.CloseSend() @@ -498,7 +570,7 @@ type drpcClientApi_AllSpacesStream struct { } func (x *drpcClientApi_AllSpacesStream) SendAndClose(m *AllSpacesResponse) error { - if err := x.MsgSend(m, drpcEncoding_File_api_apiproto_protos_api_proto{}); err != nil { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { return err } return x.CloseSend() @@ -514,7 +586,7 @@ type drpcClientApi_LoadSpaceStream struct { } func (x *drpcClientApi_LoadSpaceStream) SendAndClose(m *LoadSpaceResponse) error { - if err := x.MsgSend(m, drpcEncoding_File_api_apiproto_protos_api_proto{}); err != nil { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { return err } return x.CloseSend() @@ -530,7 +602,7 @@ type drpcClientApi_WatchStream struct { } func (x *drpcClientApi_WatchStream) SendAndClose(m *WatchResponse) error { - if err := x.MsgSend(m, drpcEncoding_File_api_apiproto_protos_api_proto{}); err != nil { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { return err } return x.CloseSend() @@ -546,7 +618,55 @@ type drpcClientApi_UnwatchStream struct { } func (x *drpcClientApi_UnwatchStream) SendAndClose(m *UnwatchResponse) error { - if err := x.MsgSend(m, drpcEncoding_File_api_apiproto_protos_api_proto{}); err != nil { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCClientApi_PutFileStream interface { + drpc.Stream + SendAndClose(*PutFileResponse) error +} + +type drpcClientApi_PutFileStream struct { + drpc.Stream +} + +func (x *drpcClientApi_PutFileStream) SendAndClose(m *PutFileResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCClientApi_GetFileStream interface { + drpc.Stream + SendAndClose(*GetFileResponse) error +} + +type drpcClientApi_GetFileStream struct { + drpc.Stream +} + +func (x *drpcClientApi_GetFileStream) SendAndClose(m *GetFileResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCClientApi_DeleteFileStream interface { + drpc.Stream + SendAndClose(*DeleteFileResponse) error +} + +type drpcClientApi_DeleteFileStream struct { + drpc.Stream +} + +func (x *drpcClientApi_DeleteFileStream) SendAndClose(m *DeleteFileResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_debug_clientdebugrpc_clientdebugrpcproto_protos_clientdebugrpc_proto{}); err != nil { return err } return x.CloseSend() diff --git a/client/debug/clientdebugrpc/clientdebugrpcproto/protos/api.proto b/client/debug/clientdebugrpc/clientdebugrpcproto/protos/clientdebugrpc.proto similarity index 96% rename from client/debug/clientdebugrpc/clientdebugrpcproto/protos/api.proto rename to client/debug/clientdebugrpc/clientdebugrpcproto/protos/clientdebugrpc.proto index 2eff85b8..99e34432 100644 --- a/client/debug/clientdebugrpc/clientdebugrpcproto/protos/api.proto +++ b/client/debug/clientdebugrpc/clientdebugrpcproto/protos/clientdebugrpc.proto @@ -1,7 +1,7 @@ syntax = "proto3"; -package clientapi; +package clientdebugrpc; -option go_package = "api/apiproto"; +option go_package = "debug/clientdebugrpc/clientdebugrpcproto"; service ClientApi { rpc CreateSpace(CreateSpaceRequest) returns(CreateSpaceResponse); diff --git a/client/document/textchangeproto/protos/test.proto b/client/document/textchangeproto/protos/textchange.proto similarity index 85% rename from client/document/textchangeproto/protos/test.proto rename to client/document/textchangeproto/protos/textchange.proto index 5a9b89e8..0b583a39 100644 --- a/client/document/textchangeproto/protos/test.proto +++ b/client/document/textchangeproto/protos/textchange.proto @@ -1,6 +1,6 @@ syntax = "proto3"; package textchange; -option go_package = "textchange"; +option go_package = "document/textchangeproto"; message TextContent { oneof value { diff --git a/client/document/textchangeproto/test.pb.go b/client/document/textchangeproto/textchange.pb.go similarity index 80% rename from client/document/textchangeproto/test.pb.go rename to client/document/textchangeproto/textchange.pb.go index 28ab3d4e..5600d811 100644 --- a/client/document/textchangeproto/test.pb.go +++ b/client/document/textchangeproto/textchange.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: pkg/acl/testutils/testchanges/proto/test.proto +// source: document/textchangeproto/protos/textchange.proto package textchangeproto @@ -33,7 +33,7 @@ func (m *TextContent) Reset() { *m = TextContent{} } func (m *TextContent) String() string { return proto.CompactTextString(m) } func (*TextContent) ProtoMessage() {} func (*TextContent) Descriptor() ([]byte, []int) { - return fileDescriptor_37f33c266ada4318, []int{0} + return fileDescriptor_44a0c2b66e6c4b48, []int{0} } func (m *TextContent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -103,7 +103,7 @@ func (m *TextAppend) Reset() { *m = TextAppend{} } func (m *TextAppend) String() string { return proto.CompactTextString(m) } func (*TextAppend) ProtoMessage() {} func (*TextAppend) Descriptor() ([]byte, []int) { - return fileDescriptor_37f33c266ada4318, []int{1} + return fileDescriptor_44a0c2b66e6c4b48, []int{1} } func (m *TextAppend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -147,7 +147,7 @@ func (m *TextSnapshot) Reset() { *m = TextSnapshot{} } func (m *TextSnapshot) String() string { return proto.CompactTextString(m) } func (*TextSnapshot) ProtoMessage() {} func (*TextSnapshot) Descriptor() ([]byte, []int) { - return fileDescriptor_37f33c266ada4318, []int{2} + return fileDescriptor_44a0c2b66e6c4b48, []int{2} } func (m *TextSnapshot) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -192,7 +192,7 @@ func (m *TextData) Reset() { *m = TextData{} } func (m *TextData) String() string { return proto.CompactTextString(m) } func (*TextData) ProtoMessage() {} func (*TextData) Descriptor() ([]byte, []int) { - return fileDescriptor_37f33c266ada4318, []int{3} + return fileDescriptor_44a0c2b66e6c4b48, []int{3} } func (m *TextData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -236,34 +236,33 @@ func (m *TextData) GetSnapshot() *TextSnapshot { } func init() { - proto.RegisterType((*TextContent)(nil), "anytype.TextContent") - proto.RegisterType((*TextAppend)(nil), "anytype.TextAppend") - proto.RegisterType((*TextSnapshot)(nil), "anytype.TextSnapshot") - proto.RegisterType((*TextData)(nil), "anytype.TextData") + proto.RegisterType((*TextContent)(nil), "textchange.TextContent") + proto.RegisterType((*TextAppend)(nil), "textchange.TextAppend") + proto.RegisterType((*TextSnapshot)(nil), "textchange.TextSnapshot") + proto.RegisterType((*TextData)(nil), "textchange.TextData") } func init() { - proto.RegisterFile("pkg/acl/testutils/testchanges/proto/test.proto", fileDescriptor_37f33c266ada4318) + proto.RegisterFile("document/textchangeproto/protos/textchange.proto", fileDescriptor_44a0c2b66e6c4b48) } -var fileDescriptor_37f33c266ada4318 = []byte{ - // 252 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2b, 0xc8, 0x4e, 0xd7, - 0x4f, 0x4c, 0xce, 0xd1, 0x2f, 0x49, 0x2d, 0x2e, 0x29, 0x2d, 0xc9, 0xcc, 0x29, 0x06, 0xb3, 0x92, - 0x33, 0x12, 0xf3, 0xd2, 0x53, 0x8b, 0xf5, 0x0b, 0x8a, 0xf2, 0x4b, 0xf2, 0xc1, 0x22, 0x7a, 0x60, - 0xa6, 0x10, 0x7b, 0x62, 0x5e, 0x65, 0x49, 0x65, 0x41, 0xaa, 0x92, 0x2f, 0x17, 0x77, 0x48, 0x6a, - 0x45, 0x89, 0x73, 0x7e, 0x5e, 0x49, 0x6a, 0x5e, 0x89, 0x90, 0x29, 0x17, 0x57, 0x49, 0x6a, 0x45, - 0x89, 0x63, 0x41, 0x41, 0x6a, 0x5e, 0x8a, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0xb0, 0x1e, - 0x54, 0xb1, 0x5e, 0x08, 0x5c, 0xca, 0x83, 0x21, 0x08, 0x49, 0xa1, 0x13, 0x3b, 0x17, 0x6b, 0x59, - 0x62, 0x4e, 0x69, 0xaa, 0x92, 0x02, 0x17, 0x17, 0x42, 0x91, 0x90, 0x10, 0x17, 0x0b, 0x48, 0x11, - 0xd8, 0x1c, 0xce, 0x20, 0x30, 0x5b, 0x49, 0x89, 0x8b, 0x07, 0xa4, 0x22, 0x38, 0x2f, 0xb1, 0xa0, - 0x38, 0x23, 0xbf, 0x04, 0xab, 0x9a, 0x5c, 0x2e, 0x0e, 0x90, 0x1a, 0x97, 0xc4, 0x92, 0x44, 0x21, - 0x3d, 0x2e, 0xf6, 0x64, 0x88, 0xe3, 0x24, 0x18, 0x15, 0x98, 0x35, 0xb8, 0x8d, 0x44, 0x50, 0x9c, - 0x03, 0x75, 0x78, 0x10, 0x4c, 0x91, 0x90, 0x21, 0x17, 0x47, 0x31, 0xd4, 0x6c, 0x09, 0x26, 0xb0, - 0xfb, 0x45, 0x51, 0x34, 0xc0, 0x2c, 0x0e, 0x82, 0x2b, 0x73, 0x52, 0x3d, 0xf1, 0x48, 0x8e, 0xf1, - 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, - 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x6e, 0xa4, 0x40, 0x4c, 0x62, 0x03, 0x07, 0x9d, 0x31, 0x20, - 0x00, 0x00, 0xff, 0xff, 0xdc, 0xbf, 0x78, 0xe5, 0x6c, 0x01, 0x00, 0x00, +var fileDescriptor_44a0c2b66e6c4b48 = []byte{ + // 239 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x48, 0xc9, 0x4f, 0x2e, + 0xcd, 0x4d, 0xcd, 0x2b, 0xd1, 0x2f, 0x49, 0xad, 0x28, 0x49, 0xce, 0x48, 0xcc, 0x4b, 0x4f, 0x2d, + 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x07, 0x93, 0xc5, 0x48, 0xc2, 0x7a, 0x60, 0x11, 0x21, 0x2e, 0x84, + 0x88, 0x52, 0x00, 0x17, 0x77, 0x48, 0x6a, 0x45, 0x89, 0x73, 0x7e, 0x5e, 0x49, 0x6a, 0x5e, 0x89, + 0x90, 0x05, 0x17, 0x58, 0xd2, 0xb1, 0xa0, 0x20, 0x35, 0x2f, 0x45, 0x82, 0x51, 0x81, 0x51, 0x83, + 0xdb, 0x48, 0x4c, 0x0f, 0xc9, 0x84, 0x10, 0xb8, 0xac, 0x07, 0x43, 0x10, 0x92, 0x5a, 0x27, 0x76, + 0x2e, 0xd6, 0xb2, 0xc4, 0x9c, 0xd2, 0x54, 0x25, 0x05, 0x2e, 0x2e, 0x84, 0x22, 0x21, 0x21, 0x2e, + 0x16, 0x90, 0x22, 0xb0, 0x51, 0x9c, 0x41, 0x60, 0xb6, 0x92, 0x12, 0x17, 0x0f, 0x48, 0x45, 0x70, + 0x5e, 0x62, 0x41, 0x71, 0x46, 0x7e, 0x09, 0x56, 0x35, 0xc5, 0x5c, 0x1c, 0x20, 0x35, 0x2e, 0x89, + 0x25, 0x89, 0x42, 0x86, 0x5c, 0xec, 0xc9, 0x10, 0xf7, 0x49, 0x30, 0x2a, 0x30, 0x6b, 0x70, 0x1b, + 0x89, 0xa3, 0xbb, 0x08, 0xea, 0xfc, 0x20, 0x98, 0x3a, 0x21, 0x13, 0x2e, 0x8e, 0x62, 0xa8, 0xf1, + 0x12, 0x4c, 0x60, 0x5f, 0x48, 0xa0, 0xeb, 0x81, 0x59, 0x1f, 0x04, 0x57, 0xe9, 0x64, 0x74, 0xe2, + 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, + 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x12, 0xb8, 0x02, 0x39, 0x89, 0x0d, 0x4c, + 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x87, 0x3d, 0x8c, 0x61, 0x87, 0x01, 0x00, 0x00, } func (m *TextContent) Marshal() (dAtA []byte, err error) { @@ -312,7 +311,7 @@ func (m *TextContent_TextAppend) MarshalToSizedBuffer(dAtA []byte) (int, error) return 0, err } i -= size - i = encodeVarintTest(dAtA, i, uint64(size)) + i = encodeVarintTextchange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -342,7 +341,7 @@ func (m *TextAppend) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Text) > 0 { i -= len(m.Text) copy(dAtA[i:], m.Text) - i = encodeVarintTest(dAtA, i, uint64(len(m.Text))) + i = encodeVarintTextchange(dAtA, i, uint64(len(m.Text))) i-- dAtA[i] = 0xa } @@ -372,7 +371,7 @@ func (m *TextSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Text) > 0 { i -= len(m.Text) copy(dAtA[i:], m.Text) - i = encodeVarintTest(dAtA, i, uint64(len(m.Text))) + i = encodeVarintTextchange(dAtA, i, uint64(len(m.Text))) i-- dAtA[i] = 0xa } @@ -406,7 +405,7 @@ func (m *TextData) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTest(dAtA, i, uint64(size)) + i = encodeVarintTextchange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -419,7 +418,7 @@ func (m *TextData) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintTest(dAtA, i, uint64(size)) + i = encodeVarintTextchange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -428,8 +427,8 @@ func (m *TextData) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintTest(dAtA []byte, offset int, v uint64) int { - offset -= sovTest(v) +func encodeVarintTextchange(dAtA []byte, offset int, v uint64) int { + offset -= sovTextchange(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -459,7 +458,7 @@ func (m *TextContent_TextAppend) Size() (n int) { _ = l if m.TextAppend != nil { l = m.TextAppend.Size() - n += 1 + l + sovTest(uint64(l)) + n += 1 + l + sovTextchange(uint64(l)) } return n } @@ -471,7 +470,7 @@ func (m *TextAppend) Size() (n int) { _ = l l = len(m.Text) if l > 0 { - n += 1 + l + sovTest(uint64(l)) + n += 1 + l + sovTextchange(uint64(l)) } return n } @@ -484,7 +483,7 @@ func (m *TextSnapshot) Size() (n int) { _ = l l = len(m.Text) if l > 0 { - n += 1 + l + sovTest(uint64(l)) + n += 1 + l + sovTextchange(uint64(l)) } return n } @@ -498,21 +497,21 @@ func (m *TextData) Size() (n int) { if len(m.Content) > 0 { for _, e := range m.Content { l = e.Size() - n += 1 + l + sovTest(uint64(l)) + n += 1 + l + sovTextchange(uint64(l)) } } if m.Snapshot != nil { l = m.Snapshot.Size() - n += 1 + l + sovTest(uint64(l)) + n += 1 + l + sovTextchange(uint64(l)) } return n } -func sovTest(x uint64) (n int) { +func sovTextchange(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozTest(x uint64) (n int) { - return sovTest(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozTextchange(x uint64) (n int) { + return sovTextchange(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *TextContent) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -522,7 +521,7 @@ func (m *TextContent) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTest + return ErrIntOverflowTextchange } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -550,7 +549,7 @@ func (m *TextContent) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTest + return ErrIntOverflowTextchange } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -563,11 +562,11 @@ func (m *TextContent) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } if postIndex > l { return io.ErrUnexpectedEOF @@ -580,12 +579,12 @@ func (m *TextContent) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTest(dAtA[iNdEx:]) + skippy, err := skipTextchange(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -607,7 +606,7 @@ func (m *TextAppend) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTest + return ErrIntOverflowTextchange } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -635,7 +634,7 @@ func (m *TextAppend) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTest + return ErrIntOverflowTextchange } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -649,11 +648,11 @@ func (m *TextAppend) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } if postIndex > l { return io.ErrUnexpectedEOF @@ -662,12 +661,12 @@ func (m *TextAppend) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTest(dAtA[iNdEx:]) + skippy, err := skipTextchange(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -689,7 +688,7 @@ func (m *TextSnapshot) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTest + return ErrIntOverflowTextchange } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -717,7 +716,7 @@ func (m *TextSnapshot) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTest + return ErrIntOverflowTextchange } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -731,11 +730,11 @@ func (m *TextSnapshot) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } if postIndex > l { return io.ErrUnexpectedEOF @@ -744,12 +743,12 @@ func (m *TextSnapshot) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTest(dAtA[iNdEx:]) + skippy, err := skipTextchange(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -771,7 +770,7 @@ func (m *TextData) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTest + return ErrIntOverflowTextchange } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -799,7 +798,7 @@ func (m *TextData) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTest + return ErrIntOverflowTextchange } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -812,11 +811,11 @@ func (m *TextData) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } if postIndex > l { return io.ErrUnexpectedEOF @@ -833,7 +832,7 @@ func (m *TextData) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowTest + return ErrIntOverflowTextchange } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -846,11 +845,11 @@ func (m *TextData) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } if postIndex > l { return io.ErrUnexpectedEOF @@ -864,12 +863,12 @@ func (m *TextData) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipTest(dAtA[iNdEx:]) + skippy, err := skipTextchange(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTest + return ErrInvalidLengthTextchange } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -883,7 +882,7 @@ func (m *TextData) Unmarshal(dAtA []byte) error { } return nil } -func skipTest(dAtA []byte) (n int, err error) { +func skipTextchange(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -891,7 +890,7 @@ func skipTest(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTest + return 0, ErrIntOverflowTextchange } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -908,7 +907,7 @@ func skipTest(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTest + return 0, ErrIntOverflowTextchange } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -924,7 +923,7 @@ func skipTest(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowTest + return 0, ErrIntOverflowTextchange } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -937,14 +936,14 @@ func skipTest(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthTest + return 0, ErrInvalidLengthTextchange } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTest + return 0, ErrUnexpectedEndOfGroupTextchange } depth-- case 5: @@ -953,7 +952,7 @@ func skipTest(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthTest + return 0, ErrInvalidLengthTextchange } if depth == 0 { return iNdEx, nil @@ -963,7 +962,7 @@ func skipTest(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthTest = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTest = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTest = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthTextchange = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTextchange = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTextchange = fmt.Errorf("proto: unexpected end of group") ) diff --git a/common/Makefile b/common/Makefile index 699dde33..6383b63a 100644 --- a/common/Makefile +++ b/common/Makefile @@ -7,7 +7,6 @@ proto: @$(eval GOGO_START := GOGO_NO_UNDERSCORE=1 GOGO_EXPORT_ONEOF_INTERFACE=1) @$(eval P_ACL_RECORDS_PATH_PB := commonspace/object/acl/aclrecordproto) @$(eval P_TREE_CHANGES_PATH_PB := commonspace/object/tree/treechangeproto) - @$(eval P_SYNC_CHANGES_PATH_PB := syncproto) @$(eval P_ACL_RECORDS := M$(P_ACL_RECORDS_PATH_PB)/protos/aclrecord.proto=github.com/anytypeio/go-anytype-infrastructure-experiments/common/$(P_ACL_RECORDS_PATH_PB)) @$(eval P_TREE_CHANGES := M$(P_TREE_CHANGES_PATH_PB)/protos/treechange.proto=github.com/anytypeio/go-anytype-infrastructure-experiments/common/$(P_TREE_CHANGES_PATH_PB))