diff options
author | Mikhail Mazurskiy <mmazurskiy@gitlab.com> | 2021-04-23 11:16:29 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-06-11 09:11:14 +0300 |
commit | 69f3f118b1f277013864089f71a7331f8e4ae661 (patch) | |
tree | 4ed869e8d0e19a4cd64d71dc6a638670f7ece175 | |
parent | e5dce90ecf1edae4fdb5e943b9d52d565f68eae3 (diff) |
Generated
56 files changed, 40363 insertions, 25940 deletions
diff --git a/internal/helper/chunk/pb/test.pb.go b/internal/helper/chunk/pb/test.pb.go deleted file mode 100644 index 523d1237e..000000000 --- a/internal/helper/chunk/pb/test.pb.go +++ /dev/null @@ -1,231 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: test.proto - -package test - -import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type StreamOutputRequest struct { - BytesToReturn int32 `protobuf:"varint,1,opt,name=bytes_to_return,json=bytesToReturn,proto3" json:"bytes_to_return,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StreamOutputRequest) Reset() { *m = StreamOutputRequest{} } -func (m *StreamOutputRequest) String() string { return proto.CompactTextString(m) } -func (*StreamOutputRequest) ProtoMessage() {} -func (*StreamOutputRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c161fcfdc0c3ff1e, []int{0} -} - -func (m *StreamOutputRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StreamOutputRequest.Unmarshal(m, b) -} -func (m *StreamOutputRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StreamOutputRequest.Marshal(b, m, deterministic) -} -func (m *StreamOutputRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamOutputRequest.Merge(m, src) -} -func (m *StreamOutputRequest) XXX_Size() int { - return xxx_messageInfo_StreamOutputRequest.Size(m) -} -func (m *StreamOutputRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StreamOutputRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_StreamOutputRequest proto.InternalMessageInfo - -func (m *StreamOutputRequest) GetBytesToReturn() int32 { - if m != nil { - return m.BytesToReturn - } - return 0 -} - -type StreamOutputResponse struct { - Msg [][]byte `protobuf:"bytes,1,rep,name=msg,proto3" json:"msg,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StreamOutputResponse) Reset() { *m = StreamOutputResponse{} } -func (m *StreamOutputResponse) String() string { return proto.CompactTextString(m) } -func (*StreamOutputResponse) ProtoMessage() {} -func (*StreamOutputResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c161fcfdc0c3ff1e, []int{1} -} - -func (m *StreamOutputResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StreamOutputResponse.Unmarshal(m, b) -} -func (m *StreamOutputResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StreamOutputResponse.Marshal(b, m, deterministic) -} -func (m *StreamOutputResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamOutputResponse.Merge(m, src) -} -func (m *StreamOutputResponse) XXX_Size() int { - return xxx_messageInfo_StreamOutputResponse.Size(m) -} -func (m *StreamOutputResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StreamOutputResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StreamOutputResponse proto.InternalMessageInfo - -func (m *StreamOutputResponse) GetMsg() [][]byte { - if m != nil { - return m.Msg - } - return nil -} - -func init() { - proto.RegisterType((*StreamOutputRequest)(nil), "test.StreamOutputRequest") - proto.RegisterType((*StreamOutputResponse)(nil), "test.StreamOutputResponse") -} - -func init() { proto.RegisterFile("test.proto", fileDescriptor_c161fcfdc0c3ff1e) } - -var fileDescriptor_c161fcfdc0c3ff1e = []byte{ - // 160 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2a, 0x49, 0x2d, 0x2e, - 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x01, 0xb1, 0x95, 0x6c, 0xb9, 0x84, 0x83, 0x4b, - 0x8a, 0x52, 0x13, 0x73, 0xfd, 0x4b, 0x4b, 0x0a, 0x4a, 0x4b, 0x82, 0x52, 0x0b, 0x4b, 0x53, 0x8b, - 0x4b, 0x84, 0xd4, 0xb8, 0xf8, 0x93, 0x2a, 0x4b, 0x52, 0x8b, 0xe3, 0x4b, 0xf2, 0xe3, 0x8b, 0x52, - 0x4b, 0x4a, 0x8b, 0xf2, 0x24, 0x18, 0x15, 0x18, 0x35, 0x58, 0x83, 0x78, 0xc1, 0xc2, 0x21, 0xf9, - 0x41, 0x60, 0x41, 0x25, 0x0d, 0x2e, 0x11, 0x54, 0xed, 0xc5, 0x05, 0xf9, 0x79, 0xc5, 0xa9, 0x42, - 0x02, 0x5c, 0xcc, 0xb9, 0xc5, 0xe9, 0x12, 0x8c, 0x0a, 0xcc, 0x1a, 0x3c, 0x41, 0x20, 0xa6, 0x51, - 0x20, 0x17, 0x4b, 0x08, 0xc8, 0x64, 0x4f, 0x2e, 0x1e, 0x64, 0x1d, 0x42, 0x92, 0x7a, 0x60, 0x37, - 0x61, 0x71, 0x84, 0x94, 0x14, 0x36, 0x29, 0x88, 0x05, 0x4a, 0x0c, 0x06, 0x8c, 0x49, 0x6c, 0x60, - 0x8f, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xae, 0x1b, 0x22, 0xff, 0xd6, 0x00, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// TestClient is the client API for Test service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type TestClient interface { - StreamOutput(ctx context.Context, in *StreamOutputRequest, opts ...grpc.CallOption) (Test_StreamOutputClient, error) -} - -type testClient struct { - cc *grpc.ClientConn -} - -func NewTestClient(cc *grpc.ClientConn) TestClient { - return &testClient{cc} -} - -func (c *testClient) StreamOutput(ctx context.Context, in *StreamOutputRequest, opts ...grpc.CallOption) (Test_StreamOutputClient, error) { - stream, err := c.cc.NewStream(ctx, &_Test_serviceDesc.Streams[0], "/test.Test/StreamOutput", opts...) - if err != nil { - return nil, err - } - x := &testStreamOutputClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Test_StreamOutputClient interface { - Recv() (*StreamOutputResponse, error) - grpc.ClientStream -} - -type testStreamOutputClient struct { - grpc.ClientStream -} - -func (x *testStreamOutputClient) Recv() (*StreamOutputResponse, error) { - m := new(StreamOutputResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// TestServer is the server API for Test service. -type TestServer interface { - StreamOutput(*StreamOutputRequest, Test_StreamOutputServer) error -} - -// UnimplementedTestServer can be embedded to have forward compatible implementations. -type UnimplementedTestServer struct { -} - -func (*UnimplementedTestServer) StreamOutput(req *StreamOutputRequest, srv Test_StreamOutputServer) error { - return status.Errorf(codes.Unimplemented, "method StreamOutput not implemented") -} - -func RegisterTestServer(s *grpc.Server, srv TestServer) { - s.RegisterService(&_Test_serviceDesc, srv) -} - -func _Test_StreamOutput_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(StreamOutputRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TestServer).StreamOutput(m, &testStreamOutputServer{stream}) -} - -type Test_StreamOutputServer interface { - Send(*StreamOutputResponse) error - grpc.ServerStream -} - -type testStreamOutputServer struct { - grpc.ServerStream -} - -func (x *testStreamOutputServer) Send(m *StreamOutputResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _Test_serviceDesc = grpc.ServiceDesc{ - ServiceName: "test.Test", - HandlerType: (*TestServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "StreamOutput", - Handler: _Test_StreamOutput_Handler, - ServerStreams: true, - }, - }, - Metadata: "test.proto", -} diff --git a/internal/helper/chunk/testdata/test.pb.go b/internal/helper/chunk/testdata/test.pb.go new file mode 100644 index 000000000..68affd44b --- /dev/null +++ b/internal/helper/chunk/testdata/test.pb.go @@ -0,0 +1,219 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 +// source: helper/chunk/testdata/test.proto + +package testdata + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type StreamOutputRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BytesToReturn int32 `protobuf:"varint,1,opt,name=bytes_to_return,json=bytesToReturn,proto3" json:"bytes_to_return,omitempty"` +} + +func (x *StreamOutputRequest) Reset() { + *x = StreamOutputRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_helper_chunk_testdata_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StreamOutputRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamOutputRequest) ProtoMessage() {} + +func (x *StreamOutputRequest) ProtoReflect() protoreflect.Message { + mi := &file_helper_chunk_testdata_test_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StreamOutputRequest.ProtoReflect.Descriptor instead. +func (*StreamOutputRequest) Descriptor() ([]byte, []int) { + return file_helper_chunk_testdata_test_proto_rawDescGZIP(), []int{0} +} + +func (x *StreamOutputRequest) GetBytesToReturn() int32 { + if x != nil { + return x.BytesToReturn + } + return 0 +} + +type StreamOutputResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg [][]byte `protobuf:"bytes,1,rep,name=msg,proto3" json:"msg,omitempty"` +} + +func (x *StreamOutputResponse) Reset() { + *x = StreamOutputResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_helper_chunk_testdata_test_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StreamOutputResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamOutputResponse) ProtoMessage() {} + +func (x *StreamOutputResponse) ProtoReflect() protoreflect.Message { + mi := &file_helper_chunk_testdata_test_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StreamOutputResponse.ProtoReflect.Descriptor instead. +func (*StreamOutputResponse) Descriptor() ([]byte, []int) { + return file_helper_chunk_testdata_test_proto_rawDescGZIP(), []int{1} +} + +func (x *StreamOutputResponse) GetMsg() [][]byte { + if x != nil { + return x.Msg + } + return nil +} + +var File_helper_chunk_testdata_test_proto protoreflect.FileDescriptor + +var file_helper_chunk_testdata_test_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x68, 0x65, 0x6c, 0x70, 0x65, 0x72, 0x2f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2f, 0x74, + 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x22, 0x3d, + 0x0a, 0x13, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x74, + 0x6f, 0x5f, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x54, 0x6f, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x22, 0x28, 0x0a, + 0x14, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0c, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x32, 0x5d, 0x0a, 0x04, 0x54, 0x65, 0x73, 0x74, 0x12, + 0x55, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, + 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2e, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2e, 0x53, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x41, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x2f, 0x68, 0x65, 0x6c, 0x70, 0x65, 0x72, 0x2f, 0x63, 0x68, 0x75, 0x6e, 0x6b, + 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_helper_chunk_testdata_test_proto_rawDescOnce sync.Once + file_helper_chunk_testdata_test_proto_rawDescData = file_helper_chunk_testdata_test_proto_rawDesc +) + +func file_helper_chunk_testdata_test_proto_rawDescGZIP() []byte { + file_helper_chunk_testdata_test_proto_rawDescOnce.Do(func() { + file_helper_chunk_testdata_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_helper_chunk_testdata_test_proto_rawDescData) + }) + return file_helper_chunk_testdata_test_proto_rawDescData +} + +var file_helper_chunk_testdata_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_helper_chunk_testdata_test_proto_goTypes = []interface{}{ + (*StreamOutputRequest)(nil), // 0: test.chunk.StreamOutputRequest + (*StreamOutputResponse)(nil), // 1: test.chunk.StreamOutputResponse +} +var file_helper_chunk_testdata_test_proto_depIdxs = []int32{ + 0, // 0: test.chunk.Test.StreamOutput:input_type -> test.chunk.StreamOutputRequest + 1, // 1: test.chunk.Test.StreamOutput:output_type -> test.chunk.StreamOutputResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_helper_chunk_testdata_test_proto_init() } +func file_helper_chunk_testdata_test_proto_init() { + if File_helper_chunk_testdata_test_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_helper_chunk_testdata_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StreamOutputRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_helper_chunk_testdata_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StreamOutputResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_helper_chunk_testdata_test_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_helper_chunk_testdata_test_proto_goTypes, + DependencyIndexes: file_helper_chunk_testdata_test_proto_depIdxs, + MessageInfos: file_helper_chunk_testdata_test_proto_msgTypes, + }.Build() + File_helper_chunk_testdata_test_proto = out.File + file_helper_chunk_testdata_test_proto_rawDesc = nil + file_helper_chunk_testdata_test_proto_goTypes = nil + file_helper_chunk_testdata_test_proto_depIdxs = nil +} diff --git a/internal/helper/chunk/testdata/test_grpc.pb.go b/internal/helper/chunk/testdata/test_grpc.pb.go new file mode 100644 index 000000000..8fb81eba7 --- /dev/null +++ b/internal/helper/chunk/testdata/test_grpc.pb.go @@ -0,0 +1,128 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package testdata + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// TestClient is the client API for Test service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type TestClient interface { + StreamOutput(ctx context.Context, in *StreamOutputRequest, opts ...grpc.CallOption) (Test_StreamOutputClient, error) +} + +type testClient struct { + cc grpc.ClientConnInterface +} + +func NewTestClient(cc grpc.ClientConnInterface) TestClient { + return &testClient{cc} +} + +func (c *testClient) StreamOutput(ctx context.Context, in *StreamOutputRequest, opts ...grpc.CallOption) (Test_StreamOutputClient, error) { + stream, err := c.cc.NewStream(ctx, &Test_ServiceDesc.Streams[0], "/test.chunk.Test/StreamOutput", opts...) + if err != nil { + return nil, err + } + x := &testStreamOutputClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Test_StreamOutputClient interface { + Recv() (*StreamOutputResponse, error) + grpc.ClientStream +} + +type testStreamOutputClient struct { + grpc.ClientStream +} + +func (x *testStreamOutputClient) Recv() (*StreamOutputResponse, error) { + m := new(StreamOutputResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// TestServer is the server API for Test service. +// All implementations must embed UnimplementedTestServer +// for forward compatibility +type TestServer interface { + StreamOutput(*StreamOutputRequest, Test_StreamOutputServer) error + mustEmbedUnimplementedTestServer() +} + +// UnimplementedTestServer must be embedded to have forward compatible implementations. +type UnimplementedTestServer struct { +} + +func (UnimplementedTestServer) StreamOutput(*StreamOutputRequest, Test_StreamOutputServer) error { + return status.Errorf(codes.Unimplemented, "method StreamOutput not implemented") +} +func (UnimplementedTestServer) mustEmbedUnimplementedTestServer() {} + +// UnsafeTestServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to TestServer will +// result in compilation errors. +type UnsafeTestServer interface { + mustEmbedUnimplementedTestServer() +} + +func RegisterTestServer(s grpc.ServiceRegistrar, srv TestServer) { + s.RegisterService(&Test_ServiceDesc, srv) +} + +func _Test_StreamOutput_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(StreamOutputRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(TestServer).StreamOutput(m, &testStreamOutputServer{stream}) +} + +type Test_StreamOutputServer interface { + Send(*StreamOutputResponse) error + grpc.ServerStream +} + +type testStreamOutputServer struct { + grpc.ServerStream +} + +func (x *testStreamOutputServer) Send(m *StreamOutputResponse) error { + return x.ServerStream.SendMsg(m) +} + +// Test_ServiceDesc is the grpc.ServiceDesc for Test service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Test_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "test.chunk.Test", + HandlerType: (*TestServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamOutput", + Handler: _Test_StreamOutput_Handler, + ServerStreams: true, + }, + }, + Metadata: "helper/chunk/testdata/test.proto", +} diff --git a/internal/middleware/cache/testdata/stream.pb.go b/internal/middleware/cache/testdata/stream.pb.go index 25c82a446..dc2cfdc5d 100644 --- a/internal/middleware/cache/testdata/stream.pb.go +++ b/internal/middleware/cache/testdata/stream.pb.go @@ -1,443 +1,240 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: middleware/cache/testdata/stream.proto package testdata import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" gitalypb "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Request struct { - Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Request) Reset() { *m = Request{} } -func (m *Request) String() string { return proto.CompactTextString(m) } -func (*Request) ProtoMessage() {} -func (*Request) Descriptor() ([]byte, []int) { - return fileDescriptor_a8c7bc703e280c1d, []int{0} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Request) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Request.Unmarshal(m, b) -} -func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Request.Marshal(b, m, deterministic) -} -func (m *Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Request.Merge(m, src) -} -func (m *Request) XXX_Size() int { - return xxx_messageInfo_Request.Size(m) -} -func (m *Request) XXX_DiscardUnknown() { - xxx_messageInfo_Request.DiscardUnknown(m) + Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` } -var xxx_messageInfo_Request proto.InternalMessageInfo - -func (m *Request) GetDestination() *gitalypb.Repository { - if m != nil { - return m.Destination +func (x *Request) Reset() { + *x = Request{} + if protoimpl.UnsafeEnabled { + mi := &file_middleware_cache_testdata_stream_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type Response struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Response) Reset() { *m = Response{} } -func (m *Response) String() string { return proto.CompactTextString(m) } -func (*Response) ProtoMessage() {} -func (*Response) Descriptor() ([]byte, []int) { - return fileDescriptor_a8c7bc703e280c1d, []int{1} -} +func (*Request) ProtoMessage() {} -func (m *Response) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Response.Unmarshal(m, b) -} -func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Response.Marshal(b, m, deterministic) -} -func (m *Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Response.Merge(m, src) -} -func (m *Response) XXX_Size() int { - return xxx_messageInfo_Response.Size(m) -} -func (m *Response) XXX_DiscardUnknown() { - xxx_messageInfo_Response.DiscardUnknown(m) -} - -var xxx_messageInfo_Response proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Request)(nil), "testdata.Request") - proto.RegisterType((*Response)(nil), "testdata.Response") -} - -func init() { - proto.RegisterFile("middleware/cache/testdata/stream.proto", fileDescriptor_a8c7bc703e280c1d) -} - -var fileDescriptor_a8c7bc703e280c1d = []byte{ - // 293 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0x41, 0x4a, 0xc3, 0x40, - 0x14, 0x86, 0x99, 0x52, 0x6a, 0x78, 0xd1, 0x85, 0xb3, 0xd0, 0x92, 0x95, 0x64, 0x21, 0x59, 0x48, - 0x52, 0x22, 0xb8, 0x70, 0xa7, 0x22, 0x5a, 0xa5, 0x9b, 0x54, 0x0f, 0x30, 0xce, 0x3c, 0x9a, 0x81, - 0x74, 0x26, 0xce, 0xbc, 0x2a, 0x39, 0x49, 0xbd, 0x8a, 0x17, 0xf0, 0x3c, 0xae, 0x5d, 0x89, 0x8d, - 0x91, 0xe2, 0x4a, 0xbb, 0x9c, 0x8f, 0xe1, 0xe3, 0xfb, 0x79, 0x70, 0x38, 0xd7, 0x4a, 0x55, 0xf8, - 0x2c, 0x1c, 0x66, 0x52, 0xc8, 0x12, 0x33, 0x42, 0x4f, 0x4a, 0x90, 0xc8, 0x3c, 0x39, 0x14, 0xf3, - 0xb4, 0x76, 0x96, 0x2c, 0x0f, 0x3a, 0x1c, 0x41, 0xa5, 0x0d, 0xb5, 0x34, 0xda, 0xf6, 0xa5, 0x70, - 0xa8, 0xda, 0x57, 0x7c, 0x09, 0x5b, 0x05, 0x3e, 0x2e, 0xd0, 0x13, 0x3f, 0x85, 0x50, 0xa1, 0x27, - 0x6d, 0x04, 0x69, 0x6b, 0x86, 0xec, 0x80, 0x25, 0x61, 0xce, 0xd3, 0x99, 0x26, 0x51, 0x35, 0x69, - 0x81, 0xb5, 0xf5, 0x9a, 0xac, 0x6b, 0xce, 0xfb, 0x2f, 0x6f, 0x47, 0xac, 0x58, 0xff, 0x1c, 0x03, - 0x04, 0x05, 0xfa, 0xda, 0x1a, 0x8f, 0x79, 0x01, 0x7c, 0x6c, 0x08, 0x9d, 0xc4, 0x9a, 0x50, 0x4d, - 0xd1, 0x3d, 0x69, 0x89, 0xfc, 0x04, 0x76, 0xc6, 0x33, 0x63, 0x1d, 0xaa, 0x09, 0x52, 0x69, 0x15, - 0xdf, 0x4d, 0xbb, 0xbc, 0xf4, 0xbb, 0x20, 0xe2, 0xeb, 0xa8, 0xb5, 0x45, 0xfd, 0xf7, 0x65, 0xc2, - 0xf2, 0xd7, 0x1e, 0x84, 0x77, 0xe8, 0xa9, 0xb3, 0xdd, 0xc0, 0xfe, 0x45, 0xa5, 0xd1, 0xd0, 0x74, - 0x35, 0xf8, 0x2b, 0x6e, 0xb2, 0x20, 0x41, 0xd6, 0xfd, 0xd1, 0x1b, 0x0f, 0x3e, 0x96, 0x49, 0x2f, - 0x60, 0x23, 0xc6, 0x6f, 0x61, 0xf8, 0xdb, 0x75, 0x26, 0x25, 0x7a, 0xff, 0x5f, 0x59, 0x6f, 0xc4, - 0xf8, 0x15, 0xec, 0xb5, 0xb2, 0x7b, 0x23, 0x5c, 0xb3, 0x79, 0x17, 0xbf, 0xee, 0x16, 0xfe, 0x88, - 0x36, 0x8c, 0x7a, 0x18, 0xac, 0x2e, 0x7d, 0xfc, 0x19, 0x00, 0x00, 0xff, 0xff, 0x34, 0xce, 0x60, - 0xcf, 0x37, 0x02, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// InterceptedServiceClient is the client API for InterceptedService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type InterceptedServiceClient interface { - IgnoredMethod(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) -} - -type interceptedServiceClient struct { - cc *grpc.ClientConn -} - -func NewInterceptedServiceClient(cc *grpc.ClientConn) InterceptedServiceClient { - return &interceptedServiceClient{cc} -} - -func (c *interceptedServiceClient) IgnoredMethod(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) { - out := new(Response) - err := c.cc.Invoke(ctx, "/testdata.InterceptedService/IgnoredMethod", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// InterceptedServiceServer is the server API for InterceptedService service. -type InterceptedServiceServer interface { - IgnoredMethod(context.Context, *Request) (*Response, error) -} - -// UnimplementedInterceptedServiceServer can be embedded to have forward compatible implementations. -type UnimplementedInterceptedServiceServer struct { -} - -func (*UnimplementedInterceptedServiceServer) IgnoredMethod(ctx context.Context, req *Request) (*Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method IgnoredMethod not implemented") -} - -func RegisterInterceptedServiceServer(s *grpc.Server, srv InterceptedServiceServer) { - s.RegisterService(&_InterceptedService_serviceDesc, srv) -} - -func _InterceptedService_IgnoredMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InterceptedServiceServer).IgnoredMethod(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/testdata.InterceptedService/IgnoredMethod", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InterceptedServiceServer).IgnoredMethod(ctx, req.(*Request)) +func (x *Request) ProtoReflect() protoreflect.Message { + mi := &file_middleware_cache_testdata_stream_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -var _InterceptedService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "testdata.InterceptedService", - HandlerType: (*InterceptedServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "IgnoredMethod", - Handler: _InterceptedService_IgnoredMethod_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "middleware/cache/testdata/stream.proto", -} - -// TestServiceClient is the client API for TestService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type TestServiceClient interface { - ClientStreamRepoMutator(ctx context.Context, in *Request, opts ...grpc.CallOption) (TestService_ClientStreamRepoMutatorClient, error) - ClientStreamRepoAccessor(ctx context.Context, in *Request, opts ...grpc.CallOption) (TestService_ClientStreamRepoAccessorClient, error) - ClientUnaryRepoMutator(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) - ClientUnaryRepoAccessor(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) -} - -type testServiceClient struct { - cc *grpc.ClientConn -} - -func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient { - return &testServiceClient{cc} -} - -func (c *testServiceClient) ClientStreamRepoMutator(ctx context.Context, in *Request, opts ...grpc.CallOption) (TestService_ClientStreamRepoMutatorClient, error) { - stream, err := c.cc.NewStream(ctx, &_TestService_serviceDesc.Streams[0], "/testdata.TestService/ClientStreamRepoMutator", opts...) - if err != nil { - return nil, err - } - x := &testServiceClientStreamRepoMutatorClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TestService_ClientStreamRepoMutatorClient interface { - Recv() (*Response, error) - grpc.ClientStream -} - -type testServiceClientStreamRepoMutatorClient struct { - grpc.ClientStream -} - -func (x *testServiceClientStreamRepoMutatorClient) Recv() (*Response, error) { - m := new(Response) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *testServiceClient) ClientStreamRepoAccessor(ctx context.Context, in *Request, opts ...grpc.CallOption) (TestService_ClientStreamRepoAccessorClient, error) { - stream, err := c.cc.NewStream(ctx, &_TestService_serviceDesc.Streams[1], "/testdata.TestService/ClientStreamRepoAccessor", opts...) - if err != nil { - return nil, err - } - x := &testServiceClientStreamRepoAccessorClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type TestService_ClientStreamRepoAccessorClient interface { - Recv() (*Response, error) - grpc.ClientStream -} - -type testServiceClientStreamRepoAccessorClient struct { - grpc.ClientStream -} - -func (x *testServiceClientStreamRepoAccessorClient) Recv() (*Response, error) { - m := new(Response) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *testServiceClient) ClientUnaryRepoMutator(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) { - out := new(Response) - err := c.cc.Invoke(ctx, "/testdata.TestService/ClientUnaryRepoMutator", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *testServiceClient) ClientUnaryRepoAccessor(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) { - out := new(Response) - err := c.cc.Invoke(ctx, "/testdata.TestService/ClientUnaryRepoAccessor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// TestServiceServer is the server API for TestService service. -type TestServiceServer interface { - ClientStreamRepoMutator(*Request, TestService_ClientStreamRepoMutatorServer) error - ClientStreamRepoAccessor(*Request, TestService_ClientStreamRepoAccessorServer) error - ClientUnaryRepoMutator(context.Context, *Request) (*Response, error) - ClientUnaryRepoAccessor(context.Context, *Request) (*Response, error) -} - -// UnimplementedTestServiceServer can be embedded to have forward compatible implementations. -type UnimplementedTestServiceServer struct { -} - -func (*UnimplementedTestServiceServer) ClientStreamRepoMutator(req *Request, srv TestService_ClientStreamRepoMutatorServer) error { - return status.Errorf(codes.Unimplemented, "method ClientStreamRepoMutator not implemented") -} -func (*UnimplementedTestServiceServer) ClientStreamRepoAccessor(req *Request, srv TestService_ClientStreamRepoAccessorServer) error { - return status.Errorf(codes.Unimplemented, "method ClientStreamRepoAccessor not implemented") -} -func (*UnimplementedTestServiceServer) ClientUnaryRepoMutator(ctx context.Context, req *Request) (*Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClientUnaryRepoMutator not implemented") -} -func (*UnimplementedTestServiceServer) ClientUnaryRepoAccessor(ctx context.Context, req *Request) (*Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClientUnaryRepoAccessor not implemented") -} - -func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer) { - s.RegisterService(&_TestService_serviceDesc, srv) +// Deprecated: Use Request.ProtoReflect.Descriptor instead. +func (*Request) Descriptor() ([]byte, []int) { + return file_middleware_cache_testdata_stream_proto_rawDescGZIP(), []int{0} } -func _TestService_ClientStreamRepoMutator_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(Request) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *Request) GetDestination() *gitalypb.Repository { + if x != nil { + return x.Destination } - return srv.(TestServiceServer).ClientStreamRepoMutator(m, &testServiceClientStreamRepoMutatorServer{stream}) -} - -type TestService_ClientStreamRepoMutatorServer interface { - Send(*Response) error - grpc.ServerStream -} - -type testServiceClientStreamRepoMutatorServer struct { - grpc.ServerStream + return nil } -func (x *testServiceClientStreamRepoMutatorServer) Send(m *Response) error { - return x.ServerStream.SendMsg(m) +type Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func _TestService_ClientStreamRepoAccessor_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(Request) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *Response) Reset() { + *x = Response{} + if protoimpl.UnsafeEnabled { + mi := &file_middleware_cache_testdata_stream_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(TestServiceServer).ClientStreamRepoAccessor(m, &testServiceClientStreamRepoAccessorServer{stream}) -} - -type TestService_ClientStreamRepoAccessorServer interface { - Send(*Response) error - grpc.ServerStream } -type testServiceClientStreamRepoAccessorServer struct { - grpc.ServerStream +func (x *Response) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *testServiceClientStreamRepoAccessorServer) Send(m *Response) error { - return x.ServerStream.SendMsg(m) -} +func (*Response) ProtoMessage() {} -func _TestService_ClientUnaryRepoMutator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TestServiceServer).ClientUnaryRepoMutator(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/testdata.TestService/ClientUnaryRepoMutator", +func (x *Response) ProtoReflect() protoreflect.Message { + mi := &file_middleware_cache_testdata_stream_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TestServiceServer).ClientUnaryRepoMutator(ctx, req.(*Request)) - } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _TestService_ClientUnaryRepoAccessor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TestServiceServer).ClientUnaryRepoAccessor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/testdata.TestService/ClientUnaryRepoAccessor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TestServiceServer).ClientUnaryRepoAccessor(ctx, req.(*Request)) - } - return interceptor(ctx, in, info, handler) -} +// Deprecated: Use Response.ProtoReflect.Descriptor instead. +func (*Response) Descriptor() ([]byte, []int) { + return file_middleware_cache_testdata_stream_proto_rawDescGZIP(), []int{1} +} + +var File_middleware_cache_testdata_stream_proto protoreflect.FileDescriptor + +var file_middleware_cache_testdata_stream_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x6d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 0x2f, 0x63, 0x61, 0x63, + 0x68, 0x65, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x73, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, + 0x74, 0x61, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x45, 0x0a, 0x07, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x0a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, + 0x52, 0x0a, 0x12, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x0d, 0x49, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x64, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x11, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x04, 0xf0, + 0x97, 0x28, 0x01, 0x32, 0xb9, 0x02, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x17, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x52, 0x65, 0x70, 0x6f, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x11, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x30, 0x01, 0x12, + 0x4b, 0x0a, 0x18, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, + 0x65, 0x70, 0x6f, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x11, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x47, 0x0a, 0x16, + 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x4d, + 0x75, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x11, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, + 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x48, 0x0a, 0x17, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x55, + 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, + 0x12, 0x11, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x42, + 0x45, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, + 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, + 0x76, 0x31, 0x34, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6d, 0x69, 0x64, + 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 0x2f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2f, 0x74, 0x65, + 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_middleware_cache_testdata_stream_proto_rawDescOnce sync.Once + file_middleware_cache_testdata_stream_proto_rawDescData = file_middleware_cache_testdata_stream_proto_rawDesc +) -var _TestService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "testdata.TestService", - HandlerType: (*TestServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ClientUnaryRepoMutator", - Handler: _TestService_ClientUnaryRepoMutator_Handler, - }, - { - MethodName: "ClientUnaryRepoAccessor", - Handler: _TestService_ClientUnaryRepoAccessor_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "ClientStreamRepoMutator", - Handler: _TestService_ClientStreamRepoMutator_Handler, - ServerStreams: true, - }, - { - StreamName: "ClientStreamRepoAccessor", - Handler: _TestService_ClientStreamRepoAccessor_Handler, - ServerStreams: true, +func file_middleware_cache_testdata_stream_proto_rawDescGZIP() []byte { + file_middleware_cache_testdata_stream_proto_rawDescOnce.Do(func() { + file_middleware_cache_testdata_stream_proto_rawDescData = protoimpl.X.CompressGZIP(file_middleware_cache_testdata_stream_proto_rawDescData) + }) + return file_middleware_cache_testdata_stream_proto_rawDescData +} + +var file_middleware_cache_testdata_stream_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_middleware_cache_testdata_stream_proto_goTypes = []interface{}{ + (*Request)(nil), // 0: testdata.Request + (*Response)(nil), // 1: testdata.Response + (*gitalypb.Repository)(nil), // 2: gitaly.Repository +} +var file_middleware_cache_testdata_stream_proto_depIdxs = []int32{ + 2, // 0: testdata.Request.destination:type_name -> gitaly.Repository + 0, // 1: testdata.InterceptedService.IgnoredMethod:input_type -> testdata.Request + 0, // 2: testdata.TestService.ClientStreamRepoMutator:input_type -> testdata.Request + 0, // 3: testdata.TestService.ClientStreamRepoAccessor:input_type -> testdata.Request + 0, // 4: testdata.TestService.ClientUnaryRepoMutator:input_type -> testdata.Request + 0, // 5: testdata.TestService.ClientUnaryRepoAccessor:input_type -> testdata.Request + 1, // 6: testdata.InterceptedService.IgnoredMethod:output_type -> testdata.Response + 1, // 7: testdata.TestService.ClientStreamRepoMutator:output_type -> testdata.Response + 1, // 8: testdata.TestService.ClientStreamRepoAccessor:output_type -> testdata.Response + 1, // 9: testdata.TestService.ClientUnaryRepoMutator:output_type -> testdata.Response + 1, // 10: testdata.TestService.ClientUnaryRepoAccessor:output_type -> testdata.Response + 6, // [6:11] is the sub-list for method output_type + 1, // [1:6] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_middleware_cache_testdata_stream_proto_init() } +func file_middleware_cache_testdata_stream_proto_init() { + if File_middleware_cache_testdata_stream_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_middleware_cache_testdata_stream_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleware_cache_testdata_stream_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_middleware_cache_testdata_stream_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 2, }, - }, - Metadata: "middleware/cache/testdata/stream.proto", + GoTypes: file_middleware_cache_testdata_stream_proto_goTypes, + DependencyIndexes: file_middleware_cache_testdata_stream_proto_depIdxs, + MessageInfos: file_middleware_cache_testdata_stream_proto_msgTypes, + }.Build() + File_middleware_cache_testdata_stream_proto = out.File + file_middleware_cache_testdata_stream_proto_rawDesc = nil + file_middleware_cache_testdata_stream_proto_goTypes = nil + file_middleware_cache_testdata_stream_proto_depIdxs = nil } diff --git a/internal/middleware/cache/testdata/stream_grpc.pb.go b/internal/middleware/cache/testdata/stream_grpc.pb.go new file mode 100644 index 000000000..ec9aaa71e --- /dev/null +++ b/internal/middleware/cache/testdata/stream_grpc.pb.go @@ -0,0 +1,350 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package testdata + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// InterceptedServiceClient is the client API for InterceptedService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type InterceptedServiceClient interface { + IgnoredMethod(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) +} + +type interceptedServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewInterceptedServiceClient(cc grpc.ClientConnInterface) InterceptedServiceClient { + return &interceptedServiceClient{cc} +} + +func (c *interceptedServiceClient) IgnoredMethod(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/testdata.InterceptedService/IgnoredMethod", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// InterceptedServiceServer is the server API for InterceptedService service. +// All implementations must embed UnimplementedInterceptedServiceServer +// for forward compatibility +type InterceptedServiceServer interface { + IgnoredMethod(context.Context, *Request) (*Response, error) + mustEmbedUnimplementedInterceptedServiceServer() +} + +// UnimplementedInterceptedServiceServer must be embedded to have forward compatible implementations. +type UnimplementedInterceptedServiceServer struct { +} + +func (UnimplementedInterceptedServiceServer) IgnoredMethod(context.Context, *Request) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method IgnoredMethod not implemented") +} +func (UnimplementedInterceptedServiceServer) mustEmbedUnimplementedInterceptedServiceServer() {} + +// UnsafeInterceptedServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to InterceptedServiceServer will +// result in compilation errors. +type UnsafeInterceptedServiceServer interface { + mustEmbedUnimplementedInterceptedServiceServer() +} + +func RegisterInterceptedServiceServer(s grpc.ServiceRegistrar, srv InterceptedServiceServer) { + s.RegisterService(&InterceptedService_ServiceDesc, srv) +} + +func _InterceptedService_IgnoredMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InterceptedServiceServer).IgnoredMethod(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testdata.InterceptedService/IgnoredMethod", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InterceptedServiceServer).IgnoredMethod(ctx, req.(*Request)) + } + return interceptor(ctx, in, info, handler) +} + +// InterceptedService_ServiceDesc is the grpc.ServiceDesc for InterceptedService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var InterceptedService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "testdata.InterceptedService", + HandlerType: (*InterceptedServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "IgnoredMethod", + Handler: _InterceptedService_IgnoredMethod_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "middleware/cache/testdata/stream.proto", +} + +// TestServiceClient is the client API for TestService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type TestServiceClient interface { + ClientStreamRepoMutator(ctx context.Context, in *Request, opts ...grpc.CallOption) (TestService_ClientStreamRepoMutatorClient, error) + ClientStreamRepoAccessor(ctx context.Context, in *Request, opts ...grpc.CallOption) (TestService_ClientStreamRepoAccessorClient, error) + ClientUnaryRepoMutator(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) + ClientUnaryRepoAccessor(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) +} + +type testServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient { + return &testServiceClient{cc} +} + +func (c *testServiceClient) ClientStreamRepoMutator(ctx context.Context, in *Request, opts ...grpc.CallOption) (TestService_ClientStreamRepoMutatorClient, error) { + stream, err := c.cc.NewStream(ctx, &TestService_ServiceDesc.Streams[0], "/testdata.TestService/ClientStreamRepoMutator", opts...) + if err != nil { + return nil, err + } + x := &testServiceClientStreamRepoMutatorClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type TestService_ClientStreamRepoMutatorClient interface { + Recv() (*Response, error) + grpc.ClientStream +} + +type testServiceClientStreamRepoMutatorClient struct { + grpc.ClientStream +} + +func (x *testServiceClientStreamRepoMutatorClient) Recv() (*Response, error) { + m := new(Response) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *testServiceClient) ClientStreamRepoAccessor(ctx context.Context, in *Request, opts ...grpc.CallOption) (TestService_ClientStreamRepoAccessorClient, error) { + stream, err := c.cc.NewStream(ctx, &TestService_ServiceDesc.Streams[1], "/testdata.TestService/ClientStreamRepoAccessor", opts...) + if err != nil { + return nil, err + } + x := &testServiceClientStreamRepoAccessorClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type TestService_ClientStreamRepoAccessorClient interface { + Recv() (*Response, error) + grpc.ClientStream +} + +type testServiceClientStreamRepoAccessorClient struct { + grpc.ClientStream +} + +func (x *testServiceClientStreamRepoAccessorClient) Recv() (*Response, error) { + m := new(Response) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *testServiceClient) ClientUnaryRepoMutator(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/testdata.TestService/ClientUnaryRepoMutator", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testServiceClient) ClientUnaryRepoAccessor(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, "/testdata.TestService/ClientUnaryRepoAccessor", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// TestServiceServer is the server API for TestService service. +// All implementations must embed UnimplementedTestServiceServer +// for forward compatibility +type TestServiceServer interface { + ClientStreamRepoMutator(*Request, TestService_ClientStreamRepoMutatorServer) error + ClientStreamRepoAccessor(*Request, TestService_ClientStreamRepoAccessorServer) error + ClientUnaryRepoMutator(context.Context, *Request) (*Response, error) + ClientUnaryRepoAccessor(context.Context, *Request) (*Response, error) + mustEmbedUnimplementedTestServiceServer() +} + +// UnimplementedTestServiceServer must be embedded to have forward compatible implementations. +type UnimplementedTestServiceServer struct { +} + +func (UnimplementedTestServiceServer) ClientStreamRepoMutator(*Request, TestService_ClientStreamRepoMutatorServer) error { + return status.Errorf(codes.Unimplemented, "method ClientStreamRepoMutator not implemented") +} +func (UnimplementedTestServiceServer) ClientStreamRepoAccessor(*Request, TestService_ClientStreamRepoAccessorServer) error { + return status.Errorf(codes.Unimplemented, "method ClientStreamRepoAccessor not implemented") +} +func (UnimplementedTestServiceServer) ClientUnaryRepoMutator(context.Context, *Request) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClientUnaryRepoMutator not implemented") +} +func (UnimplementedTestServiceServer) ClientUnaryRepoAccessor(context.Context, *Request) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClientUnaryRepoAccessor not implemented") +} +func (UnimplementedTestServiceServer) mustEmbedUnimplementedTestServiceServer() {} + +// UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to TestServiceServer will +// result in compilation errors. +type UnsafeTestServiceServer interface { + mustEmbedUnimplementedTestServiceServer() +} + +func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer) { + s.RegisterService(&TestService_ServiceDesc, srv) +} + +func _TestService_ClientStreamRepoMutator_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(Request) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(TestServiceServer).ClientStreamRepoMutator(m, &testServiceClientStreamRepoMutatorServer{stream}) +} + +type TestService_ClientStreamRepoMutatorServer interface { + Send(*Response) error + grpc.ServerStream +} + +type testServiceClientStreamRepoMutatorServer struct { + grpc.ServerStream +} + +func (x *testServiceClientStreamRepoMutatorServer) Send(m *Response) error { + return x.ServerStream.SendMsg(m) +} + +func _TestService_ClientStreamRepoAccessor_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(Request) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(TestServiceServer).ClientStreamRepoAccessor(m, &testServiceClientStreamRepoAccessorServer{stream}) +} + +type TestService_ClientStreamRepoAccessorServer interface { + Send(*Response) error + grpc.ServerStream +} + +type testServiceClientStreamRepoAccessorServer struct { + grpc.ServerStream +} + +func (x *testServiceClientStreamRepoAccessorServer) Send(m *Response) error { + return x.ServerStream.SendMsg(m) +} + +func _TestService_ClientUnaryRepoMutator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestServiceServer).ClientUnaryRepoMutator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testdata.TestService/ClientUnaryRepoMutator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestServiceServer).ClientUnaryRepoMutator(ctx, req.(*Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestService_ClientUnaryRepoAccessor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestServiceServer).ClientUnaryRepoAccessor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testdata.TestService/ClientUnaryRepoAccessor", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestServiceServer).ClientUnaryRepoAccessor(ctx, req.(*Request)) + } + return interceptor(ctx, in, info, handler) +} + +// TestService_ServiceDesc is the grpc.ServiceDesc for TestService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var TestService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "testdata.TestService", + HandlerType: (*TestServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ClientUnaryRepoMutator", + Handler: _TestService_ClientUnaryRepoMutator_Handler, + }, + { + MethodName: "ClientUnaryRepoAccessor", + Handler: _TestService_ClientUnaryRepoAccessor_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "ClientStreamRepoMutator", + Handler: _TestService_ClientStreamRepoMutator_Handler, + ServerStreams: true, + }, + { + StreamName: "ClientStreamRepoAccessor", + Handler: _TestService_ClientStreamRepoAccessor_Handler, + ServerStreams: true, + }, + }, + Metadata: "middleware/cache/testdata/stream.proto", +} diff --git a/internal/middleware/limithandler/testdata/test.pb.go b/internal/middleware/limithandler/testdata/test.pb.go new file mode 100644 index 000000000..166eb29b6 --- /dev/null +++ b/internal/middleware/limithandler/testdata/test.pb.go @@ -0,0 +1,577 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 +// source: middleware/limithandler/testdata/test.proto + +package testdata + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type UnaryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UnaryRequest) Reset() { + *x = UnaryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnaryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnaryRequest) ProtoMessage() {} + +func (x *UnaryRequest) ProtoReflect() protoreflect.Message { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnaryRequest.ProtoReflect.Descriptor instead. +func (*UnaryRequest) Descriptor() ([]byte, []int) { + return file_middleware_limithandler_testdata_test_proto_rawDescGZIP(), []int{0} +} + +type UnaryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` +} + +func (x *UnaryResponse) Reset() { + *x = UnaryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnaryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnaryResponse) ProtoMessage() {} + +func (x *UnaryResponse) ProtoReflect() protoreflect.Message { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnaryResponse.ProtoReflect.Descriptor instead. +func (*UnaryResponse) Descriptor() ([]byte, []int) { + return file_middleware_limithandler_testdata_test_proto_rawDescGZIP(), []int{1} +} + +func (x *UnaryResponse) GetOk() bool { + if x != nil { + return x.Ok + } + return false +} + +type StreamInputRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *StreamInputRequest) Reset() { + *x = StreamInputRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StreamInputRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamInputRequest) ProtoMessage() {} + +func (x *StreamInputRequest) ProtoReflect() protoreflect.Message { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StreamInputRequest.ProtoReflect.Descriptor instead. +func (*StreamInputRequest) Descriptor() ([]byte, []int) { + return file_middleware_limithandler_testdata_test_proto_rawDescGZIP(), []int{2} +} + +type StreamInputResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` +} + +func (x *StreamInputResponse) Reset() { + *x = StreamInputResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StreamInputResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamInputResponse) ProtoMessage() {} + +func (x *StreamInputResponse) ProtoReflect() protoreflect.Message { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StreamInputResponse.ProtoReflect.Descriptor instead. +func (*StreamInputResponse) Descriptor() ([]byte, []int) { + return file_middleware_limithandler_testdata_test_proto_rawDescGZIP(), []int{3} +} + +func (x *StreamInputResponse) GetOk() bool { + if x != nil { + return x.Ok + } + return false +} + +type StreamOutputRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *StreamOutputRequest) Reset() { + *x = StreamOutputRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StreamOutputRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamOutputRequest) ProtoMessage() {} + +func (x *StreamOutputRequest) ProtoReflect() protoreflect.Message { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StreamOutputRequest.ProtoReflect.Descriptor instead. +func (*StreamOutputRequest) Descriptor() ([]byte, []int) { + return file_middleware_limithandler_testdata_test_proto_rawDescGZIP(), []int{4} +} + +type StreamOutputResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` +} + +func (x *StreamOutputResponse) Reset() { + *x = StreamOutputResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StreamOutputResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamOutputResponse) ProtoMessage() {} + +func (x *StreamOutputResponse) ProtoReflect() protoreflect.Message { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StreamOutputResponse.ProtoReflect.Descriptor instead. +func (*StreamOutputResponse) Descriptor() ([]byte, []int) { + return file_middleware_limithandler_testdata_test_proto_rawDescGZIP(), []int{5} +} + +func (x *StreamOutputResponse) GetOk() bool { + if x != nil { + return x.Ok + } + return false +} + +type BidirectionalRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *BidirectionalRequest) Reset() { + *x = BidirectionalRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BidirectionalRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BidirectionalRequest) ProtoMessage() {} + +func (x *BidirectionalRequest) ProtoReflect() protoreflect.Message { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BidirectionalRequest.ProtoReflect.Descriptor instead. +func (*BidirectionalRequest) Descriptor() ([]byte, []int) { + return file_middleware_limithandler_testdata_test_proto_rawDescGZIP(), []int{6} +} + +type BidirectionalResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` +} + +func (x *BidirectionalResponse) Reset() { + *x = BidirectionalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BidirectionalResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BidirectionalResponse) ProtoMessage() {} + +func (x *BidirectionalResponse) ProtoReflect() protoreflect.Message { + mi := &file_middleware_limithandler_testdata_test_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BidirectionalResponse.ProtoReflect.Descriptor instead. +func (*BidirectionalResponse) Descriptor() ([]byte, []int) { + return file_middleware_limithandler_testdata_test_proto_rawDescGZIP(), []int{7} +} + +func (x *BidirectionalResponse) GetOk() bool { + if x != nil { + return x.Ok + } + return false +} + +var File_middleware_limithandler_testdata_test_proto protoreflect.FileDescriptor + +var file_middleware_limithandler_testdata_test_proto_rawDesc = []byte{ + 0x0a, 0x2b, 0x6d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x6d, + 0x69, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, + 0x74, 0x61, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x74, + 0x65, 0x73, 0x74, 0x2e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, + 0x22, 0x0e, 0x0a, 0x0c, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x22, 0x1f, 0x0a, 0x0d, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, + 0x6b, 0x22, 0x14, 0x0a, 0x12, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, 0x6e, 0x70, 0x75, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x25, 0x0a, 0x13, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, + 0x0a, 0x02, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x22, 0x15, + 0x0a, 0x13, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x26, 0x0a, 0x14, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x22, 0x16, 0x0a, + 0x14, 0x42, 0x69, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x27, 0x0a, 0x15, 0x42, 0x69, 0x64, 0x69, 0x72, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, + 0x0a, 0x02, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x32, 0x85, + 0x03, 0x0a, 0x04, 0x54, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x05, 0x55, 0x6e, 0x61, 0x72, 0x79, + 0x12, 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x68, 0x61, 0x6e, + 0x64, 0x6c, 0x65, 0x72, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x68, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, + 0x6e, 0x70, 0x75, 0x74, 0x12, 0x25, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, + 0x6e, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x2e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x2e, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x12, 0x63, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x26, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x27, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x68, 0x61, 0x6e, 0x64, + 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x68, 0x0a, 0x0d, + 0x42, 0x69, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x27, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x2e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, + 0x72, 0x2e, 0x42, 0x69, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x6c, 0x69, + 0x6d, 0x69, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x2e, 0x42, 0x69, 0x64, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x4c, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x2f, 0x6d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 0x2f, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74, + 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_middleware_limithandler_testdata_test_proto_rawDescOnce sync.Once + file_middleware_limithandler_testdata_test_proto_rawDescData = file_middleware_limithandler_testdata_test_proto_rawDesc +) + +func file_middleware_limithandler_testdata_test_proto_rawDescGZIP() []byte { + file_middleware_limithandler_testdata_test_proto_rawDescOnce.Do(func() { + file_middleware_limithandler_testdata_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_middleware_limithandler_testdata_test_proto_rawDescData) + }) + return file_middleware_limithandler_testdata_test_proto_rawDescData +} + +var file_middleware_limithandler_testdata_test_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_middleware_limithandler_testdata_test_proto_goTypes = []interface{}{ + (*UnaryRequest)(nil), // 0: test.limithandler.UnaryRequest + (*UnaryResponse)(nil), // 1: test.limithandler.UnaryResponse + (*StreamInputRequest)(nil), // 2: test.limithandler.StreamInputRequest + (*StreamInputResponse)(nil), // 3: test.limithandler.StreamInputResponse + (*StreamOutputRequest)(nil), // 4: test.limithandler.StreamOutputRequest + (*StreamOutputResponse)(nil), // 5: test.limithandler.StreamOutputResponse + (*BidirectionalRequest)(nil), // 6: test.limithandler.BidirectionalRequest + (*BidirectionalResponse)(nil), // 7: test.limithandler.BidirectionalResponse +} +var file_middleware_limithandler_testdata_test_proto_depIdxs = []int32{ + 0, // 0: test.limithandler.Test.Unary:input_type -> test.limithandler.UnaryRequest + 2, // 1: test.limithandler.Test.StreamInput:input_type -> test.limithandler.StreamInputRequest + 4, // 2: test.limithandler.Test.StreamOutput:input_type -> test.limithandler.StreamOutputRequest + 6, // 3: test.limithandler.Test.Bidirectional:input_type -> test.limithandler.BidirectionalRequest + 1, // 4: test.limithandler.Test.Unary:output_type -> test.limithandler.UnaryResponse + 3, // 5: test.limithandler.Test.StreamInput:output_type -> test.limithandler.StreamInputResponse + 5, // 6: test.limithandler.Test.StreamOutput:output_type -> test.limithandler.StreamOutputResponse + 7, // 7: test.limithandler.Test.Bidirectional:output_type -> test.limithandler.BidirectionalResponse + 4, // [4:8] is the sub-list for method output_type + 0, // [0:4] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_middleware_limithandler_testdata_test_proto_init() } +func file_middleware_limithandler_testdata_test_proto_init() { + if File_middleware_limithandler_testdata_test_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_middleware_limithandler_testdata_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnaryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleware_limithandler_testdata_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnaryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleware_limithandler_testdata_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StreamInputRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleware_limithandler_testdata_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StreamInputResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleware_limithandler_testdata_test_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StreamOutputRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleware_limithandler_testdata_test_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StreamOutputResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleware_limithandler_testdata_test_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BidirectionalRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_middleware_limithandler_testdata_test_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BidirectionalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_middleware_limithandler_testdata_test_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_middleware_limithandler_testdata_test_proto_goTypes, + DependencyIndexes: file_middleware_limithandler_testdata_test_proto_depIdxs, + MessageInfos: file_middleware_limithandler_testdata_test_proto_msgTypes, + }.Build() + File_middleware_limithandler_testdata_test_proto = out.File + file_middleware_limithandler_testdata_test_proto_rawDesc = nil + file_middleware_limithandler_testdata_test_proto_goTypes = nil + file_middleware_limithandler_testdata_test_proto_depIdxs = nil +} diff --git a/internal/middleware/limithandler/testdata/test_grpc.pb.go b/internal/middleware/limithandler/testdata/test_grpc.pb.go new file mode 100644 index 000000000..ba4cdb11b --- /dev/null +++ b/internal/middleware/limithandler/testdata/test_grpc.pb.go @@ -0,0 +1,303 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package testdata + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// TestClient is the client API for Test service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type TestClient interface { + Unary(ctx context.Context, in *UnaryRequest, opts ...grpc.CallOption) (*UnaryResponse, error) + StreamInput(ctx context.Context, opts ...grpc.CallOption) (Test_StreamInputClient, error) + StreamOutput(ctx context.Context, in *StreamOutputRequest, opts ...grpc.CallOption) (Test_StreamOutputClient, error) + Bidirectional(ctx context.Context, opts ...grpc.CallOption) (Test_BidirectionalClient, error) +} + +type testClient struct { + cc grpc.ClientConnInterface +} + +func NewTestClient(cc grpc.ClientConnInterface) TestClient { + return &testClient{cc} +} + +func (c *testClient) Unary(ctx context.Context, in *UnaryRequest, opts ...grpc.CallOption) (*UnaryResponse, error) { + out := new(UnaryResponse) + err := c.cc.Invoke(ctx, "/test.limithandler.Test/Unary", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testClient) StreamInput(ctx context.Context, opts ...grpc.CallOption) (Test_StreamInputClient, error) { + stream, err := c.cc.NewStream(ctx, &Test_ServiceDesc.Streams[0], "/test.limithandler.Test/StreamInput", opts...) + if err != nil { + return nil, err + } + x := &testStreamInputClient{stream} + return x, nil +} + +type Test_StreamInputClient interface { + Send(*StreamInputRequest) error + CloseAndRecv() (*StreamInputResponse, error) + grpc.ClientStream +} + +type testStreamInputClient struct { + grpc.ClientStream +} + +func (x *testStreamInputClient) Send(m *StreamInputRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *testStreamInputClient) CloseAndRecv() (*StreamInputResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(StreamInputResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *testClient) StreamOutput(ctx context.Context, in *StreamOutputRequest, opts ...grpc.CallOption) (Test_StreamOutputClient, error) { + stream, err := c.cc.NewStream(ctx, &Test_ServiceDesc.Streams[1], "/test.limithandler.Test/StreamOutput", opts...) + if err != nil { + return nil, err + } + x := &testStreamOutputClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Test_StreamOutputClient interface { + Recv() (*StreamOutputResponse, error) + grpc.ClientStream +} + +type testStreamOutputClient struct { + grpc.ClientStream +} + +func (x *testStreamOutputClient) Recv() (*StreamOutputResponse, error) { + m := new(StreamOutputResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *testClient) Bidirectional(ctx context.Context, opts ...grpc.CallOption) (Test_BidirectionalClient, error) { + stream, err := c.cc.NewStream(ctx, &Test_ServiceDesc.Streams[2], "/test.limithandler.Test/Bidirectional", opts...) + if err != nil { + return nil, err + } + x := &testBidirectionalClient{stream} + return x, nil +} + +type Test_BidirectionalClient interface { + Send(*BidirectionalRequest) error + Recv() (*BidirectionalResponse, error) + grpc.ClientStream +} + +type testBidirectionalClient struct { + grpc.ClientStream +} + +func (x *testBidirectionalClient) Send(m *BidirectionalRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *testBidirectionalClient) Recv() (*BidirectionalResponse, error) { + m := new(BidirectionalResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// TestServer is the server API for Test service. +// All implementations must embed UnimplementedTestServer +// for forward compatibility +type TestServer interface { + Unary(context.Context, *UnaryRequest) (*UnaryResponse, error) + StreamInput(Test_StreamInputServer) error + StreamOutput(*StreamOutputRequest, Test_StreamOutputServer) error + Bidirectional(Test_BidirectionalServer) error + mustEmbedUnimplementedTestServer() +} + +// UnimplementedTestServer must be embedded to have forward compatible implementations. +type UnimplementedTestServer struct { +} + +func (UnimplementedTestServer) Unary(context.Context, *UnaryRequest) (*UnaryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Unary not implemented") +} +func (UnimplementedTestServer) StreamInput(Test_StreamInputServer) error { + return status.Errorf(codes.Unimplemented, "method StreamInput not implemented") +} +func (UnimplementedTestServer) StreamOutput(*StreamOutputRequest, Test_StreamOutputServer) error { + return status.Errorf(codes.Unimplemented, "method StreamOutput not implemented") +} +func (UnimplementedTestServer) Bidirectional(Test_BidirectionalServer) error { + return status.Errorf(codes.Unimplemented, "method Bidirectional not implemented") +} +func (UnimplementedTestServer) mustEmbedUnimplementedTestServer() {} + +// UnsafeTestServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to TestServer will +// result in compilation errors. +type UnsafeTestServer interface { + mustEmbedUnimplementedTestServer() +} + +func RegisterTestServer(s grpc.ServiceRegistrar, srv TestServer) { + s.RegisterService(&Test_ServiceDesc, srv) +} + +func _Test_Unary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UnaryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestServer).Unary(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.limithandler.Test/Unary", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestServer).Unary(ctx, req.(*UnaryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Test_StreamInput_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(TestServer).StreamInput(&testStreamInputServer{stream}) +} + +type Test_StreamInputServer interface { + SendAndClose(*StreamInputResponse) error + Recv() (*StreamInputRequest, error) + grpc.ServerStream +} + +type testStreamInputServer struct { + grpc.ServerStream +} + +func (x *testStreamInputServer) SendAndClose(m *StreamInputResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *testStreamInputServer) Recv() (*StreamInputRequest, error) { + m := new(StreamInputRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _Test_StreamOutput_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(StreamOutputRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(TestServer).StreamOutput(m, &testStreamOutputServer{stream}) +} + +type Test_StreamOutputServer interface { + Send(*StreamOutputResponse) error + grpc.ServerStream +} + +type testStreamOutputServer struct { + grpc.ServerStream +} + +func (x *testStreamOutputServer) Send(m *StreamOutputResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _Test_Bidirectional_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(TestServer).Bidirectional(&testBidirectionalServer{stream}) +} + +type Test_BidirectionalServer interface { + Send(*BidirectionalResponse) error + Recv() (*BidirectionalRequest, error) + grpc.ServerStream +} + +type testBidirectionalServer struct { + grpc.ServerStream +} + +func (x *testBidirectionalServer) Send(m *BidirectionalResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *testBidirectionalServer) Recv() (*BidirectionalRequest, error) { + m := new(BidirectionalRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Test_ServiceDesc is the grpc.ServiceDesc for Test service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Test_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "test.limithandler.Test", + HandlerType: (*TestServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Unary", + Handler: _Test_Unary_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamInput", + Handler: _Test_StreamInput_Handler, + ClientStreams: true, + }, + { + StreamName: "StreamOutput", + Handler: _Test_StreamOutput_Handler, + ServerStreams: true, + }, + { + StreamName: "Bidirectional", + Handler: _Test_Bidirectional_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "middleware/limithandler/testdata/test.proto", +} diff --git a/internal/middleware/limithandler/testpb/test.pb.go b/internal/middleware/limithandler/testpb/test.pb.go deleted file mode 100644 index 03a700107..000000000 --- a/internal/middleware/limithandler/testpb/test.pb.go +++ /dev/null @@ -1,435 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: test.proto - -/* -Package test is a generated protocol buffer package. - -It is generated from these files: - test.proto - -It has these top-level messages: - UnaryRequest - UnaryResponse - StreamInputRequest - StreamInputResponse - StreamOutputRequest - StreamOutputResponse - BidirectionalRequest - BidirectionalResponse -*/ -package test - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "context" - - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -type UnaryRequest struct { -} - -func (m *UnaryRequest) Reset() { *m = UnaryRequest{} } -func (m *UnaryRequest) String() string { return proto.CompactTextString(m) } -func (*UnaryRequest) ProtoMessage() {} -func (*UnaryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -type UnaryResponse struct { - Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"` -} - -func (m *UnaryResponse) Reset() { *m = UnaryResponse{} } -func (m *UnaryResponse) String() string { return proto.CompactTextString(m) } -func (*UnaryResponse) ProtoMessage() {} -func (*UnaryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -func (m *UnaryResponse) GetOk() bool { - if m != nil { - return m.Ok - } - return false -} - -type StreamInputRequest struct { -} - -func (m *StreamInputRequest) Reset() { *m = StreamInputRequest{} } -func (m *StreamInputRequest) String() string { return proto.CompactTextString(m) } -func (*StreamInputRequest) ProtoMessage() {} -func (*StreamInputRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -type StreamInputResponse struct { - Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"` -} - -func (m *StreamInputResponse) Reset() { *m = StreamInputResponse{} } -func (m *StreamInputResponse) String() string { return proto.CompactTextString(m) } -func (*StreamInputResponse) ProtoMessage() {} -func (*StreamInputResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -func (m *StreamInputResponse) GetOk() bool { - if m != nil { - return m.Ok - } - return false -} - -type StreamOutputRequest struct { -} - -func (m *StreamOutputRequest) Reset() { *m = StreamOutputRequest{} } -func (m *StreamOutputRequest) String() string { return proto.CompactTextString(m) } -func (*StreamOutputRequest) ProtoMessage() {} -func (*StreamOutputRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -type StreamOutputResponse struct { - Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"` -} - -func (m *StreamOutputResponse) Reset() { *m = StreamOutputResponse{} } -func (m *StreamOutputResponse) String() string { return proto.CompactTextString(m) } -func (*StreamOutputResponse) ProtoMessage() {} -func (*StreamOutputResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -func (m *StreamOutputResponse) GetOk() bool { - if m != nil { - return m.Ok - } - return false -} - -type BidirectionalRequest struct { -} - -func (m *BidirectionalRequest) Reset() { *m = BidirectionalRequest{} } -func (m *BidirectionalRequest) String() string { return proto.CompactTextString(m) } -func (*BidirectionalRequest) ProtoMessage() {} -func (*BidirectionalRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } - -type BidirectionalResponse struct { - Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"` -} - -func (m *BidirectionalResponse) Reset() { *m = BidirectionalResponse{} } -func (m *BidirectionalResponse) String() string { return proto.CompactTextString(m) } -func (*BidirectionalResponse) ProtoMessage() {} -func (*BidirectionalResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } - -func (m *BidirectionalResponse) GetOk() bool { - if m != nil { - return m.Ok - } - return false -} - -func init() { - proto.RegisterType((*UnaryRequest)(nil), "test.UnaryRequest") - proto.RegisterType((*UnaryResponse)(nil), "test.UnaryResponse") - proto.RegisterType((*StreamInputRequest)(nil), "test.StreamInputRequest") - proto.RegisterType((*StreamInputResponse)(nil), "test.StreamInputResponse") - proto.RegisterType((*StreamOutputRequest)(nil), "test.StreamOutputRequest") - proto.RegisterType((*StreamOutputResponse)(nil), "test.StreamOutputResponse") - proto.RegisterType((*BidirectionalRequest)(nil), "test.BidirectionalRequest") - proto.RegisterType((*BidirectionalResponse)(nil), "test.BidirectionalResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for Test service - -type TestClient interface { - Unary(ctx context.Context, in *UnaryRequest, opts ...grpc.CallOption) (*UnaryResponse, error) - StreamInput(ctx context.Context, opts ...grpc.CallOption) (Test_StreamInputClient, error) - StreamOutput(ctx context.Context, in *StreamOutputRequest, opts ...grpc.CallOption) (Test_StreamOutputClient, error) - Bidirectional(ctx context.Context, opts ...grpc.CallOption) (Test_BidirectionalClient, error) -} - -type testClient struct { - cc *grpc.ClientConn -} - -func NewTestClient(cc *grpc.ClientConn) TestClient { - return &testClient{cc} -} - -func (c *testClient) Unary(ctx context.Context, in *UnaryRequest, opts ...grpc.CallOption) (*UnaryResponse, error) { - out := new(UnaryResponse) - err := grpc.Invoke(ctx, "/test.Test/Unary", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *testClient) StreamInput(ctx context.Context, opts ...grpc.CallOption) (Test_StreamInputClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Test_serviceDesc.Streams[0], c.cc, "/test.Test/StreamInput", opts...) - if err != nil { - return nil, err - } - x := &testStreamInputClient{stream} - return x, nil -} - -type Test_StreamInputClient interface { - Send(*StreamInputRequest) error - CloseAndRecv() (*StreamInputResponse, error) - grpc.ClientStream -} - -type testStreamInputClient struct { - grpc.ClientStream -} - -func (x *testStreamInputClient) Send(m *StreamInputRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *testStreamInputClient) CloseAndRecv() (*StreamInputResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(StreamInputResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *testClient) StreamOutput(ctx context.Context, in *StreamOutputRequest, opts ...grpc.CallOption) (Test_StreamOutputClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Test_serviceDesc.Streams[1], c.cc, "/test.Test/StreamOutput", opts...) - if err != nil { - return nil, err - } - x := &testStreamOutputClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Test_StreamOutputClient interface { - Recv() (*StreamOutputResponse, error) - grpc.ClientStream -} - -type testStreamOutputClient struct { - grpc.ClientStream -} - -func (x *testStreamOutputClient) Recv() (*StreamOutputResponse, error) { - m := new(StreamOutputResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *testClient) Bidirectional(ctx context.Context, opts ...grpc.CallOption) (Test_BidirectionalClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Test_serviceDesc.Streams[2], c.cc, "/test.Test/Bidirectional", opts...) - if err != nil { - return nil, err - } - x := &testBidirectionalClient{stream} - return x, nil -} - -type Test_BidirectionalClient interface { - Send(*BidirectionalRequest) error - Recv() (*BidirectionalResponse, error) - grpc.ClientStream -} - -type testBidirectionalClient struct { - grpc.ClientStream -} - -func (x *testBidirectionalClient) Send(m *BidirectionalRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *testBidirectionalClient) Recv() (*BidirectionalResponse, error) { - m := new(BidirectionalResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for Test service - -type TestServer interface { - Unary(context.Context, *UnaryRequest) (*UnaryResponse, error) - StreamInput(Test_StreamInputServer) error - StreamOutput(*StreamOutputRequest, Test_StreamOutputServer) error - Bidirectional(Test_BidirectionalServer) error -} - -func RegisterTestServer(s *grpc.Server, srv TestServer) { - s.RegisterService(&_Test_serviceDesc, srv) -} - -func _Test_Unary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UnaryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TestServer).Unary(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.Test/Unary", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TestServer).Unary(ctx, req.(*UnaryRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Test_StreamInput_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(TestServer).StreamInput(&testStreamInputServer{stream}) -} - -type Test_StreamInputServer interface { - SendAndClose(*StreamInputResponse) error - Recv() (*StreamInputRequest, error) - grpc.ServerStream -} - -type testStreamInputServer struct { - grpc.ServerStream -} - -func (x *testStreamInputServer) SendAndClose(m *StreamInputResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *testStreamInputServer) Recv() (*StreamInputRequest, error) { - m := new(StreamInputRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _Test_StreamOutput_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(StreamOutputRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(TestServer).StreamOutput(m, &testStreamOutputServer{stream}) -} - -type Test_StreamOutputServer interface { - Send(*StreamOutputResponse) error - grpc.ServerStream -} - -type testStreamOutputServer struct { - grpc.ServerStream -} - -func (x *testStreamOutputServer) Send(m *StreamOutputResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _Test_Bidirectional_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(TestServer).Bidirectional(&testBidirectionalServer{stream}) -} - -type Test_BidirectionalServer interface { - Send(*BidirectionalResponse) error - Recv() (*BidirectionalRequest, error) - grpc.ServerStream -} - -type testBidirectionalServer struct { - grpc.ServerStream -} - -func (x *testBidirectionalServer) Send(m *BidirectionalResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *testBidirectionalServer) Recv() (*BidirectionalRequest, error) { - m := new(BidirectionalRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -var _Test_serviceDesc = grpc.ServiceDesc{ - ServiceName: "test.Test", - HandlerType: (*TestServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Unary", - Handler: _Test_Unary_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "StreamInput", - Handler: _Test_StreamInput_Handler, - ClientStreams: true, - }, - { - StreamName: "StreamOutput", - Handler: _Test_StreamOutput_Handler, - ServerStreams: true, - }, - { - StreamName: "Bidirectional", - Handler: _Test_Bidirectional_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "test.proto", -} - -func init() { proto.RegisterFile("test.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 245 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2a, 0x49, 0x2d, 0x2e, - 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x01, 0xb1, 0x95, 0xf8, 0xb8, 0x78, 0x42, 0xf3, - 0x12, 0x8b, 0x2a, 0x83, 0x52, 0x0b, 0x4b, 0x41, 0x7c, 0x79, 0x2e, 0x5e, 0x28, 0xbf, 0xb8, 0x20, - 0x3f, 0xaf, 0x38, 0x55, 0x88, 0x8f, 0x8b, 0x29, 0x3f, 0x5b, 0x82, 0x51, 0x81, 0x51, 0x83, 0x23, - 0x88, 0x29, 0x3f, 0x5b, 0x49, 0x84, 0x4b, 0x28, 0xb8, 0xa4, 0x28, 0x35, 0x31, 0xd7, 0x33, 0xaf, - 0xa0, 0xb4, 0x04, 0xa6, 0x4d, 0x95, 0x4b, 0x18, 0x45, 0x14, 0x87, 0x66, 0x51, 0x98, 0x32, 0xff, - 0xd2, 0x12, 0x24, 0xdd, 0x6a, 0x5c, 0x22, 0xa8, 0xc2, 0x38, 0xb4, 0x8b, 0x71, 0x89, 0x38, 0x65, - 0xa6, 0x64, 0x16, 0xa5, 0x26, 0x97, 0x64, 0xe6, 0xe7, 0x25, 0xe6, 0xc0, 0xf4, 0xab, 0x73, 0x89, - 0xa2, 0x89, 0x63, 0x37, 0xc0, 0x68, 0x2e, 0x13, 0x17, 0x4b, 0x48, 0x6a, 0x71, 0x89, 0x90, 0x11, - 0x17, 0x2b, 0xd8, 0x9b, 0x42, 0x42, 0x7a, 0xe0, 0x20, 0x41, 0x0e, 0x03, 0x29, 0x61, 0x14, 0x31, - 0x88, 0x51, 0x4a, 0x0c, 0x42, 0x6e, 0x5c, 0xdc, 0x48, 0x7e, 0x14, 0x92, 0x80, 0xa8, 0xc2, 0x0c, - 0x0c, 0x29, 0x49, 0x2c, 0x32, 0x30, 0x53, 0x34, 0x18, 0x85, 0x3c, 0xb9, 0x78, 0x90, 0x7d, 0x2b, - 0x84, 0xa2, 0x1c, 0x25, 0x60, 0xa4, 0xa4, 0xb0, 0x49, 0xc1, 0x8c, 0x32, 0x60, 0x14, 0xf2, 0xe3, - 0xe2, 0x45, 0xf1, 0xb8, 0x10, 0x54, 0x03, 0xb6, 0x50, 0x92, 0x92, 0xc6, 0x2a, 0x87, 0x70, 0x98, - 0x01, 0x63, 0x12, 0x1b, 0x38, 0x69, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x27, 0xb9, 0x36, - 0xfb, 0x28, 0x02, 0x00, 0x00, -} diff --git a/internal/praefect/grpc-proxy/testdata/test.pb.go b/internal/praefect/grpc-proxy/testdata/test.pb.go index 0759ffc9c..61fb9cb5b 100644 --- a/internal/praefect/grpc-proxy/testdata/test.pb.go +++ b/internal/praefect/grpc-proxy/testdata/test.pb.go @@ -1,457 +1,306 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: praefect/grpc-proxy/testdata/test.proto -package mwitkow_testproto +package testdata import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Empty struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Empty) Reset() { *m = Empty{} } -func (m *Empty) String() string { return proto.CompactTextString(m) } -func (*Empty) ProtoMessage() {} -func (*Empty) Descriptor() ([]byte, []int) { - return fileDescriptor_be10c573495b33b9, []int{0} -} - -func (m *Empty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Empty.Unmarshal(m, b) -} -func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Empty.Marshal(b, m, deterministic) -} -func (m *Empty) XXX_Merge(src proto.Message) { - xxx_messageInfo_Empty.Merge(m, src) -} -func (m *Empty) XXX_Size() int { - return xxx_messageInfo_Empty.Size(m) -} -func (m *Empty) XXX_DiscardUnknown() { - xxx_messageInfo_Empty.DiscardUnknown(m) -} - -var xxx_messageInfo_Empty proto.InternalMessageInfo - -type PingRequest struct { - Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PingRequest) Reset() { *m = PingRequest{} } -func (m *PingRequest) String() string { return proto.CompactTextString(m) } -func (*PingRequest) ProtoMessage() {} -func (*PingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_be10c573495b33b9, []int{1} -} - -func (m *PingRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PingRequest.Unmarshal(m, b) -} -func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PingRequest.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *PingRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PingRequest.Merge(m, src) -} -func (m *PingRequest) XXX_Size() int { - return xxx_messageInfo_PingRequest.Size(m) -} -func (m *PingRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PingRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PingRequest proto.InternalMessageInfo -func (m *PingRequest) GetValue() string { - if m != nil { - return m.Value +func (x *Empty) Reset() { + *x = Empty{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_grpc_proxy_testdata_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -type PingResponse struct { - Value string `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"` - Counter int32 `protobuf:"varint,2,opt,name=counter,proto3" json:"counter,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *Empty) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PingResponse) Reset() { *m = PingResponse{} } -func (m *PingResponse) String() string { return proto.CompactTextString(m) } -func (*PingResponse) ProtoMessage() {} -func (*PingResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_be10c573495b33b9, []int{2} -} - -func (m *PingResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PingResponse.Unmarshal(m, b) -} -func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PingResponse.Marshal(b, m, deterministic) -} -func (m *PingResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PingResponse.Merge(m, src) -} -func (m *PingResponse) XXX_Size() int { - return xxx_messageInfo_PingResponse.Size(m) -} -func (m *PingResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PingResponse.DiscardUnknown(m) -} +func (*Empty) ProtoMessage() {} -var xxx_messageInfo_PingResponse proto.InternalMessageInfo - -func (m *PingResponse) GetValue() string { - if m != nil { - return m.Value +func (x *Empty) ProtoReflect() protoreflect.Message { + mi := &file_praefect_grpc_proxy_testdata_test_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *PingResponse) GetCounter() int32 { - if m != nil { - return m.Counter - } - return 0 -} - -func init() { - proto.RegisterType((*Empty)(nil), "mwitkow.testproto.Empty") - proto.RegisterType((*PingRequest)(nil), "mwitkow.testproto.PingRequest") - proto.RegisterType((*PingResponse)(nil), "mwitkow.testproto.PingResponse") -} - -func init() { - proto.RegisterFile("praefect/grpc-proxy/testdata/test.proto", fileDescriptor_be10c573495b33b9) -} - -var fileDescriptor_be10c573495b33b9 = []byte{ - // 259 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x8f, 0x41, 0x4b, 0xc3, 0x40, - 0x10, 0x85, 0xbb, 0x6a, 0xac, 0x9d, 0x7a, 0x71, 0xf0, 0x10, 0x3c, 0x68, 0x89, 0x07, 0x73, 0x31, - 0x2d, 0x7a, 0xf7, 0x26, 0x2a, 0x08, 0x4a, 0x22, 0xde, 0xd7, 0x38, 0x96, 0xa0, 0xc9, 0xae, 0xb3, - 0x93, 0xd6, 0xfe, 0x0c, 0xff, 0xb1, 0xec, 0x56, 0xa1, 0xa0, 0xc5, 0x1e, 0x7a, 0xdb, 0x79, 0xef, - 0xe3, 0xf1, 0x2d, 0x9c, 0x58, 0xd6, 0xf4, 0x42, 0xa5, 0x0c, 0xc7, 0x6c, 0xcb, 0x53, 0xcb, 0xe6, - 0x63, 0x36, 0x14, 0x72, 0xf2, 0xac, 0x45, 0x87, 0x47, 0x66, 0xd9, 0x88, 0xc1, 0xbd, 0x7a, 0x5a, - 0xc9, 0xab, 0x99, 0x66, 0x3e, 0x0b, 0x51, 0xd2, 0x85, 0xe8, 0xb2, 0xb6, 0x32, 0x4b, 0x8e, 0xa1, - 0x7f, 0x5f, 0x35, 0xe3, 0x9c, 0xde, 0x5b, 0x72, 0x82, 0xfb, 0x10, 0x4d, 0xf4, 0x5b, 0x4b, 0xb1, - 0x1a, 0xa8, 0xb4, 0x97, 0xcf, 0x8f, 0xe4, 0x02, 0x76, 0xe7, 0x90, 0xb3, 0xa6, 0x71, 0xe4, 0xa9, - 0xc7, 0x45, 0x2a, 0x1c, 0x18, 0x43, 0xb7, 0x34, 0x6d, 0x23, 0xc4, 0xf1, 0xc6, 0x40, 0xa5, 0x51, - 0xfe, 0x73, 0x9e, 0x7d, 0x6e, 0x42, 0xff, 0x81, 0x9c, 0x14, 0xc4, 0x93, 0xaa, 0x24, 0xbc, 0x86, - 0x9e, 0xdf, 0x0b, 0x06, 0x18, 0x67, 0xbf, 0xf4, 0xb2, 0xd0, 0x1c, 0x1c, 0xfd, 0xd1, 0x2c, 0x7a, - 0x24, 0x1d, 0xbc, 0x81, 0x2d, 0x9f, 0xe0, 0xe1, 0x52, 0x34, 0xfc, 0x6b, 0x95, 0xa9, 0xab, 0x6f, - 0x29, 0x66, 0xc3, 0xff, 0xee, 0x2d, 0x95, 0x4e, 0x3a, 0x78, 0x07, 0x3b, 0x1e, 0xbd, 0xad, 0x9c, - 0xac, 0xc1, 0x6b, 0xa4, 0xb0, 0x00, 0xf0, 0x59, 0x21, 0x4c, 0xba, 0x5e, 0xc3, 0x64, 0xaa, 0x46, - 0xea, 0x69, 0x3b, 0x34, 0xe7, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x71, 0xad, 0x48, 0xa3, 0x46, - 0x02, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// TestServiceClient is the client API for TestService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type TestServiceClient interface { - PingEmpty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PingResponse, error) - Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) - PingError(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*Empty, error) - PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (TestService_PingListClient, error) - PingStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingStreamClient, error) +// Deprecated: Use Empty.ProtoReflect.Descriptor instead. +func (*Empty) Descriptor() ([]byte, []int) { + return file_praefect_grpc_proxy_testdata_test_proto_rawDescGZIP(), []int{0} } -type testServiceClient struct { - cc *grpc.ClientConn -} +type PingRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient { - return &testServiceClient{cc} + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } -func (c *testServiceClient) PingEmpty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PingResponse, error) { - out := new(PingResponse) - err := c.cc.Invoke(ctx, "/mwitkow.testproto.TestService/PingEmpty", in, out, opts...) - if err != nil { - return nil, err +func (x *PingRequest) Reset() { + *x = PingRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_grpc_proxy_testdata_test_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil } -func (c *testServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { - out := new(PingResponse) - err := c.cc.Invoke(ctx, "/mwitkow.testproto.TestService/Ping", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *PingRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *testServiceClient) PingError(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*Empty, error) { - out := new(Empty) - err := c.cc.Invoke(ctx, "/mwitkow.testproto.TestService/PingError", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*PingRequest) ProtoMessage() {} -func (c *testServiceClient) PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (TestService_PingListClient, error) { - stream, err := c.cc.NewStream(ctx, &_TestService_serviceDesc.Streams[0], "/mwitkow.testproto.TestService/PingList", opts...) - if err != nil { - return nil, err - } - x := &testServicePingListClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *PingRequest) ProtoReflect() protoreflect.Message { + mi := &file_praefect_grpc_proxy_testdata_test_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return x, nil + return mi.MessageOf(x) } -type TestService_PingListClient interface { - Recv() (*PingResponse, error) - grpc.ClientStream -} - -type testServicePingListClient struct { - grpc.ClientStream -} - -func (x *testServicePingListClient) Recv() (*PingResponse, error) { - m := new(PingResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +// Deprecated: Use PingRequest.ProtoReflect.Descriptor instead. +func (*PingRequest) Descriptor() ([]byte, []int) { + return file_praefect_grpc_proxy_testdata_test_proto_rawDescGZIP(), []int{1} } -func (c *testServiceClient) PingStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_TestService_serviceDesc.Streams[1], "/mwitkow.testproto.TestService/PingStream", opts...) - if err != nil { - return nil, err +func (x *PingRequest) GetValue() string { + if x != nil { + return x.Value } - x := &testServicePingStreamClient{stream} - return x, nil -} - -type TestService_PingStreamClient interface { - Send(*PingRequest) error - Recv() (*PingResponse, error) - grpc.ClientStream + return "" } -type testServicePingStreamClient struct { - grpc.ClientStream -} +type PingResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *testServicePingStreamClient) Send(m *PingRequest) error { - return x.ClientStream.SendMsg(m) + Value string `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"` + Counter int32 `protobuf:"varint,2,opt,name=counter,proto3" json:"counter,omitempty"` } -func (x *testServicePingStreamClient) Recv() (*PingResponse, error) { - m := new(PingResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *PingResponse) Reset() { + *x = PingResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_grpc_proxy_testdata_test_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -// TestServiceServer is the server API for TestService service. -type TestServiceServer interface { - PingEmpty(context.Context, *Empty) (*PingResponse, error) - Ping(context.Context, *PingRequest) (*PingResponse, error) - PingError(context.Context, *PingRequest) (*Empty, error) - PingList(*PingRequest, TestService_PingListServer) error - PingStream(TestService_PingStreamServer) error +func (x *PingResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -// UnimplementedTestServiceServer can be embedded to have forward compatible implementations. -type UnimplementedTestServiceServer struct { -} +func (*PingResponse) ProtoMessage() {} -func (*UnimplementedTestServiceServer) PingEmpty(ctx context.Context, req *Empty) (*PingResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PingEmpty not implemented") -} -func (*UnimplementedTestServiceServer) Ping(ctx context.Context, req *PingRequest) (*PingResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented") -} -func (*UnimplementedTestServiceServer) PingError(ctx context.Context, req *PingRequest) (*Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method PingError not implemented") -} -func (*UnimplementedTestServiceServer) PingList(req *PingRequest, srv TestService_PingListServer) error { - return status.Errorf(codes.Unimplemented, "method PingList not implemented") -} -func (*UnimplementedTestServiceServer) PingStream(srv TestService_PingStreamServer) error { - return status.Errorf(codes.Unimplemented, "method PingStream not implemented") -} - -func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer) { - s.RegisterService(&_TestService_serviceDesc, srv) -} - -func _TestService_PingEmpty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TestServiceServer).PingEmpty(ctx, in) +func (x *PingResponse) ProtoReflect() protoreflect.Message { + mi := &file_praefect_grpc_proxy_testdata_test_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mwitkow.testproto.TestService/PingEmpty", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TestServiceServer).PingEmpty(ctx, req.(*Empty)) - } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _TestService_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PingRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TestServiceServer).Ping(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mwitkow.testproto.TestService/Ping", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TestServiceServer).Ping(ctx, req.(*PingRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use PingResponse.ProtoReflect.Descriptor instead. +func (*PingResponse) Descriptor() ([]byte, []int) { + return file_praefect_grpc_proxy_testdata_test_proto_rawDescGZIP(), []int{2} } -func _TestService_PingError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PingRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TestServiceServer).PingError(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mwitkow.testproto.TestService/PingError", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TestServiceServer).PingError(ctx, req.(*PingRequest)) +func (x *PingResponse) GetValue() string { + if x != nil { + return x.Value } - return interceptor(ctx, in, info, handler) + return "" } -func _TestService_PingList_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PingRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *PingResponse) GetCounter() int32 { + if x != nil { + return x.Counter } - return srv.(TestServiceServer).PingList(m, &testServicePingListServer{stream}) -} - -type TestService_PingListServer interface { - Send(*PingResponse) error - grpc.ServerStream -} - -type testServicePingListServer struct { - grpc.ServerStream -} - -func (x *testServicePingListServer) Send(m *PingResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _TestService_PingStream_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(TestServiceServer).PingStream(&testServicePingStreamServer{stream}) -} - -type TestService_PingStreamServer interface { - Send(*PingResponse) error - Recv() (*PingRequest, error) - grpc.ServerStream -} - -type testServicePingStreamServer struct { - grpc.ServerStream + return 0 } -func (x *testServicePingStreamServer) Send(m *PingResponse) error { - return x.ServerStream.SendMsg(m) -} +var File_praefect_grpc_proxy_testdata_test_proto protoreflect.FileDescriptor + +var file_praefect_grpc_proxy_testdata_test_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x70, 0x72, 0x61, 0x65, 0x66, 0x65, 0x63, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2d, + 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x74, + 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6d, 0x77, 0x69, 0x74, 0x6b, + 0x6f, 0x77, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x07, 0x0a, 0x05, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x23, 0x0a, 0x0b, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3e, 0x0a, 0x0c, 0x50, 0x69, + 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x32, 0x91, 0x03, 0x0a, 0x0b, 0x54, + 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x09, 0x50, 0x69, + 0x6e, 0x67, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x18, 0x2e, 0x6d, 0x77, 0x69, 0x74, 0x6b, 0x6f, + 0x77, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x1a, 0x1f, 0x2e, 0x6d, 0x77, 0x69, 0x74, 0x6b, 0x6f, 0x77, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x2e, 0x6d, + 0x77, 0x69, 0x74, 0x6b, 0x6f, 0x77, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, + 0x77, 0x69, 0x74, 0x6b, 0x6f, 0x77, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x47, 0x0a, 0x09, 0x50, 0x69, 0x6e, 0x67, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1e, 0x2e, 0x6d, + 0x77, 0x69, 0x74, 0x6b, 0x6f, 0x77, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6d, + 0x77, 0x69, 0x74, 0x6b, 0x6f, 0x77, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x08, 0x50, 0x69, 0x6e, 0x67, + 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x2e, 0x6d, 0x77, 0x69, 0x74, 0x6b, 0x6f, 0x77, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x77, 0x69, 0x74, 0x6b, 0x6f, 0x77, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x53, 0x0a, 0x0a, 0x50, 0x69, 0x6e, + 0x67, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1e, 0x2e, 0x6d, 0x77, 0x69, 0x74, 0x6b, 0x6f, + 0x77, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x69, 0x6e, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x77, 0x69, 0x74, 0x6b, 0x6f, + 0x77, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x69, 0x6e, 0x67, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x48, + 0x5a, 0x46, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, + 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, + 0x31, 0x34, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x61, 0x65, + 0x66, 0x65, 0x63, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, + 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_praefect_grpc_proxy_testdata_test_proto_rawDescOnce sync.Once + file_praefect_grpc_proxy_testdata_test_proto_rawDescData = file_praefect_grpc_proxy_testdata_test_proto_rawDesc +) -func (x *testServicePingStreamServer) Recv() (*PingRequest, error) { - m := new(PingRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func file_praefect_grpc_proxy_testdata_test_proto_rawDescGZIP() []byte { + file_praefect_grpc_proxy_testdata_test_proto_rawDescOnce.Do(func() { + file_praefect_grpc_proxy_testdata_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_praefect_grpc_proxy_testdata_test_proto_rawDescData) + }) + return file_praefect_grpc_proxy_testdata_test_proto_rawDescData +} + +var file_praefect_grpc_proxy_testdata_test_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_praefect_grpc_proxy_testdata_test_proto_goTypes = []interface{}{ + (*Empty)(nil), // 0: mwitkow.testproto.Empty + (*PingRequest)(nil), // 1: mwitkow.testproto.PingRequest + (*PingResponse)(nil), // 2: mwitkow.testproto.PingResponse +} +var file_praefect_grpc_proxy_testdata_test_proto_depIdxs = []int32{ + 0, // 0: mwitkow.testproto.TestService.PingEmpty:input_type -> mwitkow.testproto.Empty + 1, // 1: mwitkow.testproto.TestService.Ping:input_type -> mwitkow.testproto.PingRequest + 1, // 2: mwitkow.testproto.TestService.PingError:input_type -> mwitkow.testproto.PingRequest + 1, // 3: mwitkow.testproto.TestService.PingList:input_type -> mwitkow.testproto.PingRequest + 1, // 4: mwitkow.testproto.TestService.PingStream:input_type -> mwitkow.testproto.PingRequest + 2, // 5: mwitkow.testproto.TestService.PingEmpty:output_type -> mwitkow.testproto.PingResponse + 2, // 6: mwitkow.testproto.TestService.Ping:output_type -> mwitkow.testproto.PingResponse + 0, // 7: mwitkow.testproto.TestService.PingError:output_type -> mwitkow.testproto.Empty + 2, // 8: mwitkow.testproto.TestService.PingList:output_type -> mwitkow.testproto.PingResponse + 2, // 9: mwitkow.testproto.TestService.PingStream:output_type -> mwitkow.testproto.PingResponse + 5, // [5:10] is the sub-list for method output_type + 0, // [0:5] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_praefect_grpc_proxy_testdata_test_proto_init() } +func file_praefect_grpc_proxy_testdata_test_proto_init() { + if File_praefect_grpc_proxy_testdata_test_proto != nil { + return } - return m, nil -} - -var _TestService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mwitkow.testproto.TestService", - HandlerType: (*TestServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "PingEmpty", - Handler: _TestService_PingEmpty_Handler, - }, - { - MethodName: "Ping", - Handler: _TestService_Ping_Handler, - }, - { - MethodName: "PingError", - Handler: _TestService_PingError_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "PingList", - Handler: _TestService_PingList_Handler, - ServerStreams: true, - }, - { - StreamName: "PingStream", - Handler: _TestService_PingStream_Handler, - ServerStreams: true, - ClientStreams: true, + if !protoimpl.UnsafeEnabled { + file_praefect_grpc_proxy_testdata_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Empty); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_grpc_proxy_testdata_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PingRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_grpc_proxy_testdata_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PingResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_praefect_grpc_proxy_testdata_test_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "praefect/grpc-proxy/testdata/test.proto", + GoTypes: file_praefect_grpc_proxy_testdata_test_proto_goTypes, + DependencyIndexes: file_praefect_grpc_proxy_testdata_test_proto_depIdxs, + MessageInfos: file_praefect_grpc_proxy_testdata_test_proto_msgTypes, + }.Build() + File_praefect_grpc_proxy_testdata_test_proto = out.File + file_praefect_grpc_proxy_testdata_test_proto_rawDesc = nil + file_praefect_grpc_proxy_testdata_test_proto_goTypes = nil + file_praefect_grpc_proxy_testdata_test_proto_depIdxs = nil } diff --git a/internal/praefect/grpc-proxy/testdata/test_grpc.pb.go b/internal/praefect/grpc-proxy/testdata/test_grpc.pb.go new file mode 100644 index 000000000..e69799644 --- /dev/null +++ b/internal/praefect/grpc-proxy/testdata/test_grpc.pb.go @@ -0,0 +1,305 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package testdata + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// TestServiceClient is the client API for TestService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type TestServiceClient interface { + PingEmpty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PingResponse, error) + Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) + PingError(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*Empty, error) + PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (TestService_PingListClient, error) + PingStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingStreamClient, error) +} + +type testServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient { + return &testServiceClient{cc} +} + +func (c *testServiceClient) PingEmpty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PingResponse, error) { + out := new(PingResponse) + err := c.cc.Invoke(ctx, "/mwitkow.testproto.TestService/PingEmpty", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { + out := new(PingResponse) + err := c.cc.Invoke(ctx, "/mwitkow.testproto.TestService/Ping", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testServiceClient) PingError(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*Empty, error) { + out := new(Empty) + err := c.cc.Invoke(ctx, "/mwitkow.testproto.TestService/PingError", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testServiceClient) PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (TestService_PingListClient, error) { + stream, err := c.cc.NewStream(ctx, &TestService_ServiceDesc.Streams[0], "/mwitkow.testproto.TestService/PingList", opts...) + if err != nil { + return nil, err + } + x := &testServicePingListClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type TestService_PingListClient interface { + Recv() (*PingResponse, error) + grpc.ClientStream +} + +type testServicePingListClient struct { + grpc.ClientStream +} + +func (x *testServicePingListClient) Recv() (*PingResponse, error) { + m := new(PingResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *testServiceClient) PingStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingStreamClient, error) { + stream, err := c.cc.NewStream(ctx, &TestService_ServiceDesc.Streams[1], "/mwitkow.testproto.TestService/PingStream", opts...) + if err != nil { + return nil, err + } + x := &testServicePingStreamClient{stream} + return x, nil +} + +type TestService_PingStreamClient interface { + Send(*PingRequest) error + Recv() (*PingResponse, error) + grpc.ClientStream +} + +type testServicePingStreamClient struct { + grpc.ClientStream +} + +func (x *testServicePingStreamClient) Send(m *PingRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *testServicePingStreamClient) Recv() (*PingResponse, error) { + m := new(PingResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// TestServiceServer is the server API for TestService service. +// All implementations must embed UnimplementedTestServiceServer +// for forward compatibility +type TestServiceServer interface { + PingEmpty(context.Context, *Empty) (*PingResponse, error) + Ping(context.Context, *PingRequest) (*PingResponse, error) + PingError(context.Context, *PingRequest) (*Empty, error) + PingList(*PingRequest, TestService_PingListServer) error + PingStream(TestService_PingStreamServer) error + mustEmbedUnimplementedTestServiceServer() +} + +// UnimplementedTestServiceServer must be embedded to have forward compatible implementations. +type UnimplementedTestServiceServer struct { +} + +func (UnimplementedTestServiceServer) PingEmpty(context.Context, *Empty) (*PingResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PingEmpty not implemented") +} +func (UnimplementedTestServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented") +} +func (UnimplementedTestServiceServer) PingError(context.Context, *PingRequest) (*Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method PingError not implemented") +} +func (UnimplementedTestServiceServer) PingList(*PingRequest, TestService_PingListServer) error { + return status.Errorf(codes.Unimplemented, "method PingList not implemented") +} +func (UnimplementedTestServiceServer) PingStream(TestService_PingStreamServer) error { + return status.Errorf(codes.Unimplemented, "method PingStream not implemented") +} +func (UnimplementedTestServiceServer) mustEmbedUnimplementedTestServiceServer() {} + +// UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to TestServiceServer will +// result in compilation errors. +type UnsafeTestServiceServer interface { + mustEmbedUnimplementedTestServiceServer() +} + +func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer) { + s.RegisterService(&TestService_ServiceDesc, srv) +} + +func _TestService_PingEmpty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestServiceServer).PingEmpty(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mwitkow.testproto.TestService/PingEmpty", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestServiceServer).PingEmpty(ctx, req.(*Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestService_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PingRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestServiceServer).Ping(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mwitkow.testproto.TestService/Ping", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestServiceServer).Ping(ctx, req.(*PingRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestService_PingError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PingRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestServiceServer).PingError(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mwitkow.testproto.TestService/PingError", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestServiceServer).PingError(ctx, req.(*PingRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestService_PingList_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PingRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(TestServiceServer).PingList(m, &testServicePingListServer{stream}) +} + +type TestService_PingListServer interface { + Send(*PingResponse) error + grpc.ServerStream +} + +type testServicePingListServer struct { + grpc.ServerStream +} + +func (x *testServicePingListServer) Send(m *PingResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _TestService_PingStream_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(TestServiceServer).PingStream(&testServicePingStreamServer{stream}) +} + +type TestService_PingStreamServer interface { + Send(*PingResponse) error + Recv() (*PingRequest, error) + grpc.ServerStream +} + +type testServicePingStreamServer struct { + grpc.ServerStream +} + +func (x *testServicePingStreamServer) Send(m *PingResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *testServicePingStreamServer) Recv() (*PingRequest, error) { + m := new(PingRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// TestService_ServiceDesc is the grpc.ServiceDesc for TestService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var TestService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "mwitkow.testproto.TestService", + HandlerType: (*TestServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "PingEmpty", + Handler: _TestService_PingEmpty_Handler, + }, + { + MethodName: "Ping", + Handler: _TestService_Ping_Handler, + }, + { + MethodName: "PingError", + Handler: _TestService_PingError_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "PingList", + Handler: _TestService_PingList_Handler, + ServerStreams: true, + }, + { + StreamName: "PingStream", + Handler: _TestService_PingStream_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "praefect/grpc-proxy/testdata/test.proto", +} diff --git a/internal/praefect/mock/mock.pb.go b/internal/praefect/mock/mock.pb.go index aa34d016e..76ba4ff21 100644 --- a/internal/praefect/mock/mock.pb.go +++ b/internal/praefect/mock/mock.pb.go @@ -1,211 +1,174 @@ +// +//This file is a mock gRPC service used for validating the various types of +//gRPC methods that Praefect is expected to reverse proxy. It is intended to keep +//tests simple and keep Praefect decoupled from specific gRPC services. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: praefect/mock/mock.proto package mock import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - empty "github.com/golang/protobuf/ptypes/empty" gitalypb "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type RepoRequest struct { - Repo *gitalypb.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RepoRequest) Reset() { *m = RepoRequest{} } -func (m *RepoRequest) String() string { return proto.CompactTextString(m) } -func (*RepoRequest) ProtoMessage() {} -func (*RepoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d20d83172fd49eb0, []int{0} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RepoRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RepoRequest.Unmarshal(m, b) -} -func (m *RepoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RepoRequest.Marshal(b, m, deterministic) -} -func (m *RepoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepoRequest.Merge(m, src) -} -func (m *RepoRequest) XXX_Size() int { - return xxx_messageInfo_RepoRequest.Size(m) -} -func (m *RepoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RepoRequest.DiscardUnknown(m) + Repo *gitalypb.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` } -var xxx_messageInfo_RepoRequest proto.InternalMessageInfo - -func (m *RepoRequest) GetRepo() *gitalypb.Repository { - if m != nil { - return m.Repo +func (x *RepoRequest) Reset() { + *x = RepoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_mock_mock_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil -} - -func init() { - proto.RegisterType((*RepoRequest)(nil), "mock.RepoRequest") -} - -func init() { proto.RegisterFile("praefect/mock/mock.proto", fileDescriptor_d20d83172fd49eb0) } - -var fileDescriptor_d20d83172fd49eb0 = []byte{ - // 230 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x28, 0x28, 0x4a, 0x4c, - 0x4d, 0x4b, 0x4d, 0x2e, 0xd1, 0xcf, 0xcd, 0x4f, 0xce, 0x06, 0x13, 0x7a, 0x05, 0x45, 0xf9, 0x25, - 0xf9, 0x42, 0x2c, 0x20, 0xb6, 0x14, 0x4f, 0x71, 0x46, 0x62, 0x51, 0x6a, 0x0a, 0x44, 0x4c, 0x8a, - 0x2b, 0x27, 0x33, 0xaf, 0x04, 0xca, 0x96, 0x4e, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 0x07, 0xf3, - 0x92, 0x4a, 0xd3, 0xf4, 0x53, 0x73, 0x0b, 0x4a, 0x2a, 0x21, 0x92, 0x4a, 0xd6, 0x5c, 0xdc, 0x41, - 0xa9, 0x05, 0xf9, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x42, 0x3a, 0x5c, 0x2c, 0x45, 0xa9, - 0x05, 0xf9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0x42, 0x7a, 0xe9, 0x99, 0x25, 0x89, 0x39, - 0x95, 0x7a, 0x20, 0x25, 0xc5, 0x99, 0x25, 0xf9, 0x45, 0x95, 0x4e, 0x2c, 0x33, 0x8e, 0xe9, 0x30, - 0x06, 0x81, 0x55, 0x19, 0xcd, 0x63, 0xe4, 0xe2, 0x0d, 0xce, 0xcc, 0x2d, 0xc8, 0x49, 0x0d, 0x4e, - 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0x15, 0x72, 0xe3, 0x12, 0x04, 0xa9, 0x75, 0x4c, 0x4e, 0x4e, 0x2d, - 0x2e, 0xce, 0x2f, 0x0a, 0xcd, 0x4b, 0x2c, 0xaa, 0x14, 0x12, 0xd4, 0x03, 0xbb, 0x16, 0xc9, 0x1e, - 0x29, 0x31, 0x3d, 0x88, 0xa3, 0xf4, 0x60, 0x8e, 0xd2, 0x73, 0x05, 0x39, 0x4a, 0x89, 0xed, 0xd7, - 0x74, 0x0d, 0x26, 0x0e, 0x26, 0x21, 0x57, 0x2e, 0x01, 0x90, 0x72, 0xdf, 0xd2, 0x92, 0xc4, 0x12, - 0xb2, 0x8d, 0x61, 0x4c, 0x62, 0x03, 0x8b, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x46, 0xa4, - 0xc0, 0xce, 0x3d, 0x01, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// SimpleServiceClient is the client API for SimpleService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type SimpleServiceClient interface { - // RepoAccessorUnary is a unary RPC that accesses a repo - RepoAccessorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*empty.Empty, error) - // RepoMutatorUnary is a unary RPC that mutates a repo - RepoMutatorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*empty.Empty, error) } -type simpleServiceClient struct { - cc *grpc.ClientConn +func (x *RepoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func NewSimpleServiceClient(cc *grpc.ClientConn) SimpleServiceClient { - return &simpleServiceClient{cc} -} - -func (c *simpleServiceClient) RepoAccessorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/mock.SimpleService/RepoAccessorUnary", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*RepoRequest) ProtoMessage() {} -func (c *simpleServiceClient) RepoMutatorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/mock.SimpleService/RepoMutatorUnary", in, out, opts...) - if err != nil { - return nil, err +func (x *RepoRequest) ProtoReflect() protoreflect.Message { + mi := &file_praefect_mock_mock_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil -} - -// SimpleServiceServer is the server API for SimpleService service. -type SimpleServiceServer interface { - // RepoAccessorUnary is a unary RPC that accesses a repo - RepoAccessorUnary(context.Context, *RepoRequest) (*empty.Empty, error) - // RepoMutatorUnary is a unary RPC that mutates a repo - RepoMutatorUnary(context.Context, *RepoRequest) (*empty.Empty, error) + return mi.MessageOf(x) } -// UnimplementedSimpleServiceServer can be embedded to have forward compatible implementations. -type UnimplementedSimpleServiceServer struct { -} - -func (*UnimplementedSimpleServiceServer) RepoAccessorUnary(ctx context.Context, req *RepoRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RepoAccessorUnary not implemented") -} -func (*UnimplementedSimpleServiceServer) RepoMutatorUnary(ctx context.Context, req *RepoRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RepoMutatorUnary not implemented") -} - -func RegisterSimpleServiceServer(s *grpc.Server, srv SimpleServiceServer) { - s.RegisterService(&_SimpleService_serviceDesc, srv) +// Deprecated: Use RepoRequest.ProtoReflect.Descriptor instead. +func (*RepoRequest) Descriptor() ([]byte, []int) { + return file_praefect_mock_mock_proto_rawDescGZIP(), []int{0} } -func _SimpleService_RepoAccessorUnary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RepoRequest) - if err := dec(in); err != nil { - return nil, err +func (x *RepoRequest) GetRepo() *gitalypb.Repository { + if x != nil { + return x.Repo } - if interceptor == nil { - return srv.(SimpleServiceServer).RepoAccessorUnary(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mock.SimpleService/RepoAccessorUnary", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SimpleServiceServer).RepoAccessorUnary(ctx, req.(*RepoRequest)) - } - return interceptor(ctx, in, info, handler) + return nil } -func _SimpleService_RepoMutatorUnary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RepoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SimpleServiceServer).RepoMutatorUnary(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mock.SimpleService/RepoMutatorUnary", +var File_praefect_mock_mock_proto protoreflect.FileDescriptor + +var file_praefect_mock_mock_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x70, 0x72, 0x61, 0x65, 0x66, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x6f, 0x63, 0x6b, 0x2f, + 0x6d, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6d, 0x6f, 0x63, 0x6b, + 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, + 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, + 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3b, 0x0a, 0x0b, 0x52, 0x65, 0x70, 0x6f, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x04, + 0x72, 0x65, 0x70, 0x6f, 0x32, 0x9e, 0x01, 0x0a, 0x0d, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x46, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6f, 0x41, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x12, 0x11, 0x2e, 0x6d, 0x6f, + 0x63, 0x6b, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x45, + 0x0a, 0x10, 0x52, 0x65, 0x70, 0x6f, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x6e, 0x61, + 0x72, 0x79, 0x12, 0x11, 0x2e, 0x6d, 0x6f, 0x63, 0x6b, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x06, 0xfa, + 0x97, 0x28, 0x02, 0x08, 0x01, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, + 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x61, 0x65, 0x66, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x6f, 0x63, 0x6b, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_praefect_mock_mock_proto_rawDescOnce sync.Once + file_praefect_mock_mock_proto_rawDescData = file_praefect_mock_mock_proto_rawDesc +) + +func file_praefect_mock_mock_proto_rawDescGZIP() []byte { + file_praefect_mock_mock_proto_rawDescOnce.Do(func() { + file_praefect_mock_mock_proto_rawDescData = protoimpl.X.CompressGZIP(file_praefect_mock_mock_proto_rawDescData) + }) + return file_praefect_mock_mock_proto_rawDescData +} + +var file_praefect_mock_mock_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_praefect_mock_mock_proto_goTypes = []interface{}{ + (*RepoRequest)(nil), // 0: mock.RepoRequest + (*gitalypb.Repository)(nil), // 1: gitaly.Repository + (*emptypb.Empty)(nil), // 2: google.protobuf.Empty +} +var file_praefect_mock_mock_proto_depIdxs = []int32{ + 1, // 0: mock.RepoRequest.repo:type_name -> gitaly.Repository + 0, // 1: mock.SimpleService.RepoAccessorUnary:input_type -> mock.RepoRequest + 0, // 2: mock.SimpleService.RepoMutatorUnary:input_type -> mock.RepoRequest + 2, // 3: mock.SimpleService.RepoAccessorUnary:output_type -> google.protobuf.Empty + 2, // 4: mock.SimpleService.RepoMutatorUnary:output_type -> google.protobuf.Empty + 3, // [3:5] is the sub-list for method output_type + 1, // [1:3] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_praefect_mock_mock_proto_init() } +func file_praefect_mock_mock_proto_init() { + if File_praefect_mock_mock_proto != nil { + return } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SimpleServiceServer).RepoMutatorUnary(ctx, req.(*RepoRequest)) + if !protoimpl.UnsafeEnabled { + file_praefect_mock_mock_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RepoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return interceptor(ctx, in, info, handler) -} - -var _SimpleService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mock.SimpleService", - HandlerType: (*SimpleServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "RepoAccessorUnary", - Handler: _SimpleService_RepoAccessorUnary_Handler, - }, - { - MethodName: "RepoMutatorUnary", - Handler: _SimpleService_RepoMutatorUnary_Handler, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_praefect_mock_mock_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 1, }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "praefect/mock/mock.proto", + GoTypes: file_praefect_mock_mock_proto_goTypes, + DependencyIndexes: file_praefect_mock_mock_proto_depIdxs, + MessageInfos: file_praefect_mock_mock_proto_msgTypes, + }.Build() + File_praefect_mock_mock_proto = out.File + file_praefect_mock_mock_proto_rawDesc = nil + file_praefect_mock_mock_proto_goTypes = nil + file_praefect_mock_mock_proto_depIdxs = nil } diff --git a/internal/praefect/mock/mock_grpc.pb.go b/internal/praefect/mock/mock_grpc.pb.go new file mode 100644 index 000000000..60203340b --- /dev/null +++ b/internal/praefect/mock/mock_grpc.pb.go @@ -0,0 +1,142 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package mock + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// SimpleServiceClient is the client API for SimpleService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type SimpleServiceClient interface { + // RepoAccessorUnary is a unary RPC that accesses a repo + RepoAccessorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + // RepoMutatorUnary is a unary RPC that mutates a repo + RepoMutatorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) +} + +type simpleServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSimpleServiceClient(cc grpc.ClientConnInterface) SimpleServiceClient { + return &simpleServiceClient{cc} +} + +func (c *simpleServiceClient) RepoAccessorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, "/mock.SimpleService/RepoAccessorUnary", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *simpleServiceClient) RepoMutatorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, "/mock.SimpleService/RepoMutatorUnary", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SimpleServiceServer is the server API for SimpleService service. +// All implementations must embed UnimplementedSimpleServiceServer +// for forward compatibility +type SimpleServiceServer interface { + // RepoAccessorUnary is a unary RPC that accesses a repo + RepoAccessorUnary(context.Context, *RepoRequest) (*emptypb.Empty, error) + // RepoMutatorUnary is a unary RPC that mutates a repo + RepoMutatorUnary(context.Context, *RepoRequest) (*emptypb.Empty, error) + mustEmbedUnimplementedSimpleServiceServer() +} + +// UnimplementedSimpleServiceServer must be embedded to have forward compatible implementations. +type UnimplementedSimpleServiceServer struct { +} + +func (UnimplementedSimpleServiceServer) RepoAccessorUnary(context.Context, *RepoRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RepoAccessorUnary not implemented") +} +func (UnimplementedSimpleServiceServer) RepoMutatorUnary(context.Context, *RepoRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RepoMutatorUnary not implemented") +} +func (UnimplementedSimpleServiceServer) mustEmbedUnimplementedSimpleServiceServer() {} + +// UnsafeSimpleServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SimpleServiceServer will +// result in compilation errors. +type UnsafeSimpleServiceServer interface { + mustEmbedUnimplementedSimpleServiceServer() +} + +func RegisterSimpleServiceServer(s grpc.ServiceRegistrar, srv SimpleServiceServer) { + s.RegisterService(&SimpleService_ServiceDesc, srv) +} + +func _SimpleService_RepoAccessorUnary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RepoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SimpleServiceServer).RepoAccessorUnary(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mock.SimpleService/RepoAccessorUnary", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SimpleServiceServer).RepoAccessorUnary(ctx, req.(*RepoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SimpleService_RepoMutatorUnary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RepoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SimpleServiceServer).RepoMutatorUnary(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mock.SimpleService/RepoMutatorUnary", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SimpleServiceServer).RepoMutatorUnary(ctx, req.(*RepoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// SimpleService_ServiceDesc is the grpc.ServiceDesc for SimpleService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SimpleService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "mock.SimpleService", + HandlerType: (*SimpleServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "RepoAccessorUnary", + Handler: _SimpleService_RepoAccessorUnary_Handler, + }, + { + MethodName: "RepoMutatorUnary", + Handler: _SimpleService_RepoMutatorUnary_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "praefect/mock/mock.proto", +} diff --git a/proto/go/gitalypb/blob.pb.go b/proto/go/gitalypb/blob.pb.go index efbd3aac1..ac28b1888 100644 --- a/proto/go/gitalypb/blob.pb.go +++ b/proto/go/gitalypb/blob.pb.go @@ -1,348 +1,333 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: blob.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type GetBlobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Object ID (SHA1) of the blob we want to get Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"` // Maximum number of bytes we want to receive. Use '-1' to get the full blob no matter how big. - Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` } -func (m *GetBlobRequest) Reset() { *m = GetBlobRequest{} } -func (m *GetBlobRequest) String() string { return proto.CompactTextString(m) } -func (*GetBlobRequest) ProtoMessage() {} -func (*GetBlobRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6903d1e8a20272e8, []int{0} +func (x *GetBlobRequest) Reset() { + *x = GetBlobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBlobRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBlobRequest.Unmarshal(m, b) -} -func (m *GetBlobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBlobRequest.Marshal(b, m, deterministic) -} -func (m *GetBlobRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBlobRequest.Merge(m, src) -} -func (m *GetBlobRequest) XXX_Size() int { - return xxx_messageInfo_GetBlobRequest.Size(m) +func (x *GetBlobRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetBlobRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetBlobRequest.DiscardUnknown(m) + +func (*GetBlobRequest) ProtoMessage() {} + +func (x *GetBlobRequest) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetBlobRequest proto.InternalMessageInfo +// Deprecated: Use GetBlobRequest.ProtoReflect.Descriptor instead. +func (*GetBlobRequest) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{0} +} -func (m *GetBlobRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *GetBlobRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *GetBlobRequest) GetOid() string { - if m != nil { - return m.Oid +func (x *GetBlobRequest) GetOid() string { + if x != nil { + return x.Oid } return "" } -func (m *GetBlobRequest) GetLimit() int64 { - if m != nil { - return m.Limit +func (x *GetBlobRequest) GetLimit() int64 { + if x != nil { + return x.Limit } return 0 } type GetBlobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Blob size; present only in first response message Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` // Chunk of blob data Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // Object ID of the actual blob returned. Empty if no blob was found. - Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"` } -func (m *GetBlobResponse) Reset() { *m = GetBlobResponse{} } -func (m *GetBlobResponse) String() string { return proto.CompactTextString(m) } -func (*GetBlobResponse) ProtoMessage() {} -func (*GetBlobResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6903d1e8a20272e8, []int{1} +func (x *GetBlobResponse) Reset() { + *x = GetBlobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBlobResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBlobResponse.Unmarshal(m, b) +func (x *GetBlobResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetBlobResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBlobResponse.Marshal(b, m, deterministic) -} -func (m *GetBlobResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBlobResponse.Merge(m, src) -} -func (m *GetBlobResponse) XXX_Size() int { - return xxx_messageInfo_GetBlobResponse.Size(m) -} -func (m *GetBlobResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetBlobResponse.DiscardUnknown(m) + +func (*GetBlobResponse) ProtoMessage() {} + +func (x *GetBlobResponse) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetBlobResponse proto.InternalMessageInfo +// Deprecated: Use GetBlobResponse.ProtoReflect.Descriptor instead. +func (*GetBlobResponse) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{1} +} -func (m *GetBlobResponse) GetSize() int64 { - if m != nil { - return m.Size +func (x *GetBlobResponse) GetSize() int64 { + if x != nil { + return x.Size } return 0 } -func (m *GetBlobResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *GetBlobResponse) GetData() []byte { + if x != nil { + return x.Data } return nil } -func (m *GetBlobResponse) GetOid() string { - if m != nil { - return m.Oid +func (x *GetBlobResponse) GetOid() string { + if x != nil { + return x.Oid } return "" } type GetBlobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Revision/Path pairs of the blobs we want to get. RevisionPaths []*GetBlobsRequest_RevisionPath `protobuf:"bytes,2,rep,name=revision_paths,json=revisionPaths,proto3" json:"revision_paths,omitempty"` // Maximum number of bytes we want to receive. Use '-1' to get the full blobs no matter how big. - Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` } -func (m *GetBlobsRequest) Reset() { *m = GetBlobsRequest{} } -func (m *GetBlobsRequest) String() string { return proto.CompactTextString(m) } -func (*GetBlobsRequest) ProtoMessage() {} -func (*GetBlobsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6903d1e8a20272e8, []int{2} +func (x *GetBlobsRequest) Reset() { + *x = GetBlobsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBlobsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBlobsRequest.Unmarshal(m, b) -} -func (m *GetBlobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBlobsRequest.Marshal(b, m, deterministic) -} -func (m *GetBlobsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBlobsRequest.Merge(m, src) -} -func (m *GetBlobsRequest) XXX_Size() int { - return xxx_messageInfo_GetBlobsRequest.Size(m) -} -func (m *GetBlobsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetBlobsRequest.DiscardUnknown(m) +func (x *GetBlobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GetBlobsRequest proto.InternalMessageInfo +func (*GetBlobsRequest) ProtoMessage() {} -func (m *GetBlobsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *GetBlobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *GetBlobsRequest) GetRevisionPaths() []*GetBlobsRequest_RevisionPath { - if m != nil { - return m.RevisionPaths - } - return nil +// Deprecated: Use GetBlobsRequest.ProtoReflect.Descriptor instead. +func (*GetBlobsRequest) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{2} } -func (m *GetBlobsRequest) GetLimit() int64 { - if m != nil { - return m.Limit +func (x *GetBlobsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return 0 -} - -type GetBlobsRequest_RevisionPath struct { - Revision string `protobuf:"bytes,1,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetBlobsRequest_RevisionPath) Reset() { *m = GetBlobsRequest_RevisionPath{} } -func (m *GetBlobsRequest_RevisionPath) String() string { return proto.CompactTextString(m) } -func (*GetBlobsRequest_RevisionPath) ProtoMessage() {} -func (*GetBlobsRequest_RevisionPath) Descriptor() ([]byte, []int) { - return fileDescriptor_6903d1e8a20272e8, []int{2, 0} -} - -func (m *GetBlobsRequest_RevisionPath) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBlobsRequest_RevisionPath.Unmarshal(m, b) -} -func (m *GetBlobsRequest_RevisionPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBlobsRequest_RevisionPath.Marshal(b, m, deterministic) -} -func (m *GetBlobsRequest_RevisionPath) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBlobsRequest_RevisionPath.Merge(m, src) -} -func (m *GetBlobsRequest_RevisionPath) XXX_Size() int { - return xxx_messageInfo_GetBlobsRequest_RevisionPath.Size(m) -} -func (m *GetBlobsRequest_RevisionPath) XXX_DiscardUnknown() { - xxx_messageInfo_GetBlobsRequest_RevisionPath.DiscardUnknown(m) + return nil } -var xxx_messageInfo_GetBlobsRequest_RevisionPath proto.InternalMessageInfo - -func (m *GetBlobsRequest_RevisionPath) GetRevision() string { - if m != nil { - return m.Revision +func (x *GetBlobsRequest) GetRevisionPaths() []*GetBlobsRequest_RevisionPath { + if x != nil { + return x.RevisionPaths } - return "" + return nil } -func (m *GetBlobsRequest_RevisionPath) GetPath() []byte { - if m != nil { - return m.Path +func (x *GetBlobsRequest) GetLimit() int64 { + if x != nil { + return x.Limit } - return nil + return 0 } type GetBlobsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Blob size; present only on the first message per blob Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` // Chunk of blob data, could span over multiple messages. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // Object ID of the current blob. Only present on the first message per blob. Empty if no blob was found. - Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"` - IsSubmodule bool `protobuf:"varint,4,opt,name=is_submodule,json=isSubmodule,proto3" json:"is_submodule,omitempty"` - Mode int32 `protobuf:"varint,5,opt,name=mode,proto3" json:"mode,omitempty"` - Revision string `protobuf:"bytes,6,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"` - Type ObjectType `protobuf:"varint,8,opt,name=type,proto3,enum=gitaly.ObjectType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetBlobsResponse) Reset() { *m = GetBlobsResponse{} } -func (m *GetBlobsResponse) String() string { return proto.CompactTextString(m) } -func (*GetBlobsResponse) ProtoMessage() {} -func (*GetBlobsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6903d1e8a20272e8, []int{3} + Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"` + IsSubmodule bool `protobuf:"varint,4,opt,name=is_submodule,json=isSubmodule,proto3" json:"is_submodule,omitempty"` + Mode int32 `protobuf:"varint,5,opt,name=mode,proto3" json:"mode,omitempty"` + Revision string `protobuf:"bytes,6,opt,name=revision,proto3" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"` + Type ObjectType `protobuf:"varint,8,opt,name=type,proto3,enum=gitaly.ObjectType" json:"type,omitempty"` +} + +func (x *GetBlobsResponse) Reset() { + *x = GetBlobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBlobsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBlobsResponse.Unmarshal(m, b) -} -func (m *GetBlobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBlobsResponse.Marshal(b, m, deterministic) -} -func (m *GetBlobsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBlobsResponse.Merge(m, src) +func (x *GetBlobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetBlobsResponse) XXX_Size() int { - return xxx_messageInfo_GetBlobsResponse.Size(m) -} -func (m *GetBlobsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetBlobsResponse.DiscardUnknown(m) + +func (*GetBlobsResponse) ProtoMessage() {} + +func (x *GetBlobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetBlobsResponse proto.InternalMessageInfo +// Deprecated: Use GetBlobsResponse.ProtoReflect.Descriptor instead. +func (*GetBlobsResponse) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{3} +} -func (m *GetBlobsResponse) GetSize() int64 { - if m != nil { - return m.Size +func (x *GetBlobsResponse) GetSize() int64 { + if x != nil { + return x.Size } return 0 } -func (m *GetBlobsResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *GetBlobsResponse) GetData() []byte { + if x != nil { + return x.Data } return nil } -func (m *GetBlobsResponse) GetOid() string { - if m != nil { - return m.Oid +func (x *GetBlobsResponse) GetOid() string { + if x != nil { + return x.Oid } return "" } -func (m *GetBlobsResponse) GetIsSubmodule() bool { - if m != nil { - return m.IsSubmodule +func (x *GetBlobsResponse) GetIsSubmodule() bool { + if x != nil { + return x.IsSubmodule } return false } -func (m *GetBlobsResponse) GetMode() int32 { - if m != nil { - return m.Mode +func (x *GetBlobsResponse) GetMode() int32 { + if x != nil { + return x.Mode } return 0 } -func (m *GetBlobsResponse) GetRevision() string { - if m != nil { - return m.Revision +func (x *GetBlobsResponse) GetRevision() string { + if x != nil { + return x.Revision } return "" } -func (m *GetBlobsResponse) GetPath() []byte { - if m != nil { - return m.Path +func (x *GetBlobsResponse) GetPath() []byte { + if x != nil { + return x.Path } return nil } -func (m *GetBlobsResponse) GetType() ObjectType { - if m != nil { - return m.Type +func (x *GetBlobsResponse) GetType() ObjectType { + if x != nil { + return x.Type } return ObjectType_UNKNOWN } // LFSPointer is a git blob which points to an LFS object. type LFSPointer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Size is the size of the blob. This is not the size of the LFS object // pointed to. Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` @@ -350,208 +335,240 @@ type LFSPointer struct { // the LFS data in the format specified by the LFS project. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // Oid is the object ID of the blob. - Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"` } -func (m *LFSPointer) Reset() { *m = LFSPointer{} } -func (m *LFSPointer) String() string { return proto.CompactTextString(m) } -func (*LFSPointer) ProtoMessage() {} -func (*LFSPointer) Descriptor() ([]byte, []int) { - return fileDescriptor_6903d1e8a20272e8, []int{4} +func (x *LFSPointer) Reset() { + *x = LFSPointer{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LFSPointer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LFSPointer.Unmarshal(m, b) -} -func (m *LFSPointer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LFSPointer.Marshal(b, m, deterministic) -} -func (m *LFSPointer) XXX_Merge(src proto.Message) { - xxx_messageInfo_LFSPointer.Merge(m, src) +func (x *LFSPointer) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LFSPointer) XXX_Size() int { - return xxx_messageInfo_LFSPointer.Size(m) -} -func (m *LFSPointer) XXX_DiscardUnknown() { - xxx_messageInfo_LFSPointer.DiscardUnknown(m) + +func (*LFSPointer) ProtoMessage() {} + +func (x *LFSPointer) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LFSPointer proto.InternalMessageInfo +// Deprecated: Use LFSPointer.ProtoReflect.Descriptor instead. +func (*LFSPointer) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{4} +} -func (m *LFSPointer) GetSize() int64 { - if m != nil { - return m.Size +func (x *LFSPointer) GetSize() int64 { + if x != nil { + return x.Size } return 0 } -func (m *LFSPointer) GetData() []byte { - if m != nil { - return m.Data +func (x *LFSPointer) GetData() []byte { + if x != nil { + return x.Data } return nil } -func (m *LFSPointer) GetOid() string { - if m != nil { - return m.Oid +func (x *LFSPointer) GetOid() string { + if x != nil { + return x.Oid } return "" } type NewBlobObject struct { - Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` - Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"` - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *NewBlobObject) Reset() { *m = NewBlobObject{} } -func (m *NewBlobObject) String() string { return proto.CompactTextString(m) } -func (*NewBlobObject) ProtoMessage() {} -func (*NewBlobObject) Descriptor() ([]byte, []int) { - return fileDescriptor_6903d1e8a20272e8, []int{5} + Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` + Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"` + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` } -func (m *NewBlobObject) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NewBlobObject.Unmarshal(m, b) -} -func (m *NewBlobObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NewBlobObject.Marshal(b, m, deterministic) -} -func (m *NewBlobObject) XXX_Merge(src proto.Message) { - xxx_messageInfo_NewBlobObject.Merge(m, src) +func (x *NewBlobObject) Reset() { + *x = NewBlobObject{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NewBlobObject) XXX_Size() int { - return xxx_messageInfo_NewBlobObject.Size(m) + +func (x *NewBlobObject) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NewBlobObject) XXX_DiscardUnknown() { - xxx_messageInfo_NewBlobObject.DiscardUnknown(m) + +func (*NewBlobObject) ProtoMessage() {} + +func (x *NewBlobObject) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_NewBlobObject proto.InternalMessageInfo +// Deprecated: Use NewBlobObject.ProtoReflect.Descriptor instead. +func (*NewBlobObject) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{5} +} -func (m *NewBlobObject) GetSize() int64 { - if m != nil { - return m.Size +func (x *NewBlobObject) GetSize() int64 { + if x != nil { + return x.Size } return 0 } -func (m *NewBlobObject) GetOid() string { - if m != nil { - return m.Oid +func (x *NewBlobObject) GetOid() string { + if x != nil { + return x.Oid } return "" } -func (m *NewBlobObject) GetPath() []byte { - if m != nil { - return m.Path +func (x *NewBlobObject) GetPath() []byte { + if x != nil { + return x.Path } return nil } // GetLFSPointersRequest is a request for the GetLFSPointers RPC. type GetLFSPointersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Repository is the repository for which LFS pointers should be retrieved // from. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // BlobIds is the list of blobs to retrieve LFS pointers from. Must be a // non-empty list of blobs IDs to fetch. - BlobIds []string `protobuf:"bytes,2,rep,name=blob_ids,json=blobIds,proto3" json:"blob_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + BlobIds []string `protobuf:"bytes,2,rep,name=blob_ids,json=blobIds,proto3" json:"blob_ids,omitempty"` } -func (m *GetLFSPointersRequest) Reset() { *m = GetLFSPointersRequest{} } -func (m *GetLFSPointersRequest) String() string { return proto.CompactTextString(m) } -func (*GetLFSPointersRequest) ProtoMessage() {} -func (*GetLFSPointersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6903d1e8a20272e8, []int{6} +func (x *GetLFSPointersRequest) Reset() { + *x = GetLFSPointersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetLFSPointersRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLFSPointersRequest.Unmarshal(m, b) -} -func (m *GetLFSPointersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLFSPointersRequest.Marshal(b, m, deterministic) -} -func (m *GetLFSPointersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLFSPointersRequest.Merge(m, src) -} -func (m *GetLFSPointersRequest) XXX_Size() int { - return xxx_messageInfo_GetLFSPointersRequest.Size(m) +func (x *GetLFSPointersRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetLFSPointersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetLFSPointersRequest.DiscardUnknown(m) + +func (*GetLFSPointersRequest) ProtoMessage() {} + +func (x *GetLFSPointersRequest) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetLFSPointersRequest proto.InternalMessageInfo +// Deprecated: Use GetLFSPointersRequest.ProtoReflect.Descriptor instead. +func (*GetLFSPointersRequest) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{6} +} -func (m *GetLFSPointersRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *GetLFSPointersRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *GetLFSPointersRequest) GetBlobIds() []string { - if m != nil { - return m.BlobIds +func (x *GetLFSPointersRequest) GetBlobIds() []string { + if x != nil { + return x.BlobIds } return nil } // GetLFSPointersResponse is a response for the GetLFSPointers RPC. type GetLFSPointersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // LfsPointers is the list of LFS pointers which were requested. - LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers,proto3" json:"lfs_pointers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers,proto3" json:"lfs_pointers,omitempty"` } -func (m *GetLFSPointersResponse) Reset() { *m = GetLFSPointersResponse{} } -func (m *GetLFSPointersResponse) String() string { return proto.CompactTextString(m) } -func (*GetLFSPointersResponse) ProtoMessage() {} -func (*GetLFSPointersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6903d1e8a20272e8, []int{7} +func (x *GetLFSPointersResponse) Reset() { + *x = GetLFSPointersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetLFSPointersResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLFSPointersResponse.Unmarshal(m, b) +func (x *GetLFSPointersResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetLFSPointersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLFSPointersResponse.Marshal(b, m, deterministic) -} -func (m *GetLFSPointersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLFSPointersResponse.Merge(m, src) -} -func (m *GetLFSPointersResponse) XXX_Size() int { - return xxx_messageInfo_GetLFSPointersResponse.Size(m) -} -func (m *GetLFSPointersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetLFSPointersResponse.DiscardUnknown(m) + +func (*GetLFSPointersResponse) ProtoMessage() {} + +func (x *GetLFSPointersResponse) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetLFSPointersResponse proto.InternalMessageInfo +// Deprecated: Use GetLFSPointersResponse.ProtoReflect.Descriptor instead. +func (*GetLFSPointersResponse) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{7} +} -func (m *GetLFSPointersResponse) GetLfsPointers() []*LFSPointer { - if m != nil { - return m.LfsPointers +func (x *GetLFSPointersResponse) GetLfsPointers() []*LFSPointer { + if x != nil { + return x.LfsPointers } return nil } // ListLFSPointersRequest is a request for the ListLFSPointers RPC. type ListLFSPointersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Repository is the repository for which LFS pointers should be retrieved // from. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` @@ -559,637 +576,641 @@ type ListLFSPointersRequest struct { // a non-empty list. Revisions []string `protobuf:"bytes,2,rep,name=revisions,proto3" json:"revisions,omitempty"` // Limit limits the number of LFS pointers returned. - Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` } -func (m *ListLFSPointersRequest) Reset() { *m = ListLFSPointersRequest{} } -func (m *ListLFSPointersRequest) String() string { return proto.CompactTextString(m) } -func (*ListLFSPointersRequest) ProtoMessage() {} -func (*ListLFSPointersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6903d1e8a20272e8, []int{8} +func (x *ListLFSPointersRequest) Reset() { + *x = ListLFSPointersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListLFSPointersRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListLFSPointersRequest.Unmarshal(m, b) +func (x *ListLFSPointersRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListLFSPointersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListLFSPointersRequest.Marshal(b, m, deterministic) -} -func (m *ListLFSPointersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListLFSPointersRequest.Merge(m, src) -} -func (m *ListLFSPointersRequest) XXX_Size() int { - return xxx_messageInfo_ListLFSPointersRequest.Size(m) -} -func (m *ListLFSPointersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListLFSPointersRequest.DiscardUnknown(m) + +func (*ListLFSPointersRequest) ProtoMessage() {} + +func (x *ListLFSPointersRequest) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListLFSPointersRequest proto.InternalMessageInfo +// Deprecated: Use ListLFSPointersRequest.ProtoReflect.Descriptor instead. +func (*ListLFSPointersRequest) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{8} +} -func (m *ListLFSPointersRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ListLFSPointersRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ListLFSPointersRequest) GetRevisions() []string { - if m != nil { - return m.Revisions +func (x *ListLFSPointersRequest) GetRevisions() []string { + if x != nil { + return x.Revisions } return nil } -func (m *ListLFSPointersRequest) GetLimit() int32 { - if m != nil { - return m.Limit +func (x *ListLFSPointersRequest) GetLimit() int32 { + if x != nil { + return x.Limit } return 0 } // ListLFSPointersResponse is a response for the ListLFSPointers RPC. type ListLFSPointersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // LfsPointers is the list of LFS pointers which were requested. - LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers,proto3" json:"lfs_pointers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers,proto3" json:"lfs_pointers,omitempty"` } -func (m *ListLFSPointersResponse) Reset() { *m = ListLFSPointersResponse{} } -func (m *ListLFSPointersResponse) String() string { return proto.CompactTextString(m) } -func (*ListLFSPointersResponse) ProtoMessage() {} -func (*ListLFSPointersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6903d1e8a20272e8, []int{9} +func (x *ListLFSPointersResponse) Reset() { + *x = ListLFSPointersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListLFSPointersResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListLFSPointersResponse.Unmarshal(m, b) +func (x *ListLFSPointersResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListLFSPointersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListLFSPointersResponse.Marshal(b, m, deterministic) -} -func (m *ListLFSPointersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListLFSPointersResponse.Merge(m, src) -} -func (m *ListLFSPointersResponse) XXX_Size() int { - return xxx_messageInfo_ListLFSPointersResponse.Size(m) -} -func (m *ListLFSPointersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListLFSPointersResponse.DiscardUnknown(m) + +func (*ListLFSPointersResponse) ProtoMessage() {} + +func (x *ListLFSPointersResponse) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListLFSPointersResponse proto.InternalMessageInfo +// Deprecated: Use ListLFSPointersResponse.ProtoReflect.Descriptor instead. +func (*ListLFSPointersResponse) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{9} +} -func (m *ListLFSPointersResponse) GetLfsPointers() []*LFSPointer { - if m != nil { - return m.LfsPointers +func (x *ListLFSPointersResponse) GetLfsPointers() []*LFSPointer { + if x != nil { + return x.LfsPointers } return nil } // ListAllLFSPointersRequest is a request for the ListAllLFSPointers RPC. type ListAllLFSPointersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Repository is the repository for which LFS pointers should be retrieved // from. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Limit limits the number of LFS pointers returned. - Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListAllLFSPointersRequest) Reset() { *m = ListAllLFSPointersRequest{} } -func (m *ListAllLFSPointersRequest) String() string { return proto.CompactTextString(m) } -func (*ListAllLFSPointersRequest) ProtoMessage() {} -func (*ListAllLFSPointersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6903d1e8a20272e8, []int{10} + Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` } -func (m *ListAllLFSPointersRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListAllLFSPointersRequest.Unmarshal(m, b) -} -func (m *ListAllLFSPointersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListAllLFSPointersRequest.Marshal(b, m, deterministic) -} -func (m *ListAllLFSPointersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListAllLFSPointersRequest.Merge(m, src) -} -func (m *ListAllLFSPointersRequest) XXX_Size() int { - return xxx_messageInfo_ListAllLFSPointersRequest.Size(m) -} -func (m *ListAllLFSPointersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListAllLFSPointersRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListAllLFSPointersRequest proto.InternalMessageInfo - -func (m *ListAllLFSPointersRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *ListAllLFSPointersRequest) GetLimit() int32 { - if m != nil { - return m.Limit +func (x *ListAllLFSPointersRequest) Reset() { + *x = ListAllLFSPointersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 -} - -// ListAllLFSPointersResponse is a response for the ListAllLFSPointers RPC. -type ListAllLFSPointersResponse struct { - // LfsPointers is the list of LFS pointers which were requested. - LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers,proto3" json:"lfs_pointers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListAllLFSPointersResponse) Reset() { *m = ListAllLFSPointersResponse{} } -func (m *ListAllLFSPointersResponse) String() string { return proto.CompactTextString(m) } -func (*ListAllLFSPointersResponse) ProtoMessage() {} -func (*ListAllLFSPointersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6903d1e8a20272e8, []int{11} } -func (m *ListAllLFSPointersResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListAllLFSPointersResponse.Unmarshal(m, b) -} -func (m *ListAllLFSPointersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListAllLFSPointersResponse.Marshal(b, m, deterministic) -} -func (m *ListAllLFSPointersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListAllLFSPointersResponse.Merge(m, src) -} -func (m *ListAllLFSPointersResponse) XXX_Size() int { - return xxx_messageInfo_ListAllLFSPointersResponse.Size(m) +func (x *ListAllLFSPointersRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListAllLFSPointersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListAllLFSPointersResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListAllLFSPointersResponse proto.InternalMessageInfo -func (m *ListAllLFSPointersResponse) GetLfsPointers() []*LFSPointer { - if m != nil { - return m.LfsPointers - } - return nil -} +func (*ListAllLFSPointersRequest) ProtoMessage() {} -func init() { - proto.RegisterType((*GetBlobRequest)(nil), "gitaly.GetBlobRequest") - proto.RegisterType((*GetBlobResponse)(nil), "gitaly.GetBlobResponse") - proto.RegisterType((*GetBlobsRequest)(nil), "gitaly.GetBlobsRequest") - proto.RegisterType((*GetBlobsRequest_RevisionPath)(nil), "gitaly.GetBlobsRequest.RevisionPath") - proto.RegisterType((*GetBlobsResponse)(nil), "gitaly.GetBlobsResponse") - proto.RegisterType((*LFSPointer)(nil), "gitaly.LFSPointer") - proto.RegisterType((*NewBlobObject)(nil), "gitaly.NewBlobObject") - proto.RegisterType((*GetLFSPointersRequest)(nil), "gitaly.GetLFSPointersRequest") - proto.RegisterType((*GetLFSPointersResponse)(nil), "gitaly.GetLFSPointersResponse") - proto.RegisterType((*ListLFSPointersRequest)(nil), "gitaly.ListLFSPointersRequest") - proto.RegisterType((*ListLFSPointersResponse)(nil), "gitaly.ListLFSPointersResponse") - proto.RegisterType((*ListAllLFSPointersRequest)(nil), "gitaly.ListAllLFSPointersRequest") - proto.RegisterType((*ListAllLFSPointersResponse)(nil), "gitaly.ListAllLFSPointersResponse") -} - -func init() { proto.RegisterFile("blob.proto", fileDescriptor_6903d1e8a20272e8) } - -var fileDescriptor_6903d1e8a20272e8 = []byte{ - // 644 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x6e, 0xd3, 0x30, - 0x14, 0x96, 0x9b, 0xb6, 0x6b, 0x4f, 0xbb, 0x1f, 0x59, 0xb0, 0x65, 0x11, 0x3f, 0x59, 0x84, 0x50, - 0x2e, 0xa0, 0x85, 0x32, 0x24, 0xae, 0x90, 0x98, 0xd0, 0xa6, 0x69, 0x13, 0x9b, 0x5c, 0x6e, 0x40, - 0x48, 0x55, 0xb2, 0x78, 0x9d, 0xc1, 0xad, 0x43, 0xec, 0x0d, 0x95, 0x07, 0xe0, 0x15, 0xe0, 0x61, - 0xb8, 0xe6, 0x25, 0x78, 0x07, 0x1e, 0x80, 0x2b, 0x94, 0xff, 0xac, 0x49, 0xb9, 0xe9, 0xee, 0x8e, - 0x8f, 0x73, 0xbe, 0xef, 0x3b, 0xc7, 0x9f, 0x1d, 0x00, 0x97, 0x0b, 0xb7, 0xe7, 0x07, 0x42, 0x09, - 0xdc, 0x1c, 0x33, 0xe5, 0xf0, 0x99, 0x01, 0x9c, 0x4d, 0x55, 0x9c, 0x33, 0xba, 0xf2, 0xc2, 0x09, - 0xa8, 0x17, 0xaf, 0xac, 0x00, 0xd6, 0x0e, 0xa8, 0xda, 0xe3, 0xc2, 0x25, 0xf4, 0xf3, 0x25, 0x95, - 0x0a, 0xbf, 0x00, 0x08, 0xa8, 0x2f, 0x24, 0x53, 0x22, 0x98, 0xe9, 0xc8, 0x44, 0x76, 0x67, 0x80, - 0x7b, 0x31, 0x50, 0x8f, 0x64, 0x3b, 0x7b, 0xf5, 0x1f, 0xbf, 0x1e, 0x21, 0x52, 0xf8, 0x16, 0x6f, - 0x80, 0x26, 0x98, 0xa7, 0xd7, 0x4c, 0x64, 0xb7, 0x49, 0x18, 0xe2, 0x5b, 0xd0, 0xe0, 0x6c, 0xc2, - 0x94, 0xae, 0x99, 0xc8, 0xd6, 0x48, 0xbc, 0xb0, 0x8e, 0x60, 0x3d, 0xe3, 0x94, 0xbe, 0x98, 0x4a, - 0x8a, 0x31, 0xd4, 0x25, 0xfb, 0x4a, 0x23, 0x3a, 0x8d, 0x44, 0x71, 0x98, 0xf3, 0x1c, 0xe5, 0x44, - 0x78, 0x5d, 0x12, 0xc5, 0x29, 0x85, 0x96, 0x51, 0x58, 0x7f, 0x50, 0x86, 0x26, 0x97, 0x6f, 0xe1, - 0x08, 0xd6, 0x02, 0x7a, 0xc5, 0x24, 0x13, 0xd3, 0x91, 0xef, 0xa8, 0x0b, 0xa9, 0xd7, 0x4c, 0xcd, - 0xee, 0x0c, 0x1e, 0xa4, 0xd5, 0x73, 0x54, 0x3d, 0x92, 0x7c, 0x7d, 0xea, 0xa8, 0x0b, 0xb2, 0x1a, - 0x14, 0x56, 0xb2, 0xba, 0x7b, 0xe3, 0x25, 0x74, 0x8b, 0x45, 0xd8, 0x80, 0x56, 0x5a, 0x16, 0x49, - 0x6d, 0x93, 0x6c, 0x1d, 0x8e, 0x20, 0x54, 0x91, 0x8e, 0x20, 0x8c, 0xad, 0xdf, 0x08, 0x36, 0x72, - 0x15, 0xcb, 0xce, 0x0f, 0xef, 0x40, 0x97, 0xc9, 0x91, 0xbc, 0x74, 0x27, 0xc2, 0xbb, 0xe4, 0x54, - 0xaf, 0x9b, 0xc8, 0x6e, 0x91, 0x0e, 0x93, 0xc3, 0x34, 0x15, 0x02, 0x4d, 0x84, 0x47, 0xf5, 0x86, - 0x89, 0xec, 0x06, 0x89, 0xe2, 0x6b, 0xaa, 0x9b, 0x0b, 0x54, 0xaf, 0xe4, 0xaa, 0xf1, 0x43, 0xa8, - 0xab, 0x99, 0x4f, 0xf5, 0x96, 0x89, 0xec, 0xb5, 0xfc, 0x30, 0x4e, 0xdc, 0x8f, 0xf4, 0x4c, 0xbd, - 0x9d, 0xf9, 0x94, 0x44, 0xfb, 0xd6, 0x3e, 0xc0, 0xf1, 0xfe, 0xf0, 0x54, 0xb0, 0xa9, 0xa2, 0xc1, - 0x12, 0xb6, 0x38, 0x84, 0xd5, 0x37, 0xf4, 0x4b, 0x38, 0xa4, 0x98, 0xa2, 0x12, 0xaa, 0x6c, 0xd8, - 0x54, 0xba, 0x56, 0x18, 0x38, 0x87, 0xdb, 0x07, 0x54, 0xe5, 0xaa, 0x6e, 0xc0, 0x66, 0xdb, 0xd0, - 0x0a, 0x6f, 0xe9, 0x88, 0x79, 0xb1, 0xc1, 0xda, 0x64, 0x25, 0x5c, 0x1f, 0x7a, 0xd2, 0x3a, 0x81, - 0xcd, 0x79, 0xb6, 0xe4, 0x8c, 0x9f, 0x43, 0x97, 0x9f, 0xcb, 0x91, 0x9f, 0xe4, 0x75, 0x14, 0x39, - 0x33, 0x23, 0xcc, 0x4b, 0x48, 0x87, 0x9f, 0xcb, 0xb4, 0xdc, 0xfa, 0x86, 0x60, 0xf3, 0x98, 0xc9, - 0x9b, 0x6d, 0xe0, 0x0e, 0xb4, 0xd3, 0xe3, 0x4e, 0x3b, 0xc8, 0x13, 0xd7, 0x8d, 0xdf, 0x48, 0xaf, - 0xfd, 0x29, 0x6c, 0x95, 0x74, 0x2c, 0xd7, 0xda, 0x27, 0xd8, 0x0e, 0x11, 0x5f, 0x71, 0x7e, 0xa3, - 0xcd, 0x55, 0xcb, 0x1f, 0x82, 0x51, 0x45, 0xb6, 0x54, 0x07, 0x83, 0x9f, 0x1a, 0x74, 0x42, 0x93, - 0x0e, 0x69, 0x70, 0xc5, 0xce, 0x28, 0x7e, 0x0d, 0x2b, 0xc9, 0xdd, 0xc6, 0x9b, 0x73, 0x4f, 0x4e, - 0xd2, 0x97, 0xb1, 0x55, 0xca, 0xc7, 0x12, 0xac, 0xe6, 0xdf, 0xef, 0x76, 0xad, 0x55, 0x7b, 0x82, - 0xf0, 0x01, 0xb4, 0xd2, 0x17, 0x02, 0x6f, 0x2d, 0x78, 0xb9, 0x0c, 0xbd, 0xbc, 0x51, 0x02, 0x7a, - 0x17, 0xfd, 0x1d, 0x0a, 0xfd, 0xe2, 0xbb, 0x85, 0xaa, 0xf2, 0xd0, 0x8d, 0x7b, 0x8b, 0xb6, 0x4b, - 0xd0, 0x1f, 0x60, 0x7d, 0xce, 0x0d, 0x38, 0x2b, 0xae, 0xb6, 0xab, 0x71, 0x7f, 0xe1, 0x7e, 0x09, - 0x9d, 0x02, 0x2e, 0x1f, 0x16, 0xde, 0x29, 0x02, 0x54, 0xba, 0xc6, 0xb0, 0xfe, 0xf7, 0xc9, 0x3c, - 0xcd, 0xde, 0xee, 0xfb, 0xc1, 0x98, 0x29, 0xee, 0xb8, 0xbd, 0x33, 0x31, 0xe9, 0xc7, 0xe1, 0x63, - 0x11, 0x8c, 0xfb, 0x31, 0x48, 0xff, 0xea, 0xe9, 0x6e, 0x3f, 0xfa, 0xcf, 0xf6, 0xc7, 0x22, 0xc9, - 0xf9, 0xae, 0xdb, 0x8c, 0x52, 0xcf, 0xfe, 0x05, 0x00, 0x00, 0xff, 0xff, 0x33, 0xe5, 0x62, 0xe6, - 0xaa, 0x07, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// BlobServiceClient is the client API for BlobService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type BlobServiceClient interface { - // GetBlob returns the contents of a blob object referenced by its object - // ID. We use a stream to return a chunked arbitrarily large binary - // response - GetBlob(ctx context.Context, in *GetBlobRequest, opts ...grpc.CallOption) (BlobService_GetBlobClient, error) - GetBlobs(ctx context.Context, in *GetBlobsRequest, opts ...grpc.CallOption) (BlobService_GetBlobsClient, error) - // GetLFSPointers retrieves LFS pointers from a given set of object IDs. - // This RPC filters all requested objects and only returns those which refer - // to a valid LFS pointer. - GetLFSPointers(ctx context.Context, in *GetLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetLFSPointersClient, error) - // ListLFSPointers retrieves LFS pointers reachable from a given set of - // revisions by doing a graph walk. This includes both normal revisions like - // an object ID or branch, but also the pseudo-revisions "--all" and "--not" - // as documented in git-rev-parse(1). Revisions which don't directly or - // transitively reference any LFS pointers are ignored. It is not valid to - // pass revisions which do not resolve to an existing object. - ListLFSPointers(ctx context.Context, in *ListLFSPointersRequest, opts ...grpc.CallOption) (BlobService_ListLFSPointersClient, error) - // ListAllLFSPointers retrieves all LFS pointers in the repository, including - // those not reachable by any reference. - ListAllLFSPointers(ctx context.Context, in *ListAllLFSPointersRequest, opts ...grpc.CallOption) (BlobService_ListAllLFSPointersClient, error) -} - -type blobServiceClient struct { - cc *grpc.ClientConn -} - -func NewBlobServiceClient(cc *grpc.ClientConn) BlobServiceClient { - return &blobServiceClient{cc} -} - -func (c *blobServiceClient) GetBlob(ctx context.Context, in *GetBlobRequest, opts ...grpc.CallOption) (BlobService_GetBlobClient, error) { - stream, err := c.cc.NewStream(ctx, &_BlobService_serviceDesc.Streams[0], "/gitaly.BlobService/GetBlob", opts...) - if err != nil { - return nil, err - } - x := &blobServiceGetBlobClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *ListAllLFSPointersRequest) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type BlobService_GetBlobClient interface { - Recv() (*GetBlobResponse, error) - grpc.ClientStream + return mi.MessageOf(x) } -type blobServiceGetBlobClient struct { - grpc.ClientStream +// Deprecated: Use ListAllLFSPointersRequest.ProtoReflect.Descriptor instead. +func (*ListAllLFSPointersRequest) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{10} } -func (x *blobServiceGetBlobClient) Recv() (*GetBlobResponse, error) { - m := new(GetBlobResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *ListAllLFSPointersRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return m, nil + return nil } -func (c *blobServiceClient) GetBlobs(ctx context.Context, in *GetBlobsRequest, opts ...grpc.CallOption) (BlobService_GetBlobsClient, error) { - stream, err := c.cc.NewStream(ctx, &_BlobService_serviceDesc.Streams[1], "/gitaly.BlobService/GetBlobs", opts...) - if err != nil { - return nil, err - } - x := &blobServiceGetBlobsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *ListAllLFSPointersRequest) GetLimit() int32 { + if x != nil { + return x.Limit } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type BlobService_GetBlobsClient interface { - Recv() (*GetBlobsResponse, error) - grpc.ClientStream + return 0 } -type blobServiceGetBlobsClient struct { - grpc.ClientStream -} +// ListAllLFSPointersResponse is a response for the ListAllLFSPointers RPC. +type ListAllLFSPointersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *blobServiceGetBlobsClient) Recv() (*GetBlobsResponse, error) { - m := new(GetBlobsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + // LfsPointers is the list of LFS pointers which were requested. + LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers,proto3" json:"lfs_pointers,omitempty"` } -func (c *blobServiceClient) GetLFSPointers(ctx context.Context, in *GetLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetLFSPointersClient, error) { - stream, err := c.cc.NewStream(ctx, &_BlobService_serviceDesc.Streams[2], "/gitaly.BlobService/GetLFSPointers", opts...) - if err != nil { - return nil, err - } - x := &blobServiceGetLFSPointersClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *ListAllLFSPointersResponse) Reset() { + *x = ListAllLFSPointersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil } -type BlobService_GetLFSPointersClient interface { - Recv() (*GetLFSPointersResponse, error) - grpc.ClientStream +func (x *ListAllLFSPointersResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type blobServiceGetLFSPointersClient struct { - grpc.ClientStream -} +func (*ListAllLFSPointersResponse) ProtoMessage() {} -func (x *blobServiceGetLFSPointersClient) Recv() (*GetLFSPointersResponse, error) { - m := new(GetLFSPointersResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *ListAllLFSPointersResponse) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -func (c *blobServiceClient) ListLFSPointers(ctx context.Context, in *ListLFSPointersRequest, opts ...grpc.CallOption) (BlobService_ListLFSPointersClient, error) { - stream, err := c.cc.NewStream(ctx, &_BlobService_serviceDesc.Streams[3], "/gitaly.BlobService/ListLFSPointers", opts...) - if err != nil { - return nil, err - } - x := &blobServiceListLFSPointersClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type BlobService_ListLFSPointersClient interface { - Recv() (*ListLFSPointersResponse, error) - grpc.ClientStream -} - -type blobServiceListLFSPointersClient struct { - grpc.ClientStream -} - -func (x *blobServiceListLFSPointersClient) Recv() (*ListLFSPointersResponse, error) { - m := new(ListLFSPointersResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +// Deprecated: Use ListAllLFSPointersResponse.ProtoReflect.Descriptor instead. +func (*ListAllLFSPointersResponse) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{11} } -func (c *blobServiceClient) ListAllLFSPointers(ctx context.Context, in *ListAllLFSPointersRequest, opts ...grpc.CallOption) (BlobService_ListAllLFSPointersClient, error) { - stream, err := c.cc.NewStream(ctx, &_BlobService_serviceDesc.Streams[4], "/gitaly.BlobService/ListAllLFSPointers", opts...) - if err != nil { - return nil, err +func (x *ListAllLFSPointersResponse) GetLfsPointers() []*LFSPointer { + if x != nil { + return x.LfsPointers } - x := &blobServiceListAllLFSPointersClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil + return nil } -type BlobService_ListAllLFSPointersClient interface { - Recv() (*ListAllLFSPointersResponse, error) - grpc.ClientStream -} +type GetBlobsRequest_RevisionPath struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type blobServiceListAllLFSPointersClient struct { - grpc.ClientStream + Revision string `protobuf:"bytes,1,opt,name=revision,proto3" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` } -func (x *blobServiceListAllLFSPointersClient) Recv() (*ListAllLFSPointersResponse, error) { - m := new(ListAllLFSPointersResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *GetBlobsRequest_RevisionPath) Reset() { + *x = GetBlobsRequest_RevisionPath{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -// BlobServiceServer is the server API for BlobService service. -type BlobServiceServer interface { - // GetBlob returns the contents of a blob object referenced by its object - // ID. We use a stream to return a chunked arbitrarily large binary - // response - GetBlob(*GetBlobRequest, BlobService_GetBlobServer) error - GetBlobs(*GetBlobsRequest, BlobService_GetBlobsServer) error - // GetLFSPointers retrieves LFS pointers from a given set of object IDs. - // This RPC filters all requested objects and only returns those which refer - // to a valid LFS pointer. - GetLFSPointers(*GetLFSPointersRequest, BlobService_GetLFSPointersServer) error - // ListLFSPointers retrieves LFS pointers reachable from a given set of - // revisions by doing a graph walk. This includes both normal revisions like - // an object ID or branch, but also the pseudo-revisions "--all" and "--not" - // as documented in git-rev-parse(1). Revisions which don't directly or - // transitively reference any LFS pointers are ignored. It is not valid to - // pass revisions which do not resolve to an existing object. - ListLFSPointers(*ListLFSPointersRequest, BlobService_ListLFSPointersServer) error - // ListAllLFSPointers retrieves all LFS pointers in the repository, including - // those not reachable by any reference. - ListAllLFSPointers(*ListAllLFSPointersRequest, BlobService_ListAllLFSPointersServer) error +func (x *GetBlobsRequest_RevisionPath) String() string { + return protoimpl.X.MessageStringOf(x) } -// UnimplementedBlobServiceServer can be embedded to have forward compatible implementations. -type UnimplementedBlobServiceServer struct { -} +func (*GetBlobsRequest_RevisionPath) ProtoMessage() {} -func (*UnimplementedBlobServiceServer) GetBlob(req *GetBlobRequest, srv BlobService_GetBlobServer) error { - return status.Errorf(codes.Unimplemented, "method GetBlob not implemented") -} -func (*UnimplementedBlobServiceServer) GetBlobs(req *GetBlobsRequest, srv BlobService_GetBlobsServer) error { - return status.Errorf(codes.Unimplemented, "method GetBlobs not implemented") -} -func (*UnimplementedBlobServiceServer) GetLFSPointers(req *GetLFSPointersRequest, srv BlobService_GetLFSPointersServer) error { - return status.Errorf(codes.Unimplemented, "method GetLFSPointers not implemented") -} -func (*UnimplementedBlobServiceServer) ListLFSPointers(req *ListLFSPointersRequest, srv BlobService_ListLFSPointersServer) error { - return status.Errorf(codes.Unimplemented, "method ListLFSPointers not implemented") -} -func (*UnimplementedBlobServiceServer) ListAllLFSPointers(req *ListAllLFSPointersRequest, srv BlobService_ListAllLFSPointersServer) error { - return status.Errorf(codes.Unimplemented, "method ListAllLFSPointers not implemented") -} - -func RegisterBlobServiceServer(s *grpc.Server, srv BlobServiceServer) { - s.RegisterService(&_BlobService_serviceDesc, srv) -} - -func _BlobService_GetBlob_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetBlobRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *GetBlobsRequest_RevisionPath) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(BlobServiceServer).GetBlob(m, &blobServiceGetBlobServer{stream}) -} - -type BlobService_GetBlobServer interface { - Send(*GetBlobResponse) error - grpc.ServerStream + return mi.MessageOf(x) } -type blobServiceGetBlobServer struct { - grpc.ServerStream -} - -func (x *blobServiceGetBlobServer) Send(m *GetBlobResponse) error { - return x.ServerStream.SendMsg(m) +// Deprecated: Use GetBlobsRequest_RevisionPath.ProtoReflect.Descriptor instead. +func (*GetBlobsRequest_RevisionPath) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{2, 0} } -func _BlobService_GetBlobs_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetBlobsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *GetBlobsRequest_RevisionPath) GetRevision() string { + if x != nil { + return x.Revision } - return srv.(BlobServiceServer).GetBlobs(m, &blobServiceGetBlobsServer{stream}) -} - -type BlobService_GetBlobsServer interface { - Send(*GetBlobsResponse) error - grpc.ServerStream -} - -type blobServiceGetBlobsServer struct { - grpc.ServerStream -} - -func (x *blobServiceGetBlobsServer) Send(m *GetBlobsResponse) error { - return x.ServerStream.SendMsg(m) + return "" } -func _BlobService_GetLFSPointers_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetLFSPointersRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *GetBlobsRequest_RevisionPath) GetPath() []byte { + if x != nil { + return x.Path } - return srv.(BlobServiceServer).GetLFSPointers(m, &blobServiceGetLFSPointersServer{stream}) -} - -type BlobService_GetLFSPointersServer interface { - Send(*GetLFSPointersResponse) error - grpc.ServerStream -} - -type blobServiceGetLFSPointersServer struct { - grpc.ServerStream + return nil } -func (x *blobServiceGetLFSPointersServer) Send(m *GetLFSPointersResponse) error { - return x.ServerStream.SendMsg(m) -} +var File_blob_proto protoreflect.FileDescriptor + +var file_blob_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x72, + 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, + 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, + 0x69, 0x74, 0x22, 0x4b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, + 0x03, 0x6f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x22, + 0xee, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, + 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x4b, 0x0a, + 0x0e, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, + 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, + 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x0d, 0x72, 0x65, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, + 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, + 0x1a, 0x3e, 0x0a, 0x0c, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, + 0x22, 0xdb, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, + 0x03, 0x6f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x12, + 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x53, 0x75, 0x62, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x26, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x46, + 0x0a, 0x0a, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x22, 0x49, 0x0a, 0x0d, 0x4e, 0x65, 0x77, 0x42, 0x6c, 0x6f, + 0x62, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x22, 0x6c, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x62, 0x49, 0x64, 0x73, 0x22, + 0x4f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0c, 0x6c, 0x66, 0x73, + 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x52, 0x0b, 0x6c, 0x66, 0x73, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, + 0x22, 0x86, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x50, 0x0a, 0x17, 0x4c, 0x69, 0x73, + 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0c, 0x6c, 0x66, 0x73, 0x5f, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0b, + 0x6c, 0x66, 0x73, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x22, 0x6b, 0x0a, 0x19, 0x4c, + 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x53, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, + 0x41, 0x6c, 0x6c, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0c, 0x6c, 0x66, 0x73, 0x5f, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x52, 0x0b, 0x6c, 0x66, 0x73, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x32, 0xbc, 0x03, + 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x62, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x44, 0x0a, + 0x07, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x12, 0x16, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x17, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, + 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, + 0x02, 0x30, 0x01, 0x12, 0x47, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x12, + 0x17, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x59, 0x0a, 0x0e, + 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1d, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, + 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x5c, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x4c, + 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1e, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x65, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, + 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x21, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x4c, 0x46, 0x53, 0x50, + 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x4c, + 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x42, 0x34, 0x5a, 0x32, + 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, + 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_blob_proto_rawDescOnce sync.Once + file_blob_proto_rawDescData = file_blob_proto_rawDesc +) -func _BlobService_ListLFSPointers_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListLFSPointersRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func file_blob_proto_rawDescGZIP() []byte { + file_blob_proto_rawDescOnce.Do(func() { + file_blob_proto_rawDescData = protoimpl.X.CompressGZIP(file_blob_proto_rawDescData) + }) + return file_blob_proto_rawDescData +} + +var file_blob_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_blob_proto_goTypes = []interface{}{ + (*GetBlobRequest)(nil), // 0: gitaly.GetBlobRequest + (*GetBlobResponse)(nil), // 1: gitaly.GetBlobResponse + (*GetBlobsRequest)(nil), // 2: gitaly.GetBlobsRequest + (*GetBlobsResponse)(nil), // 3: gitaly.GetBlobsResponse + (*LFSPointer)(nil), // 4: gitaly.LFSPointer + (*NewBlobObject)(nil), // 5: gitaly.NewBlobObject + (*GetLFSPointersRequest)(nil), // 6: gitaly.GetLFSPointersRequest + (*GetLFSPointersResponse)(nil), // 7: gitaly.GetLFSPointersResponse + (*ListLFSPointersRequest)(nil), // 8: gitaly.ListLFSPointersRequest + (*ListLFSPointersResponse)(nil), // 9: gitaly.ListLFSPointersResponse + (*ListAllLFSPointersRequest)(nil), // 10: gitaly.ListAllLFSPointersRequest + (*ListAllLFSPointersResponse)(nil), // 11: gitaly.ListAllLFSPointersResponse + (*GetBlobsRequest_RevisionPath)(nil), // 12: gitaly.GetBlobsRequest.RevisionPath + (*Repository)(nil), // 13: gitaly.Repository + (ObjectType)(0), // 14: gitaly.ObjectType +} +var file_blob_proto_depIdxs = []int32{ + 13, // 0: gitaly.GetBlobRequest.repository:type_name -> gitaly.Repository + 13, // 1: gitaly.GetBlobsRequest.repository:type_name -> gitaly.Repository + 12, // 2: gitaly.GetBlobsRequest.revision_paths:type_name -> gitaly.GetBlobsRequest.RevisionPath + 14, // 3: gitaly.GetBlobsResponse.type:type_name -> gitaly.ObjectType + 13, // 4: gitaly.GetLFSPointersRequest.repository:type_name -> gitaly.Repository + 4, // 5: gitaly.GetLFSPointersResponse.lfs_pointers:type_name -> gitaly.LFSPointer + 13, // 6: gitaly.ListLFSPointersRequest.repository:type_name -> gitaly.Repository + 4, // 7: gitaly.ListLFSPointersResponse.lfs_pointers:type_name -> gitaly.LFSPointer + 13, // 8: gitaly.ListAllLFSPointersRequest.repository:type_name -> gitaly.Repository + 4, // 9: gitaly.ListAllLFSPointersResponse.lfs_pointers:type_name -> gitaly.LFSPointer + 0, // 10: gitaly.BlobService.GetBlob:input_type -> gitaly.GetBlobRequest + 2, // 11: gitaly.BlobService.GetBlobs:input_type -> gitaly.GetBlobsRequest + 6, // 12: gitaly.BlobService.GetLFSPointers:input_type -> gitaly.GetLFSPointersRequest + 8, // 13: gitaly.BlobService.ListLFSPointers:input_type -> gitaly.ListLFSPointersRequest + 10, // 14: gitaly.BlobService.ListAllLFSPointers:input_type -> gitaly.ListAllLFSPointersRequest + 1, // 15: gitaly.BlobService.GetBlob:output_type -> gitaly.GetBlobResponse + 3, // 16: gitaly.BlobService.GetBlobs:output_type -> gitaly.GetBlobsResponse + 7, // 17: gitaly.BlobService.GetLFSPointers:output_type -> gitaly.GetLFSPointersResponse + 9, // 18: gitaly.BlobService.ListLFSPointers:output_type -> gitaly.ListLFSPointersResponse + 11, // 19: gitaly.BlobService.ListAllLFSPointers:output_type -> gitaly.ListAllLFSPointersResponse + 15, // [15:20] is the sub-list for method output_type + 10, // [10:15] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_blob_proto_init() } +func file_blob_proto_init() { + if File_blob_proto != nil { + return } - return srv.(BlobServiceServer).ListLFSPointers(m, &blobServiceListLFSPointersServer{stream}) -} - -type BlobService_ListLFSPointersServer interface { - Send(*ListLFSPointersResponse) error - grpc.ServerStream -} - -type blobServiceListLFSPointersServer struct { - grpc.ServerStream -} - -func (x *blobServiceListLFSPointersServer) Send(m *ListLFSPointersResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _BlobService_ListAllLFSPointers_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListAllLFSPointersRequest) - if err := stream.RecvMsg(m); err != nil { - return err + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_blob_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlobsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlobsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LFSPointer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NewBlobObject); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLFSPointersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLFSPointersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListLFSPointersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListLFSPointersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAllLFSPointersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAllLFSPointersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlobsRequest_RevisionPath); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return srv.(BlobServiceServer).ListAllLFSPointers(m, &blobServiceListAllLFSPointersServer{stream}) -} - -type BlobService_ListAllLFSPointersServer interface { - Send(*ListAllLFSPointersResponse) error - grpc.ServerStream -} - -type blobServiceListAllLFSPointersServer struct { - grpc.ServerStream -} - -func (x *blobServiceListAllLFSPointersServer) Send(m *ListAllLFSPointersResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _BlobService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.BlobService", - HandlerType: (*BlobServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "GetBlob", - Handler: _BlobService_GetBlob_Handler, - ServerStreams: true, - }, - { - StreamName: "GetBlobs", - Handler: _BlobService_GetBlobs_Handler, - ServerStreams: true, - }, - { - StreamName: "GetLFSPointers", - Handler: _BlobService_GetLFSPointers_Handler, - ServerStreams: true, - }, - { - StreamName: "ListLFSPointers", - Handler: _BlobService_ListLFSPointers_Handler, - ServerStreams: true, - }, - { - StreamName: "ListAllLFSPointers", - Handler: _BlobService_ListAllLFSPointers_Handler, - ServerStreams: true, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_blob_proto_rawDesc, + NumEnums: 0, + NumMessages: 13, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "blob.proto", + GoTypes: file_blob_proto_goTypes, + DependencyIndexes: file_blob_proto_depIdxs, + MessageInfos: file_blob_proto_msgTypes, + }.Build() + File_blob_proto = out.File + file_blob_proto_rawDesc = nil + file_blob_proto_goTypes = nil + file_blob_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/blob_grpc.pb.go b/proto/go/gitalypb/blob_grpc.pb.go new file mode 100644 index 000000000..fb6ba01b7 --- /dev/null +++ b/proto/go/gitalypb/blob_grpc.pb.go @@ -0,0 +1,408 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// BlobServiceClient is the client API for BlobService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type BlobServiceClient interface { + // GetBlob returns the contents of a blob object referenced by its object + // ID. We use a stream to return a chunked arbitrarily large binary + // response + GetBlob(ctx context.Context, in *GetBlobRequest, opts ...grpc.CallOption) (BlobService_GetBlobClient, error) + GetBlobs(ctx context.Context, in *GetBlobsRequest, opts ...grpc.CallOption) (BlobService_GetBlobsClient, error) + // GetLFSPointers retrieves LFS pointers from a given set of object IDs. + // This RPC filters all requested objects and only returns those which refer + // to a valid LFS pointer. + GetLFSPointers(ctx context.Context, in *GetLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetLFSPointersClient, error) + // ListLFSPointers retrieves LFS pointers reachable from a given set of + // revisions by doing a graph walk. This includes both normal revisions like + // an object ID or branch, but also the pseudo-revisions "--all" and "--not" + // as documented in git-rev-parse(1). Revisions which don't directly or + // transitively reference any LFS pointers are ignored. It is not valid to + // pass revisions which do not resolve to an existing object. + ListLFSPointers(ctx context.Context, in *ListLFSPointersRequest, opts ...grpc.CallOption) (BlobService_ListLFSPointersClient, error) + // ListAllLFSPointers retrieves all LFS pointers in the repository, including + // those not reachable by any reference. + ListAllLFSPointers(ctx context.Context, in *ListAllLFSPointersRequest, opts ...grpc.CallOption) (BlobService_ListAllLFSPointersClient, error) +} + +type blobServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewBlobServiceClient(cc grpc.ClientConnInterface) BlobServiceClient { + return &blobServiceClient{cc} +} + +func (c *blobServiceClient) GetBlob(ctx context.Context, in *GetBlobRequest, opts ...grpc.CallOption) (BlobService_GetBlobClient, error) { + stream, err := c.cc.NewStream(ctx, &BlobService_ServiceDesc.Streams[0], "/gitaly.BlobService/GetBlob", opts...) + if err != nil { + return nil, err + } + x := &blobServiceGetBlobClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type BlobService_GetBlobClient interface { + Recv() (*GetBlobResponse, error) + grpc.ClientStream +} + +type blobServiceGetBlobClient struct { + grpc.ClientStream +} + +func (x *blobServiceGetBlobClient) Recv() (*GetBlobResponse, error) { + m := new(GetBlobResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *blobServiceClient) GetBlobs(ctx context.Context, in *GetBlobsRequest, opts ...grpc.CallOption) (BlobService_GetBlobsClient, error) { + stream, err := c.cc.NewStream(ctx, &BlobService_ServiceDesc.Streams[1], "/gitaly.BlobService/GetBlobs", opts...) + if err != nil { + return nil, err + } + x := &blobServiceGetBlobsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type BlobService_GetBlobsClient interface { + Recv() (*GetBlobsResponse, error) + grpc.ClientStream +} + +type blobServiceGetBlobsClient struct { + grpc.ClientStream +} + +func (x *blobServiceGetBlobsClient) Recv() (*GetBlobsResponse, error) { + m := new(GetBlobsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *blobServiceClient) GetLFSPointers(ctx context.Context, in *GetLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetLFSPointersClient, error) { + stream, err := c.cc.NewStream(ctx, &BlobService_ServiceDesc.Streams[2], "/gitaly.BlobService/GetLFSPointers", opts...) + if err != nil { + return nil, err + } + x := &blobServiceGetLFSPointersClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type BlobService_GetLFSPointersClient interface { + Recv() (*GetLFSPointersResponse, error) + grpc.ClientStream +} + +type blobServiceGetLFSPointersClient struct { + grpc.ClientStream +} + +func (x *blobServiceGetLFSPointersClient) Recv() (*GetLFSPointersResponse, error) { + m := new(GetLFSPointersResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *blobServiceClient) ListLFSPointers(ctx context.Context, in *ListLFSPointersRequest, opts ...grpc.CallOption) (BlobService_ListLFSPointersClient, error) { + stream, err := c.cc.NewStream(ctx, &BlobService_ServiceDesc.Streams[3], "/gitaly.BlobService/ListLFSPointers", opts...) + if err != nil { + return nil, err + } + x := &blobServiceListLFSPointersClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type BlobService_ListLFSPointersClient interface { + Recv() (*ListLFSPointersResponse, error) + grpc.ClientStream +} + +type blobServiceListLFSPointersClient struct { + grpc.ClientStream +} + +func (x *blobServiceListLFSPointersClient) Recv() (*ListLFSPointersResponse, error) { + m := new(ListLFSPointersResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *blobServiceClient) ListAllLFSPointers(ctx context.Context, in *ListAllLFSPointersRequest, opts ...grpc.CallOption) (BlobService_ListAllLFSPointersClient, error) { + stream, err := c.cc.NewStream(ctx, &BlobService_ServiceDesc.Streams[4], "/gitaly.BlobService/ListAllLFSPointers", opts...) + if err != nil { + return nil, err + } + x := &blobServiceListAllLFSPointersClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type BlobService_ListAllLFSPointersClient interface { + Recv() (*ListAllLFSPointersResponse, error) + grpc.ClientStream +} + +type blobServiceListAllLFSPointersClient struct { + grpc.ClientStream +} + +func (x *blobServiceListAllLFSPointersClient) Recv() (*ListAllLFSPointersResponse, error) { + m := new(ListAllLFSPointersResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// BlobServiceServer is the server API for BlobService service. +// All implementations must embed UnimplementedBlobServiceServer +// for forward compatibility +type BlobServiceServer interface { + // GetBlob returns the contents of a blob object referenced by its object + // ID. We use a stream to return a chunked arbitrarily large binary + // response + GetBlob(*GetBlobRequest, BlobService_GetBlobServer) error + GetBlobs(*GetBlobsRequest, BlobService_GetBlobsServer) error + // GetLFSPointers retrieves LFS pointers from a given set of object IDs. + // This RPC filters all requested objects and only returns those which refer + // to a valid LFS pointer. + GetLFSPointers(*GetLFSPointersRequest, BlobService_GetLFSPointersServer) error + // ListLFSPointers retrieves LFS pointers reachable from a given set of + // revisions by doing a graph walk. This includes both normal revisions like + // an object ID or branch, but also the pseudo-revisions "--all" and "--not" + // as documented in git-rev-parse(1). Revisions which don't directly or + // transitively reference any LFS pointers are ignored. It is not valid to + // pass revisions which do not resolve to an existing object. + ListLFSPointers(*ListLFSPointersRequest, BlobService_ListLFSPointersServer) error + // ListAllLFSPointers retrieves all LFS pointers in the repository, including + // those not reachable by any reference. + ListAllLFSPointers(*ListAllLFSPointersRequest, BlobService_ListAllLFSPointersServer) error + mustEmbedUnimplementedBlobServiceServer() +} + +// UnimplementedBlobServiceServer must be embedded to have forward compatible implementations. +type UnimplementedBlobServiceServer struct { +} + +func (UnimplementedBlobServiceServer) GetBlob(*GetBlobRequest, BlobService_GetBlobServer) error { + return status.Errorf(codes.Unimplemented, "method GetBlob not implemented") +} +func (UnimplementedBlobServiceServer) GetBlobs(*GetBlobsRequest, BlobService_GetBlobsServer) error { + return status.Errorf(codes.Unimplemented, "method GetBlobs not implemented") +} +func (UnimplementedBlobServiceServer) GetLFSPointers(*GetLFSPointersRequest, BlobService_GetLFSPointersServer) error { + return status.Errorf(codes.Unimplemented, "method GetLFSPointers not implemented") +} +func (UnimplementedBlobServiceServer) ListLFSPointers(*ListLFSPointersRequest, BlobService_ListLFSPointersServer) error { + return status.Errorf(codes.Unimplemented, "method ListLFSPointers not implemented") +} +func (UnimplementedBlobServiceServer) ListAllLFSPointers(*ListAllLFSPointersRequest, BlobService_ListAllLFSPointersServer) error { + return status.Errorf(codes.Unimplemented, "method ListAllLFSPointers not implemented") +} +func (UnimplementedBlobServiceServer) mustEmbedUnimplementedBlobServiceServer() {} + +// UnsafeBlobServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to BlobServiceServer will +// result in compilation errors. +type UnsafeBlobServiceServer interface { + mustEmbedUnimplementedBlobServiceServer() +} + +func RegisterBlobServiceServer(s grpc.ServiceRegistrar, srv BlobServiceServer) { + s.RegisterService(&BlobService_ServiceDesc, srv) +} + +func _BlobService_GetBlob_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetBlobRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(BlobServiceServer).GetBlob(m, &blobServiceGetBlobServer{stream}) +} + +type BlobService_GetBlobServer interface { + Send(*GetBlobResponse) error + grpc.ServerStream +} + +type blobServiceGetBlobServer struct { + grpc.ServerStream +} + +func (x *blobServiceGetBlobServer) Send(m *GetBlobResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _BlobService_GetBlobs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetBlobsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(BlobServiceServer).GetBlobs(m, &blobServiceGetBlobsServer{stream}) +} + +type BlobService_GetBlobsServer interface { + Send(*GetBlobsResponse) error + grpc.ServerStream +} + +type blobServiceGetBlobsServer struct { + grpc.ServerStream +} + +func (x *blobServiceGetBlobsServer) Send(m *GetBlobsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _BlobService_GetLFSPointers_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetLFSPointersRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(BlobServiceServer).GetLFSPointers(m, &blobServiceGetLFSPointersServer{stream}) +} + +type BlobService_GetLFSPointersServer interface { + Send(*GetLFSPointersResponse) error + grpc.ServerStream +} + +type blobServiceGetLFSPointersServer struct { + grpc.ServerStream +} + +func (x *blobServiceGetLFSPointersServer) Send(m *GetLFSPointersResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _BlobService_ListLFSPointers_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListLFSPointersRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(BlobServiceServer).ListLFSPointers(m, &blobServiceListLFSPointersServer{stream}) +} + +type BlobService_ListLFSPointersServer interface { + Send(*ListLFSPointersResponse) error + grpc.ServerStream +} + +type blobServiceListLFSPointersServer struct { + grpc.ServerStream +} + +func (x *blobServiceListLFSPointersServer) Send(m *ListLFSPointersResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _BlobService_ListAllLFSPointers_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListAllLFSPointersRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(BlobServiceServer).ListAllLFSPointers(m, &blobServiceListAllLFSPointersServer{stream}) +} + +type BlobService_ListAllLFSPointersServer interface { + Send(*ListAllLFSPointersResponse) error + grpc.ServerStream +} + +type blobServiceListAllLFSPointersServer struct { + grpc.ServerStream +} + +func (x *blobServiceListAllLFSPointersServer) Send(m *ListAllLFSPointersResponse) error { + return x.ServerStream.SendMsg(m) +} + +// BlobService_ServiceDesc is the grpc.ServiceDesc for BlobService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var BlobService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.BlobService", + HandlerType: (*BlobServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "GetBlob", + Handler: _BlobService_GetBlob_Handler, + ServerStreams: true, + }, + { + StreamName: "GetBlobs", + Handler: _BlobService_GetBlobs_Handler, + ServerStreams: true, + }, + { + StreamName: "GetLFSPointers", + Handler: _BlobService_GetLFSPointers_Handler, + ServerStreams: true, + }, + { + StreamName: "ListLFSPointers", + Handler: _BlobService_ListLFSPointers_Handler, + ServerStreams: true, + }, + { + StreamName: "ListAllLFSPointers", + Handler: _BlobService_ListAllLFSPointers_Handler, + ServerStreams: true, + }, + }, + Metadata: "blob.proto", +} diff --git a/proto/go/gitalypb/cleanup.pb.go b/proto/go/gitalypb/cleanup.pb.go index d37895c80..84c75b06b 100644 --- a/proto/go/gitalypb/cleanup.pb.go +++ b/proto/go/gitalypb/cleanup.pb.go @@ -1,318 +1,332 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: cleanup.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ApplyBfgObjectMapStreamRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Only available on the first message Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // A raw object-map file as generated by BFG: https://rtyley.github.io/bfg-repo-cleaner // Each line in the file has two object SHAs, space-separated - the original // SHA of the object, and the SHA after BFG has rewritten the object. - ObjectMap []byte `protobuf:"bytes,2,opt,name=object_map,json=objectMap,proto3" json:"object_map,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ObjectMap []byte `protobuf:"bytes,2,opt,name=object_map,json=objectMap,proto3" json:"object_map,omitempty"` } -func (m *ApplyBfgObjectMapStreamRequest) Reset() { *m = ApplyBfgObjectMapStreamRequest{} } -func (m *ApplyBfgObjectMapStreamRequest) String() string { return proto.CompactTextString(m) } -func (*ApplyBfgObjectMapStreamRequest) ProtoMessage() {} -func (*ApplyBfgObjectMapStreamRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b19e990e4662c9c, []int{0} +func (x *ApplyBfgObjectMapStreamRequest) Reset() { + *x = ApplyBfgObjectMapStreamRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cleanup_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ApplyBfgObjectMapStreamRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplyBfgObjectMapStreamRequest.Unmarshal(m, b) +func (x *ApplyBfgObjectMapStreamRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ApplyBfgObjectMapStreamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplyBfgObjectMapStreamRequest.Marshal(b, m, deterministic) -} -func (m *ApplyBfgObjectMapStreamRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplyBfgObjectMapStreamRequest.Merge(m, src) -} -func (m *ApplyBfgObjectMapStreamRequest) XXX_Size() int { - return xxx_messageInfo_ApplyBfgObjectMapStreamRequest.Size(m) -} -func (m *ApplyBfgObjectMapStreamRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ApplyBfgObjectMapStreamRequest.DiscardUnknown(m) + +func (*ApplyBfgObjectMapStreamRequest) ProtoMessage() {} + +func (x *ApplyBfgObjectMapStreamRequest) ProtoReflect() protoreflect.Message { + mi := &file_cleanup_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ApplyBfgObjectMapStreamRequest proto.InternalMessageInfo +// Deprecated: Use ApplyBfgObjectMapStreamRequest.ProtoReflect.Descriptor instead. +func (*ApplyBfgObjectMapStreamRequest) Descriptor() ([]byte, []int) { + return file_cleanup_proto_rawDescGZIP(), []int{0} +} -func (m *ApplyBfgObjectMapStreamRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ApplyBfgObjectMapStreamRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ApplyBfgObjectMapStreamRequest) GetObjectMap() []byte { - if m != nil { - return m.ObjectMap +func (x *ApplyBfgObjectMapStreamRequest) GetObjectMap() []byte { + if x != nil { + return x.ObjectMap } return nil } type ApplyBfgObjectMapStreamResponse struct { - Entries []*ApplyBfgObjectMapStreamResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ApplyBfgObjectMapStreamResponse) Reset() { *m = ApplyBfgObjectMapStreamResponse{} } -func (m *ApplyBfgObjectMapStreamResponse) String() string { return proto.CompactTextString(m) } -func (*ApplyBfgObjectMapStreamResponse) ProtoMessage() {} -func (*ApplyBfgObjectMapStreamResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b19e990e4662c9c, []int{1} + Entries []*ApplyBfgObjectMapStreamResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` } -func (m *ApplyBfgObjectMapStreamResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplyBfgObjectMapStreamResponse.Unmarshal(m, b) -} -func (m *ApplyBfgObjectMapStreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplyBfgObjectMapStreamResponse.Marshal(b, m, deterministic) -} -func (m *ApplyBfgObjectMapStreamResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplyBfgObjectMapStreamResponse.Merge(m, src) -} -func (m *ApplyBfgObjectMapStreamResponse) XXX_Size() int { - return xxx_messageInfo_ApplyBfgObjectMapStreamResponse.Size(m) -} -func (m *ApplyBfgObjectMapStreamResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ApplyBfgObjectMapStreamResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplyBfgObjectMapStreamResponse proto.InternalMessageInfo - -func (m *ApplyBfgObjectMapStreamResponse) GetEntries() []*ApplyBfgObjectMapStreamResponse_Entry { - if m != nil { - return m.Entries +func (x *ApplyBfgObjectMapStreamResponse) Reset() { + *x = ApplyBfgObjectMapStreamResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cleanup_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil -} - -// We send back each parsed entry in the request's object map so the client -// can take action -type ApplyBfgObjectMapStreamResponse_Entry struct { - Type ObjectType `protobuf:"varint,1,opt,name=type,proto3,enum=gitaly.ObjectType" json:"type,omitempty"` - OldOid string `protobuf:"bytes,2,opt,name=old_oid,json=oldOid,proto3" json:"old_oid,omitempty"` - NewOid string `protobuf:"bytes,3,opt,name=new_oid,json=newOid,proto3" json:"new_oid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *ApplyBfgObjectMapStreamResponse_Entry) Reset() { *m = ApplyBfgObjectMapStreamResponse_Entry{} } -func (m *ApplyBfgObjectMapStreamResponse_Entry) String() string { return proto.CompactTextString(m) } -func (*ApplyBfgObjectMapStreamResponse_Entry) ProtoMessage() {} -func (*ApplyBfgObjectMapStreamResponse_Entry) Descriptor() ([]byte, []int) { - return fileDescriptor_1b19e990e4662c9c, []int{1, 0} +func (x *ApplyBfgObjectMapStreamResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ApplyBfgObjectMapStreamResponse_Entry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplyBfgObjectMapStreamResponse_Entry.Unmarshal(m, b) -} -func (m *ApplyBfgObjectMapStreamResponse_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplyBfgObjectMapStreamResponse_Entry.Marshal(b, m, deterministic) -} -func (m *ApplyBfgObjectMapStreamResponse_Entry) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplyBfgObjectMapStreamResponse_Entry.Merge(m, src) -} -func (m *ApplyBfgObjectMapStreamResponse_Entry) XXX_Size() int { - return xxx_messageInfo_ApplyBfgObjectMapStreamResponse_Entry.Size(m) -} -func (m *ApplyBfgObjectMapStreamResponse_Entry) XXX_DiscardUnknown() { - xxx_messageInfo_ApplyBfgObjectMapStreamResponse_Entry.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplyBfgObjectMapStreamResponse_Entry proto.InternalMessageInfo +func (*ApplyBfgObjectMapStreamResponse) ProtoMessage() {} -func (m *ApplyBfgObjectMapStreamResponse_Entry) GetType() ObjectType { - if m != nil { - return m.Type +func (x *ApplyBfgObjectMapStreamResponse) ProtoReflect() protoreflect.Message { + mi := &file_cleanup_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return ObjectType_UNKNOWN + return mi.MessageOf(x) } -func (m *ApplyBfgObjectMapStreamResponse_Entry) GetOldOid() string { - if m != nil { - return m.OldOid - } - return "" +// Deprecated: Use ApplyBfgObjectMapStreamResponse.ProtoReflect.Descriptor instead. +func (*ApplyBfgObjectMapStreamResponse) Descriptor() ([]byte, []int) { + return file_cleanup_proto_rawDescGZIP(), []int{1} } -func (m *ApplyBfgObjectMapStreamResponse_Entry) GetNewOid() string { - if m != nil { - return m.NewOid +func (x *ApplyBfgObjectMapStreamResponse) GetEntries() []*ApplyBfgObjectMapStreamResponse_Entry { + if x != nil { + return x.Entries } - return "" -} - -func init() { - proto.RegisterType((*ApplyBfgObjectMapStreamRequest)(nil), "gitaly.ApplyBfgObjectMapStreamRequest") - proto.RegisterType((*ApplyBfgObjectMapStreamResponse)(nil), "gitaly.ApplyBfgObjectMapStreamResponse") - proto.RegisterType((*ApplyBfgObjectMapStreamResponse_Entry)(nil), "gitaly.ApplyBfgObjectMapStreamResponse.Entry") -} - -func init() { proto.RegisterFile("cleanup.proto", fileDescriptor_1b19e990e4662c9c) } - -var fileDescriptor_1b19e990e4662c9c = []byte{ - // 344 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x41, 0x4f, 0xc2, 0x30, - 0x14, 0xc7, 0x53, 0xc0, 0x21, 0x05, 0x39, 0xf4, 0x02, 0x59, 0xa2, 0x12, 0x0e, 0xb8, 0x83, 0x6c, - 0x3a, 0x39, 0x78, 0x15, 0x63, 0x3c, 0x19, 0x92, 0xe1, 0xc9, 0x0b, 0xe9, 0xb6, 0xe7, 0xac, 0x19, - 0x6b, 0xed, 0x0a, 0xa4, 0xdf, 0xc0, 0x6f, 0xa0, 0x9f, 0xc8, 0x9b, 0x5f, 0xc8, 0x93, 0xb1, 0x15, - 0xf5, 0x42, 0xf0, 0xd6, 0xfe, 0x7f, 0x7d, 0xff, 0xf7, 0xfe, 0xaf, 0x78, 0x2f, 0xc9, 0x81, 0x16, - 0x0b, 0xe1, 0x0b, 0xc9, 0x15, 0x27, 0x4e, 0xc6, 0x14, 0xcd, 0xb5, 0x8b, 0x73, 0x56, 0x28, 0xab, - 0xb9, 0xad, 0xf2, 0x81, 0x4a, 0x48, 0xed, 0xad, 0xaf, 0xf1, 0xc1, 0x85, 0x10, 0xb9, 0x1e, 0xdf, - 0x67, 0x93, 0xf8, 0x11, 0x12, 0x75, 0x43, 0xc5, 0x54, 0x49, 0xa0, 0xf3, 0x08, 0x9e, 0x16, 0x50, - 0x2a, 0x72, 0x8e, 0xb1, 0x04, 0xc1, 0x4b, 0xa6, 0xb8, 0xd4, 0x5d, 0xd4, 0x43, 0x5e, 0x33, 0x24, - 0xbe, 0x35, 0xf6, 0xa3, 0x1f, 0x32, 0xae, 0xbd, 0xbe, 0x1d, 0xa3, 0xe8, 0xcf, 0x5b, 0xb2, 0x8f, - 0x31, 0x37, 0x9e, 0xb3, 0x39, 0x15, 0xdd, 0x4a, 0x0f, 0x79, 0xad, 0xa8, 0xc1, 0xd7, 0x5d, 0xfa, - 0xef, 0x08, 0x1f, 0x6e, 0xec, 0x5d, 0x0a, 0x5e, 0x94, 0x40, 0xae, 0x71, 0x1d, 0x0a, 0x25, 0x19, - 0x94, 0x5d, 0xd4, 0xab, 0x7a, 0xcd, 0x70, 0xb8, 0xee, 0xbc, 0xa5, 0xd2, 0xbf, 0x2a, 0x94, 0xd4, - 0xd1, 0xba, 0xda, 0xa5, 0x78, 0xc7, 0x28, 0x64, 0x80, 0x6b, 0x4a, 0x0b, 0x30, 0x41, 0xda, 0xbf, - 0x41, 0xac, 0xcd, 0xad, 0x16, 0x10, 0x19, 0x4e, 0x3a, 0xb8, 0xce, 0xf3, 0x74, 0xc6, 0x59, 0x6a, - 0x26, 0x6f, 0x44, 0x0e, 0xcf, 0xd3, 0x09, 0x4b, 0xbf, 0x40, 0x01, 0x2b, 0x03, 0xaa, 0x16, 0x14, - 0xb0, 0x9a, 0xb0, 0x34, 0x7c, 0x46, 0xb8, 0x7d, 0x69, 0xd7, 0x3f, 0x05, 0xb9, 0x64, 0x09, 0x90, - 0x25, 0xee, 0x6c, 0x98, 0x93, 0x0c, 0xb6, 0x06, 0x31, 0xeb, 0x77, 0x8f, 0xfe, 0x19, 0xb8, 0xef, - 0x7c, 0xbc, 0x78, 0x95, 0x5d, 0xe4, 0xa1, 0x13, 0x34, 0x1e, 0xdd, 0x85, 0x19, 0x53, 0x39, 0x8d, - 0xfd, 0x84, 0xcf, 0x03, 0x7b, 0x1c, 0x72, 0x99, 0x05, 0xd6, 0x2b, 0x58, 0x9e, 0x8e, 0x02, 0xf3, - 0xff, 0x41, 0xc6, 0xbf, 0x35, 0x11, 0xc7, 0x8e, 0x91, 0xce, 0x3e, 0x03, 0x00, 0x00, 0xff, 0xff, - 0xd0, 0xc2, 0x1d, 0xd0, 0x45, 0x02, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// CleanupServiceClient is the client API for CleanupService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type CleanupServiceClient interface { - ApplyBfgObjectMapStream(ctx context.Context, opts ...grpc.CallOption) (CleanupService_ApplyBfgObjectMapStreamClient, error) + return nil } -type cleanupServiceClient struct { - cc *grpc.ClientConn -} +// We send back each parsed entry in the request's object map so the client +// can take action +type ApplyBfgObjectMapStreamResponse_Entry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func NewCleanupServiceClient(cc *grpc.ClientConn) CleanupServiceClient { - return &cleanupServiceClient{cc} + Type ObjectType `protobuf:"varint,1,opt,name=type,proto3,enum=gitaly.ObjectType" json:"type,omitempty"` + OldOid string `protobuf:"bytes,2,opt,name=old_oid,json=oldOid,proto3" json:"old_oid,omitempty"` + NewOid string `protobuf:"bytes,3,opt,name=new_oid,json=newOid,proto3" json:"new_oid,omitempty"` } -func (c *cleanupServiceClient) ApplyBfgObjectMapStream(ctx context.Context, opts ...grpc.CallOption) (CleanupService_ApplyBfgObjectMapStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_CleanupService_serviceDesc.Streams[0], "/gitaly.CleanupService/ApplyBfgObjectMapStream", opts...) - if err != nil { - return nil, err +func (x *ApplyBfgObjectMapStreamResponse_Entry) Reset() { + *x = ApplyBfgObjectMapStreamResponse_Entry{} + if protoimpl.UnsafeEnabled { + mi := &file_cleanup_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - x := &cleanupServiceApplyBfgObjectMapStreamClient{stream} - return x, nil -} - -type CleanupService_ApplyBfgObjectMapStreamClient interface { - Send(*ApplyBfgObjectMapStreamRequest) error - Recv() (*ApplyBfgObjectMapStreamResponse, error) - grpc.ClientStream } -type cleanupServiceApplyBfgObjectMapStreamClient struct { - grpc.ClientStream +func (x *ApplyBfgObjectMapStreamResponse_Entry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *cleanupServiceApplyBfgObjectMapStreamClient) Send(m *ApplyBfgObjectMapStreamRequest) error { - return x.ClientStream.SendMsg(m) -} +func (*ApplyBfgObjectMapStreamResponse_Entry) ProtoMessage() {} -func (x *cleanupServiceApplyBfgObjectMapStreamClient) Recv() (*ApplyBfgObjectMapStreamResponse, error) { - m := new(ApplyBfgObjectMapStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *ApplyBfgObjectMapStreamResponse_Entry) ProtoReflect() protoreflect.Message { + mi := &file_cleanup_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -// CleanupServiceServer is the server API for CleanupService service. -type CleanupServiceServer interface { - ApplyBfgObjectMapStream(CleanupService_ApplyBfgObjectMapStreamServer) error -} - -// UnimplementedCleanupServiceServer can be embedded to have forward compatible implementations. -type UnimplementedCleanupServiceServer struct { -} - -func (*UnimplementedCleanupServiceServer) ApplyBfgObjectMapStream(srv CleanupService_ApplyBfgObjectMapStreamServer) error { - return status.Errorf(codes.Unimplemented, "method ApplyBfgObjectMapStream not implemented") -} - -func RegisterCleanupServiceServer(s *grpc.Server, srv CleanupServiceServer) { - s.RegisterService(&_CleanupService_serviceDesc, srv) +// Deprecated: Use ApplyBfgObjectMapStreamResponse_Entry.ProtoReflect.Descriptor instead. +func (*ApplyBfgObjectMapStreamResponse_Entry) Descriptor() ([]byte, []int) { + return file_cleanup_proto_rawDescGZIP(), []int{1, 0} } -func _CleanupService_ApplyBfgObjectMapStream_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(CleanupServiceServer).ApplyBfgObjectMapStream(&cleanupServiceApplyBfgObjectMapStreamServer{stream}) +func (x *ApplyBfgObjectMapStreamResponse_Entry) GetType() ObjectType { + if x != nil { + return x.Type + } + return ObjectType_UNKNOWN } -type CleanupService_ApplyBfgObjectMapStreamServer interface { - Send(*ApplyBfgObjectMapStreamResponse) error - Recv() (*ApplyBfgObjectMapStreamRequest, error) - grpc.ServerStream +func (x *ApplyBfgObjectMapStreamResponse_Entry) GetOldOid() string { + if x != nil { + return x.OldOid + } + return "" } -type cleanupServiceApplyBfgObjectMapStreamServer struct { - grpc.ServerStream +func (x *ApplyBfgObjectMapStreamResponse_Entry) GetNewOid() string { + if x != nil { + return x.NewOid + } + return "" } -func (x *cleanupServiceApplyBfgObjectMapStreamServer) Send(m *ApplyBfgObjectMapStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +var File_cleanup_proto protoreflect.FileDescriptor + +var file_cleanup_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x06, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x79, 0x0a, 0x1e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x42, 0x66, 0x67, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, + 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1d, 0x0a, + 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x61, 0x70, 0x22, 0xcd, 0x01, 0x0a, + 0x1f, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x42, 0x66, 0x67, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, + 0x61, 0x70, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x47, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, + 0x42, 0x66, 0x67, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x61, 0x0a, 0x05, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x26, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6f, 0x6c, + 0x64, 0x5f, 0x6f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x6c, 0x64, + 0x4f, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x65, 0x77, 0x5f, 0x6f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x65, 0x77, 0x4f, 0x69, 0x64, 0x32, 0x88, 0x01, 0x0a, + 0x0e, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x76, 0x0a, 0x17, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x42, 0x66, 0x67, 0x4f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x26, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x42, 0x66, 0x67, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x6c, + 0x79, 0x42, 0x66, 0x67, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x01, 0x28, 0x01, 0x30, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, + 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cleanup_proto_rawDescOnce sync.Once + file_cleanup_proto_rawDescData = file_cleanup_proto_rawDesc +) -func (x *cleanupServiceApplyBfgObjectMapStreamServer) Recv() (*ApplyBfgObjectMapStreamRequest, error) { - m := new(ApplyBfgObjectMapStreamRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func file_cleanup_proto_rawDescGZIP() []byte { + file_cleanup_proto_rawDescOnce.Do(func() { + file_cleanup_proto_rawDescData = protoimpl.X.CompressGZIP(file_cleanup_proto_rawDescData) + }) + return file_cleanup_proto_rawDescData +} + +var file_cleanup_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_cleanup_proto_goTypes = []interface{}{ + (*ApplyBfgObjectMapStreamRequest)(nil), // 0: gitaly.ApplyBfgObjectMapStreamRequest + (*ApplyBfgObjectMapStreamResponse)(nil), // 1: gitaly.ApplyBfgObjectMapStreamResponse + (*ApplyBfgObjectMapStreamResponse_Entry)(nil), // 2: gitaly.ApplyBfgObjectMapStreamResponse.Entry + (*Repository)(nil), // 3: gitaly.Repository + (ObjectType)(0), // 4: gitaly.ObjectType +} +var file_cleanup_proto_depIdxs = []int32{ + 3, // 0: gitaly.ApplyBfgObjectMapStreamRequest.repository:type_name -> gitaly.Repository + 2, // 1: gitaly.ApplyBfgObjectMapStreamResponse.entries:type_name -> gitaly.ApplyBfgObjectMapStreamResponse.Entry + 4, // 2: gitaly.ApplyBfgObjectMapStreamResponse.Entry.type:type_name -> gitaly.ObjectType + 0, // 3: gitaly.CleanupService.ApplyBfgObjectMapStream:input_type -> gitaly.ApplyBfgObjectMapStreamRequest + 1, // 4: gitaly.CleanupService.ApplyBfgObjectMapStream:output_type -> gitaly.ApplyBfgObjectMapStreamResponse + 4, // [4:5] is the sub-list for method output_type + 3, // [3:4] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_cleanup_proto_init() } +func file_cleanup_proto_init() { + if File_cleanup_proto != nil { + return } - return m, nil -} - -var _CleanupService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.CleanupService", - HandlerType: (*CleanupServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "ApplyBfgObjectMapStream", - Handler: _CleanupService_ApplyBfgObjectMapStream_Handler, - ServerStreams: true, - ClientStreams: true, + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_cleanup_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplyBfgObjectMapStreamRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cleanup_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplyBfgObjectMapStreamResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cleanup_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplyBfgObjectMapStreamResponse_Entry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cleanup_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "cleanup.proto", + GoTypes: file_cleanup_proto_goTypes, + DependencyIndexes: file_cleanup_proto_depIdxs, + MessageInfos: file_cleanup_proto_msgTypes, + }.Build() + File_cleanup_proto = out.File + file_cleanup_proto_rawDesc = nil + file_cleanup_proto_goTypes = nil + file_cleanup_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/cleanup_grpc.pb.go b/proto/go/gitalypb/cleanup_grpc.pb.go new file mode 100644 index 000000000..f49c5560c --- /dev/null +++ b/proto/go/gitalypb/cleanup_grpc.pb.go @@ -0,0 +1,133 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// CleanupServiceClient is the client API for CleanupService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type CleanupServiceClient interface { + ApplyBfgObjectMapStream(ctx context.Context, opts ...grpc.CallOption) (CleanupService_ApplyBfgObjectMapStreamClient, error) +} + +type cleanupServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewCleanupServiceClient(cc grpc.ClientConnInterface) CleanupServiceClient { + return &cleanupServiceClient{cc} +} + +func (c *cleanupServiceClient) ApplyBfgObjectMapStream(ctx context.Context, opts ...grpc.CallOption) (CleanupService_ApplyBfgObjectMapStreamClient, error) { + stream, err := c.cc.NewStream(ctx, &CleanupService_ServiceDesc.Streams[0], "/gitaly.CleanupService/ApplyBfgObjectMapStream", opts...) + if err != nil { + return nil, err + } + x := &cleanupServiceApplyBfgObjectMapStreamClient{stream} + return x, nil +} + +type CleanupService_ApplyBfgObjectMapStreamClient interface { + Send(*ApplyBfgObjectMapStreamRequest) error + Recv() (*ApplyBfgObjectMapStreamResponse, error) + grpc.ClientStream +} + +type cleanupServiceApplyBfgObjectMapStreamClient struct { + grpc.ClientStream +} + +func (x *cleanupServiceApplyBfgObjectMapStreamClient) Send(m *ApplyBfgObjectMapStreamRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *cleanupServiceApplyBfgObjectMapStreamClient) Recv() (*ApplyBfgObjectMapStreamResponse, error) { + m := new(ApplyBfgObjectMapStreamResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// CleanupServiceServer is the server API for CleanupService service. +// All implementations must embed UnimplementedCleanupServiceServer +// for forward compatibility +type CleanupServiceServer interface { + ApplyBfgObjectMapStream(CleanupService_ApplyBfgObjectMapStreamServer) error + mustEmbedUnimplementedCleanupServiceServer() +} + +// UnimplementedCleanupServiceServer must be embedded to have forward compatible implementations. +type UnimplementedCleanupServiceServer struct { +} + +func (UnimplementedCleanupServiceServer) ApplyBfgObjectMapStream(CleanupService_ApplyBfgObjectMapStreamServer) error { + return status.Errorf(codes.Unimplemented, "method ApplyBfgObjectMapStream not implemented") +} +func (UnimplementedCleanupServiceServer) mustEmbedUnimplementedCleanupServiceServer() {} + +// UnsafeCleanupServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to CleanupServiceServer will +// result in compilation errors. +type UnsafeCleanupServiceServer interface { + mustEmbedUnimplementedCleanupServiceServer() +} + +func RegisterCleanupServiceServer(s grpc.ServiceRegistrar, srv CleanupServiceServer) { + s.RegisterService(&CleanupService_ServiceDesc, srv) +} + +func _CleanupService_ApplyBfgObjectMapStream_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(CleanupServiceServer).ApplyBfgObjectMapStream(&cleanupServiceApplyBfgObjectMapStreamServer{stream}) +} + +type CleanupService_ApplyBfgObjectMapStreamServer interface { + Send(*ApplyBfgObjectMapStreamResponse) error + Recv() (*ApplyBfgObjectMapStreamRequest, error) + grpc.ServerStream +} + +type cleanupServiceApplyBfgObjectMapStreamServer struct { + grpc.ServerStream +} + +func (x *cleanupServiceApplyBfgObjectMapStreamServer) Send(m *ApplyBfgObjectMapStreamResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *cleanupServiceApplyBfgObjectMapStreamServer) Recv() (*ApplyBfgObjectMapStreamRequest, error) { + m := new(ApplyBfgObjectMapStreamRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// CleanupService_ServiceDesc is the grpc.ServiceDesc for CleanupService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var CleanupService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.CleanupService", + HandlerType: (*CleanupServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "ApplyBfgObjectMapStream", + Handler: _CleanupService_ApplyBfgObjectMapStream_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "cleanup.proto", +} diff --git a/proto/go/gitalypb/commit.pb.go b/proto/go/gitalypb/commit.pb.go index e9f2e4063..09328e157 100644 --- a/proto/go/gitalypb/commit.pb.go +++ b/proto/go/gitalypb/commit.pb.go @@ -1,29 +1,25 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: commit.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // TODO: Replace this enum with ObjectType in shared.proto type TreeEntryResponse_ObjectType int32 @@ -35,26 +31,47 @@ const ( TreeEntryResponse_TAG TreeEntryResponse_ObjectType = 3 ) -var TreeEntryResponse_ObjectType_name = map[int32]string{ - 0: "COMMIT", - 1: "BLOB", - 2: "TREE", - 3: "TAG", -} +// Enum value maps for TreeEntryResponse_ObjectType. +var ( + TreeEntryResponse_ObjectType_name = map[int32]string{ + 0: "COMMIT", + 1: "BLOB", + 2: "TREE", + 3: "TAG", + } + TreeEntryResponse_ObjectType_value = map[string]int32{ + "COMMIT": 0, + "BLOB": 1, + "TREE": 2, + "TAG": 3, + } +) -var TreeEntryResponse_ObjectType_value = map[string]int32{ - "COMMIT": 0, - "BLOB": 1, - "TREE": 2, - "TAG": 3, +func (x TreeEntryResponse_ObjectType) Enum() *TreeEntryResponse_ObjectType { + p := new(TreeEntryResponse_ObjectType) + *p = x + return p } func (x TreeEntryResponse_ObjectType) String() string { - return proto.EnumName(TreeEntryResponse_ObjectType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (TreeEntryResponse_ObjectType) Descriptor() protoreflect.EnumDescriptor { + return file_commit_proto_enumTypes[0].Descriptor() +} + +func (TreeEntryResponse_ObjectType) Type() protoreflect.EnumType { + return &file_commit_proto_enumTypes[0] +} + +func (x TreeEntryResponse_ObjectType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TreeEntryResponse_ObjectType.Descriptor instead. func (TreeEntryResponse_ObjectType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{5, 0} + return file_commit_proto_rawDescGZIP(), []int{5, 0} } // TODO: Replace this enum with ObjectType in shared.proto @@ -66,24 +83,45 @@ const ( TreeEntry_COMMIT TreeEntry_EntryType = 3 ) -var TreeEntry_EntryType_name = map[int32]string{ - 0: "BLOB", - 1: "TREE", - 3: "COMMIT", -} +// Enum value maps for TreeEntry_EntryType. +var ( + TreeEntry_EntryType_name = map[int32]string{ + 0: "BLOB", + 1: "TREE", + 3: "COMMIT", + } + TreeEntry_EntryType_value = map[string]int32{ + "BLOB": 0, + "TREE": 1, + "COMMIT": 3, + } +) -var TreeEntry_EntryType_value = map[string]int32{ - "BLOB": 0, - "TREE": 1, - "COMMIT": 3, +func (x TreeEntry_EntryType) Enum() *TreeEntry_EntryType { + p := new(TreeEntry_EntryType) + *p = x + return p } func (x TreeEntry_EntryType) String() string { - return proto.EnumName(TreeEntry_EntryType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TreeEntry_EntryType) Descriptor() protoreflect.EnumDescriptor { + return file_commit_proto_enumTypes[1].Descriptor() +} + +func (TreeEntry_EntryType) Type() protoreflect.EnumType { + return &file_commit_proto_enumTypes[1] } +func (x TreeEntry_EntryType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TreeEntry_EntryType.Descriptor instead. func (TreeEntry_EntryType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{12, 0} + return file_commit_proto_rawDescGZIP(), []int{12, 0} } type FindAllCommitsRequest_Order int32 @@ -94,24 +132,45 @@ const ( FindAllCommitsRequest_DATE FindAllCommitsRequest_Order = 2 ) -var FindAllCommitsRequest_Order_name = map[int32]string{ - 0: "NONE", - 1: "TOPO", - 2: "DATE", -} +// Enum value maps for FindAllCommitsRequest_Order. +var ( + FindAllCommitsRequest_Order_name = map[int32]string{ + 0: "NONE", + 1: "TOPO", + 2: "DATE", + } + FindAllCommitsRequest_Order_value = map[string]int32{ + "NONE": 0, + "TOPO": 1, + "DATE": 2, + } +) -var FindAllCommitsRequest_Order_value = map[string]int32{ - "NONE": 0, - "TOPO": 1, - "DATE": 2, +func (x FindAllCommitsRequest_Order) Enum() *FindAllCommitsRequest_Order { + p := new(FindAllCommitsRequest_Order) + *p = x + return p } func (x FindAllCommitsRequest_Order) String() string { - return proto.EnumName(FindAllCommitsRequest_Order_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FindAllCommitsRequest_Order) Descriptor() protoreflect.EnumDescriptor { + return file_commit_proto_enumTypes[2].Descriptor() +} + +func (FindAllCommitsRequest_Order) Type() protoreflect.EnumType { + return &file_commit_proto_enumTypes[2] } +func (x FindAllCommitsRequest_Order) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use FindAllCommitsRequest_Order.Descriptor instead. func (FindAllCommitsRequest_Order) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{23, 0} + return file_commit_proto_rawDescGZIP(), []int{23, 0} } type FindCommitsRequest_Order int32 @@ -121,222 +180,279 @@ const ( FindCommitsRequest_TOPO FindCommitsRequest_Order = 1 ) -var FindCommitsRequest_Order_name = map[int32]string{ - 0: "NONE", - 1: "TOPO", -} +// Enum value maps for FindCommitsRequest_Order. +var ( + FindCommitsRequest_Order_name = map[int32]string{ + 0: "NONE", + 1: "TOPO", + } + FindCommitsRequest_Order_value = map[string]int32{ + "NONE": 0, + "TOPO": 1, + } +) -var FindCommitsRequest_Order_value = map[string]int32{ - "NONE": 0, - "TOPO": 1, +func (x FindCommitsRequest_Order) Enum() *FindCommitsRequest_Order { + p := new(FindCommitsRequest_Order) + *p = x + return p } func (x FindCommitsRequest_Order) String() string { - return proto.EnumName(FindCommitsRequest_Order_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (FindCommitsRequest_Order) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{25, 0} +func (FindCommitsRequest_Order) Descriptor() protoreflect.EnumDescriptor { + return file_commit_proto_enumTypes[3].Descriptor() } -type CommitStatsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (FindCommitsRequest_Order) Type() protoreflect.EnumType { + return &file_commit_proto_enumTypes[3] } -func (m *CommitStatsRequest) Reset() { *m = CommitStatsRequest{} } -func (m *CommitStatsRequest) String() string { return proto.CompactTextString(m) } -func (*CommitStatsRequest) ProtoMessage() {} -func (*CommitStatsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{0} +func (x FindCommitsRequest_Order) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *CommitStatsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitStatsRequest.Unmarshal(m, b) +// Deprecated: Use FindCommitsRequest_Order.Descriptor instead. +func (FindCommitsRequest_Order) EnumDescriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{25, 0} } -func (m *CommitStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitStatsRequest.Marshal(b, m, deterministic) + +type CommitStatsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` } -func (m *CommitStatsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitStatsRequest.Merge(m, src) + +func (x *CommitStatsRequest) Reset() { + *x = CommitStatsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitStatsRequest) XXX_Size() int { - return xxx_messageInfo_CommitStatsRequest.Size(m) + +func (x *CommitStatsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitStatsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CommitStatsRequest.DiscardUnknown(m) + +func (*CommitStatsRequest) ProtoMessage() {} + +func (x *CommitStatsRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitStatsRequest proto.InternalMessageInfo +// Deprecated: Use CommitStatsRequest.ProtoReflect.Descriptor instead. +func (*CommitStatsRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{0} +} -func (m *CommitStatsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CommitStatsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *CommitStatsRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *CommitStatsRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } type CommitStatsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // OID is the commit. Empty means not found - Oid string `protobuf:"bytes,1,opt,name=oid,proto3" json:"oid,omitempty"` - Additions int32 `protobuf:"varint,2,opt,name=additions,proto3" json:"additions,omitempty"` - Deletions int32 `protobuf:"varint,3,opt,name=deletions,proto3" json:"deletions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Oid string `protobuf:"bytes,1,opt,name=oid,proto3" json:"oid,omitempty"` + Additions int32 `protobuf:"varint,2,opt,name=additions,proto3" json:"additions,omitempty"` + Deletions int32 `protobuf:"varint,3,opt,name=deletions,proto3" json:"deletions,omitempty"` } -func (m *CommitStatsResponse) Reset() { *m = CommitStatsResponse{} } -func (m *CommitStatsResponse) String() string { return proto.CompactTextString(m) } -func (*CommitStatsResponse) ProtoMessage() {} -func (*CommitStatsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{1} +func (x *CommitStatsResponse) Reset() { + *x = CommitStatsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitStatsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitStatsResponse.Unmarshal(m, b) +func (x *CommitStatsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitStatsResponse.Marshal(b, m, deterministic) -} -func (m *CommitStatsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitStatsResponse.Merge(m, src) -} -func (m *CommitStatsResponse) XXX_Size() int { - return xxx_messageInfo_CommitStatsResponse.Size(m) -} -func (m *CommitStatsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CommitStatsResponse.DiscardUnknown(m) + +func (*CommitStatsResponse) ProtoMessage() {} + +func (x *CommitStatsResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitStatsResponse proto.InternalMessageInfo +// Deprecated: Use CommitStatsResponse.ProtoReflect.Descriptor instead. +func (*CommitStatsResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{1} +} -func (m *CommitStatsResponse) GetOid() string { - if m != nil { - return m.Oid +func (x *CommitStatsResponse) GetOid() string { + if x != nil { + return x.Oid } return "" } -func (m *CommitStatsResponse) GetAdditions() int32 { - if m != nil { - return m.Additions +func (x *CommitStatsResponse) GetAdditions() int32 { + if x != nil { + return x.Additions } return 0 } -func (m *CommitStatsResponse) GetDeletions() int32 { - if m != nil { - return m.Deletions +func (x *CommitStatsResponse) GetDeletions() int32 { + if x != nil { + return x.Deletions } return 0 } type CommitIsAncestorRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - AncestorId string `protobuf:"bytes,2,opt,name=ancestor_id,json=ancestorId,proto3" json:"ancestor_id,omitempty"` - ChildId string `protobuf:"bytes,3,opt,name=child_id,json=childId,proto3" json:"child_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CommitIsAncestorRequest) Reset() { *m = CommitIsAncestorRequest{} } -func (m *CommitIsAncestorRequest) String() string { return proto.CompactTextString(m) } -func (*CommitIsAncestorRequest) ProtoMessage() {} -func (*CommitIsAncestorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{2} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + AncestorId string `protobuf:"bytes,2,opt,name=ancestor_id,json=ancestorId,proto3" json:"ancestor_id,omitempty"` + ChildId string `protobuf:"bytes,3,opt,name=child_id,json=childId,proto3" json:"child_id,omitempty"` } -func (m *CommitIsAncestorRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitIsAncestorRequest.Unmarshal(m, b) -} -func (m *CommitIsAncestorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitIsAncestorRequest.Marshal(b, m, deterministic) -} -func (m *CommitIsAncestorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitIsAncestorRequest.Merge(m, src) +func (x *CommitIsAncestorRequest) Reset() { + *x = CommitIsAncestorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitIsAncestorRequest) XXX_Size() int { - return xxx_messageInfo_CommitIsAncestorRequest.Size(m) + +func (x *CommitIsAncestorRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitIsAncestorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CommitIsAncestorRequest.DiscardUnknown(m) + +func (*CommitIsAncestorRequest) ProtoMessage() {} + +func (x *CommitIsAncestorRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitIsAncestorRequest proto.InternalMessageInfo +// Deprecated: Use CommitIsAncestorRequest.ProtoReflect.Descriptor instead. +func (*CommitIsAncestorRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{2} +} -func (m *CommitIsAncestorRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CommitIsAncestorRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *CommitIsAncestorRequest) GetAncestorId() string { - if m != nil { - return m.AncestorId +func (x *CommitIsAncestorRequest) GetAncestorId() string { + if x != nil { + return x.AncestorId } return "" } -func (m *CommitIsAncestorRequest) GetChildId() string { - if m != nil { - return m.ChildId +func (x *CommitIsAncestorRequest) GetChildId() string { + if x != nil { + return x.ChildId } return "" } type CommitIsAncestorResponse struct { - Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CommitIsAncestorResponse) Reset() { *m = CommitIsAncestorResponse{} } -func (m *CommitIsAncestorResponse) String() string { return proto.CompactTextString(m) } -func (*CommitIsAncestorResponse) ProtoMessage() {} -func (*CommitIsAncestorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{3} + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` } -func (m *CommitIsAncestorResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitIsAncestorResponse.Unmarshal(m, b) -} -func (m *CommitIsAncestorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitIsAncestorResponse.Marshal(b, m, deterministic) -} -func (m *CommitIsAncestorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitIsAncestorResponse.Merge(m, src) +func (x *CommitIsAncestorResponse) Reset() { + *x = CommitIsAncestorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitIsAncestorResponse) XXX_Size() int { - return xxx_messageInfo_CommitIsAncestorResponse.Size(m) + +func (x *CommitIsAncestorResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitIsAncestorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CommitIsAncestorResponse.DiscardUnknown(m) + +func (*CommitIsAncestorResponse) ProtoMessage() {} + +func (x *CommitIsAncestorResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitIsAncestorResponse proto.InternalMessageInfo +// Deprecated: Use CommitIsAncestorResponse.ProtoReflect.Descriptor instead. +func (*CommitIsAncestorResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{3} +} -func (m *CommitIsAncestorResponse) GetValue() bool { - if m != nil { - return m.Value +func (x *CommitIsAncestorResponse) GetValue() bool { + if x != nil { + return x.Value } return false } type TreeEntryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // commit ID or refname Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` @@ -347,73 +463,81 @@ type TreeEntryRequest struct { Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` // MaxSize is the maximum allowed object size. If bigger, a FailedPrecondition error is returned // 0 means there is no maximum size. - MaxSize int64 `protobuf:"varint,5,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MaxSize int64 `protobuf:"varint,5,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"` } -func (m *TreeEntryRequest) Reset() { *m = TreeEntryRequest{} } -func (m *TreeEntryRequest) String() string { return proto.CompactTextString(m) } -func (*TreeEntryRequest) ProtoMessage() {} -func (*TreeEntryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{4} +func (x *TreeEntryRequest) Reset() { + *x = TreeEntryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TreeEntryRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TreeEntryRequest.Unmarshal(m, b) -} -func (m *TreeEntryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TreeEntryRequest.Marshal(b, m, deterministic) +func (x *TreeEntryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TreeEntryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TreeEntryRequest.Merge(m, src) -} -func (m *TreeEntryRequest) XXX_Size() int { - return xxx_messageInfo_TreeEntryRequest.Size(m) -} -func (m *TreeEntryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TreeEntryRequest.DiscardUnknown(m) + +func (*TreeEntryRequest) ProtoMessage() {} + +func (x *TreeEntryRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TreeEntryRequest proto.InternalMessageInfo +// Deprecated: Use TreeEntryRequest.ProtoReflect.Descriptor instead. +func (*TreeEntryRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{4} +} -func (m *TreeEntryRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *TreeEntryRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *TreeEntryRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *TreeEntryRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } -func (m *TreeEntryRequest) GetPath() []byte { - if m != nil { - return m.Path +func (x *TreeEntryRequest) GetPath() []byte { + if x != nil { + return x.Path } return nil } -func (m *TreeEntryRequest) GetLimit() int64 { - if m != nil { - return m.Limit +func (x *TreeEntryRequest) GetLimit() int64 { + if x != nil { + return x.Limit } return 0 } -func (m *TreeEntryRequest) GetMaxSize() int64 { - if m != nil { - return m.MaxSize +func (x *TreeEntryRequest) GetMaxSize() int64 { + if x != nil { + return x.MaxSize } return 0 } type TreeEntryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type TreeEntryResponse_ObjectType `protobuf:"varint,1,opt,name=type,proto3,enum=gitaly.TreeEntryResponse_ObjectType" json:"type,omitempty"` // SHA1 object ID Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"` @@ -421,73 +545,81 @@ type TreeEntryResponse struct { // file mode Mode int32 `protobuf:"varint,4,opt,name=mode,proto3" json:"mode,omitempty"` // raw object contents - Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` } -func (m *TreeEntryResponse) Reset() { *m = TreeEntryResponse{} } -func (m *TreeEntryResponse) String() string { return proto.CompactTextString(m) } -func (*TreeEntryResponse) ProtoMessage() {} -func (*TreeEntryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{5} +func (x *TreeEntryResponse) Reset() { + *x = TreeEntryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TreeEntryResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TreeEntryResponse.Unmarshal(m, b) -} -func (m *TreeEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TreeEntryResponse.Marshal(b, m, deterministic) +func (x *TreeEntryResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TreeEntryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TreeEntryResponse.Merge(m, src) -} -func (m *TreeEntryResponse) XXX_Size() int { - return xxx_messageInfo_TreeEntryResponse.Size(m) -} -func (m *TreeEntryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TreeEntryResponse.DiscardUnknown(m) + +func (*TreeEntryResponse) ProtoMessage() {} + +func (x *TreeEntryResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TreeEntryResponse proto.InternalMessageInfo +// Deprecated: Use TreeEntryResponse.ProtoReflect.Descriptor instead. +func (*TreeEntryResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{5} +} -func (m *TreeEntryResponse) GetType() TreeEntryResponse_ObjectType { - if m != nil { - return m.Type +func (x *TreeEntryResponse) GetType() TreeEntryResponse_ObjectType { + if x != nil { + return x.Type } return TreeEntryResponse_COMMIT } -func (m *TreeEntryResponse) GetOid() string { - if m != nil { - return m.Oid +func (x *TreeEntryResponse) GetOid() string { + if x != nil { + return x.Oid } return "" } -func (m *TreeEntryResponse) GetSize() int64 { - if m != nil { - return m.Size +func (x *TreeEntryResponse) GetSize() int64 { + if x != nil { + return x.Size } return 0 } -func (m *TreeEntryResponse) GetMode() int32 { - if m != nil { - return m.Mode +func (x *TreeEntryResponse) GetMode() int32 { + if x != nil { + return x.Mode } return 0 } -func (m *TreeEntryResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *TreeEntryResponse) GetData() []byte { + if x != nil { + return x.Data } return nil } type CommitsBetweenRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` To []byte `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` @@ -495,358 +627,406 @@ type CommitsBetweenRequest struct { // full object ID to guard against ambigious OIDs. Using the page parameter is // effectivaly equivalent to setting the `from` parameter to the commit object // identifier. - PaginationParams *PaginationParameter `protobuf:"bytes,4,opt,name=pagination_params,json=paginationParams,proto3" json:"pagination_params,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PaginationParams *PaginationParameter `protobuf:"bytes,4,opt,name=pagination_params,json=paginationParams,proto3" json:"pagination_params,omitempty"` } -func (m *CommitsBetweenRequest) Reset() { *m = CommitsBetweenRequest{} } -func (m *CommitsBetweenRequest) String() string { return proto.CompactTextString(m) } -func (*CommitsBetweenRequest) ProtoMessage() {} -func (*CommitsBetweenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{6} +func (x *CommitsBetweenRequest) Reset() { + *x = CommitsBetweenRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitsBetweenRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitsBetweenRequest.Unmarshal(m, b) +func (x *CommitsBetweenRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitsBetweenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitsBetweenRequest.Marshal(b, m, deterministic) -} -func (m *CommitsBetweenRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitsBetweenRequest.Merge(m, src) -} -func (m *CommitsBetweenRequest) XXX_Size() int { - return xxx_messageInfo_CommitsBetweenRequest.Size(m) -} -func (m *CommitsBetweenRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CommitsBetweenRequest.DiscardUnknown(m) + +func (*CommitsBetweenRequest) ProtoMessage() {} + +func (x *CommitsBetweenRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitsBetweenRequest proto.InternalMessageInfo +// Deprecated: Use CommitsBetweenRequest.ProtoReflect.Descriptor instead. +func (*CommitsBetweenRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{6} +} -func (m *CommitsBetweenRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CommitsBetweenRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *CommitsBetweenRequest) GetFrom() []byte { - if m != nil { - return m.From +func (x *CommitsBetweenRequest) GetFrom() []byte { + if x != nil { + return x.From } return nil } -func (m *CommitsBetweenRequest) GetTo() []byte { - if m != nil { - return m.To +func (x *CommitsBetweenRequest) GetTo() []byte { + if x != nil { + return x.To } return nil } -func (m *CommitsBetweenRequest) GetPaginationParams() *PaginationParameter { - if m != nil { - return m.PaginationParams +func (x *CommitsBetweenRequest) GetPaginationParams() *PaginationParameter { + if x != nil { + return x.PaginationParams } return nil } type CommitsBetweenResponse struct { - Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CommitsBetweenResponse) Reset() { *m = CommitsBetweenResponse{} } -func (m *CommitsBetweenResponse) String() string { return proto.CompactTextString(m) } -func (*CommitsBetweenResponse) ProtoMessage() {} -func (*CommitsBetweenResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{7} + Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` } -func (m *CommitsBetweenResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitsBetweenResponse.Unmarshal(m, b) -} -func (m *CommitsBetweenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitsBetweenResponse.Marshal(b, m, deterministic) -} -func (m *CommitsBetweenResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitsBetweenResponse.Merge(m, src) +func (x *CommitsBetweenResponse) Reset() { + *x = CommitsBetweenResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitsBetweenResponse) XXX_Size() int { - return xxx_messageInfo_CommitsBetweenResponse.Size(m) + +func (x *CommitsBetweenResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitsBetweenResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CommitsBetweenResponse.DiscardUnknown(m) + +func (*CommitsBetweenResponse) ProtoMessage() {} + +func (x *CommitsBetweenResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitsBetweenResponse proto.InternalMessageInfo +// Deprecated: Use CommitsBetweenResponse.ProtoReflect.Descriptor instead. +func (*CommitsBetweenResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{7} +} -func (m *CommitsBetweenResponse) GetCommits() []*GitCommit { - if m != nil { - return m.Commits +func (x *CommitsBetweenResponse) GetCommits() []*GitCommit { + if x != nil { + return x.Commits } return nil } type CountCommitsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - After *timestamp.Timestamp `protobuf:"bytes,3,opt,name=after,proto3" json:"after,omitempty"` - Before *timestamp.Timestamp `protobuf:"bytes,4,opt,name=before,proto3" json:"before,omitempty"` - Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` - MaxCount int32 `protobuf:"varint,6,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + After *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=after,proto3" json:"after,omitempty"` + Before *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=before,proto3" json:"before,omitempty"` + Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` + MaxCount int32 `protobuf:"varint,6,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` // all and revision are mutually exclusive - All bool `protobuf:"varint,7,opt,name=all,proto3" json:"all,omitempty"` - FirstParent bool `protobuf:"varint,8,opt,name=first_parent,json=firstParent,proto3" json:"first_parent,omitempty"` - GlobalOptions *GlobalOptions `protobuf:"bytes,9,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + All bool `protobuf:"varint,7,opt,name=all,proto3" json:"all,omitempty"` + FirstParent bool `protobuf:"varint,8,opt,name=first_parent,json=firstParent,proto3" json:"first_parent,omitempty"` + GlobalOptions *GlobalOptions `protobuf:"bytes,9,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` } -func (m *CountCommitsRequest) Reset() { *m = CountCommitsRequest{} } -func (m *CountCommitsRequest) String() string { return proto.CompactTextString(m) } -func (*CountCommitsRequest) ProtoMessage() {} -func (*CountCommitsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{8} +func (x *CountCommitsRequest) Reset() { + *x = CountCommitsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CountCommitsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CountCommitsRequest.Unmarshal(m, b) +func (x *CountCommitsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CountCommitsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CountCommitsRequest.Marshal(b, m, deterministic) -} -func (m *CountCommitsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CountCommitsRequest.Merge(m, src) -} -func (m *CountCommitsRequest) XXX_Size() int { - return xxx_messageInfo_CountCommitsRequest.Size(m) -} -func (m *CountCommitsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CountCommitsRequest.DiscardUnknown(m) + +func (*CountCommitsRequest) ProtoMessage() {} + +func (x *CountCommitsRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CountCommitsRequest proto.InternalMessageInfo +// Deprecated: Use CountCommitsRequest.ProtoReflect.Descriptor instead. +func (*CountCommitsRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{8} +} -func (m *CountCommitsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CountCommitsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *CountCommitsRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *CountCommitsRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } -func (m *CountCommitsRequest) GetAfter() *timestamp.Timestamp { - if m != nil { - return m.After +func (x *CountCommitsRequest) GetAfter() *timestamppb.Timestamp { + if x != nil { + return x.After } return nil } -func (m *CountCommitsRequest) GetBefore() *timestamp.Timestamp { - if m != nil { - return m.Before +func (x *CountCommitsRequest) GetBefore() *timestamppb.Timestamp { + if x != nil { + return x.Before } return nil } -func (m *CountCommitsRequest) GetPath() []byte { - if m != nil { - return m.Path +func (x *CountCommitsRequest) GetPath() []byte { + if x != nil { + return x.Path } return nil } -func (m *CountCommitsRequest) GetMaxCount() int32 { - if m != nil { - return m.MaxCount +func (x *CountCommitsRequest) GetMaxCount() int32 { + if x != nil { + return x.MaxCount } return 0 } -func (m *CountCommitsRequest) GetAll() bool { - if m != nil { - return m.All +func (x *CountCommitsRequest) GetAll() bool { + if x != nil { + return x.All } return false } -func (m *CountCommitsRequest) GetFirstParent() bool { - if m != nil { - return m.FirstParent +func (x *CountCommitsRequest) GetFirstParent() bool { + if x != nil { + return x.FirstParent } return false } -func (m *CountCommitsRequest) GetGlobalOptions() *GlobalOptions { - if m != nil { - return m.GlobalOptions +func (x *CountCommitsRequest) GetGlobalOptions() *GlobalOptions { + if x != nil { + return x.GlobalOptions } return nil } type CountCommitsResponse struct { - Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CountCommitsResponse) Reset() { *m = CountCommitsResponse{} } -func (m *CountCommitsResponse) String() string { return proto.CompactTextString(m) } -func (*CountCommitsResponse) ProtoMessage() {} -func (*CountCommitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{9} + Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` } -func (m *CountCommitsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CountCommitsResponse.Unmarshal(m, b) -} -func (m *CountCommitsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CountCommitsResponse.Marshal(b, m, deterministic) -} -func (m *CountCommitsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CountCommitsResponse.Merge(m, src) +func (x *CountCommitsResponse) Reset() { + *x = CountCommitsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CountCommitsResponse) XXX_Size() int { - return xxx_messageInfo_CountCommitsResponse.Size(m) + +func (x *CountCommitsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CountCommitsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CountCommitsResponse.DiscardUnknown(m) + +func (*CountCommitsResponse) ProtoMessage() {} + +func (x *CountCommitsResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CountCommitsResponse proto.InternalMessageInfo +// Deprecated: Use CountCommitsResponse.ProtoReflect.Descriptor instead. +func (*CountCommitsResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{9} +} -func (m *CountCommitsResponse) GetCount() int32 { - if m != nil { - return m.Count +func (x *CountCommitsResponse) GetCount() int32 { + if x != nil { + return x.Count } return 0 } type CountDivergingCommitsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - To []byte `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - MaxCount int32 `protobuf:"varint,7,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CountDivergingCommitsRequest) Reset() { *m = CountDivergingCommitsRequest{} } -func (m *CountDivergingCommitsRequest) String() string { return proto.CompactTextString(m) } -func (*CountDivergingCommitsRequest) ProtoMessage() {} -func (*CountDivergingCommitsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{10} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CountDivergingCommitsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CountDivergingCommitsRequest.Unmarshal(m, b) -} -func (m *CountDivergingCommitsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CountDivergingCommitsRequest.Marshal(b, m, deterministic) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + To []byte `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + MaxCount int32 `protobuf:"varint,7,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` } -func (m *CountDivergingCommitsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CountDivergingCommitsRequest.Merge(m, src) + +func (x *CountDivergingCommitsRequest) Reset() { + *x = CountDivergingCommitsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CountDivergingCommitsRequest) XXX_Size() int { - return xxx_messageInfo_CountDivergingCommitsRequest.Size(m) + +func (x *CountDivergingCommitsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CountDivergingCommitsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CountDivergingCommitsRequest.DiscardUnknown(m) + +func (*CountDivergingCommitsRequest) ProtoMessage() {} + +func (x *CountDivergingCommitsRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CountDivergingCommitsRequest proto.InternalMessageInfo +// Deprecated: Use CountDivergingCommitsRequest.ProtoReflect.Descriptor instead. +func (*CountDivergingCommitsRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{10} +} -func (m *CountDivergingCommitsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CountDivergingCommitsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *CountDivergingCommitsRequest) GetFrom() []byte { - if m != nil { - return m.From +func (x *CountDivergingCommitsRequest) GetFrom() []byte { + if x != nil { + return x.From } return nil } -func (m *CountDivergingCommitsRequest) GetTo() []byte { - if m != nil { - return m.To +func (x *CountDivergingCommitsRequest) GetTo() []byte { + if x != nil { + return x.To } return nil } -func (m *CountDivergingCommitsRequest) GetMaxCount() int32 { - if m != nil { - return m.MaxCount +func (x *CountDivergingCommitsRequest) GetMaxCount() int32 { + if x != nil { + return x.MaxCount } return 0 } type CountDivergingCommitsResponse struct { - LeftCount int32 `protobuf:"varint,1,opt,name=left_count,json=leftCount,proto3" json:"left_count,omitempty"` - RightCount int32 `protobuf:"varint,2,opt,name=right_count,json=rightCount,proto3" json:"right_count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CountDivergingCommitsResponse) Reset() { *m = CountDivergingCommitsResponse{} } -func (m *CountDivergingCommitsResponse) String() string { return proto.CompactTextString(m) } -func (*CountDivergingCommitsResponse) ProtoMessage() {} -func (*CountDivergingCommitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{11} + LeftCount int32 `protobuf:"varint,1,opt,name=left_count,json=leftCount,proto3" json:"left_count,omitempty"` + RightCount int32 `protobuf:"varint,2,opt,name=right_count,json=rightCount,proto3" json:"right_count,omitempty"` } -func (m *CountDivergingCommitsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CountDivergingCommitsResponse.Unmarshal(m, b) -} -func (m *CountDivergingCommitsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CountDivergingCommitsResponse.Marshal(b, m, deterministic) -} -func (m *CountDivergingCommitsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CountDivergingCommitsResponse.Merge(m, src) +func (x *CountDivergingCommitsResponse) Reset() { + *x = CountDivergingCommitsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CountDivergingCommitsResponse) XXX_Size() int { - return xxx_messageInfo_CountDivergingCommitsResponse.Size(m) + +func (x *CountDivergingCommitsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CountDivergingCommitsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CountDivergingCommitsResponse.DiscardUnknown(m) + +func (*CountDivergingCommitsResponse) ProtoMessage() {} + +func (x *CountDivergingCommitsResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CountDivergingCommitsResponse proto.InternalMessageInfo +// Deprecated: Use CountDivergingCommitsResponse.ProtoReflect.Descriptor instead. +func (*CountDivergingCommitsResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{11} +} -func (m *CountDivergingCommitsResponse) GetLeftCount() int32 { - if m != nil { - return m.LeftCount +func (x *CountDivergingCommitsResponse) GetLeftCount() int32 { + if x != nil { + return x.LeftCount } return 0 } -func (m *CountDivergingCommitsResponse) GetRightCount() int32 { - if m != nil { - return m.RightCount +func (x *CountDivergingCommitsResponse) GetRightCount() int32 { + if x != nil { + return x.RightCount } return 0 } type TreeEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // OID of the object this tree entry points to Oid string `protobuf:"bytes,1,opt,name=oid,proto3" json:"oid,omitempty"` // OID of the tree attached to commit_oid @@ -859,3341 +1039,3556 @@ type TreeEntry struct { // The commit object via which this entry was retrieved CommitOid string `protobuf:"bytes,6,opt,name=commit_oid,json=commitOid,proto3" json:"commit_oid,omitempty"` // Relative path of the first subdir that doesn't have only one directory descendant - FlatPath []byte `protobuf:"bytes,7,opt,name=flat_path,json=flatPath,proto3" json:"flat_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + FlatPath []byte `protobuf:"bytes,7,opt,name=flat_path,json=flatPath,proto3" json:"flat_path,omitempty"` } -func (m *TreeEntry) Reset() { *m = TreeEntry{} } -func (m *TreeEntry) String() string { return proto.CompactTextString(m) } -func (*TreeEntry) ProtoMessage() {} -func (*TreeEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{12} +func (x *TreeEntry) Reset() { + *x = TreeEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TreeEntry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TreeEntry.Unmarshal(m, b) -} -func (m *TreeEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TreeEntry.Marshal(b, m, deterministic) -} -func (m *TreeEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_TreeEntry.Merge(m, src) +func (x *TreeEntry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TreeEntry) XXX_Size() int { - return xxx_messageInfo_TreeEntry.Size(m) -} -func (m *TreeEntry) XXX_DiscardUnknown() { - xxx_messageInfo_TreeEntry.DiscardUnknown(m) + +func (*TreeEntry) ProtoMessage() {} + +func (x *TreeEntry) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TreeEntry proto.InternalMessageInfo +// Deprecated: Use TreeEntry.ProtoReflect.Descriptor instead. +func (*TreeEntry) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{12} +} -func (m *TreeEntry) GetOid() string { - if m != nil { - return m.Oid +func (x *TreeEntry) GetOid() string { + if x != nil { + return x.Oid } return "" } -func (m *TreeEntry) GetRootOid() string { - if m != nil { - return m.RootOid +func (x *TreeEntry) GetRootOid() string { + if x != nil { + return x.RootOid } return "" } -func (m *TreeEntry) GetPath() []byte { - if m != nil { - return m.Path +func (x *TreeEntry) GetPath() []byte { + if x != nil { + return x.Path } return nil } -func (m *TreeEntry) GetType() TreeEntry_EntryType { - if m != nil { - return m.Type +func (x *TreeEntry) GetType() TreeEntry_EntryType { + if x != nil { + return x.Type } return TreeEntry_BLOB } -func (m *TreeEntry) GetMode() int32 { - if m != nil { - return m.Mode +func (x *TreeEntry) GetMode() int32 { + if x != nil { + return x.Mode } return 0 } -func (m *TreeEntry) GetCommitOid() string { - if m != nil { - return m.CommitOid +func (x *TreeEntry) GetCommitOid() string { + if x != nil { + return x.CommitOid } return "" } -func (m *TreeEntry) GetFlatPath() []byte { - if m != nil { - return m.FlatPath +func (x *TreeEntry) GetFlatPath() []byte { + if x != nil { + return x.FlatPath } return nil } type GetTreeEntriesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` - Recursive bool `protobuf:"varint,4,opt,name=recursive,proto3" json:"recursive,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetTreeEntriesRequest) Reset() { *m = GetTreeEntriesRequest{} } -func (m *GetTreeEntriesRequest) String() string { return proto.CompactTextString(m) } -func (*GetTreeEntriesRequest) ProtoMessage() {} -func (*GetTreeEntriesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{13} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetTreeEntriesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTreeEntriesRequest.Unmarshal(m, b) -} -func (m *GetTreeEntriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTreeEntriesRequest.Marshal(b, m, deterministic) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + Recursive bool `protobuf:"varint,4,opt,name=recursive,proto3" json:"recursive,omitempty"` } -func (m *GetTreeEntriesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTreeEntriesRequest.Merge(m, src) + +func (x *GetTreeEntriesRequest) Reset() { + *x = GetTreeEntriesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetTreeEntriesRequest) XXX_Size() int { - return xxx_messageInfo_GetTreeEntriesRequest.Size(m) + +func (x *GetTreeEntriesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetTreeEntriesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetTreeEntriesRequest.DiscardUnknown(m) + +func (*GetTreeEntriesRequest) ProtoMessage() {} + +func (x *GetTreeEntriesRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetTreeEntriesRequest proto.InternalMessageInfo +// Deprecated: Use GetTreeEntriesRequest.ProtoReflect.Descriptor instead. +func (*GetTreeEntriesRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{13} +} -func (m *GetTreeEntriesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *GetTreeEntriesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *GetTreeEntriesRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *GetTreeEntriesRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } -func (m *GetTreeEntriesRequest) GetPath() []byte { - if m != nil { - return m.Path +func (x *GetTreeEntriesRequest) GetPath() []byte { + if x != nil { + return x.Path } return nil } -func (m *GetTreeEntriesRequest) GetRecursive() bool { - if m != nil { - return m.Recursive +func (x *GetTreeEntriesRequest) GetRecursive() bool { + if x != nil { + return x.Recursive } return false } type GetTreeEntriesResponse struct { - Entries []*TreeEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetTreeEntriesResponse) Reset() { *m = GetTreeEntriesResponse{} } -func (m *GetTreeEntriesResponse) String() string { return proto.CompactTextString(m) } -func (*GetTreeEntriesResponse) ProtoMessage() {} -func (*GetTreeEntriesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{14} + Entries []*TreeEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` } -func (m *GetTreeEntriesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTreeEntriesResponse.Unmarshal(m, b) -} -func (m *GetTreeEntriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTreeEntriesResponse.Marshal(b, m, deterministic) -} -func (m *GetTreeEntriesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTreeEntriesResponse.Merge(m, src) +func (x *GetTreeEntriesResponse) Reset() { + *x = GetTreeEntriesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetTreeEntriesResponse) XXX_Size() int { - return xxx_messageInfo_GetTreeEntriesResponse.Size(m) + +func (x *GetTreeEntriesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetTreeEntriesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetTreeEntriesResponse.DiscardUnknown(m) + +func (*GetTreeEntriesResponse) ProtoMessage() {} + +func (x *GetTreeEntriesResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetTreeEntriesResponse proto.InternalMessageInfo +// Deprecated: Use GetTreeEntriesResponse.ProtoReflect.Descriptor instead. +func (*GetTreeEntriesResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{14} +} -func (m *GetTreeEntriesResponse) GetEntries() []*TreeEntry { - if m != nil { - return m.Entries +func (x *GetTreeEntriesResponse) GetEntries() []*TreeEntry { + if x != nil { + return x.Entries } return nil } type ListFilesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ListFilesRequest) Reset() { *m = ListFilesRequest{} } -func (m *ListFilesRequest) String() string { return proto.CompactTextString(m) } -func (*ListFilesRequest) ProtoMessage() {} -func (*ListFilesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{15} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` } -func (m *ListFilesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListFilesRequest.Unmarshal(m, b) -} -func (m *ListFilesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListFilesRequest.Marshal(b, m, deterministic) -} -func (m *ListFilesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListFilesRequest.Merge(m, src) +func (x *ListFilesRequest) Reset() { + *x = ListFilesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListFilesRequest) XXX_Size() int { - return xxx_messageInfo_ListFilesRequest.Size(m) + +func (x *ListFilesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListFilesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListFilesRequest.DiscardUnknown(m) + +func (*ListFilesRequest) ProtoMessage() {} + +func (x *ListFilesRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListFilesRequest proto.InternalMessageInfo +// Deprecated: Use ListFilesRequest.ProtoReflect.Descriptor instead. +func (*ListFilesRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{15} +} -func (m *ListFilesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ListFilesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ListFilesRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *ListFilesRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } // A single 'page' of the paginated response type ListFilesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Remember to force encoding utf-8 on the client side - Paths [][]byte `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Paths [][]byte `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` } -func (m *ListFilesResponse) Reset() { *m = ListFilesResponse{} } -func (m *ListFilesResponse) String() string { return proto.CompactTextString(m) } -func (*ListFilesResponse) ProtoMessage() {} -func (*ListFilesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{16} +func (x *ListFilesResponse) Reset() { + *x = ListFilesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListFilesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListFilesResponse.Unmarshal(m, b) -} -func (m *ListFilesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListFilesResponse.Marshal(b, m, deterministic) -} -func (m *ListFilesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListFilesResponse.Merge(m, src) +func (x *ListFilesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListFilesResponse) XXX_Size() int { - return xxx_messageInfo_ListFilesResponse.Size(m) -} -func (m *ListFilesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListFilesResponse.DiscardUnknown(m) + +func (*ListFilesResponse) ProtoMessage() {} + +func (x *ListFilesResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListFilesResponse proto.InternalMessageInfo +// Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead. +func (*ListFilesResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{16} +} -func (m *ListFilesResponse) GetPaths() [][]byte { - if m != nil { - return m.Paths +func (x *ListFilesResponse) GetPaths() [][]byte { + if x != nil { + return x.Paths } return nil } type FindCommitRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Trailers bool `protobuf:"varint,3,opt,name=trailers,proto3" json:"trailers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindCommitRequest) Reset() { *m = FindCommitRequest{} } -func (m *FindCommitRequest) String() string { return proto.CompactTextString(m) } -func (*FindCommitRequest) ProtoMessage() {} -func (*FindCommitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{17} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Trailers bool `protobuf:"varint,3,opt,name=trailers,proto3" json:"trailers,omitempty"` } -func (m *FindCommitRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindCommitRequest.Unmarshal(m, b) -} -func (m *FindCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindCommitRequest.Marshal(b, m, deterministic) -} -func (m *FindCommitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindCommitRequest.Merge(m, src) +func (x *FindCommitRequest) Reset() { + *x = FindCommitRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindCommitRequest) XXX_Size() int { - return xxx_messageInfo_FindCommitRequest.Size(m) + +func (x *FindCommitRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindCommitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindCommitRequest.DiscardUnknown(m) + +func (*FindCommitRequest) ProtoMessage() {} + +func (x *FindCommitRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindCommitRequest proto.InternalMessageInfo +// Deprecated: Use FindCommitRequest.ProtoReflect.Descriptor instead. +func (*FindCommitRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{17} +} -func (m *FindCommitRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindCommitRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *FindCommitRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *FindCommitRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } -func (m *FindCommitRequest) GetTrailers() bool { - if m != nil { - return m.Trailers +func (x *FindCommitRequest) GetTrailers() bool { + if x != nil { + return x.Trailers } return false } type FindCommitResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // commit is nil when the commit was not found - Commit *GitCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Commit *GitCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` } -func (m *FindCommitResponse) Reset() { *m = FindCommitResponse{} } -func (m *FindCommitResponse) String() string { return proto.CompactTextString(m) } -func (*FindCommitResponse) ProtoMessage() {} -func (*FindCommitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{18} +func (x *FindCommitResponse) Reset() { + *x = FindCommitResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindCommitResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindCommitResponse.Unmarshal(m, b) -} -func (m *FindCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindCommitResponse.Marshal(b, m, deterministic) -} -func (m *FindCommitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindCommitResponse.Merge(m, src) -} -func (m *FindCommitResponse) XXX_Size() int { - return xxx_messageInfo_FindCommitResponse.Size(m) +func (x *FindCommitResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindCommitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindCommitResponse.DiscardUnknown(m) + +func (*FindCommitResponse) ProtoMessage() {} + +func (x *FindCommitResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindCommitResponse proto.InternalMessageInfo +// Deprecated: Use FindCommitResponse.ProtoReflect.Descriptor instead. +func (*FindCommitResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{18} +} -func (m *FindCommitResponse) GetCommit() *GitCommit { - if m != nil { - return m.Commit +func (x *FindCommitResponse) GetCommit() *GitCommit { + if x != nil { + return x.Commit } return nil } type ListCommitsByOidRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Oid []string `protobuf:"bytes,2,rep,name=oid,proto3" json:"oid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ListCommitsByOidRequest) Reset() { *m = ListCommitsByOidRequest{} } -func (m *ListCommitsByOidRequest) String() string { return proto.CompactTextString(m) } -func (*ListCommitsByOidRequest) ProtoMessage() {} -func (*ListCommitsByOidRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{19} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Oid []string `protobuf:"bytes,2,rep,name=oid,proto3" json:"oid,omitempty"` } -func (m *ListCommitsByOidRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListCommitsByOidRequest.Unmarshal(m, b) -} -func (m *ListCommitsByOidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListCommitsByOidRequest.Marshal(b, m, deterministic) -} -func (m *ListCommitsByOidRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListCommitsByOidRequest.Merge(m, src) +func (x *ListCommitsByOidRequest) Reset() { + *x = ListCommitsByOidRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListCommitsByOidRequest) XXX_Size() int { - return xxx_messageInfo_ListCommitsByOidRequest.Size(m) + +func (x *ListCommitsByOidRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListCommitsByOidRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListCommitsByOidRequest.DiscardUnknown(m) + +func (*ListCommitsByOidRequest) ProtoMessage() {} + +func (x *ListCommitsByOidRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListCommitsByOidRequest proto.InternalMessageInfo +// Deprecated: Use ListCommitsByOidRequest.ProtoReflect.Descriptor instead. +func (*ListCommitsByOidRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{19} +} -func (m *ListCommitsByOidRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ListCommitsByOidRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ListCommitsByOidRequest) GetOid() []string { - if m != nil { - return m.Oid +func (x *ListCommitsByOidRequest) GetOid() []string { + if x != nil { + return x.Oid } return nil } type ListCommitsByOidResponse struct { - Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ListCommitsByOidResponse) Reset() { *m = ListCommitsByOidResponse{} } -func (m *ListCommitsByOidResponse) String() string { return proto.CompactTextString(m) } -func (*ListCommitsByOidResponse) ProtoMessage() {} -func (*ListCommitsByOidResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{20} + Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` } -func (m *ListCommitsByOidResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListCommitsByOidResponse.Unmarshal(m, b) -} -func (m *ListCommitsByOidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListCommitsByOidResponse.Marshal(b, m, deterministic) -} -func (m *ListCommitsByOidResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListCommitsByOidResponse.Merge(m, src) +func (x *ListCommitsByOidResponse) Reset() { + *x = ListCommitsByOidResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListCommitsByOidResponse) XXX_Size() int { - return xxx_messageInfo_ListCommitsByOidResponse.Size(m) + +func (x *ListCommitsByOidResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListCommitsByOidResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListCommitsByOidResponse.DiscardUnknown(m) + +func (*ListCommitsByOidResponse) ProtoMessage() {} + +func (x *ListCommitsByOidResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListCommitsByOidResponse proto.InternalMessageInfo +// Deprecated: Use ListCommitsByOidResponse.ProtoReflect.Descriptor instead. +func (*ListCommitsByOidResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{20} +} -func (m *ListCommitsByOidResponse) GetCommits() []*GitCommit { - if m != nil { - return m.Commits +func (x *ListCommitsByOidResponse) GetCommits() []*GitCommit { + if x != nil { + return x.Commits } return nil } type ListCommitsByRefNameRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - RefNames [][]byte `protobuf:"bytes,2,rep,name=ref_names,json=refNames,proto3" json:"ref_names,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ListCommitsByRefNameRequest) Reset() { *m = ListCommitsByRefNameRequest{} } -func (m *ListCommitsByRefNameRequest) String() string { return proto.CompactTextString(m) } -func (*ListCommitsByRefNameRequest) ProtoMessage() {} -func (*ListCommitsByRefNameRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{21} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + RefNames [][]byte `protobuf:"bytes,2,rep,name=ref_names,json=refNames,proto3" json:"ref_names,omitempty"` } -func (m *ListCommitsByRefNameRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListCommitsByRefNameRequest.Unmarshal(m, b) -} -func (m *ListCommitsByRefNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListCommitsByRefNameRequest.Marshal(b, m, deterministic) -} -func (m *ListCommitsByRefNameRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListCommitsByRefNameRequest.Merge(m, src) +func (x *ListCommitsByRefNameRequest) Reset() { + *x = ListCommitsByRefNameRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListCommitsByRefNameRequest) XXX_Size() int { - return xxx_messageInfo_ListCommitsByRefNameRequest.Size(m) + +func (x *ListCommitsByRefNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListCommitsByRefNameRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListCommitsByRefNameRequest.DiscardUnknown(m) + +func (*ListCommitsByRefNameRequest) ProtoMessage() {} + +func (x *ListCommitsByRefNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListCommitsByRefNameRequest proto.InternalMessageInfo +// Deprecated: Use ListCommitsByRefNameRequest.ProtoReflect.Descriptor instead. +func (*ListCommitsByRefNameRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{21} +} -func (m *ListCommitsByRefNameRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ListCommitsByRefNameRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ListCommitsByRefNameRequest) GetRefNames() [][]byte { - if m != nil { - return m.RefNames +func (x *ListCommitsByRefNameRequest) GetRefNames() [][]byte { + if x != nil { + return x.RefNames } return nil } type ListCommitsByRefNameResponse struct { - CommitRefs []*ListCommitsByRefNameResponse_CommitForRef `protobuf:"bytes,2,rep,name=commit_refs,json=commitRefs,proto3" json:"commit_refs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListCommitsByRefNameResponse) Reset() { *m = ListCommitsByRefNameResponse{} } -func (m *ListCommitsByRefNameResponse) String() string { return proto.CompactTextString(m) } -func (*ListCommitsByRefNameResponse) ProtoMessage() {} -func (*ListCommitsByRefNameResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{22} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ListCommitsByRefNameResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListCommitsByRefNameResponse.Unmarshal(m, b) -} -func (m *ListCommitsByRefNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListCommitsByRefNameResponse.Marshal(b, m, deterministic) -} -func (m *ListCommitsByRefNameResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListCommitsByRefNameResponse.Merge(m, src) + CommitRefs []*ListCommitsByRefNameResponse_CommitForRef `protobuf:"bytes,2,rep,name=commit_refs,json=commitRefs,proto3" json:"commit_refs,omitempty"` } -func (m *ListCommitsByRefNameResponse) XXX_Size() int { - return xxx_messageInfo_ListCommitsByRefNameResponse.Size(m) -} -func (m *ListCommitsByRefNameResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListCommitsByRefNameResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListCommitsByRefNameResponse proto.InternalMessageInfo -func (m *ListCommitsByRefNameResponse) GetCommitRefs() []*ListCommitsByRefNameResponse_CommitForRef { - if m != nil { - return m.CommitRefs +func (x *ListCommitsByRefNameResponse) Reset() { + *x = ListCommitsByRefNameResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ListCommitsByRefNameResponse_CommitForRef struct { - Commit *GitCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` - RefName []byte `protobuf:"bytes,2,opt,name=ref_name,json=refName,proto3" json:"ref_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ListCommitsByRefNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListCommitsByRefNameResponse_CommitForRef) Reset() { - *m = ListCommitsByRefNameResponse_CommitForRef{} -} -func (m *ListCommitsByRefNameResponse_CommitForRef) String() string { - return proto.CompactTextString(m) -} -func (*ListCommitsByRefNameResponse_CommitForRef) ProtoMessage() {} -func (*ListCommitsByRefNameResponse_CommitForRef) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{22, 0} -} +func (*ListCommitsByRefNameResponse) ProtoMessage() {} -func (m *ListCommitsByRefNameResponse_CommitForRef) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListCommitsByRefNameResponse_CommitForRef.Unmarshal(m, b) -} -func (m *ListCommitsByRefNameResponse_CommitForRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListCommitsByRefNameResponse_CommitForRef.Marshal(b, m, deterministic) -} -func (m *ListCommitsByRefNameResponse_CommitForRef) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListCommitsByRefNameResponse_CommitForRef.Merge(m, src) -} -func (m *ListCommitsByRefNameResponse_CommitForRef) XXX_Size() int { - return xxx_messageInfo_ListCommitsByRefNameResponse_CommitForRef.Size(m) -} -func (m *ListCommitsByRefNameResponse_CommitForRef) XXX_DiscardUnknown() { - xxx_messageInfo_ListCommitsByRefNameResponse_CommitForRef.DiscardUnknown(m) +func (x *ListCommitsByRefNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListCommitsByRefNameResponse_CommitForRef proto.InternalMessageInfo - -func (m *ListCommitsByRefNameResponse_CommitForRef) GetCommit() *GitCommit { - if m != nil { - return m.Commit - } - return nil +// Deprecated: Use ListCommitsByRefNameResponse.ProtoReflect.Descriptor instead. +func (*ListCommitsByRefNameResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{22} } -func (m *ListCommitsByRefNameResponse_CommitForRef) GetRefName() []byte { - if m != nil { - return m.RefName +func (x *ListCommitsByRefNameResponse) GetCommitRefs() []*ListCommitsByRefNameResponse_CommitForRef { + if x != nil { + return x.CommitRefs } return nil } type FindAllCommitsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // When nil, return all commits reachable by any branch in the repo - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - MaxCount int32 `protobuf:"varint,3,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` - Skip int32 `protobuf:"varint,4,opt,name=skip,proto3" json:"skip,omitempty"` - Order FindAllCommitsRequest_Order `protobuf:"varint,5,opt,name=order,proto3,enum=gitaly.FindAllCommitsRequest_Order" json:"order,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FindAllCommitsRequest) Reset() { *m = FindAllCommitsRequest{} } -func (m *FindAllCommitsRequest) String() string { return proto.CompactTextString(m) } -func (*FindAllCommitsRequest) ProtoMessage() {} -func (*FindAllCommitsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{23} + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + MaxCount int32 `protobuf:"varint,3,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` + Skip int32 `protobuf:"varint,4,opt,name=skip,proto3" json:"skip,omitempty"` + Order FindAllCommitsRequest_Order `protobuf:"varint,5,opt,name=order,proto3,enum=gitaly.FindAllCommitsRequest_Order" json:"order,omitempty"` } -func (m *FindAllCommitsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindAllCommitsRequest.Unmarshal(m, b) -} -func (m *FindAllCommitsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindAllCommitsRequest.Marshal(b, m, deterministic) -} -func (m *FindAllCommitsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindAllCommitsRequest.Merge(m, src) +func (x *FindAllCommitsRequest) Reset() { + *x = FindAllCommitsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindAllCommitsRequest) XXX_Size() int { - return xxx_messageInfo_FindAllCommitsRequest.Size(m) + +func (x *FindAllCommitsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindAllCommitsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindAllCommitsRequest.DiscardUnknown(m) + +func (*FindAllCommitsRequest) ProtoMessage() {} + +func (x *FindAllCommitsRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindAllCommitsRequest proto.InternalMessageInfo +// Deprecated: Use FindAllCommitsRequest.ProtoReflect.Descriptor instead. +func (*FindAllCommitsRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{23} +} -func (m *FindAllCommitsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindAllCommitsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *FindAllCommitsRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *FindAllCommitsRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } -func (m *FindAllCommitsRequest) GetMaxCount() int32 { - if m != nil { - return m.MaxCount +func (x *FindAllCommitsRequest) GetMaxCount() int32 { + if x != nil { + return x.MaxCount } return 0 } -func (m *FindAllCommitsRequest) GetSkip() int32 { - if m != nil { - return m.Skip +func (x *FindAllCommitsRequest) GetSkip() int32 { + if x != nil { + return x.Skip } return 0 } -func (m *FindAllCommitsRequest) GetOrder() FindAllCommitsRequest_Order { - if m != nil { - return m.Order +func (x *FindAllCommitsRequest) GetOrder() FindAllCommitsRequest_Order { + if x != nil { + return x.Order } return FindAllCommitsRequest_NONE } // A single 'page' of the result set type FindAllCommitsResponse struct { - Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindAllCommitsResponse) Reset() { *m = FindAllCommitsResponse{} } -func (m *FindAllCommitsResponse) String() string { return proto.CompactTextString(m) } -func (*FindAllCommitsResponse) ProtoMessage() {} -func (*FindAllCommitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{24} + Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` } -func (m *FindAllCommitsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindAllCommitsResponse.Unmarshal(m, b) -} -func (m *FindAllCommitsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindAllCommitsResponse.Marshal(b, m, deterministic) -} -func (m *FindAllCommitsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindAllCommitsResponse.Merge(m, src) +func (x *FindAllCommitsResponse) Reset() { + *x = FindAllCommitsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindAllCommitsResponse) XXX_Size() int { - return xxx_messageInfo_FindAllCommitsResponse.Size(m) + +func (x *FindAllCommitsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindAllCommitsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindAllCommitsResponse.DiscardUnknown(m) + +func (*FindAllCommitsResponse) ProtoMessage() {} + +func (x *FindAllCommitsResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindAllCommitsResponse proto.InternalMessageInfo +// Deprecated: Use FindAllCommitsResponse.ProtoReflect.Descriptor instead. +func (*FindAllCommitsResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{24} +} -func (m *FindAllCommitsResponse) GetCommits() []*GitCommit { - if m != nil { - return m.Commits +func (x *FindAllCommitsResponse) GetCommits() []*GitCommit { + if x != nil { + return x.Commits } return nil } type FindCommitsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Offset int32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` - Paths [][]byte `protobuf:"bytes,5,rep,name=paths,proto3" json:"paths,omitempty"` - Follow bool `protobuf:"varint,6,opt,name=follow,proto3" json:"follow,omitempty"` - SkipMerges bool `protobuf:"varint,7,opt,name=skip_merges,json=skipMerges,proto3" json:"skip_merges,omitempty"` - DisableWalk bool `protobuf:"varint,8,opt,name=disable_walk,json=disableWalk,proto3" json:"disable_walk,omitempty"` - After *timestamp.Timestamp `protobuf:"bytes,9,opt,name=after,proto3" json:"after,omitempty"` - Before *timestamp.Timestamp `protobuf:"bytes,10,opt,name=before,proto3" json:"before,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + Offset int32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` + Paths [][]byte `protobuf:"bytes,5,rep,name=paths,proto3" json:"paths,omitempty"` + Follow bool `protobuf:"varint,6,opt,name=follow,proto3" json:"follow,omitempty"` + SkipMerges bool `protobuf:"varint,7,opt,name=skip_merges,json=skipMerges,proto3" json:"skip_merges,omitempty"` + DisableWalk bool `protobuf:"varint,8,opt,name=disable_walk,json=disableWalk,proto3" json:"disable_walk,omitempty"` + After *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=after,proto3" json:"after,omitempty"` + Before *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=before,proto3" json:"before,omitempty"` // all and revision are mutually exclusive - All bool `protobuf:"varint,11,opt,name=all,proto3" json:"all,omitempty"` - FirstParent bool `protobuf:"varint,12,opt,name=first_parent,json=firstParent,proto3" json:"first_parent,omitempty"` - Author []byte `protobuf:"bytes,13,opt,name=author,proto3" json:"author,omitempty"` - Order FindCommitsRequest_Order `protobuf:"varint,14,opt,name=order,proto3,enum=gitaly.FindCommitsRequest_Order" json:"order,omitempty"` - GlobalOptions *GlobalOptions `protobuf:"bytes,15,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` - Trailers bool `protobuf:"varint,16,opt,name=trailers,proto3" json:"trailers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FindCommitsRequest) Reset() { *m = FindCommitsRequest{} } -func (m *FindCommitsRequest) String() string { return proto.CompactTextString(m) } -func (*FindCommitsRequest) ProtoMessage() {} -func (*FindCommitsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{25} + All bool `protobuf:"varint,11,opt,name=all,proto3" json:"all,omitempty"` + FirstParent bool `protobuf:"varint,12,opt,name=first_parent,json=firstParent,proto3" json:"first_parent,omitempty"` + Author []byte `protobuf:"bytes,13,opt,name=author,proto3" json:"author,omitempty"` + Order FindCommitsRequest_Order `protobuf:"varint,14,opt,name=order,proto3,enum=gitaly.FindCommitsRequest_Order" json:"order,omitempty"` + GlobalOptions *GlobalOptions `protobuf:"bytes,15,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` + Trailers bool `protobuf:"varint,16,opt,name=trailers,proto3" json:"trailers,omitempty"` } -func (m *FindCommitsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindCommitsRequest.Unmarshal(m, b) -} -func (m *FindCommitsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindCommitsRequest.Marshal(b, m, deterministic) -} -func (m *FindCommitsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindCommitsRequest.Merge(m, src) +func (x *FindCommitsRequest) Reset() { + *x = FindCommitsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindCommitsRequest) XXX_Size() int { - return xxx_messageInfo_FindCommitsRequest.Size(m) + +func (x *FindCommitsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindCommitsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindCommitsRequest.DiscardUnknown(m) + +func (*FindCommitsRequest) ProtoMessage() {} + +func (x *FindCommitsRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindCommitsRequest proto.InternalMessageInfo +// Deprecated: Use FindCommitsRequest.ProtoReflect.Descriptor instead. +func (*FindCommitsRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{25} +} -func (m *FindCommitsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindCommitsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *FindCommitsRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *FindCommitsRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } -func (m *FindCommitsRequest) GetLimit() int32 { - if m != nil { - return m.Limit +func (x *FindCommitsRequest) GetLimit() int32 { + if x != nil { + return x.Limit } return 0 } -func (m *FindCommitsRequest) GetOffset() int32 { - if m != nil { - return m.Offset +func (x *FindCommitsRequest) GetOffset() int32 { + if x != nil { + return x.Offset } return 0 } -func (m *FindCommitsRequest) GetPaths() [][]byte { - if m != nil { - return m.Paths +func (x *FindCommitsRequest) GetPaths() [][]byte { + if x != nil { + return x.Paths } return nil } -func (m *FindCommitsRequest) GetFollow() bool { - if m != nil { - return m.Follow +func (x *FindCommitsRequest) GetFollow() bool { + if x != nil { + return x.Follow } return false } -func (m *FindCommitsRequest) GetSkipMerges() bool { - if m != nil { - return m.SkipMerges +func (x *FindCommitsRequest) GetSkipMerges() bool { + if x != nil { + return x.SkipMerges } return false } -func (m *FindCommitsRequest) GetDisableWalk() bool { - if m != nil { - return m.DisableWalk +func (x *FindCommitsRequest) GetDisableWalk() bool { + if x != nil { + return x.DisableWalk } return false } -func (m *FindCommitsRequest) GetAfter() *timestamp.Timestamp { - if m != nil { - return m.After +func (x *FindCommitsRequest) GetAfter() *timestamppb.Timestamp { + if x != nil { + return x.After } return nil } -func (m *FindCommitsRequest) GetBefore() *timestamp.Timestamp { - if m != nil { - return m.Before +func (x *FindCommitsRequest) GetBefore() *timestamppb.Timestamp { + if x != nil { + return x.Before } return nil } -func (m *FindCommitsRequest) GetAll() bool { - if m != nil { - return m.All +func (x *FindCommitsRequest) GetAll() bool { + if x != nil { + return x.All } return false } -func (m *FindCommitsRequest) GetFirstParent() bool { - if m != nil { - return m.FirstParent +func (x *FindCommitsRequest) GetFirstParent() bool { + if x != nil { + return x.FirstParent } return false } -func (m *FindCommitsRequest) GetAuthor() []byte { - if m != nil { - return m.Author +func (x *FindCommitsRequest) GetAuthor() []byte { + if x != nil { + return x.Author } return nil } -func (m *FindCommitsRequest) GetOrder() FindCommitsRequest_Order { - if m != nil { - return m.Order +func (x *FindCommitsRequest) GetOrder() FindCommitsRequest_Order { + if x != nil { + return x.Order } return FindCommitsRequest_NONE } -func (m *FindCommitsRequest) GetGlobalOptions() *GlobalOptions { - if m != nil { - return m.GlobalOptions +func (x *FindCommitsRequest) GetGlobalOptions() *GlobalOptions { + if x != nil { + return x.GlobalOptions } return nil } -func (m *FindCommitsRequest) GetTrailers() bool { - if m != nil { - return m.Trailers +func (x *FindCommitsRequest) GetTrailers() bool { + if x != nil { + return x.Trailers } return false } // A single 'page' of the result set type FindCommitsResponse struct { - Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindCommitsResponse) Reset() { *m = FindCommitsResponse{} } -func (m *FindCommitsResponse) String() string { return proto.CompactTextString(m) } -func (*FindCommitsResponse) ProtoMessage() {} -func (*FindCommitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{26} + Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` } -func (m *FindCommitsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindCommitsResponse.Unmarshal(m, b) -} -func (m *FindCommitsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindCommitsResponse.Marshal(b, m, deterministic) -} -func (m *FindCommitsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindCommitsResponse.Merge(m, src) +func (x *FindCommitsResponse) Reset() { + *x = FindCommitsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindCommitsResponse) XXX_Size() int { - return xxx_messageInfo_FindCommitsResponse.Size(m) + +func (x *FindCommitsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindCommitsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindCommitsResponse.DiscardUnknown(m) + +func (*FindCommitsResponse) ProtoMessage() {} + +func (x *FindCommitsResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindCommitsResponse proto.InternalMessageInfo +// Deprecated: Use FindCommitsResponse.ProtoReflect.Descriptor instead. +func (*FindCommitsResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{26} +} -func (m *FindCommitsResponse) GetCommits() []*GitCommit { - if m != nil { - return m.Commits +func (x *FindCommitsResponse) GetCommits() []*GitCommit { + if x != nil { + return x.Commits } return nil } type CommitLanguagesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CommitLanguagesRequest) Reset() { *m = CommitLanguagesRequest{} } -func (m *CommitLanguagesRequest) String() string { return proto.CompactTextString(m) } -func (*CommitLanguagesRequest) ProtoMessage() {} -func (*CommitLanguagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{27} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` } -func (m *CommitLanguagesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitLanguagesRequest.Unmarshal(m, b) -} -func (m *CommitLanguagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitLanguagesRequest.Marshal(b, m, deterministic) -} -func (m *CommitLanguagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitLanguagesRequest.Merge(m, src) +func (x *CommitLanguagesRequest) Reset() { + *x = CommitLanguagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitLanguagesRequest) XXX_Size() int { - return xxx_messageInfo_CommitLanguagesRequest.Size(m) + +func (x *CommitLanguagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitLanguagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CommitLanguagesRequest.DiscardUnknown(m) + +func (*CommitLanguagesRequest) ProtoMessage() {} + +func (x *CommitLanguagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitLanguagesRequest proto.InternalMessageInfo +// Deprecated: Use CommitLanguagesRequest.ProtoReflect.Descriptor instead. +func (*CommitLanguagesRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{27} +} -func (m *CommitLanguagesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CommitLanguagesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *CommitLanguagesRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *CommitLanguagesRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } type CommitLanguagesResponse struct { - Languages []*CommitLanguagesResponse_Language `protobuf:"bytes,1,rep,name=languages,proto3" json:"languages,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CommitLanguagesResponse) Reset() { *m = CommitLanguagesResponse{} } -func (m *CommitLanguagesResponse) String() string { return proto.CompactTextString(m) } -func (*CommitLanguagesResponse) ProtoMessage() {} -func (*CommitLanguagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{28} + Languages []*CommitLanguagesResponse_Language `protobuf:"bytes,1,rep,name=languages,proto3" json:"languages,omitempty"` } -func (m *CommitLanguagesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitLanguagesResponse.Unmarshal(m, b) -} -func (m *CommitLanguagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitLanguagesResponse.Marshal(b, m, deterministic) -} -func (m *CommitLanguagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitLanguagesResponse.Merge(m, src) -} -func (m *CommitLanguagesResponse) XXX_Size() int { - return xxx_messageInfo_CommitLanguagesResponse.Size(m) +func (x *CommitLanguagesResponse) Reset() { + *x = CommitLanguagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitLanguagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CommitLanguagesResponse.DiscardUnknown(m) + +func (x *CommitLanguagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CommitLanguagesResponse proto.InternalMessageInfo +func (*CommitLanguagesResponse) ProtoMessage() {} -func (m *CommitLanguagesResponse) GetLanguages() []*CommitLanguagesResponse_Language { - if m != nil { - return m.Languages +func (x *CommitLanguagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type CommitLanguagesResponse_Language struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Share float32 `protobuf:"fixed32,2,opt,name=share,proto3" json:"share,omitempty"` - Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` - FileCount uint32 `protobuf:"varint,4,opt,name=file_count,json=fileCount,proto3" json:"file_count,omitempty"` - Bytes uint64 `protobuf:"varint,5,opt,name=bytes,proto3" json:"bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommitLanguagesResponse_Language) Reset() { *m = CommitLanguagesResponse_Language{} } -func (m *CommitLanguagesResponse_Language) String() string { return proto.CompactTextString(m) } -func (*CommitLanguagesResponse_Language) ProtoMessage() {} -func (*CommitLanguagesResponse_Language) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{28, 0} +// Deprecated: Use CommitLanguagesResponse.ProtoReflect.Descriptor instead. +func (*CommitLanguagesResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{28} } -func (m *CommitLanguagesResponse_Language) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitLanguagesResponse_Language.Unmarshal(m, b) -} -func (m *CommitLanguagesResponse_Language) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitLanguagesResponse_Language.Marshal(b, m, deterministic) -} -func (m *CommitLanguagesResponse_Language) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitLanguagesResponse_Language.Merge(m, src) -} -func (m *CommitLanguagesResponse_Language) XXX_Size() int { - return xxx_messageInfo_CommitLanguagesResponse_Language.Size(m) -} -func (m *CommitLanguagesResponse_Language) XXX_DiscardUnknown() { - xxx_messageInfo_CommitLanguagesResponse_Language.DiscardUnknown(m) +func (x *CommitLanguagesResponse) GetLanguages() []*CommitLanguagesResponse_Language { + if x != nil { + return x.Languages + } + return nil } -var xxx_messageInfo_CommitLanguagesResponse_Language proto.InternalMessageInfo +type RawBlameRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CommitLanguagesResponse_Language) GetName() string { - if m != nil { - return m.Name - } - return "" + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` } -func (m *CommitLanguagesResponse_Language) GetShare() float32 { - if m != nil { - return m.Share +func (x *RawBlameRequest) Reset() { + *x = RawBlameRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (m *CommitLanguagesResponse_Language) GetColor() string { - if m != nil { - return m.Color - } - return "" +func (x *RawBlameRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitLanguagesResponse_Language) GetFileCount() uint32 { - if m != nil { - return m.FileCount - } - return 0 -} +func (*RawBlameRequest) ProtoMessage() {} -func (m *CommitLanguagesResponse_Language) GetBytes() uint64 { - if m != nil { - return m.Bytes +func (x *RawBlameRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 -} - -type RawBlameRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return mi.MessageOf(x) } -func (m *RawBlameRequest) Reset() { *m = RawBlameRequest{} } -func (m *RawBlameRequest) String() string { return proto.CompactTextString(m) } -func (*RawBlameRequest) ProtoMessage() {} +// Deprecated: Use RawBlameRequest.ProtoReflect.Descriptor instead. func (*RawBlameRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{29} -} - -func (m *RawBlameRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RawBlameRequest.Unmarshal(m, b) -} -func (m *RawBlameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RawBlameRequest.Marshal(b, m, deterministic) + return file_commit_proto_rawDescGZIP(), []int{29} } -func (m *RawBlameRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawBlameRequest.Merge(m, src) -} -func (m *RawBlameRequest) XXX_Size() int { - return xxx_messageInfo_RawBlameRequest.Size(m) -} -func (m *RawBlameRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawBlameRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RawBlameRequest proto.InternalMessageInfo -func (m *RawBlameRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *RawBlameRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *RawBlameRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *RawBlameRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } -func (m *RawBlameRequest) GetPath() []byte { - if m != nil { - return m.Path +func (x *RawBlameRequest) GetPath() []byte { + if x != nil { + return x.Path } return nil } type RawBlameResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RawBlameResponse) Reset() { *m = RawBlameResponse{} } -func (m *RawBlameResponse) String() string { return proto.CompactTextString(m) } -func (*RawBlameResponse) ProtoMessage() {} -func (*RawBlameResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{30} + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } -func (m *RawBlameResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RawBlameResponse.Unmarshal(m, b) -} -func (m *RawBlameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RawBlameResponse.Marshal(b, m, deterministic) -} -func (m *RawBlameResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawBlameResponse.Merge(m, src) +func (x *RawBlameResponse) Reset() { + *x = RawBlameResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RawBlameResponse) XXX_Size() int { - return xxx_messageInfo_RawBlameResponse.Size(m) + +func (x *RawBlameResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RawBlameResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawBlameResponse.DiscardUnknown(m) + +func (*RawBlameResponse) ProtoMessage() {} + +func (x *RawBlameResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RawBlameResponse proto.InternalMessageInfo +// Deprecated: Use RawBlameResponse.ProtoReflect.Descriptor instead. +func (*RawBlameResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{30} +} -func (m *RawBlameResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *RawBlameResponse) GetData() []byte { + if x != nil { + return x.Data } return nil } type LastCommitForPathRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` - LiteralPathspec bool `protobuf:"varint,4,opt,name=literal_pathspec,json=literalPathspec,proto3" json:"literal_pathspec,omitempty"` - GlobalOptions *GlobalOptions `protobuf:"bytes,5,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LastCommitForPathRequest) Reset() { *m = LastCommitForPathRequest{} } -func (m *LastCommitForPathRequest) String() string { return proto.CompactTextString(m) } -func (*LastCommitForPathRequest) ProtoMessage() {} -func (*LastCommitForPathRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{31} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *LastCommitForPathRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LastCommitForPathRequest.Unmarshal(m, b) -} -func (m *LastCommitForPathRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LastCommitForPathRequest.Marshal(b, m, deterministic) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + LiteralPathspec bool `protobuf:"varint,4,opt,name=literal_pathspec,json=literalPathspec,proto3" json:"literal_pathspec,omitempty"` // Deprecate after Rails stops using this + GlobalOptions *GlobalOptions `protobuf:"bytes,5,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` } -func (m *LastCommitForPathRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LastCommitForPathRequest.Merge(m, src) + +func (x *LastCommitForPathRequest) Reset() { + *x = LastCommitForPathRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LastCommitForPathRequest) XXX_Size() int { - return xxx_messageInfo_LastCommitForPathRequest.Size(m) + +func (x *LastCommitForPathRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LastCommitForPathRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LastCommitForPathRequest.DiscardUnknown(m) + +func (*LastCommitForPathRequest) ProtoMessage() {} + +func (x *LastCommitForPathRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LastCommitForPathRequest proto.InternalMessageInfo +// Deprecated: Use LastCommitForPathRequest.ProtoReflect.Descriptor instead. +func (*LastCommitForPathRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{31} +} -func (m *LastCommitForPathRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *LastCommitForPathRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *LastCommitForPathRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *LastCommitForPathRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } -func (m *LastCommitForPathRequest) GetPath() []byte { - if m != nil { - return m.Path +func (x *LastCommitForPathRequest) GetPath() []byte { + if x != nil { + return x.Path } return nil } -func (m *LastCommitForPathRequest) GetLiteralPathspec() bool { - if m != nil { - return m.LiteralPathspec +func (x *LastCommitForPathRequest) GetLiteralPathspec() bool { + if x != nil { + return x.LiteralPathspec } return false } -func (m *LastCommitForPathRequest) GetGlobalOptions() *GlobalOptions { - if m != nil { - return m.GlobalOptions +func (x *LastCommitForPathRequest) GetGlobalOptions() *GlobalOptions { + if x != nil { + return x.GlobalOptions } return nil } type LastCommitForPathResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // commit is nil when the commit was not found - Commit *GitCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Commit *GitCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` } -func (m *LastCommitForPathResponse) Reset() { *m = LastCommitForPathResponse{} } -func (m *LastCommitForPathResponse) String() string { return proto.CompactTextString(m) } -func (*LastCommitForPathResponse) ProtoMessage() {} -func (*LastCommitForPathResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{32} +func (x *LastCommitForPathResponse) Reset() { + *x = LastCommitForPathResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LastCommitForPathResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LastCommitForPathResponse.Unmarshal(m, b) -} -func (m *LastCommitForPathResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LastCommitForPathResponse.Marshal(b, m, deterministic) -} -func (m *LastCommitForPathResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LastCommitForPathResponse.Merge(m, src) -} -func (m *LastCommitForPathResponse) XXX_Size() int { - return xxx_messageInfo_LastCommitForPathResponse.Size(m) +func (x *LastCommitForPathResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LastCommitForPathResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LastCommitForPathResponse.DiscardUnknown(m) + +func (*LastCommitForPathResponse) ProtoMessage() {} + +func (x *LastCommitForPathResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LastCommitForPathResponse proto.InternalMessageInfo +// Deprecated: Use LastCommitForPathResponse.ProtoReflect.Descriptor instead. +func (*LastCommitForPathResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{32} +} -func (m *LastCommitForPathResponse) GetCommit() *GitCommit { - if m != nil { - return m.Commit +func (x *LastCommitForPathResponse) GetCommit() *GitCommit { + if x != nil { + return x.Commit } return nil } type ListLastCommitsForTreeRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` - Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - Offset int32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` - LiteralPathspec bool `protobuf:"varint,6,opt,name=literal_pathspec,json=literalPathspec,proto3" json:"literal_pathspec,omitempty"` // Deprecated: Do not use. - GlobalOptions *GlobalOptions `protobuf:"bytes,7,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListLastCommitsForTreeRequest) Reset() { *m = ListLastCommitsForTreeRequest{} } -func (m *ListLastCommitsForTreeRequest) String() string { return proto.CompactTextString(m) } -func (*ListLastCommitsForTreeRequest) ProtoMessage() {} -func (*ListLastCommitsForTreeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{33} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ListLastCommitsForTreeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListLastCommitsForTreeRequest.Unmarshal(m, b) -} -func (m *ListLastCommitsForTreeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListLastCommitsForTreeRequest.Marshal(b, m, deterministic) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + Offset int32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` + // Deprecated: Do not use. + LiteralPathspec bool `protobuf:"varint,6,opt,name=literal_pathspec,json=literalPathspec,proto3" json:"literal_pathspec,omitempty"` + GlobalOptions *GlobalOptions `protobuf:"bytes,7,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` } -func (m *ListLastCommitsForTreeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListLastCommitsForTreeRequest.Merge(m, src) + +func (x *ListLastCommitsForTreeRequest) Reset() { + *x = ListLastCommitsForTreeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListLastCommitsForTreeRequest) XXX_Size() int { - return xxx_messageInfo_ListLastCommitsForTreeRequest.Size(m) + +func (x *ListLastCommitsForTreeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListLastCommitsForTreeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListLastCommitsForTreeRequest.DiscardUnknown(m) + +func (*ListLastCommitsForTreeRequest) ProtoMessage() {} + +func (x *ListLastCommitsForTreeRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListLastCommitsForTreeRequest proto.InternalMessageInfo +// Deprecated: Use ListLastCommitsForTreeRequest.ProtoReflect.Descriptor instead. +func (*ListLastCommitsForTreeRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{33} +} -func (m *ListLastCommitsForTreeRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ListLastCommitsForTreeRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ListLastCommitsForTreeRequest) GetRevision() string { - if m != nil { - return m.Revision +func (x *ListLastCommitsForTreeRequest) GetRevision() string { + if x != nil { + return x.Revision } return "" } -func (m *ListLastCommitsForTreeRequest) GetPath() []byte { - if m != nil { - return m.Path +func (x *ListLastCommitsForTreeRequest) GetPath() []byte { + if x != nil { + return x.Path } return nil } -func (m *ListLastCommitsForTreeRequest) GetLimit() int32 { - if m != nil { - return m.Limit +func (x *ListLastCommitsForTreeRequest) GetLimit() int32 { + if x != nil { + return x.Limit } return 0 } -func (m *ListLastCommitsForTreeRequest) GetOffset() int32 { - if m != nil { - return m.Offset +func (x *ListLastCommitsForTreeRequest) GetOffset() int32 { + if x != nil { + return x.Offset } return 0 } // Deprecated: Do not use. -func (m *ListLastCommitsForTreeRequest) GetLiteralPathspec() bool { - if m != nil { - return m.LiteralPathspec +func (x *ListLastCommitsForTreeRequest) GetLiteralPathspec() bool { + if x != nil { + return x.LiteralPathspec } return false } -func (m *ListLastCommitsForTreeRequest) GetGlobalOptions() *GlobalOptions { - if m != nil { - return m.GlobalOptions +func (x *ListLastCommitsForTreeRequest) GetGlobalOptions() *GlobalOptions { + if x != nil { + return x.GlobalOptions } return nil } type ListLastCommitsForTreeResponse struct { - Commits []*ListLastCommitsForTreeResponse_CommitForTree `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListLastCommitsForTreeResponse) Reset() { *m = ListLastCommitsForTreeResponse{} } -func (m *ListLastCommitsForTreeResponse) String() string { return proto.CompactTextString(m) } -func (*ListLastCommitsForTreeResponse) ProtoMessage() {} -func (*ListLastCommitsForTreeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{34} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ListLastCommitsForTreeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListLastCommitsForTreeResponse.Unmarshal(m, b) -} -func (m *ListLastCommitsForTreeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListLastCommitsForTreeResponse.Marshal(b, m, deterministic) -} -func (m *ListLastCommitsForTreeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListLastCommitsForTreeResponse.Merge(m, src) -} -func (m *ListLastCommitsForTreeResponse) XXX_Size() int { - return xxx_messageInfo_ListLastCommitsForTreeResponse.Size(m) + Commits []*ListLastCommitsForTreeResponse_CommitForTree `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` } -func (m *ListLastCommitsForTreeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListLastCommitsForTreeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListLastCommitsForTreeResponse proto.InternalMessageInfo -func (m *ListLastCommitsForTreeResponse) GetCommits() []*ListLastCommitsForTreeResponse_CommitForTree { - if m != nil { - return m.Commits +func (x *ListLastCommitsForTreeResponse) Reset() { + *x = ListLastCommitsForTreeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ListLastCommitsForTreeResponse_CommitForTree struct { - Commit *GitCommit `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` - PathBytes []byte `protobuf:"bytes,4,opt,name=path_bytes,json=pathBytes,proto3" json:"path_bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ListLastCommitsForTreeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListLastCommitsForTreeResponse_CommitForTree) Reset() { - *m = ListLastCommitsForTreeResponse_CommitForTree{} -} -func (m *ListLastCommitsForTreeResponse_CommitForTree) String() string { - return proto.CompactTextString(m) -} -func (*ListLastCommitsForTreeResponse_CommitForTree) ProtoMessage() {} -func (*ListLastCommitsForTreeResponse_CommitForTree) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{34, 0} -} +func (*ListLastCommitsForTreeResponse) ProtoMessage() {} -func (m *ListLastCommitsForTreeResponse_CommitForTree) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListLastCommitsForTreeResponse_CommitForTree.Unmarshal(m, b) -} -func (m *ListLastCommitsForTreeResponse_CommitForTree) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListLastCommitsForTreeResponse_CommitForTree.Marshal(b, m, deterministic) -} -func (m *ListLastCommitsForTreeResponse_CommitForTree) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListLastCommitsForTreeResponse_CommitForTree.Merge(m, src) -} -func (m *ListLastCommitsForTreeResponse_CommitForTree) XXX_Size() int { - return xxx_messageInfo_ListLastCommitsForTreeResponse_CommitForTree.Size(m) -} -func (m *ListLastCommitsForTreeResponse_CommitForTree) XXX_DiscardUnknown() { - xxx_messageInfo_ListLastCommitsForTreeResponse_CommitForTree.DiscardUnknown(m) +func (x *ListLastCommitsForTreeResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListLastCommitsForTreeResponse_CommitForTree proto.InternalMessageInfo - -func (m *ListLastCommitsForTreeResponse_CommitForTree) GetCommit() *GitCommit { - if m != nil { - return m.Commit - } - return nil +// Deprecated: Use ListLastCommitsForTreeResponse.ProtoReflect.Descriptor instead. +func (*ListLastCommitsForTreeResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{34} } -func (m *ListLastCommitsForTreeResponse_CommitForTree) GetPathBytes() []byte { - if m != nil { - return m.PathBytes +func (x *ListLastCommitsForTreeResponse) GetCommits() []*ListLastCommitsForTreeResponse_CommitForTree { + if x != nil { + return x.Commits } return nil } type CommitsByMessageRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` - Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` - Query string `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"` - GlobalOptions *GlobalOptions `protobuf:"bytes,7,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommitsByMessageRequest) Reset() { *m = CommitsByMessageRequest{} } -func (m *CommitsByMessageRequest) String() string { return proto.CompactTextString(m) } -func (*CommitsByMessageRequest) ProtoMessage() {} -func (*CommitsByMessageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{35} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CommitsByMessageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitsByMessageRequest.Unmarshal(m, b) -} -func (m *CommitsByMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitsByMessageRequest.Marshal(b, m, deterministic) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` + Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` + Query string `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"` + GlobalOptions *GlobalOptions `protobuf:"bytes,7,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` } -func (m *CommitsByMessageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitsByMessageRequest.Merge(m, src) + +func (x *CommitsByMessageRequest) Reset() { + *x = CommitsByMessageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitsByMessageRequest) XXX_Size() int { - return xxx_messageInfo_CommitsByMessageRequest.Size(m) + +func (x *CommitsByMessageRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitsByMessageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CommitsByMessageRequest.DiscardUnknown(m) + +func (*CommitsByMessageRequest) ProtoMessage() {} + +func (x *CommitsByMessageRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitsByMessageRequest proto.InternalMessageInfo +// Deprecated: Use CommitsByMessageRequest.ProtoReflect.Descriptor instead. +func (*CommitsByMessageRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{35} +} -func (m *CommitsByMessageRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CommitsByMessageRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *CommitsByMessageRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *CommitsByMessageRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } -func (m *CommitsByMessageRequest) GetOffset() int32 { - if m != nil { - return m.Offset +func (x *CommitsByMessageRequest) GetOffset() int32 { + if x != nil { + return x.Offset } return 0 } -func (m *CommitsByMessageRequest) GetLimit() int32 { - if m != nil { - return m.Limit +func (x *CommitsByMessageRequest) GetLimit() int32 { + if x != nil { + return x.Limit } return 0 } -func (m *CommitsByMessageRequest) GetPath() []byte { - if m != nil { - return m.Path +func (x *CommitsByMessageRequest) GetPath() []byte { + if x != nil { + return x.Path } return nil } -func (m *CommitsByMessageRequest) GetQuery() string { - if m != nil { - return m.Query +func (x *CommitsByMessageRequest) GetQuery() string { + if x != nil { + return x.Query } return "" } -func (m *CommitsByMessageRequest) GetGlobalOptions() *GlobalOptions { - if m != nil { - return m.GlobalOptions +func (x *CommitsByMessageRequest) GetGlobalOptions() *GlobalOptions { + if x != nil { + return x.GlobalOptions } return nil } // One 'page' of the paginated response of CommitsByMessage type CommitsByMessageResponse struct { - Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CommitsByMessageResponse) Reset() { *m = CommitsByMessageResponse{} } -func (m *CommitsByMessageResponse) String() string { return proto.CompactTextString(m) } -func (*CommitsByMessageResponse) ProtoMessage() {} -func (*CommitsByMessageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{36} -} - -func (m *CommitsByMessageResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitsByMessageResponse.Unmarshal(m, b) -} -func (m *CommitsByMessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitsByMessageResponse.Marshal(b, m, deterministic) -} -func (m *CommitsByMessageResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitsByMessageResponse.Merge(m, src) -} -func (m *CommitsByMessageResponse) XXX_Size() int { - return xxx_messageInfo_CommitsByMessageResponse.Size(m) -} -func (m *CommitsByMessageResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CommitsByMessageResponse.DiscardUnknown(m) + Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` } -var xxx_messageInfo_CommitsByMessageResponse proto.InternalMessageInfo - -func (m *CommitsByMessageResponse) GetCommits() []*GitCommit { - if m != nil { - return m.Commits +func (x *CommitsByMessageResponse) Reset() { + *x = CommitsByMessageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil -} - -type FilterShasWithSignaturesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Shas [][]byte `protobuf:"bytes,2,rep,name=shas,proto3" json:"shas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *FilterShasWithSignaturesRequest) Reset() { *m = FilterShasWithSignaturesRequest{} } -func (m *FilterShasWithSignaturesRequest) String() string { return proto.CompactTextString(m) } -func (*FilterShasWithSignaturesRequest) ProtoMessage() {} -func (*FilterShasWithSignaturesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{37} -} - -func (m *FilterShasWithSignaturesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FilterShasWithSignaturesRequest.Unmarshal(m, b) -} -func (m *FilterShasWithSignaturesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FilterShasWithSignaturesRequest.Marshal(b, m, deterministic) -} -func (m *FilterShasWithSignaturesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FilterShasWithSignaturesRequest.Merge(m, src) -} -func (m *FilterShasWithSignaturesRequest) XXX_Size() int { - return xxx_messageInfo_FilterShasWithSignaturesRequest.Size(m) -} -func (m *FilterShasWithSignaturesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FilterShasWithSignaturesRequest.DiscardUnknown(m) +func (x *CommitsByMessageResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_FilterShasWithSignaturesRequest proto.InternalMessageInfo +func (*CommitsByMessageResponse) ProtoMessage() {} -func (m *FilterShasWithSignaturesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CommitsByMessageResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil -} - -func (m *FilterShasWithSignaturesRequest) GetShas() [][]byte { - if m != nil { - return m.Shas - } - return nil -} - -type FilterShasWithSignaturesResponse struct { - Shas [][]byte `protobuf:"bytes,1,rep,name=shas,proto3" json:"shas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FilterShasWithSignaturesResponse) Reset() { *m = FilterShasWithSignaturesResponse{} } -func (m *FilterShasWithSignaturesResponse) String() string { return proto.CompactTextString(m) } -func (*FilterShasWithSignaturesResponse) ProtoMessage() {} -func (*FilterShasWithSignaturesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{38} + return mi.MessageOf(x) } -func (m *FilterShasWithSignaturesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FilterShasWithSignaturesResponse.Unmarshal(m, b) -} -func (m *FilterShasWithSignaturesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FilterShasWithSignaturesResponse.Marshal(b, m, deterministic) -} -func (m *FilterShasWithSignaturesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FilterShasWithSignaturesResponse.Merge(m, src) -} -func (m *FilterShasWithSignaturesResponse) XXX_Size() int { - return xxx_messageInfo_FilterShasWithSignaturesResponse.Size(m) -} -func (m *FilterShasWithSignaturesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FilterShasWithSignaturesResponse.DiscardUnknown(m) +// Deprecated: Use CommitsByMessageResponse.ProtoReflect.Descriptor instead. +func (*CommitsByMessageResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{36} } -var xxx_messageInfo_FilterShasWithSignaturesResponse proto.InternalMessageInfo - -func (m *FilterShasWithSignaturesResponse) GetShas() [][]byte { - if m != nil { - return m.Shas +func (x *CommitsByMessageResponse) GetCommits() []*GitCommit { + if x != nil { + return x.Commits } return nil } -type ExtractCommitSignatureRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExtractCommitSignatureRequest) Reset() { *m = ExtractCommitSignatureRequest{} } -func (m *ExtractCommitSignatureRequest) String() string { return proto.CompactTextString(m) } -func (*ExtractCommitSignatureRequest) ProtoMessage() {} -func (*ExtractCommitSignatureRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{39} -} +type FilterShasWithSignaturesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ExtractCommitSignatureRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExtractCommitSignatureRequest.Unmarshal(m, b) -} -func (m *ExtractCommitSignatureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExtractCommitSignatureRequest.Marshal(b, m, deterministic) -} -func (m *ExtractCommitSignatureRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExtractCommitSignatureRequest.Merge(m, src) -} -func (m *ExtractCommitSignatureRequest) XXX_Size() int { - return xxx_messageInfo_ExtractCommitSignatureRequest.Size(m) -} -func (m *ExtractCommitSignatureRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExtractCommitSignatureRequest.DiscardUnknown(m) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Shas [][]byte `protobuf:"bytes,2,rep,name=shas,proto3" json:"shas,omitempty"` } -var xxx_messageInfo_ExtractCommitSignatureRequest proto.InternalMessageInfo - -func (m *ExtractCommitSignatureRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FilterShasWithSignaturesRequest) Reset() { + *x = FilterShasWithSignaturesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *ExtractCommitSignatureRequest) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" +func (x *FilterShasWithSignaturesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -// Either of the 'signature' and 'signed_text' fields may be present. It -// is up to the caller to stitch them together. -type ExtractCommitSignatureResponse struct { - Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` - SignedText []byte `protobuf:"bytes,2,opt,name=signed_text,json=signedText,proto3" json:"signed_text,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*FilterShasWithSignaturesRequest) ProtoMessage() {} -func (m *ExtractCommitSignatureResponse) Reset() { *m = ExtractCommitSignatureResponse{} } -func (m *ExtractCommitSignatureResponse) String() string { return proto.CompactTextString(m) } -func (*ExtractCommitSignatureResponse) ProtoMessage() {} -func (*ExtractCommitSignatureResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{40} +func (x *FilterShasWithSignaturesRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ExtractCommitSignatureResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExtractCommitSignatureResponse.Unmarshal(m, b) -} -func (m *ExtractCommitSignatureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExtractCommitSignatureResponse.Marshal(b, m, deterministic) -} -func (m *ExtractCommitSignatureResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExtractCommitSignatureResponse.Merge(m, src) -} -func (m *ExtractCommitSignatureResponse) XXX_Size() int { - return xxx_messageInfo_ExtractCommitSignatureResponse.Size(m) -} -func (m *ExtractCommitSignatureResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExtractCommitSignatureResponse.DiscardUnknown(m) +// Deprecated: Use FilterShasWithSignaturesRequest.ProtoReflect.Descriptor instead. +func (*FilterShasWithSignaturesRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{37} } -var xxx_messageInfo_ExtractCommitSignatureResponse proto.InternalMessageInfo - -func (m *ExtractCommitSignatureResponse) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *FilterShasWithSignaturesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ExtractCommitSignatureResponse) GetSignedText() []byte { - if m != nil { - return m.SignedText +func (x *FilterShasWithSignaturesRequest) GetShas() [][]byte { + if x != nil { + return x.Shas } return nil } -type GetCommitSignaturesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CommitIds []string `protobuf:"bytes,2,rep,name=commit_ids,json=commitIds,proto3" json:"commit_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetCommitSignaturesRequest) Reset() { *m = GetCommitSignaturesRequest{} } -func (m *GetCommitSignaturesRequest) String() string { return proto.CompactTextString(m) } -func (*GetCommitSignaturesRequest) ProtoMessage() {} -func (*GetCommitSignaturesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{41} -} - -func (m *GetCommitSignaturesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCommitSignaturesRequest.Unmarshal(m, b) -} -func (m *GetCommitSignaturesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCommitSignaturesRequest.Marshal(b, m, deterministic) -} -func (m *GetCommitSignaturesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCommitSignaturesRequest.Merge(m, src) -} -func (m *GetCommitSignaturesRequest) XXX_Size() int { - return xxx_messageInfo_GetCommitSignaturesRequest.Size(m) -} -func (m *GetCommitSignaturesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetCommitSignaturesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetCommitSignaturesRequest proto.InternalMessageInfo +type FilterShasWithSignaturesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetCommitSignaturesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil + Shas [][]byte `protobuf:"bytes,1,rep,name=shas,proto3" json:"shas,omitempty"` } -func (m *GetCommitSignaturesRequest) GetCommitIds() []string { - if m != nil { - return m.CommitIds +func (x *FilterShasWithSignaturesResponse) Reset() { + *x = FilterShasWithSignaturesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil -} - -type GetCommitSignaturesResponse struct { - // Only present for a new commit signature data. - CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` - // See ExtractCommitSignatureResponse above for how these fields should be handled. - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - SignedText []byte `protobuf:"bytes,3,opt,name=signed_text,json=signedText,proto3" json:"signed_text,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *GetCommitSignaturesResponse) Reset() { *m = GetCommitSignaturesResponse{} } -func (m *GetCommitSignaturesResponse) String() string { return proto.CompactTextString(m) } -func (*GetCommitSignaturesResponse) ProtoMessage() {} -func (*GetCommitSignaturesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{42} -} - -func (m *GetCommitSignaturesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCommitSignaturesResponse.Unmarshal(m, b) -} -func (m *GetCommitSignaturesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCommitSignaturesResponse.Marshal(b, m, deterministic) -} -func (m *GetCommitSignaturesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCommitSignaturesResponse.Merge(m, src) -} -func (m *GetCommitSignaturesResponse) XXX_Size() int { - return xxx_messageInfo_GetCommitSignaturesResponse.Size(m) -} -func (m *GetCommitSignaturesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetCommitSignaturesResponse.DiscardUnknown(m) +func (x *FilterShasWithSignaturesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GetCommitSignaturesResponse proto.InternalMessageInfo +func (*FilterShasWithSignaturesResponse) ProtoMessage() {} -func (m *GetCommitSignaturesResponse) GetCommitId() string { - if m != nil { - return m.CommitId +func (x *FilterShasWithSignaturesResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *GetCommitSignaturesResponse) GetSignature() []byte { - if m != nil { - return m.Signature - } - return nil +// Deprecated: Use FilterShasWithSignaturesResponse.ProtoReflect.Descriptor instead. +func (*FilterShasWithSignaturesResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{38} } -func (m *GetCommitSignaturesResponse) GetSignedText() []byte { - if m != nil { - return m.SignedText +func (x *FilterShasWithSignaturesResponse) GetShas() [][]byte { + if x != nil { + return x.Shas } return nil } -type GetCommitMessagesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CommitIds []string `protobuf:"bytes,2,rep,name=commit_ids,json=commitIds,proto3" json:"commit_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetCommitMessagesRequest) Reset() { *m = GetCommitMessagesRequest{} } -func (m *GetCommitMessagesRequest) String() string { return proto.CompactTextString(m) } -func (*GetCommitMessagesRequest) ProtoMessage() {} -func (*GetCommitMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{43} -} - -func (m *GetCommitMessagesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCommitMessagesRequest.Unmarshal(m, b) -} -func (m *GetCommitMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCommitMessagesRequest.Marshal(b, m, deterministic) -} -func (m *GetCommitMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCommitMessagesRequest.Merge(m, src) -} -func (m *GetCommitMessagesRequest) XXX_Size() int { - return xxx_messageInfo_GetCommitMessagesRequest.Size(m) -} -func (m *GetCommitMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetCommitMessagesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetCommitMessagesRequest proto.InternalMessageInfo +type ExtractCommitSignatureRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetCommitMessagesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` } -func (m *GetCommitMessagesRequest) GetCommitIds() []string { - if m != nil { - return m.CommitIds +func (x *ExtractCommitSignatureRequest) Reset() { + *x = ExtractCommitSignatureRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil -} - -type GetCommitMessagesResponse struct { - // Only present for a new commit message - CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` - Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetCommitMessagesResponse) Reset() { *m = GetCommitMessagesResponse{} } -func (m *GetCommitMessagesResponse) String() string { return proto.CompactTextString(m) } -func (*GetCommitMessagesResponse) ProtoMessage() {} -func (*GetCommitMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db7163399a465f48, []int{44} -} - -func (m *GetCommitMessagesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCommitMessagesResponse.Unmarshal(m, b) -} -func (m *GetCommitMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCommitMessagesResponse.Marshal(b, m, deterministic) -} -func (m *GetCommitMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCommitMessagesResponse.Merge(m, src) -} -func (m *GetCommitMessagesResponse) XXX_Size() int { - return xxx_messageInfo_GetCommitMessagesResponse.Size(m) -} -func (m *GetCommitMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetCommitMessagesResponse.DiscardUnknown(m) } -var xxx_messageInfo_GetCommitMessagesResponse proto.InternalMessageInfo - -func (m *GetCommitMessagesResponse) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" +func (x *ExtractCommitSignatureRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetCommitMessagesResponse) GetMessage() []byte { - if m != nil { - return m.Message - } - return nil -} +func (*ExtractCommitSignatureRequest) ProtoMessage() {} -func init() { - proto.RegisterEnum("gitaly.TreeEntryResponse_ObjectType", TreeEntryResponse_ObjectType_name, TreeEntryResponse_ObjectType_value) - proto.RegisterEnum("gitaly.TreeEntry_EntryType", TreeEntry_EntryType_name, TreeEntry_EntryType_value) - proto.RegisterEnum("gitaly.FindAllCommitsRequest_Order", FindAllCommitsRequest_Order_name, FindAllCommitsRequest_Order_value) - proto.RegisterEnum("gitaly.FindCommitsRequest_Order", FindCommitsRequest_Order_name, FindCommitsRequest_Order_value) - proto.RegisterType((*CommitStatsRequest)(nil), "gitaly.CommitStatsRequest") - proto.RegisterType((*CommitStatsResponse)(nil), "gitaly.CommitStatsResponse") - proto.RegisterType((*CommitIsAncestorRequest)(nil), "gitaly.CommitIsAncestorRequest") - proto.RegisterType((*CommitIsAncestorResponse)(nil), "gitaly.CommitIsAncestorResponse") - proto.RegisterType((*TreeEntryRequest)(nil), "gitaly.TreeEntryRequest") - proto.RegisterType((*TreeEntryResponse)(nil), "gitaly.TreeEntryResponse") - proto.RegisterType((*CommitsBetweenRequest)(nil), "gitaly.CommitsBetweenRequest") - proto.RegisterType((*CommitsBetweenResponse)(nil), "gitaly.CommitsBetweenResponse") - proto.RegisterType((*CountCommitsRequest)(nil), "gitaly.CountCommitsRequest") - proto.RegisterType((*CountCommitsResponse)(nil), "gitaly.CountCommitsResponse") - proto.RegisterType((*CountDivergingCommitsRequest)(nil), "gitaly.CountDivergingCommitsRequest") - proto.RegisterType((*CountDivergingCommitsResponse)(nil), "gitaly.CountDivergingCommitsResponse") - proto.RegisterType((*TreeEntry)(nil), "gitaly.TreeEntry") - proto.RegisterType((*GetTreeEntriesRequest)(nil), "gitaly.GetTreeEntriesRequest") - proto.RegisterType((*GetTreeEntriesResponse)(nil), "gitaly.GetTreeEntriesResponse") - proto.RegisterType((*ListFilesRequest)(nil), "gitaly.ListFilesRequest") - proto.RegisterType((*ListFilesResponse)(nil), "gitaly.ListFilesResponse") - proto.RegisterType((*FindCommitRequest)(nil), "gitaly.FindCommitRequest") - proto.RegisterType((*FindCommitResponse)(nil), "gitaly.FindCommitResponse") - proto.RegisterType((*ListCommitsByOidRequest)(nil), "gitaly.ListCommitsByOidRequest") - proto.RegisterType((*ListCommitsByOidResponse)(nil), "gitaly.ListCommitsByOidResponse") - proto.RegisterType((*ListCommitsByRefNameRequest)(nil), "gitaly.ListCommitsByRefNameRequest") - proto.RegisterType((*ListCommitsByRefNameResponse)(nil), "gitaly.ListCommitsByRefNameResponse") - proto.RegisterType((*ListCommitsByRefNameResponse_CommitForRef)(nil), "gitaly.ListCommitsByRefNameResponse.CommitForRef") - proto.RegisterType((*FindAllCommitsRequest)(nil), "gitaly.FindAllCommitsRequest") - proto.RegisterType((*FindAllCommitsResponse)(nil), "gitaly.FindAllCommitsResponse") - proto.RegisterType((*FindCommitsRequest)(nil), "gitaly.FindCommitsRequest") - proto.RegisterType((*FindCommitsResponse)(nil), "gitaly.FindCommitsResponse") - proto.RegisterType((*CommitLanguagesRequest)(nil), "gitaly.CommitLanguagesRequest") - proto.RegisterType((*CommitLanguagesResponse)(nil), "gitaly.CommitLanguagesResponse") - proto.RegisterType((*CommitLanguagesResponse_Language)(nil), "gitaly.CommitLanguagesResponse.Language") - proto.RegisterType((*RawBlameRequest)(nil), "gitaly.RawBlameRequest") - proto.RegisterType((*RawBlameResponse)(nil), "gitaly.RawBlameResponse") - proto.RegisterType((*LastCommitForPathRequest)(nil), "gitaly.LastCommitForPathRequest") - proto.RegisterType((*LastCommitForPathResponse)(nil), "gitaly.LastCommitForPathResponse") - proto.RegisterType((*ListLastCommitsForTreeRequest)(nil), "gitaly.ListLastCommitsForTreeRequest") - proto.RegisterType((*ListLastCommitsForTreeResponse)(nil), "gitaly.ListLastCommitsForTreeResponse") - proto.RegisterType((*ListLastCommitsForTreeResponse_CommitForTree)(nil), "gitaly.ListLastCommitsForTreeResponse.CommitForTree") - proto.RegisterType((*CommitsByMessageRequest)(nil), "gitaly.CommitsByMessageRequest") - proto.RegisterType((*CommitsByMessageResponse)(nil), "gitaly.CommitsByMessageResponse") - proto.RegisterType((*FilterShasWithSignaturesRequest)(nil), "gitaly.FilterShasWithSignaturesRequest") - proto.RegisterType((*FilterShasWithSignaturesResponse)(nil), "gitaly.FilterShasWithSignaturesResponse") - proto.RegisterType((*ExtractCommitSignatureRequest)(nil), "gitaly.ExtractCommitSignatureRequest") - proto.RegisterType((*ExtractCommitSignatureResponse)(nil), "gitaly.ExtractCommitSignatureResponse") - proto.RegisterType((*GetCommitSignaturesRequest)(nil), "gitaly.GetCommitSignaturesRequest") - proto.RegisterType((*GetCommitSignaturesResponse)(nil), "gitaly.GetCommitSignaturesResponse") - proto.RegisterType((*GetCommitMessagesRequest)(nil), "gitaly.GetCommitMessagesRequest") - proto.RegisterType((*GetCommitMessagesResponse)(nil), "gitaly.GetCommitMessagesResponse") -} - -func init() { proto.RegisterFile("commit.proto", fileDescriptor_db7163399a465f48) } - -var fileDescriptor_db7163399a465f48 = []byte{ - // 2289 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5a, 0xbb, 0x73, 0x1b, 0xc7, - 0x19, 0xf7, 0xe1, 0x79, 0xf8, 0x00, 0x51, 0xe0, 0xea, 0x05, 0x1e, 0x48, 0x91, 0x3e, 0x49, 0x0e, - 0x35, 0xb6, 0x41, 0x19, 0x51, 0x3c, 0xce, 0x4c, 0x66, 0x32, 0x82, 0x4d, 0x32, 0x62, 0x24, 0x81, - 0x39, 0x71, 0xc6, 0x63, 0xcf, 0x64, 0x90, 0x03, 0xb0, 0x00, 0xd6, 0x3a, 0xe0, 0xa0, 0xbb, 0x05, - 0x25, 0x38, 0x45, 0xd2, 0xb8, 0x4e, 0x99, 0x74, 0x69, 0xd2, 0x65, 0xf2, 0x07, 0xa4, 0x4a, 0x97, - 0x32, 0x45, 0x9a, 0xf4, 0xa9, 0x93, 0x32, 0x8d, 0xab, 0xcc, 0x3e, 0xee, 0x7d, 0xc7, 0x87, 0x44, - 0xaa, 0xe1, 0xdc, 0x7e, 0xfb, 0xf8, 0x1e, 0xfb, 0xed, 0x6f, 0x7f, 0xfb, 0x81, 0x50, 0x1b, 0xd8, - 0xd3, 0x29, 0xa1, 0xad, 0xb9, 0x63, 0x53, 0x1b, 0x95, 0xc6, 0x84, 0x9a, 0xd6, 0x52, 0x03, 0x8b, - 0xcc, 0xa4, 0x4c, 0xab, 0xb9, 0x13, 0xd3, 0xc1, 0x43, 0xd9, 0xda, 0x1c, 0xdb, 0xf6, 0xd8, 0xc2, - 0x3b, 0xbc, 0xd5, 0x5f, 0x8c, 0x76, 0x28, 0x99, 0x62, 0x97, 0x9a, 0xd3, 0xb9, 0x18, 0xa0, 0x7f, - 0x03, 0xe8, 0x73, 0xbe, 0xe4, 0x73, 0x6a, 0x52, 0xd7, 0xc0, 0x2f, 0x17, 0xd8, 0xa5, 0xe8, 0x33, - 0x00, 0x07, 0xcf, 0x6d, 0x97, 0x50, 0xdb, 0x59, 0x36, 0x94, 0x2d, 0x65, 0xbb, 0xda, 0x46, 0x2d, - 0xa1, 0xad, 0x65, 0xf8, 0x3d, 0x9d, 0xc2, 0x1f, 0xfe, 0xfe, 0x91, 0x62, 0x84, 0xc6, 0x22, 0x0d, - 0x54, 0x07, 0x1f, 0x13, 0x97, 0xd8, 0xb3, 0x46, 0x6e, 0x4b, 0xd9, 0xae, 0x19, 0x7e, 0x5b, 0x1f, - 0xc0, 0xb5, 0x88, 0x2e, 0x77, 0x6e, 0xcf, 0x5c, 0x8c, 0xea, 0x90, 0xb7, 0xc9, 0x90, 0x6b, 0xa9, - 0x18, 0xec, 0x13, 0xad, 0x43, 0xc5, 0x1c, 0x0e, 0x09, 0x25, 0xf6, 0xcc, 0xe5, 0xab, 0x14, 0x8d, - 0x40, 0xc0, 0x7a, 0x87, 0xd8, 0xc2, 0xa2, 0x37, 0x2f, 0x7a, 0x7d, 0x81, 0xfe, 0x3b, 0x05, 0x6e, - 0x09, 0x2d, 0x8f, 0xdd, 0x47, 0xb3, 0x01, 0x76, 0xa9, 0xed, 0xbc, 0xbd, 0x5b, 0x9b, 0x50, 0x35, - 0xe5, 0x62, 0x3d, 0x32, 0xe4, 0x36, 0x55, 0x0c, 0xf0, 0x44, 0x8f, 0x87, 0x68, 0x0d, 0xd4, 0xc1, - 0x84, 0x58, 0x43, 0xd6, 0x9b, 0xe7, 0xbd, 0x65, 0xde, 0x7e, 0x3c, 0xd4, 0x1f, 0x40, 0x23, 0x69, - 0x90, 0xf4, 0xfd, 0x3a, 0x14, 0x8f, 0x4d, 0x6b, 0x81, 0xb9, 0x31, 0xaa, 0x21, 0x1a, 0xfa, 0x5f, - 0x14, 0xa8, 0x1f, 0x39, 0x18, 0xef, 0xce, 0xa8, 0xb3, 0xbc, 0xd4, 0x3d, 0x41, 0x08, 0x0a, 0x73, - 0x93, 0x4e, 0xb8, 0xcd, 0x35, 0x83, 0x7f, 0x33, 0xa3, 0x2c, 0x32, 0x25, 0xb4, 0x51, 0xd8, 0x52, - 0xb6, 0xf3, 0x86, 0x68, 0x30, 0x0f, 0xa7, 0xe6, 0xeb, 0x9e, 0x4b, 0xbe, 0xc5, 0x8d, 0x22, 0xef, - 0x28, 0x4f, 0xcd, 0xd7, 0xcf, 0xc9, 0xb7, 0x58, 0xff, 0xa7, 0x02, 0xab, 0x21, 0x7b, 0xa5, 0x6f, - 0x9f, 0x41, 0x81, 0x2e, 0xe7, 0xc2, 0xb5, 0x95, 0xf6, 0x5d, 0xcf, 0xd4, 0xc4, 0xc0, 0x56, 0xb7, - 0xff, 0x0d, 0x1e, 0xd0, 0xa3, 0xe5, 0x1c, 0x1b, 0x7c, 0x86, 0x97, 0x11, 0xb9, 0x20, 0x23, 0x10, - 0x14, 0xb8, 0xe2, 0x3c, 0x57, 0xcc, 0xbf, 0x99, 0x6c, 0x6a, 0x0f, 0x31, 0xb7, 0xb2, 0x68, 0xf0, - 0x6f, 0x26, 0x1b, 0x9a, 0xd4, 0xe4, 0x06, 0xd6, 0x0c, 0xfe, 0xad, 0xff, 0x08, 0x20, 0xd0, 0x80, - 0x00, 0x4a, 0x9f, 0x77, 0x9f, 0x3e, 0x7d, 0x7c, 0x54, 0x7f, 0x0f, 0xa9, 0x50, 0xe8, 0x3c, 0xe9, - 0x76, 0xea, 0x0a, 0xfb, 0x3a, 0x32, 0x76, 0x77, 0xeb, 0x39, 0x54, 0x86, 0xfc, 0xd1, 0xa3, 0xfd, - 0x7a, 0x5e, 0xff, 0x9b, 0x02, 0x37, 0xc4, 0xbe, 0xb9, 0x1d, 0x4c, 0x5f, 0x61, 0x3c, 0x7b, 0xfb, - 0x9d, 0x40, 0x50, 0x18, 0x39, 0xf6, 0x54, 0xee, 0x02, 0xff, 0x46, 0x2b, 0x90, 0xa3, 0xb6, 0x8c, - 0x7f, 0x8e, 0xda, 0xe8, 0x67, 0xb0, 0x3a, 0x37, 0xc7, 0x64, 0x66, 0xb2, 0x7c, 0xee, 0xcd, 0x4d, - 0xc7, 0x9c, 0xba, 0xdc, 0xc7, 0x6a, 0xbb, 0xe9, 0x29, 0x39, 0xf4, 0x07, 0x1c, 0xb2, 0x7e, 0x4c, - 0xb1, 0x63, 0xd4, 0xe7, 0x51, 0xa1, 0xab, 0xef, 0xc2, 0xcd, 0xb8, 0x03, 0x72, 0x6b, 0x3e, 0x84, - 0xb2, 0x00, 0x12, 0xb7, 0xa1, 0x6c, 0xe5, 0xb7, 0xab, 0xed, 0x55, 0x6f, 0xe5, 0x7d, 0x42, 0xc5, - 0x1c, 0xc3, 0x1b, 0xa1, 0xff, 0x2f, 0xc7, 0xce, 0xed, 0x62, 0x26, 0x3b, 0x2e, 0x17, 0x24, 0xd0, - 0x03, 0x28, 0x9a, 0x23, 0x8a, 0x1d, 0x1e, 0x91, 0x6a, 0x5b, 0x6b, 0x09, 0x04, 0x6b, 0x79, 0x08, - 0xd6, 0x3a, 0xf2, 0x10, 0xcc, 0x10, 0x03, 0x51, 0x1b, 0x4a, 0x7d, 0x3c, 0xb2, 0x1d, 0x2c, 0xa3, - 0x74, 0xd2, 0x14, 0x39, 0xd2, 0x4f, 0xfb, 0x62, 0x28, 0xed, 0x9b, 0x50, 0x61, 0x09, 0x3e, 0x60, - 0xae, 0x36, 0x4a, 0x3c, 0xa9, 0x58, 0xc6, 0x73, 0xd7, 0x59, 0x4a, 0x9a, 0x96, 0xd5, 0x28, 0xf3, - 0x63, 0xca, 0x3e, 0xd1, 0xfb, 0x50, 0x1b, 0x11, 0xc7, 0xa5, 0x6c, 0x8b, 0xf0, 0x8c, 0x36, 0x54, - 0xde, 0x55, 0xe5, 0xb2, 0x43, 0x2e, 0x42, 0x3f, 0x81, 0x95, 0xb1, 0x65, 0xf7, 0x4d, 0xab, 0x67, - 0xcf, 0x05, 0x5c, 0x55, 0xb8, 0x85, 0x37, 0xfc, 0x68, 0xf3, 0xde, 0xae, 0xe8, 0x34, 0xae, 0x8c, - 0xc3, 0x4d, 0xfd, 0x23, 0xb8, 0x1e, 0x0d, 0x7b, 0x80, 0x19, 0xc2, 0x46, 0x85, 0xdb, 0x28, 0x1a, - 0xfa, 0x9f, 0x15, 0x58, 0xe7, 0xc3, 0xbf, 0x20, 0xc7, 0xd8, 0x19, 0x93, 0xd9, 0xf8, 0xc2, 0xb6, - 0xeb, 0x2c, 0x59, 0x1b, 0x09, 0x5e, 0x39, 0x1a, 0xbc, 0x83, 0x82, 0x5a, 0xa8, 0x17, 0x0f, 0x0a, - 0x6a, 0xb1, 0x5e, 0x3a, 0x28, 0xa8, 0xa5, 0x7a, 0x59, 0xef, 0xc1, 0x46, 0x86, 0xb1, 0xd2, 0xc9, - 0x0d, 0x00, 0x0b, 0x8f, 0x68, 0x2f, 0xec, 0x69, 0x85, 0x49, 0xc4, 0x76, 0x6c, 0x42, 0xd5, 0x21, - 0xe3, 0x89, 0xd7, 0x2f, 0xee, 0x08, 0xe0, 0x22, 0x3e, 0x40, 0xff, 0x5e, 0x81, 0x8a, 0x8f, 0x34, - 0x29, 0x57, 0xcc, 0x1a, 0xa8, 0x8e, 0x6d, 0xd3, 0x5e, 0x80, 0x33, 0x65, 0xd6, 0xee, 0x0a, 0xac, - 0x49, 0x40, 0xe2, 0x8e, 0xc4, 0xb2, 0x02, 0xc7, 0xb2, 0x66, 0x02, 0xcb, 0x5a, 0xfc, 0x6f, 0x08, - 0xc2, 0x3c, 0x70, 0x2a, 0x86, 0xc0, 0x69, 0x03, 0x40, 0x9c, 0x29, 0xae, 0xb5, 0xc4, 0xb5, 0x56, - 0x84, 0x84, 0xe9, 0x6d, 0x42, 0x65, 0x64, 0x99, 0x2c, 0x9f, 0xe8, 0x84, 0x87, 0xb0, 0x66, 0xa8, - 0x4c, 0x70, 0x68, 0xd2, 0x89, 0xfe, 0x21, 0x54, 0x7c, 0x15, 0x3e, 0x6e, 0xbd, 0xe7, 0xe3, 0x96, - 0x12, 0xc2, 0xb5, 0xbc, 0xfe, 0x47, 0x05, 0x6e, 0xec, 0x63, 0xea, 0x59, 0x47, 0xb0, 0xfb, 0xee, - 0x2f, 0x91, 0x75, 0xa8, 0x38, 0x78, 0xb0, 0x70, 0x5c, 0x72, 0x2c, 0xc2, 0xa6, 0x1a, 0x81, 0x80, - 0x41, 0x53, 0xdc, 0xc0, 0x00, 0x9a, 0xb0, 0x10, 0xc5, 0xa1, 0x29, 0xb8, 0x38, 0xbc, 0x11, 0xfa, - 0x04, 0xea, 0x4f, 0x88, 0x4b, 0xf7, 0x88, 0x75, 0xc9, 0x2e, 0xea, 0xf7, 0x61, 0x35, 0xa4, 0x29, - 0x38, 0x89, 0xcc, 0x57, 0x61, 0x69, 0xcd, 0x10, 0x0d, 0xfd, 0x3b, 0x05, 0x56, 0xf7, 0xc8, 0x6c, - 0x28, 0x71, 0xf4, 0x52, 0x23, 0xaf, 0x81, 0x4a, 0x1d, 0x93, 0x58, 0xd8, 0x11, 0x54, 0x48, 0x35, - 0xfc, 0xb6, 0xfe, 0x53, 0x40, 0x61, 0x33, 0xa4, 0xcd, 0xf7, 0xa1, 0x24, 0x52, 0x4e, 0xda, 0x90, - 0x82, 0xfc, 0x72, 0x80, 0x8e, 0xe1, 0x16, 0xf3, 0xd9, 0xbb, 0x43, 0x96, 0x5d, 0x32, 0x7c, 0x7b, - 0x6f, 0xfc, 0xbb, 0x3d, 0x2f, 0x8f, 0xa2, 0xbe, 0x0f, 0x8d, 0xa4, 0x9a, 0x37, 0xb9, 0xa8, 0x28, - 0x34, 0x23, 0x0b, 0x19, 0x78, 0xf4, 0xcc, 0x9c, 0xe2, 0xb7, 0xb7, 0xb9, 0xc9, 0x72, 0x79, 0xd4, - 0x9b, 0x99, 0x53, 0xec, 0x72, 0xcb, 0xf9, 0x16, 0xf0, 0xc5, 0x5d, 0xfd, 0x1f, 0x0a, 0xac, 0xa7, - 0xab, 0x95, 0x3e, 0x18, 0x50, 0x95, 0xc7, 0xde, 0xc1, 0x23, 0x31, 0xbf, 0xda, 0xfe, 0xc4, 0x53, - 0x7c, 0xd2, 0xd4, 0x96, 0xe8, 0xd8, 0x63, 0x84, 0x71, 0x64, 0x48, 0xf0, 0x30, 0xf0, 0xc8, 0xd5, - 0x8e, 0xa0, 0x16, 0xee, 0x3b, 0xc7, 0xae, 0x72, 0xe4, 0x93, 0xce, 0xc8, 0x74, 0x2a, 0x4b, 0x5f, - 0x0e, 0x0a, 0xaa, 0x52, 0xcf, 0xe9, 0xbf, 0xcd, 0xc1, 0x0d, 0x96, 0x38, 0x8f, 0x2c, 0xeb, 0x9d, - 0xdc, 0xf8, 0x91, 0xab, 0x23, 0x1f, 0xbb, 0x77, 0x19, 0xf1, 0x7b, 0x41, 0xe6, 0x1e, 0xc9, 0x63, - 0xdf, 0xe8, 0xc7, 0x50, 0xb4, 0x9d, 0x21, 0x76, 0x38, 0xb8, 0xae, 0xb4, 0xef, 0x78, 0x16, 0xa4, - 0x1a, 0xdd, 0xea, 0xb2, 0xa1, 0x86, 0x98, 0xa1, 0xdf, 0x83, 0x22, 0x6f, 0x33, 0xe0, 0x7c, 0xd6, - 0x7d, 0xb6, 0x2b, 0x21, 0xb4, 0x7b, 0xd8, 0x15, 0x24, 0xf0, 0x8b, 0x47, 0x47, 0xbb, 0xf5, 0x1c, - 0x83, 0xa7, 0xf8, 0x62, 0x6f, 0x92, 0x90, 0xff, 0x29, 0x84, 0x8f, 0xe0, 0x25, 0x87, 0xd1, 0x67, - 0xed, 0x22, 0x84, 0x92, 0xb5, 0xdf, 0x84, 0x92, 0x3d, 0x1a, 0xb9, 0x98, 0xca, 0x08, 0xca, 0x56, - 0x00, 0x5d, 0xc5, 0x10, 0x74, 0xb1, 0xd1, 0x23, 0xdb, 0xb2, 0xec, 0x57, 0xfc, 0x76, 0x52, 0x0d, - 0xd9, 0x62, 0xd7, 0x2d, 0x8b, 0x7c, 0x6f, 0x8a, 0x9d, 0x31, 0x76, 0x25, 0x0b, 0x02, 0x26, 0x7a, - 0xca, 0x25, 0x8c, 0x0c, 0x0d, 0x89, 0x6b, 0xf6, 0x2d, 0xdc, 0x7b, 0x65, 0x5a, 0x2f, 0x3c, 0x32, - 0x24, 0x65, 0x5f, 0x9a, 0xd6, 0x8b, 0x80, 0xd8, 0x55, 0xce, 0x4f, 0xec, 0xe0, 0xcc, 0xc4, 0x4e, - 0xf2, 0xb4, 0x6a, 0x36, 0x4f, 0xab, 0x25, 0x79, 0xda, 0x4d, 0x28, 0x99, 0x0b, 0x3a, 0xb1, 0x9d, - 0xc6, 0x15, 0x1e, 0x54, 0xd9, 0x42, 0x9f, 0x7a, 0x89, 0xb6, 0xc2, 0x13, 0x6d, 0x2b, 0x9c, 0x68, - 0x27, 0x64, 0x59, 0x0a, 0xef, 0xbb, 0x7a, 0x76, 0xde, 0x17, 0xc1, 0xf4, 0x7a, 0x0c, 0xd3, 0x9b, - 0x27, 0xe4, 0xaf, 0xde, 0x81, 0x6b, 0x11, 0xcb, 0xde, 0x24, 0x65, 0x67, 0xde, 0x9b, 0xe1, 0x89, - 0x39, 0x1b, 0x2f, 0xcc, 0xf1, 0x65, 0xdf, 0xab, 0xff, 0xf6, 0x9f, 0xeb, 0x21, 0x85, 0xd2, 0xf0, - 0x3d, 0xa8, 0x58, 0x9e, 0x50, 0x9a, 0xbe, 0xed, 0x29, 0xcc, 0x98, 0xd3, 0xf2, 0x24, 0x46, 0x30, - 0x55, 0xfb, 0x0d, 0xa8, 0x9e, 0x98, 0xe1, 0x09, 0x47, 0x3e, 0x41, 0x05, 0xf9, 0x37, 0x3b, 0x0b, - 0xbc, 0x68, 0xc2, 0x8d, 0xcb, 0x19, 0xa2, 0x21, 0x68, 0xb6, 0x65, 0x3b, 0xf2, 0x39, 0x2f, 0x1a, - 0x8c, 0xc3, 0x8d, 0x88, 0x85, 0x25, 0x5a, 0xb1, 0x33, 0x75, 0xc5, 0xa8, 0x30, 0x89, 0x80, 0xab, - 0xeb, 0x50, 0xec, 0x2f, 0x29, 0x76, 0x39, 0x34, 0x15, 0x0c, 0xd1, 0xd0, 0x7f, 0x0d, 0x57, 0x0d, - 0xf3, 0x55, 0xc7, 0xba, 0x90, 0xcb, 0xe8, 0x9c, 0x44, 0x4c, 0xff, 0x00, 0xea, 0x81, 0x72, 0x19, - 0x59, 0xef, 0x99, 0xac, 0x84, 0x9e, 0xc9, 0xff, 0x55, 0xa0, 0xf1, 0xc4, 0xf4, 0x2e, 0xa3, 0x3d, - 0xdb, 0x61, 0xbc, 0xf3, 0xdd, 0xf3, 0xc6, 0xfb, 0x50, 0xb7, 0x08, 0xc5, 0x8e, 0x69, 0x71, 0x22, - 0xec, 0xce, 0xf1, 0x40, 0xd2, 0xc7, 0xab, 0x52, 0x7e, 0x28, 0xc5, 0x29, 0xc7, 0xac, 0x78, 0x8e, - 0xe7, 0xd5, 0x1e, 0xac, 0xa5, 0xb8, 0x7b, 0x7e, 0x96, 0xf4, 0xa7, 0x1c, 0x6c, 0xb0, 0x4b, 0x3c, - 0x58, 0xcc, 0xdd, 0xb3, 0x1d, 0x46, 0x56, 0x2f, 0x3e, 0x78, 0x95, 0xf3, 0x54, 0x6e, 0x52, 0xee, - 0x80, 0x62, 0xe4, 0x0e, 0xf8, 0x38, 0x25, 0xd4, 0x1c, 0xf7, 0x3b, 0xb9, 0x86, 0x72, 0x96, 0x70, - 0x97, 0xcf, 0x11, 0xee, 0x7f, 0x29, 0x70, 0x3b, 0x2b, 0x4c, 0x32, 0xe8, 0xcf, 0xe2, 0x40, 0xf5, - 0x30, 0x4c, 0x92, 0xb2, 0x27, 0x06, 0x34, 0x89, 0x4b, 0xbd, 0x45, 0x34, 0x0c, 0x57, 0x22, 0x3d, - 0xa1, 0x5d, 0xcd, 0x9d, 0xc6, 0x92, 0x36, 0x00, 0x58, 0x4c, 0x7a, 0xe2, 0x34, 0x17, 0x78, 0x8c, - 0x2b, 0x4c, 0xd2, 0x61, 0x02, 0xc1, 0x94, 0x0e, 0x0a, 0x6a, 0xbe, 0x5e, 0xd0, 0xbf, 0xcb, 0x79, - 0x10, 0xe6, 0x76, 0x96, 0x4f, 0xb1, 0xeb, 0x32, 0xf8, 0xb9, 0xd4, 0x73, 0x13, 0x6c, 0x68, 0x3e, - 0x7e, 0xa9, 0xa7, 0x6c, 0x7f, 0x5a, 0xad, 0xe3, 0x3a, 0x14, 0x5f, 0x2e, 0xb0, 0xb3, 0x94, 0xaf, - 0x50, 0xd1, 0x78, 0xcb, 0x1d, 0xde, 0xf7, 0xea, 0x9c, 0xe1, 0x30, 0xbc, 0xc9, 0x1d, 0x64, 0xc3, - 0xe6, 0x1e, 0xb1, 0x28, 0x76, 0x9e, 0x4f, 0x4c, 0xf7, 0x4b, 0x42, 0x27, 0xcf, 0xc9, 0x78, 0x66, - 0xd2, 0x85, 0x83, 0x2f, 0xa6, 0x98, 0xe1, 0x4e, 0x4c, 0x8f, 0xc6, 0xf3, 0x6f, 0xfd, 0x53, 0xd8, - 0xca, 0x56, 0x18, 0x40, 0x26, 0x9f, 0xa7, 0x84, 0xe6, 0x1d, 0xc3, 0xc6, 0xee, 0x6b, 0xea, 0x98, - 0x03, 0xe9, 0x82, 0x3f, 0xed, 0x42, 0x9e, 0x1c, 0xf2, 0xd1, 0xe0, 0x17, 0x28, 0x54, 0x21, 0x78, - 0x3c, 0xd4, 0x7b, 0x70, 0x3b, 0x4b, 0xaf, 0xb4, 0x76, 0x1d, 0x2a, 0xae, 0x27, 0x94, 0x28, 0x1f, - 0x08, 0x38, 0x9d, 0x23, 0xe3, 0x19, 0x1e, 0xf6, 0x28, 0x7e, 0x4d, 0x65, 0x7a, 0x81, 0x10, 0x1d, - 0xe1, 0xd7, 0x54, 0x5f, 0x80, 0xb6, 0x8f, 0xe3, 0x8b, 0x5f, 0x40, 0xf0, 0x83, 0x0a, 0x08, 0x19, - 0xba, 0xf2, 0x0d, 0x58, 0xf1, 0xdc, 0x72, 0xf5, 0x25, 0x34, 0x53, 0xd5, 0x4a, 0xa7, 0x22, 0x31, - 0x51, 0xa2, 0x31, 0x89, 0x7a, 0x9c, 0x3b, 0xc5, 0xe3, 0x7c, 0xc2, 0x63, 0x17, 0x1a, 0xbe, 0x6a, - 0x99, 0xbc, 0x97, 0xef, 0xaf, 0x01, 0x6b, 0x29, 0x4a, 0xcf, 0xe2, 0x6d, 0x03, 0xca, 0x53, 0x31, - 0xc1, 0x7b, 0xc3, 0xc9, 0x66, 0xfb, 0xaf, 0x57, 0x3d, 0xd4, 0x7b, 0x8e, 0x9d, 0x63, 0x32, 0xc0, - 0xe8, 0x97, 0x50, 0x8f, 0xff, 0xfe, 0x80, 0x36, 0xa3, 0x3c, 0x2a, 0xf1, 0x53, 0x89, 0xb6, 0x95, - 0x3d, 0x40, 0xd8, 0xa7, 0x97, 0xbe, 0xff, 0xfd, 0x76, 0x4e, 0xcd, 0xa1, 0x83, 0x70, 0xa1, 0xad, - 0x91, 0x52, 0xe5, 0x17, 0x0b, 0xae, 0x65, 0xd6, 0xff, 0xbd, 0x95, 0x1e, 0x28, 0xe8, 0x2b, 0x58, - 0x89, 0x56, 0xac, 0xd1, 0x46, 0xd4, 0x8e, 0x58, 0x29, 0x5e, 0xbb, 0x9d, 0xd5, 0x9d, 0x58, 0xfa, - 0x17, 0xec, 0xc5, 0x1c, 0x54, 0x53, 0x51, 0x33, 0x98, 0x99, 0x28, 0x6d, 0x6b, 0xeb, 0xe9, 0x9d, - 0x31, 0xcf, 0x2d, 0xb8, 0x91, 0x5a, 0xc4, 0x44, 0x77, 0x23, 0xd3, 0x33, 0x0a, 0xb2, 0xda, 0xbd, - 0x53, 0x46, 0xc5, 0xb4, 0x7d, 0x05, 0x2b, 0xd1, 0x92, 0x59, 0x10, 0x9b, 0xd4, 0x5a, 0x5f, 0x10, - 0x9b, 0xf4, 0x4a, 0x5b, 0x28, 0x36, 0x07, 0x50, 0xf1, 0x8b, 0x5b, 0xc1, 0x16, 0xc6, 0x2b, 0x6b, - 0xc1, 0x16, 0x26, 0x2a, 0x61, 0xa1, 0xb5, 0x7e, 0x0e, 0x10, 0x3c, 0x42, 0xd0, 0x5a, 0xf2, 0xc9, - 0xe4, 0xad, 0xa6, 0xa5, 0x75, 0xc5, 0x7c, 0x7e, 0x06, 0xd5, 0xd0, 0x2f, 0x86, 0x48, 0x8b, 0xee, - 0x76, 0xf8, 0x27, 0x4b, 0xad, 0x99, 0xda, 0x97, 0x8c, 0x61, 0xf4, 0x5d, 0x1f, 0xc4, 0x30, 0xb5, - 0x78, 0x10, 0xc4, 0x30, 0xbd, 0x1c, 0x10, 0xf2, 0xfb, 0x10, 0xaa, 0xa1, 0xc7, 0x17, 0xd2, 0xb2, - 0xdf, 0x8a, 0x81, 0xa9, 0x29, 0xaf, 0xb5, 0xd0, 0x8a, 0x5f, 0xc3, 0xd5, 0xd8, 0x2b, 0x07, 0xdd, - 0xce, 0x7c, 0xfe, 0x88, 0x95, 0x37, 0x4f, 0x79, 0x1e, 0xf9, 0x81, 0xd8, 0x07, 0xd5, 0x7b, 0x14, - 0xa0, 0x5b, 0x3e, 0x94, 0x45, 0xdf, 0x28, 0x5a, 0x23, 0xd9, 0x91, 0x30, 0xf2, 0x57, 0xb0, 0x9a, - 0x60, 0xd1, 0xc8, 0x07, 0x8f, 0xac, 0xf7, 0x84, 0xf6, 0xfe, 0x09, 0x23, 0x62, 0xa6, 0xbe, 0x84, - 0x9b, 0xe9, 0xf4, 0x0f, 0xdd, 0x3b, 0x8d, 0x1e, 0x0a, 0x5d, 0x1f, 0x9c, 0x8d, 0x45, 0x86, 0x9c, - 0xea, 0x79, 0x88, 0x19, 0x30, 0x99, 0x38, 0x62, 0x26, 0xa8, 0x5e, 0x1c, 0x31, 0x93, 0x24, 0x28, - 0xaa, 0x20, 0x5e, 0xf2, 0x0c, 0x14, 0x64, 0xd4, 0x5c, 0x03, 0x05, 0x59, 0xd5, 0xd2, 0x90, 0x82, - 0x17, 0x70, 0x3d, 0xad, 0xb0, 0x88, 0xee, 0x9c, 0x5c, 0x76, 0x14, 0x8a, 0xee, 0x9e, 0xa5, 0x36, - 0x19, 0x52, 0xb6, 0x84, 0x46, 0x16, 0x7d, 0x42, 0x3f, 0x08, 0x72, 0xfd, 0x44, 0x46, 0xa7, 0x6d, - 0x9f, 0x3e, 0x30, 0xaa, 0x78, 0x5b, 0x79, 0xa0, 0xa0, 0x09, 0x5c, 0x4b, 0x61, 0x0c, 0x48, 0x0f, - 0x41, 0x5f, 0x06, 0x8b, 0xd1, 0xee, 0x9c, 0x38, 0x26, 0xe1, 0x64, 0x1f, 0x56, 0x13, 0x77, 0x75, - 0x90, 0xe8, 0x59, 0xdc, 0x21, 0x48, 0xf4, 0xcc, 0x8b, 0x3e, 0xd0, 0xd1, 0x79, 0xf8, 0x75, 0x7b, - 0x4c, 0xa8, 0x65, 0xf6, 0x5b, 0x03, 0x7b, 0xba, 0x23, 0x3e, 0x3f, 0xb6, 0x9d, 0xf1, 0x8e, 0x58, - 0x63, 0xe7, 0xf8, 0x93, 0x87, 0xe2, 0x3f, 0x39, 0x76, 0xc6, 0xb6, 0x94, 0xcd, 0xfb, 0xfd, 0x12, - 0x17, 0xfd, 0xf0, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x12, 0x51, 0x51, 0x96, 0x1c, 0x22, 0x00, - 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// CommitServiceClient is the client API for CommitService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type CommitServiceClient interface { - CommitIsAncestor(ctx context.Context, in *CommitIsAncestorRequest, opts ...grpc.CallOption) (*CommitIsAncestorResponse, error) - TreeEntry(ctx context.Context, in *TreeEntryRequest, opts ...grpc.CallOption) (CommitService_TreeEntryClient, error) - CommitsBetween(ctx context.Context, in *CommitsBetweenRequest, opts ...grpc.CallOption) (CommitService_CommitsBetweenClient, error) - CountCommits(ctx context.Context, in *CountCommitsRequest, opts ...grpc.CallOption) (*CountCommitsResponse, error) - CountDivergingCommits(ctx context.Context, in *CountDivergingCommitsRequest, opts ...grpc.CallOption) (*CountDivergingCommitsResponse, error) - GetTreeEntries(ctx context.Context, in *GetTreeEntriesRequest, opts ...grpc.CallOption) (CommitService_GetTreeEntriesClient, error) - ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (CommitService_ListFilesClient, error) - FindCommit(ctx context.Context, in *FindCommitRequest, opts ...grpc.CallOption) (*FindCommitResponse, error) - CommitStats(ctx context.Context, in *CommitStatsRequest, opts ...grpc.CallOption) (*CommitStatsResponse, error) - // Use a stream to paginate the result set - FindAllCommits(ctx context.Context, in *FindAllCommitsRequest, opts ...grpc.CallOption) (CommitService_FindAllCommitsClient, error) - FindCommits(ctx context.Context, in *FindCommitsRequest, opts ...grpc.CallOption) (CommitService_FindCommitsClient, error) - CommitLanguages(ctx context.Context, in *CommitLanguagesRequest, opts ...grpc.CallOption) (*CommitLanguagesResponse, error) - RawBlame(ctx context.Context, in *RawBlameRequest, opts ...grpc.CallOption) (CommitService_RawBlameClient, error) - LastCommitForPath(ctx context.Context, in *LastCommitForPathRequest, opts ...grpc.CallOption) (*LastCommitForPathResponse, error) - ListLastCommitsForTree(ctx context.Context, in *ListLastCommitsForTreeRequest, opts ...grpc.CallOption) (CommitService_ListLastCommitsForTreeClient, error) - CommitsByMessage(ctx context.Context, in *CommitsByMessageRequest, opts ...grpc.CallOption) (CommitService_CommitsByMessageClient, error) - ListCommitsByOid(ctx context.Context, in *ListCommitsByOidRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByOidClient, error) - ListCommitsByRefName(ctx context.Context, in *ListCommitsByRefNameRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByRefNameClient, error) - FilterShasWithSignatures(ctx context.Context, opts ...grpc.CallOption) (CommitService_FilterShasWithSignaturesClient, error) - GetCommitSignatures(ctx context.Context, in *GetCommitSignaturesRequest, opts ...grpc.CallOption) (CommitService_GetCommitSignaturesClient, error) - GetCommitMessages(ctx context.Context, in *GetCommitMessagesRequest, opts ...grpc.CallOption) (CommitService_GetCommitMessagesClient, error) -} - -type commitServiceClient struct { - cc *grpc.ClientConn -} - -func NewCommitServiceClient(cc *grpc.ClientConn) CommitServiceClient { - return &commitServiceClient{cc} -} - -func (c *commitServiceClient) CommitIsAncestor(ctx context.Context, in *CommitIsAncestorRequest, opts ...grpc.CallOption) (*CommitIsAncestorResponse, error) { - out := new(CommitIsAncestorResponse) - err := c.cc.Invoke(ctx, "/gitaly.CommitService/CommitIsAncestor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *commitServiceClient) TreeEntry(ctx context.Context, in *TreeEntryRequest, opts ...grpc.CallOption) (CommitService_TreeEntryClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[0], "/gitaly.CommitService/TreeEntry", opts...) - if err != nil { - return nil, err - } - x := &commitServiceTreeEntryClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *ExtractCommitSignatureRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil + return mi.MessageOf(x) } -type CommitService_TreeEntryClient interface { - Recv() (*TreeEntryResponse, error) - grpc.ClientStream -} - -type commitServiceTreeEntryClient struct { - grpc.ClientStream +// Deprecated: Use ExtractCommitSignatureRequest.ProtoReflect.Descriptor instead. +func (*ExtractCommitSignatureRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{39} } -func (x *commitServiceTreeEntryClient) Recv() (*TreeEntryResponse, error) { - m := new(TreeEntryResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *ExtractCommitSignatureRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return m, nil + return nil } -func (c *commitServiceClient) CommitsBetween(ctx context.Context, in *CommitsBetweenRequest, opts ...grpc.CallOption) (CommitService_CommitsBetweenClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[1], "/gitaly.CommitService/CommitsBetween", opts...) - if err != nil { - return nil, err +func (x *ExtractCommitSignatureRequest) GetCommitId() string { + if x != nil { + return x.CommitId } - x := &commitServiceCommitsBetweenClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil + return "" } -type CommitService_CommitsBetweenClient interface { - Recv() (*CommitsBetweenResponse, error) - grpc.ClientStream -} +// Either of the 'signature' and 'signed_text' fields may be present. It +// is up to the caller to stitch them together. +type ExtractCommitSignatureResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type commitServiceCommitsBetweenClient struct { - grpc.ClientStream + Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` + SignedText []byte `protobuf:"bytes,2,opt,name=signed_text,json=signedText,proto3" json:"signed_text,omitempty"` } -func (x *commitServiceCommitsBetweenClient) Recv() (*CommitsBetweenResponse, error) { - m := new(CommitsBetweenResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *ExtractCommitSignatureResponse) Reset() { + *x = ExtractCommitSignatureResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -func (c *commitServiceClient) CountCommits(ctx context.Context, in *CountCommitsRequest, opts ...grpc.CallOption) (*CountCommitsResponse, error) { - out := new(CountCommitsResponse) - err := c.cc.Invoke(ctx, "/gitaly.CommitService/CountCommits", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *ExtractCommitSignatureResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *commitServiceClient) CountDivergingCommits(ctx context.Context, in *CountDivergingCommitsRequest, opts ...grpc.CallOption) (*CountDivergingCommitsResponse, error) { - out := new(CountDivergingCommitsResponse) - err := c.cc.Invoke(ctx, "/gitaly.CommitService/CountDivergingCommits", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*ExtractCommitSignatureResponse) ProtoMessage() {} -func (c *commitServiceClient) GetTreeEntries(ctx context.Context, in *GetTreeEntriesRequest, opts ...grpc.CallOption) (CommitService_GetTreeEntriesClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[2], "/gitaly.CommitService/GetTreeEntries", opts...) - if err != nil { - return nil, err - } - x := &commitServiceGetTreeEntriesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *ExtractCommitSignatureResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_GetTreeEntriesClient interface { - Recv() (*GetTreeEntriesResponse, error) - grpc.ClientStream + return mi.MessageOf(x) } -type commitServiceGetTreeEntriesClient struct { - grpc.ClientStream +// Deprecated: Use ExtractCommitSignatureResponse.ProtoReflect.Descriptor instead. +func (*ExtractCommitSignatureResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{40} } -func (x *commitServiceGetTreeEntriesClient) Recv() (*GetTreeEntriesResponse, error) { - m := new(GetTreeEntriesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *ExtractCommitSignatureResponse) GetSignature() []byte { + if x != nil { + return x.Signature } - return m, nil + return nil } -func (c *commitServiceClient) ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (CommitService_ListFilesClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[3], "/gitaly.CommitService/ListFiles", opts...) - if err != nil { - return nil, err - } - x := &commitServiceListFilesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *ExtractCommitSignatureResponse) GetSignedText() []byte { + if x != nil { + return x.SignedText } - return x, nil + return nil } -type CommitService_ListFilesClient interface { - Recv() (*ListFilesResponse, error) - grpc.ClientStream -} +type GetCommitSignaturesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type commitServiceListFilesClient struct { - grpc.ClientStream + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + CommitIds []string `protobuf:"bytes,2,rep,name=commit_ids,json=commitIds,proto3" json:"commit_ids,omitempty"` } -func (x *commitServiceListFilesClient) Recv() (*ListFilesResponse, error) { - m := new(ListFilesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *GetCommitSignaturesRequest) Reset() { + *x = GetCommitSignaturesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -func (c *commitServiceClient) FindCommit(ctx context.Context, in *FindCommitRequest, opts ...grpc.CallOption) (*FindCommitResponse, error) { - out := new(FindCommitResponse) - err := c.cc.Invoke(ctx, "/gitaly.CommitService/FindCommit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *GetCommitSignaturesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *commitServiceClient) CommitStats(ctx context.Context, in *CommitStatsRequest, opts ...grpc.CallOption) (*CommitStatsResponse, error) { - out := new(CommitStatsResponse) - err := c.cc.Invoke(ctx, "/gitaly.CommitService/CommitStats", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*GetCommitSignaturesRequest) ProtoMessage() {} -func (c *commitServiceClient) FindAllCommits(ctx context.Context, in *FindAllCommitsRequest, opts ...grpc.CallOption) (CommitService_FindAllCommitsClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[4], "/gitaly.CommitService/FindAllCommits", opts...) - if err != nil { - return nil, err +func (x *GetCommitSignaturesRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[41] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - x := &commitServiceFindAllCommitsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_FindAllCommitsClient interface { - Recv() (*FindAllCommitsResponse, error) - grpc.ClientStream + return mi.MessageOf(x) } -type commitServiceFindAllCommitsClient struct { - grpc.ClientStream +// Deprecated: Use GetCommitSignaturesRequest.ProtoReflect.Descriptor instead. +func (*GetCommitSignaturesRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{41} } -func (x *commitServiceFindAllCommitsClient) Recv() (*FindAllCommitsResponse, error) { - m := new(FindAllCommitsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *GetCommitSignaturesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return m, nil + return nil } -func (c *commitServiceClient) FindCommits(ctx context.Context, in *FindCommitsRequest, opts ...grpc.CallOption) (CommitService_FindCommitsClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[5], "/gitaly.CommitService/FindCommits", opts...) - if err != nil { - return nil, err - } - x := &commitServiceFindCommitsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *GetCommitSignaturesRequest) GetCommitIds() []string { + if x != nil { + return x.CommitIds } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_FindCommitsClient interface { - Recv() (*FindCommitsResponse, error) - grpc.ClientStream -} - -type commitServiceFindCommitsClient struct { - grpc.ClientStream + return nil } -func (x *commitServiceFindCommitsClient) Recv() (*FindCommitsResponse, error) { - m := new(FindCommitsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +type GetCommitSignaturesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (c *commitServiceClient) CommitLanguages(ctx context.Context, in *CommitLanguagesRequest, opts ...grpc.CallOption) (*CommitLanguagesResponse, error) { - out := new(CommitLanguagesResponse) - err := c.cc.Invoke(ctx, "/gitaly.CommitService/CommitLanguages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil + // Only present for a new commit signature data. + CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` + // See ExtractCommitSignatureResponse above for how these fields should be handled. + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + SignedText []byte `protobuf:"bytes,3,opt,name=signed_text,json=signedText,proto3" json:"signed_text,omitempty"` } -func (c *commitServiceClient) RawBlame(ctx context.Context, in *RawBlameRequest, opts ...grpc.CallOption) (CommitService_RawBlameClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[6], "/gitaly.CommitService/RawBlame", opts...) - if err != nil { - return nil, err - } - x := &commitServiceRawBlameClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *GetCommitSignaturesResponse) Reset() { + *x = GetCommitSignaturesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_RawBlameClient interface { - Recv() (*RawBlameResponse, error) - grpc.ClientStream } -type commitServiceRawBlameClient struct { - grpc.ClientStream +func (x *GetCommitSignaturesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *commitServiceRawBlameClient) Recv() (*RawBlameResponse, error) { - m := new(RawBlameResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +func (*GetCommitSignaturesResponse) ProtoMessage() {} -func (c *commitServiceClient) LastCommitForPath(ctx context.Context, in *LastCommitForPathRequest, opts ...grpc.CallOption) (*LastCommitForPathResponse, error) { - out := new(LastCommitForPathResponse) - err := c.cc.Invoke(ctx, "/gitaly.CommitService/LastCommitForPath", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *commitServiceClient) ListLastCommitsForTree(ctx context.Context, in *ListLastCommitsForTreeRequest, opts ...grpc.CallOption) (CommitService_ListLastCommitsForTreeClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[7], "/gitaly.CommitService/ListLastCommitsForTree", opts...) - if err != nil { - return nil, err - } - x := &commitServiceListLastCommitsForTreeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *GetCommitSignaturesResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[42] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return x, nil + return mi.MessageOf(x) } -type CommitService_ListLastCommitsForTreeClient interface { - Recv() (*ListLastCommitsForTreeResponse, error) - grpc.ClientStream -} - -type commitServiceListLastCommitsForTreeClient struct { - grpc.ClientStream -} - -func (x *commitServiceListLastCommitsForTreeClient) Recv() (*ListLastCommitsForTreeResponse, error) { - m := new(ListLastCommitsForTreeResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +// Deprecated: Use GetCommitSignaturesResponse.ProtoReflect.Descriptor instead. +func (*GetCommitSignaturesResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{42} } -func (c *commitServiceClient) CommitsByMessage(ctx context.Context, in *CommitsByMessageRequest, opts ...grpc.CallOption) (CommitService_CommitsByMessageClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[8], "/gitaly.CommitService/CommitsByMessage", opts...) - if err != nil { - return nil, err - } - x := &commitServiceCommitsByMessageClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *GetCommitSignaturesResponse) GetCommitId() string { + if x != nil { + return x.CommitId } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_CommitsByMessageClient interface { - Recv() (*CommitsByMessageResponse, error) - grpc.ClientStream -} - -type commitServiceCommitsByMessageClient struct { - grpc.ClientStream + return "" } -func (x *commitServiceCommitsByMessageClient) Recv() (*CommitsByMessageResponse, error) { - m := new(CommitsByMessageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *GetCommitSignaturesResponse) GetSignature() []byte { + if x != nil { + return x.Signature } - return m, nil + return nil } -func (c *commitServiceClient) ListCommitsByOid(ctx context.Context, in *ListCommitsByOidRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByOidClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[9], "/gitaly.CommitService/ListCommitsByOid", opts...) - if err != nil { - return nil, err +func (x *GetCommitSignaturesResponse) GetSignedText() []byte { + if x != nil { + return x.SignedText } - x := &commitServiceListCommitsByOidClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_ListCommitsByOidClient interface { - Recv() (*ListCommitsByOidResponse, error) - grpc.ClientStream + return nil } -type commitServiceListCommitsByOidClient struct { - grpc.ClientStream -} +type GetCommitMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *commitServiceListCommitsByOidClient) Recv() (*ListCommitsByOidResponse, error) { - m := new(ListCommitsByOidResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + CommitIds []string `protobuf:"bytes,2,rep,name=commit_ids,json=commitIds,proto3" json:"commit_ids,omitempty"` } -func (c *commitServiceClient) ListCommitsByRefName(ctx context.Context, in *ListCommitsByRefNameRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByRefNameClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[10], "/gitaly.CommitService/ListCommitsByRefName", opts...) - if err != nil { - return nil, err - } - x := &commitServiceListCommitsByRefNameClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *GetCommitMessagesRequest) Reset() { + *x = GetCommitMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return x, nil } -type CommitService_ListCommitsByRefNameClient interface { - Recv() (*ListCommitsByRefNameResponse, error) - grpc.ClientStream +func (x *GetCommitMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type commitServiceListCommitsByRefNameClient struct { - grpc.ClientStream -} - -func (x *commitServiceListCommitsByRefNameClient) Recv() (*ListCommitsByRefNameResponse, error) { - m := new(ListCommitsByRefNameResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +func (*GetCommitMessagesRequest) ProtoMessage() {} -func (c *commitServiceClient) FilterShasWithSignatures(ctx context.Context, opts ...grpc.CallOption) (CommitService_FilterShasWithSignaturesClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[11], "/gitaly.CommitService/FilterShasWithSignatures", opts...) - if err != nil { - return nil, err +func (x *GetCommitMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[43] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - x := &commitServiceFilterShasWithSignaturesClient{stream} - return x, nil -} - -type CommitService_FilterShasWithSignaturesClient interface { - Send(*FilterShasWithSignaturesRequest) error - Recv() (*FilterShasWithSignaturesResponse, error) - grpc.ClientStream + return mi.MessageOf(x) } -type commitServiceFilterShasWithSignaturesClient struct { - grpc.ClientStream -} - -func (x *commitServiceFilterShasWithSignaturesClient) Send(m *FilterShasWithSignaturesRequest) error { - return x.ClientStream.SendMsg(m) +// Deprecated: Use GetCommitMessagesRequest.ProtoReflect.Descriptor instead. +func (*GetCommitMessagesRequest) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{43} } -func (x *commitServiceFilterShasWithSignaturesClient) Recv() (*FilterShasWithSignaturesResponse, error) { - m := new(FilterShasWithSignaturesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *GetCommitMessagesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return m, nil + return nil } -func (c *commitServiceClient) GetCommitSignatures(ctx context.Context, in *GetCommitSignaturesRequest, opts ...grpc.CallOption) (CommitService_GetCommitSignaturesClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[12], "/gitaly.CommitService/GetCommitSignatures", opts...) - if err != nil { - return nil, err +func (x *GetCommitMessagesRequest) GetCommitIds() []string { + if x != nil { + return x.CommitIds } - x := &commitServiceGetCommitSignaturesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_GetCommitSignaturesClient interface { - Recv() (*GetCommitSignaturesResponse, error) - grpc.ClientStream + return nil } -type commitServiceGetCommitSignaturesClient struct { - grpc.ClientStream -} +type GetCommitMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *commitServiceGetCommitSignaturesClient) Recv() (*GetCommitSignaturesResponse, error) { - m := new(GetCommitSignaturesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + // Only present for a new commit message + CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` + Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -func (c *commitServiceClient) GetCommitMessages(ctx context.Context, in *GetCommitMessagesRequest, opts ...grpc.CallOption) (CommitService_GetCommitMessagesClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[13], "/gitaly.CommitService/GetCommitMessages", opts...) - if err != nil { - return nil, err - } - x := &commitServiceGetCommitMessagesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *GetCommitMessagesResponse) Reset() { + *x = GetCommitMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil } -type CommitService_GetCommitMessagesClient interface { - Recv() (*GetCommitMessagesResponse, error) - grpc.ClientStream +func (x *GetCommitMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type commitServiceGetCommitMessagesClient struct { - grpc.ClientStream -} +func (*GetCommitMessagesResponse) ProtoMessage() {} -func (x *commitServiceGetCommitMessagesClient) Recv() (*GetCommitMessagesResponse, error) { - m := new(GetCommitMessagesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *GetCommitMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[44] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil -} - -// CommitServiceServer is the server API for CommitService service. -type CommitServiceServer interface { - CommitIsAncestor(context.Context, *CommitIsAncestorRequest) (*CommitIsAncestorResponse, error) - TreeEntry(*TreeEntryRequest, CommitService_TreeEntryServer) error - CommitsBetween(*CommitsBetweenRequest, CommitService_CommitsBetweenServer) error - CountCommits(context.Context, *CountCommitsRequest) (*CountCommitsResponse, error) - CountDivergingCommits(context.Context, *CountDivergingCommitsRequest) (*CountDivergingCommitsResponse, error) - GetTreeEntries(*GetTreeEntriesRequest, CommitService_GetTreeEntriesServer) error - ListFiles(*ListFilesRequest, CommitService_ListFilesServer) error - FindCommit(context.Context, *FindCommitRequest) (*FindCommitResponse, error) - CommitStats(context.Context, *CommitStatsRequest) (*CommitStatsResponse, error) - // Use a stream to paginate the result set - FindAllCommits(*FindAllCommitsRequest, CommitService_FindAllCommitsServer) error - FindCommits(*FindCommitsRequest, CommitService_FindCommitsServer) error - CommitLanguages(context.Context, *CommitLanguagesRequest) (*CommitLanguagesResponse, error) - RawBlame(*RawBlameRequest, CommitService_RawBlameServer) error - LastCommitForPath(context.Context, *LastCommitForPathRequest) (*LastCommitForPathResponse, error) - ListLastCommitsForTree(*ListLastCommitsForTreeRequest, CommitService_ListLastCommitsForTreeServer) error - CommitsByMessage(*CommitsByMessageRequest, CommitService_CommitsByMessageServer) error - ListCommitsByOid(*ListCommitsByOidRequest, CommitService_ListCommitsByOidServer) error - ListCommitsByRefName(*ListCommitsByRefNameRequest, CommitService_ListCommitsByRefNameServer) error - FilterShasWithSignatures(CommitService_FilterShasWithSignaturesServer) error - GetCommitSignatures(*GetCommitSignaturesRequest, CommitService_GetCommitSignaturesServer) error - GetCommitMessages(*GetCommitMessagesRequest, CommitService_GetCommitMessagesServer) error -} - -// UnimplementedCommitServiceServer can be embedded to have forward compatible implementations. -type UnimplementedCommitServiceServer struct { -} - -func (*UnimplementedCommitServiceServer) CommitIsAncestor(ctx context.Context, req *CommitIsAncestorRequest) (*CommitIsAncestorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CommitIsAncestor not implemented") -} -func (*UnimplementedCommitServiceServer) TreeEntry(req *TreeEntryRequest, srv CommitService_TreeEntryServer) error { - return status.Errorf(codes.Unimplemented, "method TreeEntry not implemented") -} -func (*UnimplementedCommitServiceServer) CommitsBetween(req *CommitsBetweenRequest, srv CommitService_CommitsBetweenServer) error { - return status.Errorf(codes.Unimplemented, "method CommitsBetween not implemented") -} -func (*UnimplementedCommitServiceServer) CountCommits(ctx context.Context, req *CountCommitsRequest) (*CountCommitsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CountCommits not implemented") -} -func (*UnimplementedCommitServiceServer) CountDivergingCommits(ctx context.Context, req *CountDivergingCommitsRequest) (*CountDivergingCommitsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CountDivergingCommits not implemented") -} -func (*UnimplementedCommitServiceServer) GetTreeEntries(req *GetTreeEntriesRequest, srv CommitService_GetTreeEntriesServer) error { - return status.Errorf(codes.Unimplemented, "method GetTreeEntries not implemented") -} -func (*UnimplementedCommitServiceServer) ListFiles(req *ListFilesRequest, srv CommitService_ListFilesServer) error { - return status.Errorf(codes.Unimplemented, "method ListFiles not implemented") -} -func (*UnimplementedCommitServiceServer) FindCommit(ctx context.Context, req *FindCommitRequest) (*FindCommitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindCommit not implemented") -} -func (*UnimplementedCommitServiceServer) CommitStats(ctx context.Context, req *CommitStatsRequest) (*CommitStatsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CommitStats not implemented") -} -func (*UnimplementedCommitServiceServer) FindAllCommits(req *FindAllCommitsRequest, srv CommitService_FindAllCommitsServer) error { - return status.Errorf(codes.Unimplemented, "method FindAllCommits not implemented") -} -func (*UnimplementedCommitServiceServer) FindCommits(req *FindCommitsRequest, srv CommitService_FindCommitsServer) error { - return status.Errorf(codes.Unimplemented, "method FindCommits not implemented") -} -func (*UnimplementedCommitServiceServer) CommitLanguages(ctx context.Context, req *CommitLanguagesRequest) (*CommitLanguagesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CommitLanguages not implemented") -} -func (*UnimplementedCommitServiceServer) RawBlame(req *RawBlameRequest, srv CommitService_RawBlameServer) error { - return status.Errorf(codes.Unimplemented, "method RawBlame not implemented") -} -func (*UnimplementedCommitServiceServer) LastCommitForPath(ctx context.Context, req *LastCommitForPathRequest) (*LastCommitForPathResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LastCommitForPath not implemented") -} -func (*UnimplementedCommitServiceServer) ListLastCommitsForTree(req *ListLastCommitsForTreeRequest, srv CommitService_ListLastCommitsForTreeServer) error { - return status.Errorf(codes.Unimplemented, "method ListLastCommitsForTree not implemented") -} -func (*UnimplementedCommitServiceServer) CommitsByMessage(req *CommitsByMessageRequest, srv CommitService_CommitsByMessageServer) error { - return status.Errorf(codes.Unimplemented, "method CommitsByMessage not implemented") -} -func (*UnimplementedCommitServiceServer) ListCommitsByOid(req *ListCommitsByOidRequest, srv CommitService_ListCommitsByOidServer) error { - return status.Errorf(codes.Unimplemented, "method ListCommitsByOid not implemented") -} -func (*UnimplementedCommitServiceServer) ListCommitsByRefName(req *ListCommitsByRefNameRequest, srv CommitService_ListCommitsByRefNameServer) error { - return status.Errorf(codes.Unimplemented, "method ListCommitsByRefName not implemented") -} -func (*UnimplementedCommitServiceServer) FilterShasWithSignatures(srv CommitService_FilterShasWithSignaturesServer) error { - return status.Errorf(codes.Unimplemented, "method FilterShasWithSignatures not implemented") -} -func (*UnimplementedCommitServiceServer) GetCommitSignatures(req *GetCommitSignaturesRequest, srv CommitService_GetCommitSignaturesServer) error { - return status.Errorf(codes.Unimplemented, "method GetCommitSignatures not implemented") -} -func (*UnimplementedCommitServiceServer) GetCommitMessages(req *GetCommitMessagesRequest, srv CommitService_GetCommitMessagesServer) error { - return status.Errorf(codes.Unimplemented, "method GetCommitMessages not implemented") + return mi.MessageOf(x) } -func RegisterCommitServiceServer(s *grpc.Server, srv CommitServiceServer) { - s.RegisterService(&_CommitService_serviceDesc, srv) +// Deprecated: Use GetCommitMessagesResponse.ProtoReflect.Descriptor instead. +func (*GetCommitMessagesResponse) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{44} } -func _CommitService_CommitIsAncestor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CommitIsAncestorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServiceServer).CommitIsAncestor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.CommitService/CommitIsAncestor", +func (x *GetCommitMessagesResponse) GetCommitId() string { + if x != nil { + return x.CommitId } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServiceServer).CommitIsAncestor(ctx, req.(*CommitIsAncestorRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _CommitService_TreeEntry_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(TreeEntryRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *GetCommitMessagesResponse) GetMessage() []byte { + if x != nil { + return x.Message } - return srv.(CommitServiceServer).TreeEntry(m, &commitServiceTreeEntryServer{stream}) -} - -type CommitService_TreeEntryServer interface { - Send(*TreeEntryResponse) error - grpc.ServerStream + return nil } -type commitServiceTreeEntryServer struct { - grpc.ServerStream -} +type ListCommitsByRefNameResponse_CommitForRef struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *commitServiceTreeEntryServer) Send(m *TreeEntryResponse) error { - return x.ServerStream.SendMsg(m) + Commit *GitCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` + RefName []byte `protobuf:"bytes,2,opt,name=ref_name,json=refName,proto3" json:"ref_name,omitempty"` } -func _CommitService_CommitsBetween_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CommitsBetweenRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *ListCommitsByRefNameResponse_CommitForRef) Reset() { + *x = ListCommitsByRefNameResponse_CommitForRef{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(CommitServiceServer).CommitsBetween(m, &commitServiceCommitsBetweenServer{stream}) } -type CommitService_CommitsBetweenServer interface { - Send(*CommitsBetweenResponse) error - grpc.ServerStream +func (x *ListCommitsByRefNameResponse_CommitForRef) String() string { + return protoimpl.X.MessageStringOf(x) } -type commitServiceCommitsBetweenServer struct { - grpc.ServerStream -} - -func (x *commitServiceCommitsBetweenServer) Send(m *CommitsBetweenResponse) error { - return x.ServerStream.SendMsg(m) -} +func (*ListCommitsByRefNameResponse_CommitForRef) ProtoMessage() {} -func _CommitService_CountCommits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CountCommitsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServiceServer).CountCommits(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.CommitService/CountCommits", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServiceServer).CountCommits(ctx, req.(*CountCommitsRequest)) +func (x *ListCommitsByRefNameResponse_CommitForRef) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[45] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _CommitService_CountDivergingCommits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CountDivergingCommitsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServiceServer).CountDivergingCommits(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.CommitService/CountDivergingCommits", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServiceServer).CountDivergingCommits(ctx, req.(*CountDivergingCommitsRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use ListCommitsByRefNameResponse_CommitForRef.ProtoReflect.Descriptor instead. +func (*ListCommitsByRefNameResponse_CommitForRef) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{22, 0} } -func _CommitService_GetTreeEntries_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetTreeEntriesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *ListCommitsByRefNameResponse_CommitForRef) GetCommit() *GitCommit { + if x != nil { + return x.Commit } - return srv.(CommitServiceServer).GetTreeEntries(m, &commitServiceGetTreeEntriesServer{stream}) -} - -type CommitService_GetTreeEntriesServer interface { - Send(*GetTreeEntriesResponse) error - grpc.ServerStream -} - -type commitServiceGetTreeEntriesServer struct { - grpc.ServerStream -} - -func (x *commitServiceGetTreeEntriesServer) Send(m *GetTreeEntriesResponse) error { - return x.ServerStream.SendMsg(m) + return nil } -func _CommitService_ListFiles_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListFilesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *ListCommitsByRefNameResponse_CommitForRef) GetRefName() []byte { + if x != nil { + return x.RefName } - return srv.(CommitServiceServer).ListFiles(m, &commitServiceListFilesServer{stream}) -} - -type CommitService_ListFilesServer interface { - Send(*ListFilesResponse) error - grpc.ServerStream -} - -type commitServiceListFilesServer struct { - grpc.ServerStream -} - -func (x *commitServiceListFilesServer) Send(m *ListFilesResponse) error { - return x.ServerStream.SendMsg(m) + return nil } -func _CommitService_FindCommit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindCommitRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServiceServer).FindCommit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.CommitService/FindCommit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServiceServer).FindCommit(ctx, req.(*FindCommitRequest)) - } - return interceptor(ctx, in, info, handler) -} +type CommitLanguagesResponse_Language struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func _CommitService_CommitStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CommitStatsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServiceServer).CommitStats(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.CommitService/CommitStats", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServiceServer).CommitStats(ctx, req.(*CommitStatsRequest)) - } - return interceptor(ctx, in, info, handler) + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Share float32 `protobuf:"fixed32,2,opt,name=share,proto3" json:"share,omitempty"` + Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` + FileCount uint32 `protobuf:"varint,4,opt,name=file_count,json=fileCount,proto3" json:"file_count,omitempty"` + Bytes uint64 `protobuf:"varint,5,opt,name=bytes,proto3" json:"bytes,omitempty"` } -func _CommitService_FindAllCommits_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllCommitsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *CommitLanguagesResponse_Language) Reset() { + *x = CommitLanguagesResponse_Language{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(CommitServiceServer).FindAllCommits(m, &commitServiceFindAllCommitsServer{stream}) -} - -type CommitService_FindAllCommitsServer interface { - Send(*FindAllCommitsResponse) error - grpc.ServerStream } -type commitServiceFindAllCommitsServer struct { - grpc.ServerStream +func (x *CommitLanguagesResponse_Language) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *commitServiceFindAllCommitsServer) Send(m *FindAllCommitsResponse) error { - return x.ServerStream.SendMsg(m) -} +func (*CommitLanguagesResponse_Language) ProtoMessage() {} -func _CommitService_FindCommits_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindCommitsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *CommitLanguagesResponse_Language) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[46] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(CommitServiceServer).FindCommits(m, &commitServiceFindCommitsServer{stream}) -} - -type CommitService_FindCommitsServer interface { - Send(*FindCommitsResponse) error - grpc.ServerStream -} - -type commitServiceFindCommitsServer struct { - grpc.ServerStream + return mi.MessageOf(x) } -func (x *commitServiceFindCommitsServer) Send(m *FindCommitsResponse) error { - return x.ServerStream.SendMsg(m) +// Deprecated: Use CommitLanguagesResponse_Language.ProtoReflect.Descriptor instead. +func (*CommitLanguagesResponse_Language) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{28, 0} } -func _CommitService_CommitLanguages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CommitLanguagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServiceServer).CommitLanguages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.CommitService/CommitLanguages", +func (x *CommitLanguagesResponse_Language) GetName() string { + if x != nil { + return x.Name } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServiceServer).CommitLanguages(ctx, req.(*CommitLanguagesRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _CommitService_RawBlame_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(RawBlameRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *CommitLanguagesResponse_Language) GetShare() float32 { + if x != nil { + return x.Share } - return srv.(CommitServiceServer).RawBlame(m, &commitServiceRawBlameServer{stream}) -} - -type CommitService_RawBlameServer interface { - Send(*RawBlameResponse) error - grpc.ServerStream -} - -type commitServiceRawBlameServer struct { - grpc.ServerStream -} - -func (x *commitServiceRawBlameServer) Send(m *RawBlameResponse) error { - return x.ServerStream.SendMsg(m) + return 0 } -func _CommitService_LastCommitForPath_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LastCommitForPathRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServiceServer).LastCommitForPath(ctx, in) +func (x *CommitLanguagesResponse_Language) GetColor() string { + if x != nil { + return x.Color } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.CommitService/LastCommitForPath", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServiceServer).LastCommitForPath(ctx, req.(*LastCommitForPathRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _CommitService_ListLastCommitsForTree_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListLastCommitsForTreeRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *CommitLanguagesResponse_Language) GetFileCount() uint32 { + if x != nil { + return x.FileCount } - return srv.(CommitServiceServer).ListLastCommitsForTree(m, &commitServiceListLastCommitsForTreeServer{stream}) -} - -type CommitService_ListLastCommitsForTreeServer interface { - Send(*ListLastCommitsForTreeResponse) error - grpc.ServerStream -} - -type commitServiceListLastCommitsForTreeServer struct { - grpc.ServerStream -} - -func (x *commitServiceListLastCommitsForTreeServer) Send(m *ListLastCommitsForTreeResponse) error { - return x.ServerStream.SendMsg(m) + return 0 } -func _CommitService_CommitsByMessage_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CommitsByMessageRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *CommitLanguagesResponse_Language) GetBytes() uint64 { + if x != nil { + return x.Bytes } - return srv.(CommitServiceServer).CommitsByMessage(m, &commitServiceCommitsByMessageServer{stream}) -} - -type CommitService_CommitsByMessageServer interface { - Send(*CommitsByMessageResponse) error - grpc.ServerStream + return 0 } -type commitServiceCommitsByMessageServer struct { - grpc.ServerStream -} +type ListLastCommitsForTreeResponse_CommitForTree struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *commitServiceCommitsByMessageServer) Send(m *CommitsByMessageResponse) error { - return x.ServerStream.SendMsg(m) + Commit *GitCommit `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` + PathBytes []byte `protobuf:"bytes,4,opt,name=path_bytes,json=pathBytes,proto3" json:"path_bytes,omitempty"` } -func _CommitService_ListCommitsByOid_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListCommitsByOidRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *ListLastCommitsForTreeResponse_CommitForTree) Reset() { + *x = ListLastCommitsForTreeResponse_CommitForTree{} + if protoimpl.UnsafeEnabled { + mi := &file_commit_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(CommitServiceServer).ListCommitsByOid(m, &commitServiceListCommitsByOidServer{stream}) -} - -type CommitService_ListCommitsByOidServer interface { - Send(*ListCommitsByOidResponse) error - grpc.ServerStream } -type commitServiceListCommitsByOidServer struct { - grpc.ServerStream +func (x *ListLastCommitsForTreeResponse_CommitForTree) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *commitServiceListCommitsByOidServer) Send(m *ListCommitsByOidResponse) error { - return x.ServerStream.SendMsg(m) -} +func (*ListLastCommitsForTreeResponse_CommitForTree) ProtoMessage() {} -func _CommitService_ListCommitsByRefName_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListCommitsByRefNameRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *ListLastCommitsForTreeResponse_CommitForTree) ProtoReflect() protoreflect.Message { + mi := &file_commit_proto_msgTypes[47] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(CommitServiceServer).ListCommitsByRefName(m, &commitServiceListCommitsByRefNameServer{stream}) -} - -type CommitService_ListCommitsByRefNameServer interface { - Send(*ListCommitsByRefNameResponse) error - grpc.ServerStream -} - -type commitServiceListCommitsByRefNameServer struct { - grpc.ServerStream -} - -func (x *commitServiceListCommitsByRefNameServer) Send(m *ListCommitsByRefNameResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _CommitService_FilterShasWithSignatures_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(CommitServiceServer).FilterShasWithSignatures(&commitServiceFilterShasWithSignaturesServer{stream}) -} - -type CommitService_FilterShasWithSignaturesServer interface { - Send(*FilterShasWithSignaturesResponse) error - Recv() (*FilterShasWithSignaturesRequest, error) - grpc.ServerStream -} - -type commitServiceFilterShasWithSignaturesServer struct { - grpc.ServerStream + return mi.MessageOf(x) } -func (x *commitServiceFilterShasWithSignaturesServer) Send(m *FilterShasWithSignaturesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *commitServiceFilterShasWithSignaturesServer) Recv() (*FilterShasWithSignaturesRequest, error) { - m := new(FilterShasWithSignaturesRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +// Deprecated: Use ListLastCommitsForTreeResponse_CommitForTree.ProtoReflect.Descriptor instead. +func (*ListLastCommitsForTreeResponse_CommitForTree) Descriptor() ([]byte, []int) { + return file_commit_proto_rawDescGZIP(), []int{34, 0} } -func _CommitService_GetCommitSignatures_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetCommitSignaturesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *ListLastCommitsForTreeResponse_CommitForTree) GetCommit() *GitCommit { + if x != nil { + return x.Commit } - return srv.(CommitServiceServer).GetCommitSignatures(m, &commitServiceGetCommitSignaturesServer{stream}) -} - -type CommitService_GetCommitSignaturesServer interface { - Send(*GetCommitSignaturesResponse) error - grpc.ServerStream -} - -type commitServiceGetCommitSignaturesServer struct { - grpc.ServerStream -} - -func (x *commitServiceGetCommitSignaturesServer) Send(m *GetCommitSignaturesResponse) error { - return x.ServerStream.SendMsg(m) + return nil } -func _CommitService_GetCommitMessages_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetCommitMessagesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *ListLastCommitsForTreeResponse_CommitForTree) GetPathBytes() []byte { + if x != nil { + return x.PathBytes } - return srv.(CommitServiceServer).GetCommitMessages(m, &commitServiceGetCommitMessagesServer{stream}) -} - -type CommitService_GetCommitMessagesServer interface { - Send(*GetCommitMessagesResponse) error - grpc.ServerStream -} - -type commitServiceGetCommitMessagesServer struct { - grpc.ServerStream + return nil } -func (x *commitServiceGetCommitMessagesServer) Send(m *GetCommitMessagesResponse) error { - return x.ServerStream.SendMsg(m) -} +var File_commit_proto protoreflect.FileDescriptor + +var file_commit_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x6a, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, + 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x63, 0x0a, + 0x13, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x61, 0x64, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x22, 0x8f, 0x01, 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x73, 0x41, + 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6e, 0x63, 0x65, + 0x73, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, + 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x69, + 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x69, + 0x6c, 0x64, 0x49, 0x64, 0x22, 0x30, 0x0a, 0x18, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x73, + 0x41, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xad, 0x01, 0x0a, 0x10, 0x54, 0x72, 0x65, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6d, + 0x61, 0x78, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, + 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x65, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x22, 0x35, 0x0a, 0x0a, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x00, 0x12, 0x08, + 0x0a, 0x04, 0x42, 0x4c, 0x4f, 0x42, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x52, 0x45, 0x45, + 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x03, 0x22, 0xbf, 0x01, 0x0a, 0x15, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x66, + 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x02, 0x74, 0x6f, 0x12, 0x48, 0x0a, 0x11, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x45, 0x0a, + 0x16, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x73, 0x22, 0xf5, 0x02, 0x0a, 0x13, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x05, 0x61, 0x66, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x61, + 0x66, 0x74, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x06, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x06, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1b, 0x0a, 0x09, + 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x08, 0x6d, 0x61, 0x78, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6c, 0x6c, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x6c, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x66, + 0x69, 0x72, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0b, 0x66, 0x69, 0x72, 0x73, 0x74, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x3c, + 0x0a, 0x0e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x67, + 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2c, 0x0a, 0x14, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xab, 0x01, 0x0a, 0x1c, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x69, 0x76, 0x65, 0x72, 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, + 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x6d, 0x61, + 0x78, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, + 0x10, 0x06, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x22, 0x5f, 0x0a, 0x1d, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x44, 0x69, 0x76, 0x65, 0x72, 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x65, 0x66, + 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6c, + 0x65, 0x66, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x69, 0x67, 0x68, + 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x72, + 0x69, 0x67, 0x68, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xfa, 0x01, 0x0a, 0x09, 0x54, 0x72, + 0x65, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x6f, + 0x74, 0x5f, 0x6f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x6f, 0x6f, + 0x74, 0x4f, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x54, 0x72, 0x65, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4f, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, + 0x66, 0x6c, 0x61, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x08, 0x66, 0x6c, 0x61, 0x74, 0x50, 0x61, 0x74, 0x68, 0x22, 0x2b, 0x0a, 0x09, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4c, 0x4f, 0x42, 0x10, 0x00, + 0x12, 0x08, 0x0a, 0x04, 0x54, 0x52, 0x45, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4f, + 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x03, 0x22, 0x9f, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x72, + 0x65, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, + 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, + 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x22, 0x45, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, + 0x72, 0x65, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x54, 0x72, 0x65, + 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, + 0x68, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, + 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, + 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x29, 0x0a, 0x11, 0x4c, 0x69, 0x73, + 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x05, 0x70, + 0x61, 0x74, 0x68, 0x73, 0x22, 0x85, 0x01, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x08, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x73, 0x22, 0x3f, 0x0a, 0x12, + 0x46, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0x65, 0x0a, + 0x17, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x4f, 0x69, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x03, 0x6f, 0x69, 0x64, 0x22, 0x47, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x73, 0x42, 0x79, 0x4f, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2b, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x22, 0x74, 0x0a, + 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, + 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x66, 0x4e, 0x61, + 0x6d, 0x65, 0x73, 0x22, 0xce, 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x72, + 0x65, 0x66, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, + 0x52, 0x65, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x66, 0x52, 0x0a, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x66, 0x73, 0x1a, 0x54, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x66, 0x12, 0x29, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x06, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x65, 0x66, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x72, 0x65, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x4a, 0x04, + 0x08, 0x01, 0x10, 0x02, 0x22, 0x80, 0x02, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6b, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x04, 0x73, 0x6b, 0x69, 0x70, 0x12, 0x39, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x22, 0x25, 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, + 0x45, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x4f, 0x50, 0x4f, 0x10, 0x01, 0x12, 0x08, 0x0a, + 0x04, 0x44, 0x41, 0x54, 0x45, 0x10, 0x02, 0x22, 0x45, 0x0a, 0x16, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x22, 0xec, + 0x04, 0x0a, 0x12, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, + 0x68, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x12, + 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x06, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6b, 0x69, 0x70, 0x5f, + 0x6d, 0x65, 0x72, 0x67, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73, 0x6b, + 0x69, 0x70, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x77, 0x61, 0x6c, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, + 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x57, 0x61, 0x6c, 0x6b, 0x12, 0x30, 0x0a, 0x05, 0x61, + 0x66, 0x74, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x61, 0x66, 0x74, 0x65, 0x72, 0x12, 0x32, 0x0a, + 0x06, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x62, 0x65, 0x66, 0x6f, 0x72, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, + 0x61, 0x6c, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x66, 0x69, 0x72, 0x73, 0x74, + 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x36, + 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, + 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x3c, 0x0a, 0x0e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, + 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x73, + 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x73, + 0x22, 0x1b, 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, + 0x45, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x4f, 0x50, 0x4f, 0x10, 0x01, 0x22, 0x42, 0x0a, + 0x13, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, + 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x73, 0x22, 0x6e, 0x0a, 0x16, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x22, 0xe2, 0x01, 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4c, 0x61, 0x6e, 0x67, + 0x75, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, + 0x09, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x28, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x52, 0x09, 0x6c, 0x61, 0x6e, 0x67, + 0x75, 0x61, 0x67, 0x65, 0x73, 0x1a, 0x7f, 0x0a, 0x08, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, + 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, + 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x22, 0x7b, 0x0a, 0x0f, 0x52, 0x61, 0x77, 0x42, 0x6c, 0x61, + 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, + 0x61, 0x74, 0x68, 0x22, 0x26, 0x0a, 0x10, 0x52, 0x61, 0x77, 0x42, 0x6c, 0x61, 0x6d, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xed, 0x01, 0x0a, 0x18, + 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, 0x61, 0x74, + 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, + 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, + 0x74, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x70, 0x61, + 0x74, 0x68, 0x73, 0x70, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x6c, 0x69, + 0x74, 0x65, 0x72, 0x61, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x73, 0x70, 0x65, 0x63, 0x12, 0x3c, 0x0a, + 0x0e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, + 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x67, 0x6c, + 0x6f, 0x62, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x46, 0x0a, 0x19, 0x4c, + 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, 0x61, 0x74, 0x68, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x06, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x22, 0xa4, 0x02, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x61, 0x73, 0x74, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, + 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, + 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, + 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x2d, 0x0a, + 0x10, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x73, 0x70, 0x65, + 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0f, 0x6c, 0x69, 0x74, + 0x65, 0x72, 0x61, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x73, 0x70, 0x65, 0x63, 0x12, 0x3c, 0x0a, 0x0e, + 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x6c, + 0x6f, 0x62, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x67, 0x6c, 0x6f, + 0x62, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xd7, 0x01, 0x0a, 0x1e, 0x4c, + 0x69, 0x73, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x46, 0x6f, + 0x72, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, + 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x61, 0x73, 0x74, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x6f, 0x72, + 0x54, 0x72, 0x65, 0x65, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x1a, 0x65, 0x0a, + 0x0d, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x54, 0x72, 0x65, 0x65, 0x12, 0x29, + 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, + 0x68, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, + 0x61, 0x74, 0x68, 0x42, 0x79, 0x74, 0x65, 0x73, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, + 0x08, 0x03, 0x10, 0x04, 0x22, 0x85, 0x02, 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, + 0x42, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, + 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3c, + 0x0a, 0x0e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x67, + 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x47, 0x0a, 0x18, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x07, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x22, 0x6f, 0x0a, 0x1f, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x53, + 0x68, 0x61, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x68, 0x61, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, + 0x52, 0x04, 0x73, 0x68, 0x61, 0x73, 0x22, 0x36, 0x0a, 0x20, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x53, 0x68, 0x61, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x68, + 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x68, 0x61, 0x73, 0x22, 0x76, + 0x0a, 0x1d, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x22, 0x5f, 0x0a, 0x1e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, + 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x64, 0x54, 0x65, 0x78, 0x74, 0x22, 0x75, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x73, 0x22, 0x79, + 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, + 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x69, 0x67, 0x6e, + 0x65, 0x64, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x65, 0x78, 0x74, 0x22, 0x73, 0x0a, 0x18, 0x47, 0x65, 0x74, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x73, 0x22, 0x52, + 0x0a, 0x19, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x32, 0xb9, 0x0f, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x5d, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x73, + 0x41, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x12, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x73, 0x41, 0x6e, 0x63, 0x65, 0x73, 0x74, + 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x73, 0x41, 0x6e, 0x63, 0x65, 0x73, + 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x02, 0x12, 0x4a, 0x0a, 0x09, 0x54, 0x72, 0x65, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, + 0x59, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x65, 0x74, 0x77, 0x65, 0x65, + 0x6e, 0x12, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x73, 0x42, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x73, 0x42, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x51, 0x0a, 0x0c, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x1b, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x6c, 0x0a, + 0x15, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x69, 0x76, 0x65, 0x72, 0x67, 0x69, 0x6e, 0x67, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x69, 0x76, 0x65, 0x72, 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x69, 0x76, 0x65, 0x72, + 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x59, 0x0a, 0x0e, 0x47, + 0x65, 0x74, 0x54, 0x72, 0x65, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x1d, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x65, 0x65, 0x45, 0x6e, + 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x65, 0x65, 0x45, 0x6e, 0x74, + 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, + 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x4a, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, + 0x6c, 0x65, 0x73, 0x12, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, + 0x30, 0x01, 0x12, 0x4b, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x12, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, + 0x4e, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x1a, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x74, + 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, + 0x59, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x73, 0x12, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, + 0x6c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x50, 0x0a, 0x0b, 0x46, 0x69, + 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x5a, 0x0a, 0x0f, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x73, 0x12, + 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4c, + 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4c, + 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x47, 0x0a, 0x08, 0x52, 0x61, 0x77, 0x42, + 0x6c, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x61, + 0x77, 0x42, 0x6c, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x61, 0x77, 0x42, 0x6c, 0x61, 0x6d, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, + 0x01, 0x12, 0x60, 0x0a, 0x11, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, + 0x6f, 0x72, 0x50, 0x61, 0x74, 0x68, 0x12, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, 0x61, 0x74, + 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, + 0x61, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x02, 0x12, 0x71, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x72, 0x65, 0x65, 0x12, 0x25, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x46, 0x6f, 0x72, + 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, + 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x5f, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x73, 0x42, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, + 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x5f, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x4f, 0x69, 0x64, 0x12, 0x1f, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, + 0x42, 0x79, 0x4f, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x73, 0x42, 0x79, 0x4f, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, + 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x6b, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x23, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x4e, + 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x79, 0x0a, 0x18, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x53, + 0x68, 0x61, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x73, 0x12, 0x27, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x53, 0x68, 0x61, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x53, 0x68, 0x61, 0x73, 0x57, 0x69, + 0x74, 0x68, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x28, 0x01, 0x30, 0x01, + 0x12, 0x68, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x62, 0x0a, 0x11, 0x47, 0x65, + 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, + 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x42, 0x34, + 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, + 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, + 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_commit_proto_rawDescOnce sync.Once + file_commit_proto_rawDescData = file_commit_proto_rawDesc +) -var _CommitService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.CommitService", - HandlerType: (*CommitServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CommitIsAncestor", - Handler: _CommitService_CommitIsAncestor_Handler, - }, - { - MethodName: "CountCommits", - Handler: _CommitService_CountCommits_Handler, - }, - { - MethodName: "CountDivergingCommits", - Handler: _CommitService_CountDivergingCommits_Handler, - }, - { - MethodName: "FindCommit", - Handler: _CommitService_FindCommit_Handler, - }, - { - MethodName: "CommitStats", - Handler: _CommitService_CommitStats_Handler, - }, - { - MethodName: "CommitLanguages", - Handler: _CommitService_CommitLanguages_Handler, - }, - { - MethodName: "LastCommitForPath", - Handler: _CommitService_LastCommitForPath_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "TreeEntry", - Handler: _CommitService_TreeEntry_Handler, - ServerStreams: true, - }, - { - StreamName: "CommitsBetween", - Handler: _CommitService_CommitsBetween_Handler, - ServerStreams: true, - }, - { - StreamName: "GetTreeEntries", - Handler: _CommitService_GetTreeEntries_Handler, - ServerStreams: true, - }, - { - StreamName: "ListFiles", - Handler: _CommitService_ListFiles_Handler, - ServerStreams: true, - }, - { - StreamName: "FindAllCommits", - Handler: _CommitService_FindAllCommits_Handler, - ServerStreams: true, - }, - { - StreamName: "FindCommits", - Handler: _CommitService_FindCommits_Handler, - ServerStreams: true, - }, - { - StreamName: "RawBlame", - Handler: _CommitService_RawBlame_Handler, - ServerStreams: true, - }, - { - StreamName: "ListLastCommitsForTree", - Handler: _CommitService_ListLastCommitsForTree_Handler, - ServerStreams: true, - }, - { - StreamName: "CommitsByMessage", - Handler: _CommitService_CommitsByMessage_Handler, - ServerStreams: true, - }, - { - StreamName: "ListCommitsByOid", - Handler: _CommitService_ListCommitsByOid_Handler, - ServerStreams: true, - }, - { - StreamName: "ListCommitsByRefName", - Handler: _CommitService_ListCommitsByRefName_Handler, - ServerStreams: true, - }, - { - StreamName: "FilterShasWithSignatures", - Handler: _CommitService_FilterShasWithSignatures_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "GetCommitSignatures", - Handler: _CommitService_GetCommitSignatures_Handler, - ServerStreams: true, - }, - { - StreamName: "GetCommitMessages", - Handler: _CommitService_GetCommitMessages_Handler, - ServerStreams: true, +func file_commit_proto_rawDescGZIP() []byte { + file_commit_proto_rawDescOnce.Do(func() { + file_commit_proto_rawDescData = protoimpl.X.CompressGZIP(file_commit_proto_rawDescData) + }) + return file_commit_proto_rawDescData +} + +var file_commit_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_commit_proto_msgTypes = make([]protoimpl.MessageInfo, 48) +var file_commit_proto_goTypes = []interface{}{ + (TreeEntryResponse_ObjectType)(0), // 0: gitaly.TreeEntryResponse.ObjectType + (TreeEntry_EntryType)(0), // 1: gitaly.TreeEntry.EntryType + (FindAllCommitsRequest_Order)(0), // 2: gitaly.FindAllCommitsRequest.Order + (FindCommitsRequest_Order)(0), // 3: gitaly.FindCommitsRequest.Order + (*CommitStatsRequest)(nil), // 4: gitaly.CommitStatsRequest + (*CommitStatsResponse)(nil), // 5: gitaly.CommitStatsResponse + (*CommitIsAncestorRequest)(nil), // 6: gitaly.CommitIsAncestorRequest + (*CommitIsAncestorResponse)(nil), // 7: gitaly.CommitIsAncestorResponse + (*TreeEntryRequest)(nil), // 8: gitaly.TreeEntryRequest + (*TreeEntryResponse)(nil), // 9: gitaly.TreeEntryResponse + (*CommitsBetweenRequest)(nil), // 10: gitaly.CommitsBetweenRequest + (*CommitsBetweenResponse)(nil), // 11: gitaly.CommitsBetweenResponse + (*CountCommitsRequest)(nil), // 12: gitaly.CountCommitsRequest + (*CountCommitsResponse)(nil), // 13: gitaly.CountCommitsResponse + (*CountDivergingCommitsRequest)(nil), // 14: gitaly.CountDivergingCommitsRequest + (*CountDivergingCommitsResponse)(nil), // 15: gitaly.CountDivergingCommitsResponse + (*TreeEntry)(nil), // 16: gitaly.TreeEntry + (*GetTreeEntriesRequest)(nil), // 17: gitaly.GetTreeEntriesRequest + (*GetTreeEntriesResponse)(nil), // 18: gitaly.GetTreeEntriesResponse + (*ListFilesRequest)(nil), // 19: gitaly.ListFilesRequest + (*ListFilesResponse)(nil), // 20: gitaly.ListFilesResponse + (*FindCommitRequest)(nil), // 21: gitaly.FindCommitRequest + (*FindCommitResponse)(nil), // 22: gitaly.FindCommitResponse + (*ListCommitsByOidRequest)(nil), // 23: gitaly.ListCommitsByOidRequest + (*ListCommitsByOidResponse)(nil), // 24: gitaly.ListCommitsByOidResponse + (*ListCommitsByRefNameRequest)(nil), // 25: gitaly.ListCommitsByRefNameRequest + (*ListCommitsByRefNameResponse)(nil), // 26: gitaly.ListCommitsByRefNameResponse + (*FindAllCommitsRequest)(nil), // 27: gitaly.FindAllCommitsRequest + (*FindAllCommitsResponse)(nil), // 28: gitaly.FindAllCommitsResponse + (*FindCommitsRequest)(nil), // 29: gitaly.FindCommitsRequest + (*FindCommitsResponse)(nil), // 30: gitaly.FindCommitsResponse + (*CommitLanguagesRequest)(nil), // 31: gitaly.CommitLanguagesRequest + (*CommitLanguagesResponse)(nil), // 32: gitaly.CommitLanguagesResponse + (*RawBlameRequest)(nil), // 33: gitaly.RawBlameRequest + (*RawBlameResponse)(nil), // 34: gitaly.RawBlameResponse + (*LastCommitForPathRequest)(nil), // 35: gitaly.LastCommitForPathRequest + (*LastCommitForPathResponse)(nil), // 36: gitaly.LastCommitForPathResponse + (*ListLastCommitsForTreeRequest)(nil), // 37: gitaly.ListLastCommitsForTreeRequest + (*ListLastCommitsForTreeResponse)(nil), // 38: gitaly.ListLastCommitsForTreeResponse + (*CommitsByMessageRequest)(nil), // 39: gitaly.CommitsByMessageRequest + (*CommitsByMessageResponse)(nil), // 40: gitaly.CommitsByMessageResponse + (*FilterShasWithSignaturesRequest)(nil), // 41: gitaly.FilterShasWithSignaturesRequest + (*FilterShasWithSignaturesResponse)(nil), // 42: gitaly.FilterShasWithSignaturesResponse + (*ExtractCommitSignatureRequest)(nil), // 43: gitaly.ExtractCommitSignatureRequest + (*ExtractCommitSignatureResponse)(nil), // 44: gitaly.ExtractCommitSignatureResponse + (*GetCommitSignaturesRequest)(nil), // 45: gitaly.GetCommitSignaturesRequest + (*GetCommitSignaturesResponse)(nil), // 46: gitaly.GetCommitSignaturesResponse + (*GetCommitMessagesRequest)(nil), // 47: gitaly.GetCommitMessagesRequest + (*GetCommitMessagesResponse)(nil), // 48: gitaly.GetCommitMessagesResponse + (*ListCommitsByRefNameResponse_CommitForRef)(nil), // 49: gitaly.ListCommitsByRefNameResponse.CommitForRef + (*CommitLanguagesResponse_Language)(nil), // 50: gitaly.CommitLanguagesResponse.Language + (*ListLastCommitsForTreeResponse_CommitForTree)(nil), // 51: gitaly.ListLastCommitsForTreeResponse.CommitForTree + (*Repository)(nil), // 52: gitaly.Repository + (*PaginationParameter)(nil), // 53: gitaly.PaginationParameter + (*GitCommit)(nil), // 54: gitaly.GitCommit + (*timestamppb.Timestamp)(nil), // 55: google.protobuf.Timestamp + (*GlobalOptions)(nil), // 56: gitaly.GlobalOptions +} +var file_commit_proto_depIdxs = []int32{ + 52, // 0: gitaly.CommitStatsRequest.repository:type_name -> gitaly.Repository + 52, // 1: gitaly.CommitIsAncestorRequest.repository:type_name -> gitaly.Repository + 52, // 2: gitaly.TreeEntryRequest.repository:type_name -> gitaly.Repository + 0, // 3: gitaly.TreeEntryResponse.type:type_name -> gitaly.TreeEntryResponse.ObjectType + 52, // 4: gitaly.CommitsBetweenRequest.repository:type_name -> gitaly.Repository + 53, // 5: gitaly.CommitsBetweenRequest.pagination_params:type_name -> gitaly.PaginationParameter + 54, // 6: gitaly.CommitsBetweenResponse.commits:type_name -> gitaly.GitCommit + 52, // 7: gitaly.CountCommitsRequest.repository:type_name -> gitaly.Repository + 55, // 8: gitaly.CountCommitsRequest.after:type_name -> google.protobuf.Timestamp + 55, // 9: gitaly.CountCommitsRequest.before:type_name -> google.protobuf.Timestamp + 56, // 10: gitaly.CountCommitsRequest.global_options:type_name -> gitaly.GlobalOptions + 52, // 11: gitaly.CountDivergingCommitsRequest.repository:type_name -> gitaly.Repository + 1, // 12: gitaly.TreeEntry.type:type_name -> gitaly.TreeEntry.EntryType + 52, // 13: gitaly.GetTreeEntriesRequest.repository:type_name -> gitaly.Repository + 16, // 14: gitaly.GetTreeEntriesResponse.entries:type_name -> gitaly.TreeEntry + 52, // 15: gitaly.ListFilesRequest.repository:type_name -> gitaly.Repository + 52, // 16: gitaly.FindCommitRequest.repository:type_name -> gitaly.Repository + 54, // 17: gitaly.FindCommitResponse.commit:type_name -> gitaly.GitCommit + 52, // 18: gitaly.ListCommitsByOidRequest.repository:type_name -> gitaly.Repository + 54, // 19: gitaly.ListCommitsByOidResponse.commits:type_name -> gitaly.GitCommit + 52, // 20: gitaly.ListCommitsByRefNameRequest.repository:type_name -> gitaly.Repository + 49, // 21: gitaly.ListCommitsByRefNameResponse.commit_refs:type_name -> gitaly.ListCommitsByRefNameResponse.CommitForRef + 52, // 22: gitaly.FindAllCommitsRequest.repository:type_name -> gitaly.Repository + 2, // 23: gitaly.FindAllCommitsRequest.order:type_name -> gitaly.FindAllCommitsRequest.Order + 54, // 24: gitaly.FindAllCommitsResponse.commits:type_name -> gitaly.GitCommit + 52, // 25: gitaly.FindCommitsRequest.repository:type_name -> gitaly.Repository + 55, // 26: gitaly.FindCommitsRequest.after:type_name -> google.protobuf.Timestamp + 55, // 27: gitaly.FindCommitsRequest.before:type_name -> google.protobuf.Timestamp + 3, // 28: gitaly.FindCommitsRequest.order:type_name -> gitaly.FindCommitsRequest.Order + 56, // 29: gitaly.FindCommitsRequest.global_options:type_name -> gitaly.GlobalOptions + 54, // 30: gitaly.FindCommitsResponse.commits:type_name -> gitaly.GitCommit + 52, // 31: gitaly.CommitLanguagesRequest.repository:type_name -> gitaly.Repository + 50, // 32: gitaly.CommitLanguagesResponse.languages:type_name -> gitaly.CommitLanguagesResponse.Language + 52, // 33: gitaly.RawBlameRequest.repository:type_name -> gitaly.Repository + 52, // 34: gitaly.LastCommitForPathRequest.repository:type_name -> gitaly.Repository + 56, // 35: gitaly.LastCommitForPathRequest.global_options:type_name -> gitaly.GlobalOptions + 54, // 36: gitaly.LastCommitForPathResponse.commit:type_name -> gitaly.GitCommit + 52, // 37: gitaly.ListLastCommitsForTreeRequest.repository:type_name -> gitaly.Repository + 56, // 38: gitaly.ListLastCommitsForTreeRequest.global_options:type_name -> gitaly.GlobalOptions + 51, // 39: gitaly.ListLastCommitsForTreeResponse.commits:type_name -> gitaly.ListLastCommitsForTreeResponse.CommitForTree + 52, // 40: gitaly.CommitsByMessageRequest.repository:type_name -> gitaly.Repository + 56, // 41: gitaly.CommitsByMessageRequest.global_options:type_name -> gitaly.GlobalOptions + 54, // 42: gitaly.CommitsByMessageResponse.commits:type_name -> gitaly.GitCommit + 52, // 43: gitaly.FilterShasWithSignaturesRequest.repository:type_name -> gitaly.Repository + 52, // 44: gitaly.ExtractCommitSignatureRequest.repository:type_name -> gitaly.Repository + 52, // 45: gitaly.GetCommitSignaturesRequest.repository:type_name -> gitaly.Repository + 52, // 46: gitaly.GetCommitMessagesRequest.repository:type_name -> gitaly.Repository + 54, // 47: gitaly.ListCommitsByRefNameResponse.CommitForRef.commit:type_name -> gitaly.GitCommit + 54, // 48: gitaly.ListLastCommitsForTreeResponse.CommitForTree.commit:type_name -> gitaly.GitCommit + 6, // 49: gitaly.CommitService.CommitIsAncestor:input_type -> gitaly.CommitIsAncestorRequest + 8, // 50: gitaly.CommitService.TreeEntry:input_type -> gitaly.TreeEntryRequest + 10, // 51: gitaly.CommitService.CommitsBetween:input_type -> gitaly.CommitsBetweenRequest + 12, // 52: gitaly.CommitService.CountCommits:input_type -> gitaly.CountCommitsRequest + 14, // 53: gitaly.CommitService.CountDivergingCommits:input_type -> gitaly.CountDivergingCommitsRequest + 17, // 54: gitaly.CommitService.GetTreeEntries:input_type -> gitaly.GetTreeEntriesRequest + 19, // 55: gitaly.CommitService.ListFiles:input_type -> gitaly.ListFilesRequest + 21, // 56: gitaly.CommitService.FindCommit:input_type -> gitaly.FindCommitRequest + 4, // 57: gitaly.CommitService.CommitStats:input_type -> gitaly.CommitStatsRequest + 27, // 58: gitaly.CommitService.FindAllCommits:input_type -> gitaly.FindAllCommitsRequest + 29, // 59: gitaly.CommitService.FindCommits:input_type -> gitaly.FindCommitsRequest + 31, // 60: gitaly.CommitService.CommitLanguages:input_type -> gitaly.CommitLanguagesRequest + 33, // 61: gitaly.CommitService.RawBlame:input_type -> gitaly.RawBlameRequest + 35, // 62: gitaly.CommitService.LastCommitForPath:input_type -> gitaly.LastCommitForPathRequest + 37, // 63: gitaly.CommitService.ListLastCommitsForTree:input_type -> gitaly.ListLastCommitsForTreeRequest + 39, // 64: gitaly.CommitService.CommitsByMessage:input_type -> gitaly.CommitsByMessageRequest + 23, // 65: gitaly.CommitService.ListCommitsByOid:input_type -> gitaly.ListCommitsByOidRequest + 25, // 66: gitaly.CommitService.ListCommitsByRefName:input_type -> gitaly.ListCommitsByRefNameRequest + 41, // 67: gitaly.CommitService.FilterShasWithSignatures:input_type -> gitaly.FilterShasWithSignaturesRequest + 45, // 68: gitaly.CommitService.GetCommitSignatures:input_type -> gitaly.GetCommitSignaturesRequest + 47, // 69: gitaly.CommitService.GetCommitMessages:input_type -> gitaly.GetCommitMessagesRequest + 7, // 70: gitaly.CommitService.CommitIsAncestor:output_type -> gitaly.CommitIsAncestorResponse + 9, // 71: gitaly.CommitService.TreeEntry:output_type -> gitaly.TreeEntryResponse + 11, // 72: gitaly.CommitService.CommitsBetween:output_type -> gitaly.CommitsBetweenResponse + 13, // 73: gitaly.CommitService.CountCommits:output_type -> gitaly.CountCommitsResponse + 15, // 74: gitaly.CommitService.CountDivergingCommits:output_type -> gitaly.CountDivergingCommitsResponse + 18, // 75: gitaly.CommitService.GetTreeEntries:output_type -> gitaly.GetTreeEntriesResponse + 20, // 76: gitaly.CommitService.ListFiles:output_type -> gitaly.ListFilesResponse + 22, // 77: gitaly.CommitService.FindCommit:output_type -> gitaly.FindCommitResponse + 5, // 78: gitaly.CommitService.CommitStats:output_type -> gitaly.CommitStatsResponse + 28, // 79: gitaly.CommitService.FindAllCommits:output_type -> gitaly.FindAllCommitsResponse + 30, // 80: gitaly.CommitService.FindCommits:output_type -> gitaly.FindCommitsResponse + 32, // 81: gitaly.CommitService.CommitLanguages:output_type -> gitaly.CommitLanguagesResponse + 34, // 82: gitaly.CommitService.RawBlame:output_type -> gitaly.RawBlameResponse + 36, // 83: gitaly.CommitService.LastCommitForPath:output_type -> gitaly.LastCommitForPathResponse + 38, // 84: gitaly.CommitService.ListLastCommitsForTree:output_type -> gitaly.ListLastCommitsForTreeResponse + 40, // 85: gitaly.CommitService.CommitsByMessage:output_type -> gitaly.CommitsByMessageResponse + 24, // 86: gitaly.CommitService.ListCommitsByOid:output_type -> gitaly.ListCommitsByOidResponse + 26, // 87: gitaly.CommitService.ListCommitsByRefName:output_type -> gitaly.ListCommitsByRefNameResponse + 42, // 88: gitaly.CommitService.FilterShasWithSignatures:output_type -> gitaly.FilterShasWithSignaturesResponse + 46, // 89: gitaly.CommitService.GetCommitSignatures:output_type -> gitaly.GetCommitSignaturesResponse + 48, // 90: gitaly.CommitService.GetCommitMessages:output_type -> gitaly.GetCommitMessagesResponse + 70, // [70:91] is the sub-list for method output_type + 49, // [49:70] is the sub-list for method input_type + 49, // [49:49] is the sub-list for extension type_name + 49, // [49:49] is the sub-list for extension extendee + 0, // [0:49] is the sub-list for field type_name +} + +func init() { file_commit_proto_init() } +func file_commit_proto_init() { + if File_commit_proto != nil { + return + } + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_commit_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitStatsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitStatsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitIsAncestorRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitIsAncestorResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TreeEntryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TreeEntryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitsBetweenRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitsBetweenResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountCommitsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountCommitsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountDivergingCommitsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountDivergingCommitsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TreeEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTreeEntriesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTreeEntriesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListFilesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListFilesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindCommitRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindCommitResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListCommitsByOidRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListCommitsByOidResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListCommitsByRefNameRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListCommitsByRefNameResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllCommitsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllCommitsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindCommitsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindCommitsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitLanguagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitLanguagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RawBlameRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RawBlameResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LastCommitForPathRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LastCommitForPathResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListLastCommitsForTreeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListLastCommitsForTreeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitsByMessageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitsByMessageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FilterShasWithSignaturesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FilterShasWithSignaturesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExtractCommitSignatureRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExtractCommitSignatureResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCommitSignaturesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCommitSignaturesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCommitMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCommitMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListCommitsByRefNameResponse_CommitForRef); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitLanguagesResponse_Language); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_commit_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListLastCommitsForTreeResponse_CommitForTree); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_commit_proto_rawDesc, + NumEnums: 4, + NumMessages: 48, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "commit.proto", + GoTypes: file_commit_proto_goTypes, + DependencyIndexes: file_commit_proto_depIdxs, + EnumInfos: file_commit_proto_enumTypes, + MessageInfos: file_commit_proto_msgTypes, + }.Build() + File_commit_proto = out.File + file_commit_proto_rawDesc = nil + file_commit_proto_goTypes = nil + file_commit_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/commit_grpc.pb.go b/proto/go/gitalypb/commit_grpc.pb.go new file mode 100644 index 000000000..fa9a0bf67 --- /dev/null +++ b/proto/go/gitalypb/commit_grpc.pb.go @@ -0,0 +1,1207 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// CommitServiceClient is the client API for CommitService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type CommitServiceClient interface { + CommitIsAncestor(ctx context.Context, in *CommitIsAncestorRequest, opts ...grpc.CallOption) (*CommitIsAncestorResponse, error) + TreeEntry(ctx context.Context, in *TreeEntryRequest, opts ...grpc.CallOption) (CommitService_TreeEntryClient, error) + CommitsBetween(ctx context.Context, in *CommitsBetweenRequest, opts ...grpc.CallOption) (CommitService_CommitsBetweenClient, error) + CountCommits(ctx context.Context, in *CountCommitsRequest, opts ...grpc.CallOption) (*CountCommitsResponse, error) + CountDivergingCommits(ctx context.Context, in *CountDivergingCommitsRequest, opts ...grpc.CallOption) (*CountDivergingCommitsResponse, error) + GetTreeEntries(ctx context.Context, in *GetTreeEntriesRequest, opts ...grpc.CallOption) (CommitService_GetTreeEntriesClient, error) + ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (CommitService_ListFilesClient, error) + FindCommit(ctx context.Context, in *FindCommitRequest, opts ...grpc.CallOption) (*FindCommitResponse, error) + CommitStats(ctx context.Context, in *CommitStatsRequest, opts ...grpc.CallOption) (*CommitStatsResponse, error) + // Use a stream to paginate the result set + FindAllCommits(ctx context.Context, in *FindAllCommitsRequest, opts ...grpc.CallOption) (CommitService_FindAllCommitsClient, error) + FindCommits(ctx context.Context, in *FindCommitsRequest, opts ...grpc.CallOption) (CommitService_FindCommitsClient, error) + CommitLanguages(ctx context.Context, in *CommitLanguagesRequest, opts ...grpc.CallOption) (*CommitLanguagesResponse, error) + RawBlame(ctx context.Context, in *RawBlameRequest, opts ...grpc.CallOption) (CommitService_RawBlameClient, error) + LastCommitForPath(ctx context.Context, in *LastCommitForPathRequest, opts ...grpc.CallOption) (*LastCommitForPathResponse, error) + ListLastCommitsForTree(ctx context.Context, in *ListLastCommitsForTreeRequest, opts ...grpc.CallOption) (CommitService_ListLastCommitsForTreeClient, error) + CommitsByMessage(ctx context.Context, in *CommitsByMessageRequest, opts ...grpc.CallOption) (CommitService_CommitsByMessageClient, error) + ListCommitsByOid(ctx context.Context, in *ListCommitsByOidRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByOidClient, error) + ListCommitsByRefName(ctx context.Context, in *ListCommitsByRefNameRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByRefNameClient, error) + FilterShasWithSignatures(ctx context.Context, opts ...grpc.CallOption) (CommitService_FilterShasWithSignaturesClient, error) + GetCommitSignatures(ctx context.Context, in *GetCommitSignaturesRequest, opts ...grpc.CallOption) (CommitService_GetCommitSignaturesClient, error) + GetCommitMessages(ctx context.Context, in *GetCommitMessagesRequest, opts ...grpc.CallOption) (CommitService_GetCommitMessagesClient, error) +} + +type commitServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewCommitServiceClient(cc grpc.ClientConnInterface) CommitServiceClient { + return &commitServiceClient{cc} +} + +func (c *commitServiceClient) CommitIsAncestor(ctx context.Context, in *CommitIsAncestorRequest, opts ...grpc.CallOption) (*CommitIsAncestorResponse, error) { + out := new(CommitIsAncestorResponse) + err := c.cc.Invoke(ctx, "/gitaly.CommitService/CommitIsAncestor", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commitServiceClient) TreeEntry(ctx context.Context, in *TreeEntryRequest, opts ...grpc.CallOption) (CommitService_TreeEntryClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[0], "/gitaly.CommitService/TreeEntry", opts...) + if err != nil { + return nil, err + } + x := &commitServiceTreeEntryClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_TreeEntryClient interface { + Recv() (*TreeEntryResponse, error) + grpc.ClientStream +} + +type commitServiceTreeEntryClient struct { + grpc.ClientStream +} + +func (x *commitServiceTreeEntryClient) Recv() (*TreeEntryResponse, error) { + m := new(TreeEntryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) CommitsBetween(ctx context.Context, in *CommitsBetweenRequest, opts ...grpc.CallOption) (CommitService_CommitsBetweenClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[1], "/gitaly.CommitService/CommitsBetween", opts...) + if err != nil { + return nil, err + } + x := &commitServiceCommitsBetweenClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_CommitsBetweenClient interface { + Recv() (*CommitsBetweenResponse, error) + grpc.ClientStream +} + +type commitServiceCommitsBetweenClient struct { + grpc.ClientStream +} + +func (x *commitServiceCommitsBetweenClient) Recv() (*CommitsBetweenResponse, error) { + m := new(CommitsBetweenResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) CountCommits(ctx context.Context, in *CountCommitsRequest, opts ...grpc.CallOption) (*CountCommitsResponse, error) { + out := new(CountCommitsResponse) + err := c.cc.Invoke(ctx, "/gitaly.CommitService/CountCommits", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commitServiceClient) CountDivergingCommits(ctx context.Context, in *CountDivergingCommitsRequest, opts ...grpc.CallOption) (*CountDivergingCommitsResponse, error) { + out := new(CountDivergingCommitsResponse) + err := c.cc.Invoke(ctx, "/gitaly.CommitService/CountDivergingCommits", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commitServiceClient) GetTreeEntries(ctx context.Context, in *GetTreeEntriesRequest, opts ...grpc.CallOption) (CommitService_GetTreeEntriesClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[2], "/gitaly.CommitService/GetTreeEntries", opts...) + if err != nil { + return nil, err + } + x := &commitServiceGetTreeEntriesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_GetTreeEntriesClient interface { + Recv() (*GetTreeEntriesResponse, error) + grpc.ClientStream +} + +type commitServiceGetTreeEntriesClient struct { + grpc.ClientStream +} + +func (x *commitServiceGetTreeEntriesClient) Recv() (*GetTreeEntriesResponse, error) { + m := new(GetTreeEntriesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (CommitService_ListFilesClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[3], "/gitaly.CommitService/ListFiles", opts...) + if err != nil { + return nil, err + } + x := &commitServiceListFilesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_ListFilesClient interface { + Recv() (*ListFilesResponse, error) + grpc.ClientStream +} + +type commitServiceListFilesClient struct { + grpc.ClientStream +} + +func (x *commitServiceListFilesClient) Recv() (*ListFilesResponse, error) { + m := new(ListFilesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) FindCommit(ctx context.Context, in *FindCommitRequest, opts ...grpc.CallOption) (*FindCommitResponse, error) { + out := new(FindCommitResponse) + err := c.cc.Invoke(ctx, "/gitaly.CommitService/FindCommit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commitServiceClient) CommitStats(ctx context.Context, in *CommitStatsRequest, opts ...grpc.CallOption) (*CommitStatsResponse, error) { + out := new(CommitStatsResponse) + err := c.cc.Invoke(ctx, "/gitaly.CommitService/CommitStats", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commitServiceClient) FindAllCommits(ctx context.Context, in *FindAllCommitsRequest, opts ...grpc.CallOption) (CommitService_FindAllCommitsClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[4], "/gitaly.CommitService/FindAllCommits", opts...) + if err != nil { + return nil, err + } + x := &commitServiceFindAllCommitsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_FindAllCommitsClient interface { + Recv() (*FindAllCommitsResponse, error) + grpc.ClientStream +} + +type commitServiceFindAllCommitsClient struct { + grpc.ClientStream +} + +func (x *commitServiceFindAllCommitsClient) Recv() (*FindAllCommitsResponse, error) { + m := new(FindAllCommitsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) FindCommits(ctx context.Context, in *FindCommitsRequest, opts ...grpc.CallOption) (CommitService_FindCommitsClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[5], "/gitaly.CommitService/FindCommits", opts...) + if err != nil { + return nil, err + } + x := &commitServiceFindCommitsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_FindCommitsClient interface { + Recv() (*FindCommitsResponse, error) + grpc.ClientStream +} + +type commitServiceFindCommitsClient struct { + grpc.ClientStream +} + +func (x *commitServiceFindCommitsClient) Recv() (*FindCommitsResponse, error) { + m := new(FindCommitsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) CommitLanguages(ctx context.Context, in *CommitLanguagesRequest, opts ...grpc.CallOption) (*CommitLanguagesResponse, error) { + out := new(CommitLanguagesResponse) + err := c.cc.Invoke(ctx, "/gitaly.CommitService/CommitLanguages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commitServiceClient) RawBlame(ctx context.Context, in *RawBlameRequest, opts ...grpc.CallOption) (CommitService_RawBlameClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[6], "/gitaly.CommitService/RawBlame", opts...) + if err != nil { + return nil, err + } + x := &commitServiceRawBlameClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_RawBlameClient interface { + Recv() (*RawBlameResponse, error) + grpc.ClientStream +} + +type commitServiceRawBlameClient struct { + grpc.ClientStream +} + +func (x *commitServiceRawBlameClient) Recv() (*RawBlameResponse, error) { + m := new(RawBlameResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) LastCommitForPath(ctx context.Context, in *LastCommitForPathRequest, opts ...grpc.CallOption) (*LastCommitForPathResponse, error) { + out := new(LastCommitForPathResponse) + err := c.cc.Invoke(ctx, "/gitaly.CommitService/LastCommitForPath", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commitServiceClient) ListLastCommitsForTree(ctx context.Context, in *ListLastCommitsForTreeRequest, opts ...grpc.CallOption) (CommitService_ListLastCommitsForTreeClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[7], "/gitaly.CommitService/ListLastCommitsForTree", opts...) + if err != nil { + return nil, err + } + x := &commitServiceListLastCommitsForTreeClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_ListLastCommitsForTreeClient interface { + Recv() (*ListLastCommitsForTreeResponse, error) + grpc.ClientStream +} + +type commitServiceListLastCommitsForTreeClient struct { + grpc.ClientStream +} + +func (x *commitServiceListLastCommitsForTreeClient) Recv() (*ListLastCommitsForTreeResponse, error) { + m := new(ListLastCommitsForTreeResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) CommitsByMessage(ctx context.Context, in *CommitsByMessageRequest, opts ...grpc.CallOption) (CommitService_CommitsByMessageClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[8], "/gitaly.CommitService/CommitsByMessage", opts...) + if err != nil { + return nil, err + } + x := &commitServiceCommitsByMessageClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_CommitsByMessageClient interface { + Recv() (*CommitsByMessageResponse, error) + grpc.ClientStream +} + +type commitServiceCommitsByMessageClient struct { + grpc.ClientStream +} + +func (x *commitServiceCommitsByMessageClient) Recv() (*CommitsByMessageResponse, error) { + m := new(CommitsByMessageResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) ListCommitsByOid(ctx context.Context, in *ListCommitsByOidRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByOidClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[9], "/gitaly.CommitService/ListCommitsByOid", opts...) + if err != nil { + return nil, err + } + x := &commitServiceListCommitsByOidClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_ListCommitsByOidClient interface { + Recv() (*ListCommitsByOidResponse, error) + grpc.ClientStream +} + +type commitServiceListCommitsByOidClient struct { + grpc.ClientStream +} + +func (x *commitServiceListCommitsByOidClient) Recv() (*ListCommitsByOidResponse, error) { + m := new(ListCommitsByOidResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) ListCommitsByRefName(ctx context.Context, in *ListCommitsByRefNameRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByRefNameClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[10], "/gitaly.CommitService/ListCommitsByRefName", opts...) + if err != nil { + return nil, err + } + x := &commitServiceListCommitsByRefNameClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_ListCommitsByRefNameClient interface { + Recv() (*ListCommitsByRefNameResponse, error) + grpc.ClientStream +} + +type commitServiceListCommitsByRefNameClient struct { + grpc.ClientStream +} + +func (x *commitServiceListCommitsByRefNameClient) Recv() (*ListCommitsByRefNameResponse, error) { + m := new(ListCommitsByRefNameResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) FilterShasWithSignatures(ctx context.Context, opts ...grpc.CallOption) (CommitService_FilterShasWithSignaturesClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[11], "/gitaly.CommitService/FilterShasWithSignatures", opts...) + if err != nil { + return nil, err + } + x := &commitServiceFilterShasWithSignaturesClient{stream} + return x, nil +} + +type CommitService_FilterShasWithSignaturesClient interface { + Send(*FilterShasWithSignaturesRequest) error + Recv() (*FilterShasWithSignaturesResponse, error) + grpc.ClientStream +} + +type commitServiceFilterShasWithSignaturesClient struct { + grpc.ClientStream +} + +func (x *commitServiceFilterShasWithSignaturesClient) Send(m *FilterShasWithSignaturesRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *commitServiceFilterShasWithSignaturesClient) Recv() (*FilterShasWithSignaturesResponse, error) { + m := new(FilterShasWithSignaturesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) GetCommitSignatures(ctx context.Context, in *GetCommitSignaturesRequest, opts ...grpc.CallOption) (CommitService_GetCommitSignaturesClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[12], "/gitaly.CommitService/GetCommitSignatures", opts...) + if err != nil { + return nil, err + } + x := &commitServiceGetCommitSignaturesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_GetCommitSignaturesClient interface { + Recv() (*GetCommitSignaturesResponse, error) + grpc.ClientStream +} + +type commitServiceGetCommitSignaturesClient struct { + grpc.ClientStream +} + +func (x *commitServiceGetCommitSignaturesClient) Recv() (*GetCommitSignaturesResponse, error) { + m := new(GetCommitSignaturesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) GetCommitMessages(ctx context.Context, in *GetCommitMessagesRequest, opts ...grpc.CallOption) (CommitService_GetCommitMessagesClient, error) { + stream, err := c.cc.NewStream(ctx, &CommitService_ServiceDesc.Streams[13], "/gitaly.CommitService/GetCommitMessages", opts...) + if err != nil { + return nil, err + } + x := &commitServiceGetCommitMessagesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_GetCommitMessagesClient interface { + Recv() (*GetCommitMessagesResponse, error) + grpc.ClientStream +} + +type commitServiceGetCommitMessagesClient struct { + grpc.ClientStream +} + +func (x *commitServiceGetCommitMessagesClient) Recv() (*GetCommitMessagesResponse, error) { + m := new(GetCommitMessagesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// CommitServiceServer is the server API for CommitService service. +// All implementations must embed UnimplementedCommitServiceServer +// for forward compatibility +type CommitServiceServer interface { + CommitIsAncestor(context.Context, *CommitIsAncestorRequest) (*CommitIsAncestorResponse, error) + TreeEntry(*TreeEntryRequest, CommitService_TreeEntryServer) error + CommitsBetween(*CommitsBetweenRequest, CommitService_CommitsBetweenServer) error + CountCommits(context.Context, *CountCommitsRequest) (*CountCommitsResponse, error) + CountDivergingCommits(context.Context, *CountDivergingCommitsRequest) (*CountDivergingCommitsResponse, error) + GetTreeEntries(*GetTreeEntriesRequest, CommitService_GetTreeEntriesServer) error + ListFiles(*ListFilesRequest, CommitService_ListFilesServer) error + FindCommit(context.Context, *FindCommitRequest) (*FindCommitResponse, error) + CommitStats(context.Context, *CommitStatsRequest) (*CommitStatsResponse, error) + // Use a stream to paginate the result set + FindAllCommits(*FindAllCommitsRequest, CommitService_FindAllCommitsServer) error + FindCommits(*FindCommitsRequest, CommitService_FindCommitsServer) error + CommitLanguages(context.Context, *CommitLanguagesRequest) (*CommitLanguagesResponse, error) + RawBlame(*RawBlameRequest, CommitService_RawBlameServer) error + LastCommitForPath(context.Context, *LastCommitForPathRequest) (*LastCommitForPathResponse, error) + ListLastCommitsForTree(*ListLastCommitsForTreeRequest, CommitService_ListLastCommitsForTreeServer) error + CommitsByMessage(*CommitsByMessageRequest, CommitService_CommitsByMessageServer) error + ListCommitsByOid(*ListCommitsByOidRequest, CommitService_ListCommitsByOidServer) error + ListCommitsByRefName(*ListCommitsByRefNameRequest, CommitService_ListCommitsByRefNameServer) error + FilterShasWithSignatures(CommitService_FilterShasWithSignaturesServer) error + GetCommitSignatures(*GetCommitSignaturesRequest, CommitService_GetCommitSignaturesServer) error + GetCommitMessages(*GetCommitMessagesRequest, CommitService_GetCommitMessagesServer) error + mustEmbedUnimplementedCommitServiceServer() +} + +// UnimplementedCommitServiceServer must be embedded to have forward compatible implementations. +type UnimplementedCommitServiceServer struct { +} + +func (UnimplementedCommitServiceServer) CommitIsAncestor(context.Context, *CommitIsAncestorRequest) (*CommitIsAncestorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CommitIsAncestor not implemented") +} +func (UnimplementedCommitServiceServer) TreeEntry(*TreeEntryRequest, CommitService_TreeEntryServer) error { + return status.Errorf(codes.Unimplemented, "method TreeEntry not implemented") +} +func (UnimplementedCommitServiceServer) CommitsBetween(*CommitsBetweenRequest, CommitService_CommitsBetweenServer) error { + return status.Errorf(codes.Unimplemented, "method CommitsBetween not implemented") +} +func (UnimplementedCommitServiceServer) CountCommits(context.Context, *CountCommitsRequest) (*CountCommitsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountCommits not implemented") +} +func (UnimplementedCommitServiceServer) CountDivergingCommits(context.Context, *CountDivergingCommitsRequest) (*CountDivergingCommitsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountDivergingCommits not implemented") +} +func (UnimplementedCommitServiceServer) GetTreeEntries(*GetTreeEntriesRequest, CommitService_GetTreeEntriesServer) error { + return status.Errorf(codes.Unimplemented, "method GetTreeEntries not implemented") +} +func (UnimplementedCommitServiceServer) ListFiles(*ListFilesRequest, CommitService_ListFilesServer) error { + return status.Errorf(codes.Unimplemented, "method ListFiles not implemented") +} +func (UnimplementedCommitServiceServer) FindCommit(context.Context, *FindCommitRequest) (*FindCommitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindCommit not implemented") +} +func (UnimplementedCommitServiceServer) CommitStats(context.Context, *CommitStatsRequest) (*CommitStatsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CommitStats not implemented") +} +func (UnimplementedCommitServiceServer) FindAllCommits(*FindAllCommitsRequest, CommitService_FindAllCommitsServer) error { + return status.Errorf(codes.Unimplemented, "method FindAllCommits not implemented") +} +func (UnimplementedCommitServiceServer) FindCommits(*FindCommitsRequest, CommitService_FindCommitsServer) error { + return status.Errorf(codes.Unimplemented, "method FindCommits not implemented") +} +func (UnimplementedCommitServiceServer) CommitLanguages(context.Context, *CommitLanguagesRequest) (*CommitLanguagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CommitLanguages not implemented") +} +func (UnimplementedCommitServiceServer) RawBlame(*RawBlameRequest, CommitService_RawBlameServer) error { + return status.Errorf(codes.Unimplemented, "method RawBlame not implemented") +} +func (UnimplementedCommitServiceServer) LastCommitForPath(context.Context, *LastCommitForPathRequest) (*LastCommitForPathResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LastCommitForPath not implemented") +} +func (UnimplementedCommitServiceServer) ListLastCommitsForTree(*ListLastCommitsForTreeRequest, CommitService_ListLastCommitsForTreeServer) error { + return status.Errorf(codes.Unimplemented, "method ListLastCommitsForTree not implemented") +} +func (UnimplementedCommitServiceServer) CommitsByMessage(*CommitsByMessageRequest, CommitService_CommitsByMessageServer) error { + return status.Errorf(codes.Unimplemented, "method CommitsByMessage not implemented") +} +func (UnimplementedCommitServiceServer) ListCommitsByOid(*ListCommitsByOidRequest, CommitService_ListCommitsByOidServer) error { + return status.Errorf(codes.Unimplemented, "method ListCommitsByOid not implemented") +} +func (UnimplementedCommitServiceServer) ListCommitsByRefName(*ListCommitsByRefNameRequest, CommitService_ListCommitsByRefNameServer) error { + return status.Errorf(codes.Unimplemented, "method ListCommitsByRefName not implemented") +} +func (UnimplementedCommitServiceServer) FilterShasWithSignatures(CommitService_FilterShasWithSignaturesServer) error { + return status.Errorf(codes.Unimplemented, "method FilterShasWithSignatures not implemented") +} +func (UnimplementedCommitServiceServer) GetCommitSignatures(*GetCommitSignaturesRequest, CommitService_GetCommitSignaturesServer) error { + return status.Errorf(codes.Unimplemented, "method GetCommitSignatures not implemented") +} +func (UnimplementedCommitServiceServer) GetCommitMessages(*GetCommitMessagesRequest, CommitService_GetCommitMessagesServer) error { + return status.Errorf(codes.Unimplemented, "method GetCommitMessages not implemented") +} +func (UnimplementedCommitServiceServer) mustEmbedUnimplementedCommitServiceServer() {} + +// UnsafeCommitServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to CommitServiceServer will +// result in compilation errors. +type UnsafeCommitServiceServer interface { + mustEmbedUnimplementedCommitServiceServer() +} + +func RegisterCommitServiceServer(s grpc.ServiceRegistrar, srv CommitServiceServer) { + s.RegisterService(&CommitService_ServiceDesc, srv) +} + +func _CommitService_CommitIsAncestor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CommitIsAncestorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).CommitIsAncestor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/CommitIsAncestor", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).CommitIsAncestor(ctx, req.(*CommitIsAncestorRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommitService_TreeEntry_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(TreeEntryRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).TreeEntry(m, &commitServiceTreeEntryServer{stream}) +} + +type CommitService_TreeEntryServer interface { + Send(*TreeEntryResponse) error + grpc.ServerStream +} + +type commitServiceTreeEntryServer struct { + grpc.ServerStream +} + +func (x *commitServiceTreeEntryServer) Send(m *TreeEntryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_CommitsBetween_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(CommitsBetweenRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).CommitsBetween(m, &commitServiceCommitsBetweenServer{stream}) +} + +type CommitService_CommitsBetweenServer interface { + Send(*CommitsBetweenResponse) error + grpc.ServerStream +} + +type commitServiceCommitsBetweenServer struct { + grpc.ServerStream +} + +func (x *commitServiceCommitsBetweenServer) Send(m *CommitsBetweenResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_CountCommits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountCommitsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).CountCommits(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/CountCommits", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).CountCommits(ctx, req.(*CountCommitsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommitService_CountDivergingCommits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountDivergingCommitsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).CountDivergingCommits(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/CountDivergingCommits", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).CountDivergingCommits(ctx, req.(*CountDivergingCommitsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommitService_GetTreeEntries_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetTreeEntriesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).GetTreeEntries(m, &commitServiceGetTreeEntriesServer{stream}) +} + +type CommitService_GetTreeEntriesServer interface { + Send(*GetTreeEntriesResponse) error + grpc.ServerStream +} + +type commitServiceGetTreeEntriesServer struct { + grpc.ServerStream +} + +func (x *commitServiceGetTreeEntriesServer) Send(m *GetTreeEntriesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_ListFiles_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListFilesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).ListFiles(m, &commitServiceListFilesServer{stream}) +} + +type CommitService_ListFilesServer interface { + Send(*ListFilesResponse) error + grpc.ServerStream +} + +type commitServiceListFilesServer struct { + grpc.ServerStream +} + +func (x *commitServiceListFilesServer) Send(m *ListFilesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_FindCommit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindCommitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).FindCommit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/FindCommit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).FindCommit(ctx, req.(*FindCommitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommitService_CommitStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CommitStatsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).CommitStats(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/CommitStats", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).CommitStats(ctx, req.(*CommitStatsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommitService_FindAllCommits_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindAllCommitsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).FindAllCommits(m, &commitServiceFindAllCommitsServer{stream}) +} + +type CommitService_FindAllCommitsServer interface { + Send(*FindAllCommitsResponse) error + grpc.ServerStream +} + +type commitServiceFindAllCommitsServer struct { + grpc.ServerStream +} + +func (x *commitServiceFindAllCommitsServer) Send(m *FindAllCommitsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_FindCommits_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindCommitsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).FindCommits(m, &commitServiceFindCommitsServer{stream}) +} + +type CommitService_FindCommitsServer interface { + Send(*FindCommitsResponse) error + grpc.ServerStream +} + +type commitServiceFindCommitsServer struct { + grpc.ServerStream +} + +func (x *commitServiceFindCommitsServer) Send(m *FindCommitsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_CommitLanguages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CommitLanguagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).CommitLanguages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/CommitLanguages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).CommitLanguages(ctx, req.(*CommitLanguagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommitService_RawBlame_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(RawBlameRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).RawBlame(m, &commitServiceRawBlameServer{stream}) +} + +type CommitService_RawBlameServer interface { + Send(*RawBlameResponse) error + grpc.ServerStream +} + +type commitServiceRawBlameServer struct { + grpc.ServerStream +} + +func (x *commitServiceRawBlameServer) Send(m *RawBlameResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_LastCommitForPath_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LastCommitForPathRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).LastCommitForPath(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/LastCommitForPath", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).LastCommitForPath(ctx, req.(*LastCommitForPathRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommitService_ListLastCommitsForTree_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListLastCommitsForTreeRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).ListLastCommitsForTree(m, &commitServiceListLastCommitsForTreeServer{stream}) +} + +type CommitService_ListLastCommitsForTreeServer interface { + Send(*ListLastCommitsForTreeResponse) error + grpc.ServerStream +} + +type commitServiceListLastCommitsForTreeServer struct { + grpc.ServerStream +} + +func (x *commitServiceListLastCommitsForTreeServer) Send(m *ListLastCommitsForTreeResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_CommitsByMessage_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(CommitsByMessageRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).CommitsByMessage(m, &commitServiceCommitsByMessageServer{stream}) +} + +type CommitService_CommitsByMessageServer interface { + Send(*CommitsByMessageResponse) error + grpc.ServerStream +} + +type commitServiceCommitsByMessageServer struct { + grpc.ServerStream +} + +func (x *commitServiceCommitsByMessageServer) Send(m *CommitsByMessageResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_ListCommitsByOid_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListCommitsByOidRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).ListCommitsByOid(m, &commitServiceListCommitsByOidServer{stream}) +} + +type CommitService_ListCommitsByOidServer interface { + Send(*ListCommitsByOidResponse) error + grpc.ServerStream +} + +type commitServiceListCommitsByOidServer struct { + grpc.ServerStream +} + +func (x *commitServiceListCommitsByOidServer) Send(m *ListCommitsByOidResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_ListCommitsByRefName_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListCommitsByRefNameRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).ListCommitsByRefName(m, &commitServiceListCommitsByRefNameServer{stream}) +} + +type CommitService_ListCommitsByRefNameServer interface { + Send(*ListCommitsByRefNameResponse) error + grpc.ServerStream +} + +type commitServiceListCommitsByRefNameServer struct { + grpc.ServerStream +} + +func (x *commitServiceListCommitsByRefNameServer) Send(m *ListCommitsByRefNameResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_FilterShasWithSignatures_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(CommitServiceServer).FilterShasWithSignatures(&commitServiceFilterShasWithSignaturesServer{stream}) +} + +type CommitService_FilterShasWithSignaturesServer interface { + Send(*FilterShasWithSignaturesResponse) error + Recv() (*FilterShasWithSignaturesRequest, error) + grpc.ServerStream +} + +type commitServiceFilterShasWithSignaturesServer struct { + grpc.ServerStream +} + +func (x *commitServiceFilterShasWithSignaturesServer) Send(m *FilterShasWithSignaturesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *commitServiceFilterShasWithSignaturesServer) Recv() (*FilterShasWithSignaturesRequest, error) { + m := new(FilterShasWithSignaturesRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _CommitService_GetCommitSignatures_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetCommitSignaturesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).GetCommitSignatures(m, &commitServiceGetCommitSignaturesServer{stream}) +} + +type CommitService_GetCommitSignaturesServer interface { + Send(*GetCommitSignaturesResponse) error + grpc.ServerStream +} + +type commitServiceGetCommitSignaturesServer struct { + grpc.ServerStream +} + +func (x *commitServiceGetCommitSignaturesServer) Send(m *GetCommitSignaturesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_GetCommitMessages_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetCommitMessagesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).GetCommitMessages(m, &commitServiceGetCommitMessagesServer{stream}) +} + +type CommitService_GetCommitMessagesServer interface { + Send(*GetCommitMessagesResponse) error + grpc.ServerStream +} + +type commitServiceGetCommitMessagesServer struct { + grpc.ServerStream +} + +func (x *commitServiceGetCommitMessagesServer) Send(m *GetCommitMessagesResponse) error { + return x.ServerStream.SendMsg(m) +} + +// CommitService_ServiceDesc is the grpc.ServiceDesc for CommitService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var CommitService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.CommitService", + HandlerType: (*CommitServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CommitIsAncestor", + Handler: _CommitService_CommitIsAncestor_Handler, + }, + { + MethodName: "CountCommits", + Handler: _CommitService_CountCommits_Handler, + }, + { + MethodName: "CountDivergingCommits", + Handler: _CommitService_CountDivergingCommits_Handler, + }, + { + MethodName: "FindCommit", + Handler: _CommitService_FindCommit_Handler, + }, + { + MethodName: "CommitStats", + Handler: _CommitService_CommitStats_Handler, + }, + { + MethodName: "CommitLanguages", + Handler: _CommitService_CommitLanguages_Handler, + }, + { + MethodName: "LastCommitForPath", + Handler: _CommitService_LastCommitForPath_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "TreeEntry", + Handler: _CommitService_TreeEntry_Handler, + ServerStreams: true, + }, + { + StreamName: "CommitsBetween", + Handler: _CommitService_CommitsBetween_Handler, + ServerStreams: true, + }, + { + StreamName: "GetTreeEntries", + Handler: _CommitService_GetTreeEntries_Handler, + ServerStreams: true, + }, + { + StreamName: "ListFiles", + Handler: _CommitService_ListFiles_Handler, + ServerStreams: true, + }, + { + StreamName: "FindAllCommits", + Handler: _CommitService_FindAllCommits_Handler, + ServerStreams: true, + }, + { + StreamName: "FindCommits", + Handler: _CommitService_FindCommits_Handler, + ServerStreams: true, + }, + { + StreamName: "RawBlame", + Handler: _CommitService_RawBlame_Handler, + ServerStreams: true, + }, + { + StreamName: "ListLastCommitsForTree", + Handler: _CommitService_ListLastCommitsForTree_Handler, + ServerStreams: true, + }, + { + StreamName: "CommitsByMessage", + Handler: _CommitService_CommitsByMessage_Handler, + ServerStreams: true, + }, + { + StreamName: "ListCommitsByOid", + Handler: _CommitService_ListCommitsByOid_Handler, + ServerStreams: true, + }, + { + StreamName: "ListCommitsByRefName", + Handler: _CommitService_ListCommitsByRefName_Handler, + ServerStreams: true, + }, + { + StreamName: "FilterShasWithSignatures", + Handler: _CommitService_FilterShasWithSignatures_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "GetCommitSignatures", + Handler: _CommitService_GetCommitSignatures_Handler, + ServerStreams: true, + }, + { + StreamName: "GetCommitMessages", + Handler: _CommitService_GetCommitMessages_Handler, + ServerStreams: true, + }, + }, + Metadata: "commit.proto", +} diff --git a/proto/go/gitalypb/conflicts.pb.go b/proto/go/gitalypb/conflicts.pb.go index 058b8c443..5228f85b9 100644 --- a/proto/go/gitalypb/conflicts.pb.go +++ b/proto/go/gitalypb/conflicts.pb.go @@ -1,207 +1,211 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: conflicts.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ListConflictFilesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - OurCommitOid string `protobuf:"bytes,2,opt,name=our_commit_oid,json=ourCommitOid,proto3" json:"our_commit_oid,omitempty"` - TheirCommitOid string `protobuf:"bytes,3,opt,name=their_commit_oid,json=theirCommitOid,proto3" json:"their_commit_oid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ListConflictFilesRequest) Reset() { *m = ListConflictFilesRequest{} } -func (m *ListConflictFilesRequest) String() string { return proto.CompactTextString(m) } -func (*ListConflictFilesRequest) ProtoMessage() {} -func (*ListConflictFilesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_28fc8937e7d75862, []int{0} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + OurCommitOid string `protobuf:"bytes,2,opt,name=our_commit_oid,json=ourCommitOid,proto3" json:"our_commit_oid,omitempty"` + TheirCommitOid string `protobuf:"bytes,3,opt,name=their_commit_oid,json=theirCommitOid,proto3" json:"their_commit_oid,omitempty"` } -func (m *ListConflictFilesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListConflictFilesRequest.Unmarshal(m, b) -} -func (m *ListConflictFilesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListConflictFilesRequest.Marshal(b, m, deterministic) -} -func (m *ListConflictFilesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListConflictFilesRequest.Merge(m, src) +func (x *ListConflictFilesRequest) Reset() { + *x = ListConflictFilesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_conflicts_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListConflictFilesRequest) XXX_Size() int { - return xxx_messageInfo_ListConflictFilesRequest.Size(m) + +func (x *ListConflictFilesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListConflictFilesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListConflictFilesRequest.DiscardUnknown(m) + +func (*ListConflictFilesRequest) ProtoMessage() {} + +func (x *ListConflictFilesRequest) ProtoReflect() protoreflect.Message { + mi := &file_conflicts_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListConflictFilesRequest proto.InternalMessageInfo +// Deprecated: Use ListConflictFilesRequest.ProtoReflect.Descriptor instead. +func (*ListConflictFilesRequest) Descriptor() ([]byte, []int) { + return file_conflicts_proto_rawDescGZIP(), []int{0} +} -func (m *ListConflictFilesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ListConflictFilesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ListConflictFilesRequest) GetOurCommitOid() string { - if m != nil { - return m.OurCommitOid +func (x *ListConflictFilesRequest) GetOurCommitOid() string { + if x != nil { + return x.OurCommitOid } return "" } -func (m *ListConflictFilesRequest) GetTheirCommitOid() string { - if m != nil { - return m.TheirCommitOid +func (x *ListConflictFilesRequest) GetTheirCommitOid() string { + if x != nil { + return x.TheirCommitOid } return "" } type ConflictFileHeader struct { - CommitOid string `protobuf:"bytes,2,opt,name=commit_oid,json=commitOid,proto3" json:"commit_oid,omitempty"` - TheirPath []byte `protobuf:"bytes,3,opt,name=their_path,json=theirPath,proto3" json:"their_path,omitempty"` - OurPath []byte `protobuf:"bytes,4,opt,name=our_path,json=ourPath,proto3" json:"our_path,omitempty"` - OurMode int32 `protobuf:"varint,5,opt,name=our_mode,json=ourMode,proto3" json:"our_mode,omitempty"` - AncestorPath []byte `protobuf:"bytes,6,opt,name=ancestor_path,json=ancestorPath,proto3" json:"ancestor_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ConflictFileHeader) Reset() { *m = ConflictFileHeader{} } -func (m *ConflictFileHeader) String() string { return proto.CompactTextString(m) } -func (*ConflictFileHeader) ProtoMessage() {} -func (*ConflictFileHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_28fc8937e7d75862, []int{1} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ConflictFileHeader) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConflictFileHeader.Unmarshal(m, b) + CommitOid string `protobuf:"bytes,2,opt,name=commit_oid,json=commitOid,proto3" json:"commit_oid,omitempty"` + TheirPath []byte `protobuf:"bytes,3,opt,name=their_path,json=theirPath,proto3" json:"their_path,omitempty"` + OurPath []byte `protobuf:"bytes,4,opt,name=our_path,json=ourPath,proto3" json:"our_path,omitempty"` + OurMode int32 `protobuf:"varint,5,opt,name=our_mode,json=ourMode,proto3" json:"our_mode,omitempty"` + AncestorPath []byte `protobuf:"bytes,6,opt,name=ancestor_path,json=ancestorPath,proto3" json:"ancestor_path,omitempty"` } -func (m *ConflictFileHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConflictFileHeader.Marshal(b, m, deterministic) -} -func (m *ConflictFileHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConflictFileHeader.Merge(m, src) + +func (x *ConflictFileHeader) Reset() { + *x = ConflictFileHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_conflicts_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ConflictFileHeader) XXX_Size() int { - return xxx_messageInfo_ConflictFileHeader.Size(m) + +func (x *ConflictFileHeader) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConflictFileHeader) XXX_DiscardUnknown() { - xxx_messageInfo_ConflictFileHeader.DiscardUnknown(m) + +func (*ConflictFileHeader) ProtoMessage() {} + +func (x *ConflictFileHeader) ProtoReflect() protoreflect.Message { + mi := &file_conflicts_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ConflictFileHeader proto.InternalMessageInfo +// Deprecated: Use ConflictFileHeader.ProtoReflect.Descriptor instead. +func (*ConflictFileHeader) Descriptor() ([]byte, []int) { + return file_conflicts_proto_rawDescGZIP(), []int{1} +} -func (m *ConflictFileHeader) GetCommitOid() string { - if m != nil { - return m.CommitOid +func (x *ConflictFileHeader) GetCommitOid() string { + if x != nil { + return x.CommitOid } return "" } -func (m *ConflictFileHeader) GetTheirPath() []byte { - if m != nil { - return m.TheirPath +func (x *ConflictFileHeader) GetTheirPath() []byte { + if x != nil { + return x.TheirPath } return nil } -func (m *ConflictFileHeader) GetOurPath() []byte { - if m != nil { - return m.OurPath +func (x *ConflictFileHeader) GetOurPath() []byte { + if x != nil { + return x.OurPath } return nil } -func (m *ConflictFileHeader) GetOurMode() int32 { - if m != nil { - return m.OurMode +func (x *ConflictFileHeader) GetOurMode() int32 { + if x != nil { + return x.OurMode } return 0 } -func (m *ConflictFileHeader) GetAncestorPath() []byte { - if m != nil { - return m.AncestorPath +func (x *ConflictFileHeader) GetAncestorPath() []byte { + if x != nil { + return x.AncestorPath } return nil } type ConflictFile struct { - // Types that are valid to be assigned to ConflictFilePayload: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to ConflictFilePayload: // *ConflictFile_Header // *ConflictFile_Content - ConflictFilePayload isConflictFile_ConflictFilePayload `protobuf_oneof:"conflict_file_payload"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ConflictFilePayload isConflictFile_ConflictFilePayload `protobuf_oneof:"conflict_file_payload"` } -func (m *ConflictFile) Reset() { *m = ConflictFile{} } -func (m *ConflictFile) String() string { return proto.CompactTextString(m) } -func (*ConflictFile) ProtoMessage() {} -func (*ConflictFile) Descriptor() ([]byte, []int) { - return fileDescriptor_28fc8937e7d75862, []int{2} +func (x *ConflictFile) Reset() { + *x = ConflictFile{} + if protoimpl.UnsafeEnabled { + mi := &file_conflicts_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ConflictFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConflictFile.Unmarshal(m, b) -} -func (m *ConflictFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConflictFile.Marshal(b, m, deterministic) -} -func (m *ConflictFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConflictFile.Merge(m, src) +func (x *ConflictFile) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConflictFile) XXX_Size() int { - return xxx_messageInfo_ConflictFile.Size(m) -} -func (m *ConflictFile) XXX_DiscardUnknown() { - xxx_messageInfo_ConflictFile.DiscardUnknown(m) -} - -var xxx_messageInfo_ConflictFile proto.InternalMessageInfo -type isConflictFile_ConflictFilePayload interface { - isConflictFile_ConflictFilePayload() -} +func (*ConflictFile) ProtoMessage() {} -type ConflictFile_Header struct { - Header *ConflictFileHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` +func (x *ConflictFile) ProtoReflect() protoreflect.Message { + mi := &file_conflicts_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type ConflictFile_Content struct { - Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"` +// Deprecated: Use ConflictFile.ProtoReflect.Descriptor instead. +func (*ConflictFile) Descriptor() ([]byte, []int) { + return file_conflicts_proto_rawDescGZIP(), []int{2} } -func (*ConflictFile_Header) isConflictFile_ConflictFilePayload() {} - -func (*ConflictFile_Content) isConflictFile_ConflictFilePayload() {} - func (m *ConflictFile) GetConflictFilePayload() isConflictFile_ConflictFilePayload { if m != nil { return m.ConflictFilePayload @@ -209,63 +213,79 @@ func (m *ConflictFile) GetConflictFilePayload() isConflictFile_ConflictFilePaylo return nil } -func (m *ConflictFile) GetHeader() *ConflictFileHeader { - if x, ok := m.GetConflictFilePayload().(*ConflictFile_Header); ok { +func (x *ConflictFile) GetHeader() *ConflictFileHeader { + if x, ok := x.GetConflictFilePayload().(*ConflictFile_Header); ok { return x.Header } return nil } -func (m *ConflictFile) GetContent() []byte { - if x, ok := m.GetConflictFilePayload().(*ConflictFile_Content); ok { +func (x *ConflictFile) GetContent() []byte { + if x, ok := x.GetConflictFilePayload().(*ConflictFile_Content); ok { return x.Content } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ConflictFile) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ConflictFile_Header)(nil), - (*ConflictFile_Content)(nil), - } +type isConflictFile_ConflictFilePayload interface { + isConflictFile_ConflictFilePayload() } -type ListConflictFilesResponse struct { - Files []*ConflictFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ConflictFile_Header struct { + Header *ConflictFileHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` } -func (m *ListConflictFilesResponse) Reset() { *m = ListConflictFilesResponse{} } -func (m *ListConflictFilesResponse) String() string { return proto.CompactTextString(m) } -func (*ListConflictFilesResponse) ProtoMessage() {} -func (*ListConflictFilesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_28fc8937e7d75862, []int{3} +type ConflictFile_Content struct { + Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"` } -func (m *ListConflictFilesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListConflictFilesResponse.Unmarshal(m, b) -} -func (m *ListConflictFilesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListConflictFilesResponse.Marshal(b, m, deterministic) +func (*ConflictFile_Header) isConflictFile_ConflictFilePayload() {} + +func (*ConflictFile_Content) isConflictFile_ConflictFilePayload() {} + +type ListConflictFilesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Files []*ConflictFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` } -func (m *ListConflictFilesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListConflictFilesResponse.Merge(m, src) + +func (x *ListConflictFilesResponse) Reset() { + *x = ListConflictFilesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_conflicts_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListConflictFilesResponse) XXX_Size() int { - return xxx_messageInfo_ListConflictFilesResponse.Size(m) + +func (x *ListConflictFilesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListConflictFilesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListConflictFilesResponse.DiscardUnknown(m) + +func (*ListConflictFilesResponse) ProtoMessage() {} + +func (x *ListConflictFilesResponse) ProtoReflect() protoreflect.Message { + mi := &file_conflicts_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListConflictFilesResponse proto.InternalMessageInfo +// Deprecated: Use ListConflictFilesResponse.ProtoReflect.Descriptor instead. +func (*ListConflictFilesResponse) Descriptor() ([]byte, []int) { + return file_conflicts_proto_rawDescGZIP(), []int{3} +} -func (m *ListConflictFilesResponse) GetFiles() []*ConflictFile { - if m != nil { - return m.Files +func (x *ListConflictFilesResponse) GetFiles() []*ConflictFile { + if x != nil { + return x.Files } return nil } @@ -273,6 +293,10 @@ func (m *ListConflictFilesResponse) GetFiles() []*ConflictFile { // ResolveConflictsRequestHeader is the first message that must be sent for // each ResolveConflicts call. type ResolveConflictsRequestHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Repository is the repository in which conflicts shall be resolved and // where SourceBranch shall be updated with the resolved conflict. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` @@ -296,155 +320,150 @@ type ResolveConflictsRequestHeader struct { User *User `protobuf:"bytes,8,opt,name=user,proto3" json:"user,omitempty"` // timestamp is the optional timestamp to use for the commit as committer // date. If it's not set, the current time will be used. - Timestamp *timestamp.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (m *ResolveConflictsRequestHeader) Reset() { *m = ResolveConflictsRequestHeader{} } -func (m *ResolveConflictsRequestHeader) String() string { return proto.CompactTextString(m) } -func (*ResolveConflictsRequestHeader) ProtoMessage() {} -func (*ResolveConflictsRequestHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_28fc8937e7d75862, []int{4} +func (x *ResolveConflictsRequestHeader) Reset() { + *x = ResolveConflictsRequestHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_conflicts_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ResolveConflictsRequestHeader) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResolveConflictsRequestHeader.Unmarshal(m, b) -} -func (m *ResolveConflictsRequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResolveConflictsRequestHeader.Marshal(b, m, deterministic) -} -func (m *ResolveConflictsRequestHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResolveConflictsRequestHeader.Merge(m, src) -} -func (m *ResolveConflictsRequestHeader) XXX_Size() int { - return xxx_messageInfo_ResolveConflictsRequestHeader.Size(m) +func (x *ResolveConflictsRequestHeader) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResolveConflictsRequestHeader) XXX_DiscardUnknown() { - xxx_messageInfo_ResolveConflictsRequestHeader.DiscardUnknown(m) + +func (*ResolveConflictsRequestHeader) ProtoMessage() {} + +func (x *ResolveConflictsRequestHeader) ProtoReflect() protoreflect.Message { + mi := &file_conflicts_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResolveConflictsRequestHeader proto.InternalMessageInfo +// Deprecated: Use ResolveConflictsRequestHeader.ProtoReflect.Descriptor instead. +func (*ResolveConflictsRequestHeader) Descriptor() ([]byte, []int) { + return file_conflicts_proto_rawDescGZIP(), []int{4} +} -func (m *ResolveConflictsRequestHeader) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ResolveConflictsRequestHeader) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ResolveConflictsRequestHeader) GetOurCommitOid() string { - if m != nil { - return m.OurCommitOid +func (x *ResolveConflictsRequestHeader) GetOurCommitOid() string { + if x != nil { + return x.OurCommitOid } return "" } -func (m *ResolveConflictsRequestHeader) GetTargetRepository() *Repository { - if m != nil { - return m.TargetRepository +func (x *ResolveConflictsRequestHeader) GetTargetRepository() *Repository { + if x != nil { + return x.TargetRepository } return nil } -func (m *ResolveConflictsRequestHeader) GetTheirCommitOid() string { - if m != nil { - return m.TheirCommitOid +func (x *ResolveConflictsRequestHeader) GetTheirCommitOid() string { + if x != nil { + return x.TheirCommitOid } return "" } -func (m *ResolveConflictsRequestHeader) GetSourceBranch() []byte { - if m != nil { - return m.SourceBranch +func (x *ResolveConflictsRequestHeader) GetSourceBranch() []byte { + if x != nil { + return x.SourceBranch } return nil } -func (m *ResolveConflictsRequestHeader) GetTargetBranch() []byte { - if m != nil { - return m.TargetBranch +func (x *ResolveConflictsRequestHeader) GetTargetBranch() []byte { + if x != nil { + return x.TargetBranch } return nil } -func (m *ResolveConflictsRequestHeader) GetCommitMessage() []byte { - if m != nil { - return m.CommitMessage +func (x *ResolveConflictsRequestHeader) GetCommitMessage() []byte { + if x != nil { + return x.CommitMessage } return nil } -func (m *ResolveConflictsRequestHeader) GetUser() *User { - if m != nil { - return m.User +func (x *ResolveConflictsRequestHeader) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *ResolveConflictsRequestHeader) GetTimestamp() *timestamp.Timestamp { - if m != nil { - return m.Timestamp +func (x *ResolveConflictsRequestHeader) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } return nil } // ResolveConflictsRequest is a request for the ResolveConflicts RPC. type ResolveConflictsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // RequestPayload is the payload part of the request. The first message sent // must always be a ResolveConflictsRequestHeader, whereas all remaining // requests must be FilesJson requests. // - // Types that are valid to be assigned to ResolveConflictsRequestPayload: + // Types that are assignable to ResolveConflictsRequestPayload: // *ResolveConflictsRequest_Header // *ResolveConflictsRequest_FilesJson ResolveConflictsRequestPayload isResolveConflictsRequest_ResolveConflictsRequestPayload `protobuf_oneof:"resolve_conflicts_request_payload"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResolveConflictsRequest) Reset() { *m = ResolveConflictsRequest{} } -func (m *ResolveConflictsRequest) String() string { return proto.CompactTextString(m) } -func (*ResolveConflictsRequest) ProtoMessage() {} -func (*ResolveConflictsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_28fc8937e7d75862, []int{5} } -func (m *ResolveConflictsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResolveConflictsRequest.Unmarshal(m, b) -} -func (m *ResolveConflictsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResolveConflictsRequest.Marshal(b, m, deterministic) -} -func (m *ResolveConflictsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResolveConflictsRequest.Merge(m, src) -} -func (m *ResolveConflictsRequest) XXX_Size() int { - return xxx_messageInfo_ResolveConflictsRequest.Size(m) -} -func (m *ResolveConflictsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResolveConflictsRequest.DiscardUnknown(m) +func (x *ResolveConflictsRequest) Reset() { + *x = ResolveConflictsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_conflicts_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var xxx_messageInfo_ResolveConflictsRequest proto.InternalMessageInfo - -type isResolveConflictsRequest_ResolveConflictsRequestPayload interface { - isResolveConflictsRequest_ResolveConflictsRequestPayload() +func (x *ResolveConflictsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type ResolveConflictsRequest_Header struct { - Header *ResolveConflictsRequestHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` -} +func (*ResolveConflictsRequest) ProtoMessage() {} -type ResolveConflictsRequest_FilesJson struct { - FilesJson []byte `protobuf:"bytes,2,opt,name=files_json,json=filesJson,proto3,oneof"` +func (x *ResolveConflictsRequest) ProtoReflect() protoreflect.Message { + mi := &file_conflicts_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (*ResolveConflictsRequest_Header) isResolveConflictsRequest_ResolveConflictsRequestPayload() {} - -func (*ResolveConflictsRequest_FilesJson) isResolveConflictsRequest_ResolveConflictsRequestPayload() { +// Deprecated: Use ResolveConflictsRequest.ProtoReflect.Descriptor instead. +func (*ResolveConflictsRequest) Descriptor() ([]byte, []int) { + return file_conflicts_proto_rawDescGZIP(), []int{5} } func (m *ResolveConflictsRequest) GetResolveConflictsRequestPayload() isResolveConflictsRequest_ResolveConflictsRequestPayload { @@ -454,312 +473,359 @@ func (m *ResolveConflictsRequest) GetResolveConflictsRequestPayload() isResolveC return nil } -func (m *ResolveConflictsRequest) GetHeader() *ResolveConflictsRequestHeader { - if x, ok := m.GetResolveConflictsRequestPayload().(*ResolveConflictsRequest_Header); ok { +func (x *ResolveConflictsRequest) GetHeader() *ResolveConflictsRequestHeader { + if x, ok := x.GetResolveConflictsRequestPayload().(*ResolveConflictsRequest_Header); ok { return x.Header } return nil } -func (m *ResolveConflictsRequest) GetFilesJson() []byte { - if x, ok := m.GetResolveConflictsRequestPayload().(*ResolveConflictsRequest_FilesJson); ok { +func (x *ResolveConflictsRequest) GetFilesJson() []byte { + if x, ok := x.GetResolveConflictsRequestPayload().(*ResolveConflictsRequest_FilesJson); ok { return x.FilesJson } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ResolveConflictsRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ResolveConflictsRequest_Header)(nil), - (*ResolveConflictsRequest_FilesJson)(nil), - } -} - -// ResolveConflictsResponse is a response of the ResolveConflicts RPC. Conflict -// resolution may have failed even if the RPC has returned OK. The user must -// check ResolutionError to verify whether the merge commit was correctly -// computed or not. -type ResolveConflictsResponse struct { - // ResolutionError contains a description of why conflict resolution has - // failed. - ResolutionError string `protobuf:"bytes,1,opt,name=resolution_error,json=resolutionError,proto3" json:"resolution_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResolveConflictsResponse) Reset() { *m = ResolveConflictsResponse{} } -func (m *ResolveConflictsResponse) String() string { return proto.CompactTextString(m) } -func (*ResolveConflictsResponse) ProtoMessage() {} -func (*ResolveConflictsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_28fc8937e7d75862, []int{6} -} - -func (m *ResolveConflictsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResolveConflictsResponse.Unmarshal(m, b) -} -func (m *ResolveConflictsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResolveConflictsResponse.Marshal(b, m, deterministic) -} -func (m *ResolveConflictsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResolveConflictsResponse.Merge(m, src) -} -func (m *ResolveConflictsResponse) XXX_Size() int { - return xxx_messageInfo_ResolveConflictsResponse.Size(m) -} -func (m *ResolveConflictsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ResolveConflictsResponse.DiscardUnknown(m) +type isResolveConflictsRequest_ResolveConflictsRequestPayload interface { + isResolveConflictsRequest_ResolveConflictsRequestPayload() } -var xxx_messageInfo_ResolveConflictsResponse proto.InternalMessageInfo - -func (m *ResolveConflictsResponse) GetResolutionError() string { - if m != nil { - return m.ResolutionError - } - return "" +type ResolveConflictsRequest_Header struct { + // Header is the initial message specifying parameters of the RPC call. + Header *ResolveConflictsRequestHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` } -func init() { - proto.RegisterType((*ListConflictFilesRequest)(nil), "gitaly.ListConflictFilesRequest") - proto.RegisterType((*ConflictFileHeader)(nil), "gitaly.ConflictFileHeader") - proto.RegisterType((*ConflictFile)(nil), "gitaly.ConflictFile") - proto.RegisterType((*ListConflictFilesResponse)(nil), "gitaly.ListConflictFilesResponse") - proto.RegisterType((*ResolveConflictsRequestHeader)(nil), "gitaly.ResolveConflictsRequestHeader") - proto.RegisterType((*ResolveConflictsRequest)(nil), "gitaly.ResolveConflictsRequest") - proto.RegisterType((*ResolveConflictsResponse)(nil), "gitaly.ResolveConflictsResponse") -} - -func init() { proto.RegisterFile("conflicts.proto", fileDescriptor_28fc8937e7d75862) } - -var fileDescriptor_28fc8937e7d75862 = []byte{ - // 693 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x41, 0x6f, 0xd3, 0x3c, - 0x18, 0x9e, 0xdb, 0xae, 0x6b, 0xdf, 0x65, 0x5b, 0x67, 0x7d, 0x9f, 0x96, 0x55, 0x9a, 0xd6, 0x75, - 0x4c, 0x2a, 0x08, 0x5a, 0x28, 0x3b, 0xec, 0x36, 0xa9, 0xd3, 0x60, 0x9a, 0x98, 0x40, 0x06, 0x2e, - 0x5c, 0xa2, 0x34, 0xf1, 0x52, 0xa3, 0x24, 0x0e, 0xb6, 0x33, 0xa9, 0xbf, 0x04, 0x8e, 0x1c, 0xf8, - 0x07, 0x1c, 0xf8, 0x07, 0xfc, 0x05, 0xfe, 0x0b, 0x27, 0x54, 0x3b, 0x49, 0xbb, 0xb5, 0x1d, 0x27, - 0x6e, 0xc9, 0xf3, 0x3e, 0x7e, 0xde, 0xc7, 0x7e, 0x1f, 0x1b, 0xb6, 0x3c, 0x1e, 0x5f, 0x87, 0xcc, - 0x53, 0xb2, 0x9b, 0x08, 0xae, 0x38, 0xae, 0x06, 0x4c, 0xb9, 0xe1, 0xb8, 0x09, 0x21, 0x8b, 0x95, - 0xc1, 0x9a, 0x96, 0x1c, 0xb9, 0x82, 0xfa, 0xd9, 0xdf, 0x7e, 0xc0, 0x79, 0x10, 0xd2, 0x9e, 0xfe, - 0x1b, 0xa6, 0xd7, 0x3d, 0xc5, 0x22, 0x2a, 0x95, 0x1b, 0x25, 0x86, 0xd0, 0xfe, 0x86, 0xc0, 0x7e, - 0xc5, 0xa4, 0x3a, 0xcb, 0xa4, 0x5f, 0xb0, 0x90, 0x4a, 0x42, 0x3f, 0xa5, 0x54, 0x2a, 0x7c, 0x02, - 0x20, 0x68, 0xc2, 0x25, 0x53, 0x5c, 0x8c, 0x6d, 0xd4, 0x42, 0x9d, 0xf5, 0x3e, 0xee, 0x9a, 0xa6, - 0x5d, 0x52, 0x54, 0x06, 0x95, 0x2f, 0x3f, 0x1f, 0x23, 0x32, 0xc3, 0xc5, 0x0f, 0x60, 0x93, 0xa7, - 0xc2, 0xf1, 0x78, 0x14, 0x31, 0xe5, 0x70, 0xe6, 0xdb, 0xa5, 0x16, 0xea, 0xd4, 0x89, 0xc5, 0x53, - 0x71, 0xa6, 0xc1, 0xd7, 0xcc, 0xc7, 0x1d, 0x68, 0xa8, 0x11, 0x65, 0xb7, 0x78, 0x65, 0xcd, 0xdb, - 0xd4, 0x78, 0xc1, 0x6c, 0x7f, 0x47, 0x80, 0x67, 0x2d, 0x5e, 0x50, 0xd7, 0xa7, 0x02, 0xef, 0x01, - 0xcc, 0xb5, 0xa8, 0x7b, 0x85, 0xfe, 0x1e, 0x80, 0xd1, 0x4f, 0x5c, 0x35, 0xd2, 0xca, 0x16, 0xa9, - 0x6b, 0xe4, 0x8d, 0xab, 0x46, 0x78, 0x17, 0x6a, 0x13, 0x93, 0xba, 0x58, 0xd1, 0xc5, 0x35, 0x9e, - 0xde, 0x2a, 0x45, 0xdc, 0xa7, 0xf6, 0x6a, 0x0b, 0x75, 0x56, 0x75, 0xe9, 0x8a, 0xfb, 0x14, 0x1f, - 0xc2, 0x86, 0x1b, 0x7b, 0x54, 0x2a, 0x9e, 0x2d, 0xad, 0xea, 0xa5, 0x56, 0x0e, 0x4e, 0xd6, 0x5f, - 0x56, 0x6a, 0xa8, 0x51, 0x6a, 0x8f, 0xc1, 0x9a, 0x35, 0x8d, 0x8f, 0xa1, 0x3a, 0xd2, 0xc6, 0xb3, - 0xb3, 0x6c, 0xe6, 0x67, 0x39, 0xbf, 0xb5, 0x8b, 0x15, 0x92, 0x71, 0x71, 0x13, 0xd6, 0x3c, 0x1e, - 0x2b, 0x1a, 0x2b, 0xbd, 0x43, 0xeb, 0x62, 0x85, 0xe4, 0xc0, 0x60, 0x07, 0xfe, 0xcf, 0x43, 0xe1, - 0x5c, 0xb3, 0x90, 0x3a, 0x89, 0x3b, 0x0e, 0xb9, 0xeb, 0xb7, 0x5f, 0xc2, 0xee, 0x82, 0xb1, 0xca, - 0x84, 0xc7, 0x92, 0xe2, 0x47, 0xb0, 0x3a, 0x21, 0x4b, 0x1b, 0xb5, 0xca, 0x9d, 0xf5, 0xfe, 0x7f, - 0x8b, 0x6c, 0x10, 0x43, 0x69, 0xff, 0x28, 0xc3, 0x1e, 0xa1, 0x92, 0x87, 0x37, 0x34, 0x2f, 0xe7, - 0xf9, 0xc8, 0x86, 0xf0, 0xaf, 0x53, 0x72, 0x0a, 0xdb, 0xca, 0x15, 0x01, 0x55, 0xce, 0x4c, 0x9b, - 0xf2, 0xb2, 0x36, 0xa4, 0x61, 0xc8, 0x53, 0x64, 0x61, 0xcc, 0x2a, 0x8b, 0x62, 0x36, 0x99, 0xad, - 0xe4, 0xa9, 0xf0, 0xa8, 0x33, 0x14, 0x6e, 0xec, 0x8d, 0xf4, 0xec, 0x2d, 0x62, 0x19, 0x70, 0xa0, - 0xb1, 0x09, 0x29, 0xf3, 0x93, 0x91, 0xb2, 0x00, 0x18, 0x30, 0x23, 0x1d, 0xc1, 0x66, 0xd6, 0x2d, - 0xa2, 0x52, 0xba, 0x01, 0xb5, 0xd7, 0x34, 0x6b, 0xc3, 0xa0, 0x57, 0x06, 0xc4, 0x2d, 0xa8, 0xa4, - 0x92, 0x0a, 0xbb, 0xa6, 0xb7, 0x63, 0xe5, 0xdb, 0x79, 0x2f, 0xa9, 0x20, 0xba, 0x82, 0x4f, 0xa0, - 0x5e, 0xdc, 0x59, 0xbb, 0x9e, 0xc7, 0x46, 0xdf, 0xea, 0x6e, 0x7e, 0xab, 0xbb, 0xef, 0x72, 0x06, - 0x99, 0x92, 0xdb, 0x5f, 0x11, 0xec, 0x2c, 0x99, 0x1c, 0x3e, 0xbd, 0x93, 0xc4, 0xa3, 0xe9, 0x41, - 0xde, 0x33, 0xea, 0x99, 0x50, 0xee, 0x03, 0xe8, 0x7c, 0x38, 0x1f, 0x25, 0x8f, 0x8b, 0x5c, 0xd6, - 0x35, 0x76, 0x29, 0x79, 0x3c, 0x38, 0x84, 0x03, 0x61, 0xb4, 0x9c, 0xe2, 0xd9, 0x72, 0x84, 0x51, - 0x2b, 0x52, 0x7a, 0x0e, 0xf6, 0x7c, 0xc3, 0x2c, 0xa4, 0x0f, 0xa1, 0xa1, 0x05, 0x52, 0xc5, 0x78, - 0xec, 0x50, 0x21, 0xb8, 0x31, 0x5b, 0x27, 0x5b, 0x53, 0xfc, 0x7c, 0x02, 0xf7, 0x7f, 0x21, 0x68, - 0x14, 0x02, 0x6f, 0xa9, 0xb8, 0x61, 0x1e, 0xc5, 0x43, 0xd8, 0x9e, 0xbb, 0x01, 0xb8, 0x95, 0xef, - 0x73, 0xd9, 0x9b, 0xd7, 0x3c, 0xb8, 0x87, 0x61, 0x9c, 0xb5, 0xab, 0xbf, 0x3f, 0x77, 0x4a, 0xb5, - 0xd2, 0x53, 0x84, 0x1d, 0x68, 0xdc, 0xf5, 0x8f, 0xf7, 0xff, 0x72, 0x94, 0xcd, 0xd6, 0x72, 0xc2, - 0xad, 0x06, 0xa8, 0x83, 0x06, 0xc7, 0x1f, 0xfa, 0x01, 0x53, 0xa1, 0x3b, 0xec, 0x7a, 0x3c, 0xea, - 0x99, 0xcf, 0x27, 0x5c, 0x04, 0x3d, 0x23, 0xd1, 0xbb, 0x79, 0x76, 0x6c, 0xde, 0xf6, 0x5e, 0xc0, - 0x33, 0x2c, 0x19, 0x0e, 0xab, 0x1a, 0x7a, 0xfe, 0x27, 0x00, 0x00, 0xff, 0xff, 0xf8, 0xeb, 0x3e, - 0x5a, 0x31, 0x06, 0x00, 0x00, +type ResolveConflictsRequest_FilesJson struct { + // FilesJson is a JSON-encoded list of conflicts resolutions. + FilesJson []byte `protobuf:"bytes,2,opt,name=files_json,json=filesJson,proto3,oneof"` } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +func (*ResolveConflictsRequest_Header) isResolveConflictsRequest_ResolveConflictsRequestPayload() {} -// ConflictsServiceClient is the client API for ConflictsService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ConflictsServiceClient interface { - ListConflictFiles(ctx context.Context, in *ListConflictFilesRequest, opts ...grpc.CallOption) (ConflictsService_ListConflictFilesClient, error) - // ResolveConflicts tries to resolve a conflicting merge with a set of - // user-provided merge resolutions. If resolving the conflict succeeds, the - // result will be a new merge commit. - ResolveConflicts(ctx context.Context, opts ...grpc.CallOption) (ConflictsService_ResolveConflictsClient, error) +func (*ResolveConflictsRequest_FilesJson) isResolveConflictsRequest_ResolveConflictsRequestPayload() { } -type conflictsServiceClient struct { - cc *grpc.ClientConn -} +// ResolveConflictsResponse is a response of the ResolveConflicts RPC. Conflict +// resolution may have failed even if the RPC has returned OK. The user must +// check ResolutionError to verify whether the merge commit was correctly +// computed or not. +type ResolveConflictsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func NewConflictsServiceClient(cc *grpc.ClientConn) ConflictsServiceClient { - return &conflictsServiceClient{cc} + // ResolutionError contains a description of why conflict resolution has + // failed. + ResolutionError string `protobuf:"bytes,1,opt,name=resolution_error,json=resolutionError,proto3" json:"resolution_error,omitempty"` } -func (c *conflictsServiceClient) ListConflictFiles(ctx context.Context, in *ListConflictFilesRequest, opts ...grpc.CallOption) (ConflictsService_ListConflictFilesClient, error) { - stream, err := c.cc.NewStream(ctx, &_ConflictsService_serviceDesc.Streams[0], "/gitaly.ConflictsService/ListConflictFiles", opts...) - if err != nil { - return nil, err +func (x *ResolveConflictsResponse) Reset() { + *x = ResolveConflictsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_conflicts_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - x := &conflictsServiceListConflictFilesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ConflictsService_ListConflictFilesClient interface { - Recv() (*ListConflictFilesResponse, error) - grpc.ClientStream } -type conflictsServiceListConflictFilesClient struct { - grpc.ClientStream +func (x *ResolveConflictsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *conflictsServiceListConflictFilesClient) Recv() (*ListConflictFilesResponse, error) { - m := new(ListConflictFilesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +func (*ResolveConflictsResponse) ProtoMessage() {} -func (c *conflictsServiceClient) ResolveConflicts(ctx context.Context, opts ...grpc.CallOption) (ConflictsService_ResolveConflictsClient, error) { - stream, err := c.cc.NewStream(ctx, &_ConflictsService_serviceDesc.Streams[1], "/gitaly.ConflictsService/ResolveConflicts", opts...) - if err != nil { - return nil, err +func (x *ResolveConflictsResponse) ProtoReflect() protoreflect.Message { + mi := &file_conflicts_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - x := &conflictsServiceResolveConflictsClient{stream} - return x, nil + return mi.MessageOf(x) } -type ConflictsService_ResolveConflictsClient interface { - Send(*ResolveConflictsRequest) error - CloseAndRecv() (*ResolveConflictsResponse, error) - grpc.ClientStream -} - -type conflictsServiceResolveConflictsClient struct { - grpc.ClientStream -} - -func (x *conflictsServiceResolveConflictsClient) Send(m *ResolveConflictsRequest) error { - return x.ClientStream.SendMsg(m) +// Deprecated: Use ResolveConflictsResponse.ProtoReflect.Descriptor instead. +func (*ResolveConflictsResponse) Descriptor() ([]byte, []int) { + return file_conflicts_proto_rawDescGZIP(), []int{6} } -func (x *conflictsServiceResolveConflictsClient) CloseAndRecv() (*ResolveConflictsResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(ResolveConflictsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *ResolveConflictsResponse) GetResolutionError() string { + if x != nil { + return x.ResolutionError } - return m, nil -} - -// ConflictsServiceServer is the server API for ConflictsService service. -type ConflictsServiceServer interface { - ListConflictFiles(*ListConflictFilesRequest, ConflictsService_ListConflictFilesServer) error - // ResolveConflicts tries to resolve a conflicting merge with a set of - // user-provided merge resolutions. If resolving the conflict succeeds, the - // result will be a new merge commit. - ResolveConflicts(ConflictsService_ResolveConflictsServer) error -} - -// UnimplementedConflictsServiceServer can be embedded to have forward compatible implementations. -type UnimplementedConflictsServiceServer struct { -} - -func (*UnimplementedConflictsServiceServer) ListConflictFiles(req *ListConflictFilesRequest, srv ConflictsService_ListConflictFilesServer) error { - return status.Errorf(codes.Unimplemented, "method ListConflictFiles not implemented") -} -func (*UnimplementedConflictsServiceServer) ResolveConflicts(srv ConflictsService_ResolveConflictsServer) error { - return status.Errorf(codes.Unimplemented, "method ResolveConflicts not implemented") + return "" } -func RegisterConflictsServiceServer(s *grpc.Server, srv ConflictsServiceServer) { - s.RegisterService(&_ConflictsService_serviceDesc, srv) -} +var File_conflicts_proto protoreflect.FileDescriptor + +var file_conflicts_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x06, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa4, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x6c, 0x69, 0x63, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x6f, + 0x75, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4f, 0x69, + 0x64, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x68, 0x65, 0x69, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x5f, 0x6f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x68, 0x65, + 0x69, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4f, 0x69, 0x64, 0x22, 0xb3, 0x01, 0x0a, 0x12, + 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4f, 0x69, + 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x68, 0x65, 0x69, 0x72, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x68, 0x65, 0x69, 0x72, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x75, 0x72, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x6f, 0x75, 0x72, 0x50, 0x61, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x6f, + 0x75, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6f, + 0x75, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x74, + 0x6f, 0x72, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x61, + 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x50, 0x61, 0x74, 0x68, 0x4a, 0x04, 0x08, 0x01, 0x10, + 0x02, 0x22, 0x79, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x46, 0x69, 0x6c, + 0x65, 0x12, 0x34, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, + 0x69, 0x63, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, + 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x42, 0x17, 0x0a, 0x15, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x5f, + 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x47, 0x0a, 0x19, + 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x46, 0x69, 0x6c, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x66, 0x69, 0x6c, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x05, + 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0xb7, 0x03, 0x0a, 0x1d, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, + 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, + 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x6f, 0x75, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, + 0x6f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, 0x72, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x4f, 0x69, 0x64, 0x12, 0x3f, 0x0a, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x68, 0x65, 0x69, + 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x74, 0x68, 0x65, 0x69, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4f, + 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x25, 0x0a, 0x0e, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, + 0xa0, 0x01, 0x0a, 0x17, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x6c, + 0x69, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x66, + 0x6c, 0x69, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0a, + 0x66, 0x69, 0x6c, 0x65, 0x73, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x48, 0x00, 0x52, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x4a, 0x73, 0x6f, 0x6e, 0x42, 0x23, 0x0a, + 0x21, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, + 0x74, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x22, 0x45, 0x0a, 0x18, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, + 0x0a, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x32, 0xd7, 0x01, 0x0a, 0x10, 0x43, 0x6f, + 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x62, + 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x46, 0x69, + 0x6c, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, + 0x30, 0x01, 0x12, 0x5f, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, + 0x01, 0x28, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, + 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_conflicts_proto_rawDescOnce sync.Once + file_conflicts_proto_rawDescData = file_conflicts_proto_rawDesc +) -func _ConflictsService_ListConflictFiles_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListConflictFilesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func file_conflicts_proto_rawDescGZIP() []byte { + file_conflicts_proto_rawDescOnce.Do(func() { + file_conflicts_proto_rawDescData = protoimpl.X.CompressGZIP(file_conflicts_proto_rawDescData) + }) + return file_conflicts_proto_rawDescData +} + +var file_conflicts_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_conflicts_proto_goTypes = []interface{}{ + (*ListConflictFilesRequest)(nil), // 0: gitaly.ListConflictFilesRequest + (*ConflictFileHeader)(nil), // 1: gitaly.ConflictFileHeader + (*ConflictFile)(nil), // 2: gitaly.ConflictFile + (*ListConflictFilesResponse)(nil), // 3: gitaly.ListConflictFilesResponse + (*ResolveConflictsRequestHeader)(nil), // 4: gitaly.ResolveConflictsRequestHeader + (*ResolveConflictsRequest)(nil), // 5: gitaly.ResolveConflictsRequest + (*ResolveConflictsResponse)(nil), // 6: gitaly.ResolveConflictsResponse + (*Repository)(nil), // 7: gitaly.Repository + (*User)(nil), // 8: gitaly.User + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp +} +var file_conflicts_proto_depIdxs = []int32{ + 7, // 0: gitaly.ListConflictFilesRequest.repository:type_name -> gitaly.Repository + 1, // 1: gitaly.ConflictFile.header:type_name -> gitaly.ConflictFileHeader + 2, // 2: gitaly.ListConflictFilesResponse.files:type_name -> gitaly.ConflictFile + 7, // 3: gitaly.ResolveConflictsRequestHeader.repository:type_name -> gitaly.Repository + 7, // 4: gitaly.ResolveConflictsRequestHeader.target_repository:type_name -> gitaly.Repository + 8, // 5: gitaly.ResolveConflictsRequestHeader.user:type_name -> gitaly.User + 9, // 6: gitaly.ResolveConflictsRequestHeader.timestamp:type_name -> google.protobuf.Timestamp + 4, // 7: gitaly.ResolveConflictsRequest.header:type_name -> gitaly.ResolveConflictsRequestHeader + 0, // 8: gitaly.ConflictsService.ListConflictFiles:input_type -> gitaly.ListConflictFilesRequest + 5, // 9: gitaly.ConflictsService.ResolveConflicts:input_type -> gitaly.ResolveConflictsRequest + 3, // 10: gitaly.ConflictsService.ListConflictFiles:output_type -> gitaly.ListConflictFilesResponse + 6, // 11: gitaly.ConflictsService.ResolveConflicts:output_type -> gitaly.ResolveConflictsResponse + 10, // [10:12] is the sub-list for method output_type + 8, // [8:10] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_conflicts_proto_init() } +func file_conflicts_proto_init() { + if File_conflicts_proto != nil { + return + } + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_conflicts_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListConflictFilesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_conflicts_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConflictFileHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_conflicts_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConflictFile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_conflicts_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListConflictFilesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_conflicts_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResolveConflictsRequestHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_conflicts_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResolveConflictsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_conflicts_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResolveConflictsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_conflicts_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*ConflictFile_Header)(nil), + (*ConflictFile_Content)(nil), } - return srv.(ConflictsServiceServer).ListConflictFiles(m, &conflictsServiceListConflictFilesServer{stream}) -} - -type ConflictsService_ListConflictFilesServer interface { - Send(*ListConflictFilesResponse) error - grpc.ServerStream -} - -type conflictsServiceListConflictFilesServer struct { - grpc.ServerStream -} - -func (x *conflictsServiceListConflictFilesServer) Send(m *ListConflictFilesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _ConflictsService_ResolveConflicts_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ConflictsServiceServer).ResolveConflicts(&conflictsServiceResolveConflictsServer{stream}) -} - -type ConflictsService_ResolveConflictsServer interface { - SendAndClose(*ResolveConflictsResponse) error - Recv() (*ResolveConflictsRequest, error) - grpc.ServerStream -} - -type conflictsServiceResolveConflictsServer struct { - grpc.ServerStream -} - -func (x *conflictsServiceResolveConflictsServer) SendAndClose(m *ResolveConflictsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *conflictsServiceResolveConflictsServer) Recv() (*ResolveConflictsRequest, error) { - m := new(ResolveConflictsRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err + file_conflicts_proto_msgTypes[5].OneofWrappers = []interface{}{ + (*ResolveConflictsRequest_Header)(nil), + (*ResolveConflictsRequest_FilesJson)(nil), } - return m, nil -} - -var _ConflictsService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.ConflictsService", - HandlerType: (*ConflictsServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "ListConflictFiles", - Handler: _ConflictsService_ListConflictFiles_Handler, - ServerStreams: true, - }, - { - StreamName: "ResolveConflicts", - Handler: _ConflictsService_ResolveConflicts_Handler, - ClientStreams: true, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_conflicts_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "conflicts.proto", + GoTypes: file_conflicts_proto_goTypes, + DependencyIndexes: file_conflicts_proto_depIdxs, + MessageInfos: file_conflicts_proto_msgTypes, + }.Build() + File_conflicts_proto = out.File + file_conflicts_proto_rawDesc = nil + file_conflicts_proto_goTypes = nil + file_conflicts_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/conflicts_grpc.pb.go b/proto/go/gitalypb/conflicts_grpc.pb.go new file mode 100644 index 000000000..ec73fb129 --- /dev/null +++ b/proto/go/gitalypb/conflicts_grpc.pb.go @@ -0,0 +1,204 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// ConflictsServiceClient is the client API for ConflictsService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ConflictsServiceClient interface { + ListConflictFiles(ctx context.Context, in *ListConflictFilesRequest, opts ...grpc.CallOption) (ConflictsService_ListConflictFilesClient, error) + // ResolveConflicts tries to resolve a conflicting merge with a set of + // user-provided merge resolutions. If resolving the conflict succeeds, the + // result will be a new merge commit. + ResolveConflicts(ctx context.Context, opts ...grpc.CallOption) (ConflictsService_ResolveConflictsClient, error) +} + +type conflictsServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewConflictsServiceClient(cc grpc.ClientConnInterface) ConflictsServiceClient { + return &conflictsServiceClient{cc} +} + +func (c *conflictsServiceClient) ListConflictFiles(ctx context.Context, in *ListConflictFilesRequest, opts ...grpc.CallOption) (ConflictsService_ListConflictFilesClient, error) { + stream, err := c.cc.NewStream(ctx, &ConflictsService_ServiceDesc.Streams[0], "/gitaly.ConflictsService/ListConflictFiles", opts...) + if err != nil { + return nil, err + } + x := &conflictsServiceListConflictFilesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ConflictsService_ListConflictFilesClient interface { + Recv() (*ListConflictFilesResponse, error) + grpc.ClientStream +} + +type conflictsServiceListConflictFilesClient struct { + grpc.ClientStream +} + +func (x *conflictsServiceListConflictFilesClient) Recv() (*ListConflictFilesResponse, error) { + m := new(ListConflictFilesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *conflictsServiceClient) ResolveConflicts(ctx context.Context, opts ...grpc.CallOption) (ConflictsService_ResolveConflictsClient, error) { + stream, err := c.cc.NewStream(ctx, &ConflictsService_ServiceDesc.Streams[1], "/gitaly.ConflictsService/ResolveConflicts", opts...) + if err != nil { + return nil, err + } + x := &conflictsServiceResolveConflictsClient{stream} + return x, nil +} + +type ConflictsService_ResolveConflictsClient interface { + Send(*ResolveConflictsRequest) error + CloseAndRecv() (*ResolveConflictsResponse, error) + grpc.ClientStream +} + +type conflictsServiceResolveConflictsClient struct { + grpc.ClientStream +} + +func (x *conflictsServiceResolveConflictsClient) Send(m *ResolveConflictsRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *conflictsServiceResolveConflictsClient) CloseAndRecv() (*ResolveConflictsResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(ResolveConflictsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// ConflictsServiceServer is the server API for ConflictsService service. +// All implementations must embed UnimplementedConflictsServiceServer +// for forward compatibility +type ConflictsServiceServer interface { + ListConflictFiles(*ListConflictFilesRequest, ConflictsService_ListConflictFilesServer) error + // ResolveConflicts tries to resolve a conflicting merge with a set of + // user-provided merge resolutions. If resolving the conflict succeeds, the + // result will be a new merge commit. + ResolveConflicts(ConflictsService_ResolveConflictsServer) error + mustEmbedUnimplementedConflictsServiceServer() +} + +// UnimplementedConflictsServiceServer must be embedded to have forward compatible implementations. +type UnimplementedConflictsServiceServer struct { +} + +func (UnimplementedConflictsServiceServer) ListConflictFiles(*ListConflictFilesRequest, ConflictsService_ListConflictFilesServer) error { + return status.Errorf(codes.Unimplemented, "method ListConflictFiles not implemented") +} +func (UnimplementedConflictsServiceServer) ResolveConflicts(ConflictsService_ResolveConflictsServer) error { + return status.Errorf(codes.Unimplemented, "method ResolveConflicts not implemented") +} +func (UnimplementedConflictsServiceServer) mustEmbedUnimplementedConflictsServiceServer() {} + +// UnsafeConflictsServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ConflictsServiceServer will +// result in compilation errors. +type UnsafeConflictsServiceServer interface { + mustEmbedUnimplementedConflictsServiceServer() +} + +func RegisterConflictsServiceServer(s grpc.ServiceRegistrar, srv ConflictsServiceServer) { + s.RegisterService(&ConflictsService_ServiceDesc, srv) +} + +func _ConflictsService_ListConflictFiles_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListConflictFilesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ConflictsServiceServer).ListConflictFiles(m, &conflictsServiceListConflictFilesServer{stream}) +} + +type ConflictsService_ListConflictFilesServer interface { + Send(*ListConflictFilesResponse) error + grpc.ServerStream +} + +type conflictsServiceListConflictFilesServer struct { + grpc.ServerStream +} + +func (x *conflictsServiceListConflictFilesServer) Send(m *ListConflictFilesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ConflictsService_ResolveConflicts_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(ConflictsServiceServer).ResolveConflicts(&conflictsServiceResolveConflictsServer{stream}) +} + +type ConflictsService_ResolveConflictsServer interface { + SendAndClose(*ResolveConflictsResponse) error + Recv() (*ResolveConflictsRequest, error) + grpc.ServerStream +} + +type conflictsServiceResolveConflictsServer struct { + grpc.ServerStream +} + +func (x *conflictsServiceResolveConflictsServer) SendAndClose(m *ResolveConflictsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *conflictsServiceResolveConflictsServer) Recv() (*ResolveConflictsRequest, error) { + m := new(ResolveConflictsRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// ConflictsService_ServiceDesc is the grpc.ServiceDesc for ConflictsService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ConflictsService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.ConflictsService", + HandlerType: (*ConflictsServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "ListConflictFiles", + Handler: _ConflictsService_ListConflictFiles_Handler, + ServerStreams: true, + }, + { + StreamName: "ResolveConflicts", + Handler: _ConflictsService_ResolveConflicts_Handler, + ClientStreams: true, + }, + }, + Metadata: "conflicts.proto", +} diff --git a/proto/go/gitalypb/diff.pb.go b/proto/go/gitalypb/diff.pb.go index 639a35eae..2fa9602ad 100644 --- a/proto/go/gitalypb/diff.pb.go +++ b/proto/go/gitalypb/diff.pb.go @@ -1,28 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: diff.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type CommitDiffRequest_DiffMode int32 @@ -33,22 +29,43 @@ const ( CommitDiffRequest_WORDDIFF CommitDiffRequest_DiffMode = 1 ) -var CommitDiffRequest_DiffMode_name = map[int32]string{ - 0: "DEFAULT", - 1: "WORDDIFF", -} +// Enum value maps for CommitDiffRequest_DiffMode. +var ( + CommitDiffRequest_DiffMode_name = map[int32]string{ + 0: "DEFAULT", + 1: "WORDDIFF", + } + CommitDiffRequest_DiffMode_value = map[string]int32{ + "DEFAULT": 0, + "WORDDIFF": 1, + } +) -var CommitDiffRequest_DiffMode_value = map[string]int32{ - "DEFAULT": 0, - "WORDDIFF": 1, +func (x CommitDiffRequest_DiffMode) Enum() *CommitDiffRequest_DiffMode { + p := new(CommitDiffRequest_DiffMode) + *p = x + return p } func (x CommitDiffRequest_DiffMode) String() string { - return proto.EnumName(CommitDiffRequest_DiffMode_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (CommitDiffRequest_DiffMode) Descriptor() protoreflect.EnumDescriptor { + return file_diff_proto_enumTypes[0].Descriptor() +} + +func (CommitDiffRequest_DiffMode) Type() protoreflect.EnumType { + return &file_diff_proto_enumTypes[0] +} + +func (x CommitDiffRequest_DiffMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CommitDiffRequest_DiffMode.Descriptor instead. func (CommitDiffRequest_DiffMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{0, 0} + return file_diff_proto_rawDescGZIP(), []int{0, 0} } type ChangedPaths_Status int32 @@ -61,31 +78,56 @@ const ( ChangedPaths_COPIED ChangedPaths_Status = 4 ) -var ChangedPaths_Status_name = map[int32]string{ - 0: "ADDED", - 1: "MODIFIED", - 2: "DELETED", - 3: "TYPE_CHANGE", - 4: "COPIED", -} +// Enum value maps for ChangedPaths_Status. +var ( + ChangedPaths_Status_name = map[int32]string{ + 0: "ADDED", + 1: "MODIFIED", + 2: "DELETED", + 3: "TYPE_CHANGE", + 4: "COPIED", + } + ChangedPaths_Status_value = map[string]int32{ + "ADDED": 0, + "MODIFIED": 1, + "DELETED": 2, + "TYPE_CHANGE": 3, + "COPIED": 4, + } +) -var ChangedPaths_Status_value = map[string]int32{ - "ADDED": 0, - "MODIFIED": 1, - "DELETED": 2, - "TYPE_CHANGE": 3, - "COPIED": 4, +func (x ChangedPaths_Status) Enum() *ChangedPaths_Status { + p := new(ChangedPaths_Status) + *p = x + return p } func (x ChangedPaths_Status) String() string { - return proto.EnumName(ChangedPaths_Status_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ChangedPaths_Status) Descriptor() protoreflect.EnumDescriptor { + return file_diff_proto_enumTypes[1].Descriptor() } +func (ChangedPaths_Status) Type() protoreflect.EnumType { + return &file_diff_proto_enumTypes[1] +} + +func (x ChangedPaths_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ChangedPaths_Status.Descriptor instead. func (ChangedPaths_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{14, 0} + return file_diff_proto_rawDescGZIP(), []int{14, 0} } type CommitDiffRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` @@ -106,144 +148,152 @@ type CommitDiffRequest struct { SafeMaxLines int32 `protobuf:"varint,12,opt,name=safe_max_lines,json=safeMaxLines,proto3" json:"safe_max_lines,omitempty"` SafeMaxBytes int32 `protobuf:"varint,13,opt,name=safe_max_bytes,json=safeMaxBytes,proto3" json:"safe_max_bytes,omitempty"` // DiffMode is the mode used for generating the diff. Please refer to the enum declaration for supported modes. - DiffMode CommitDiffRequest_DiffMode `protobuf:"varint,15,opt,name=diff_mode,json=diffMode,proto3,enum=gitaly.CommitDiffRequest_DiffMode" json:"diff_mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + DiffMode CommitDiffRequest_DiffMode `protobuf:"varint,15,opt,name=diff_mode,json=diffMode,proto3,enum=gitaly.CommitDiffRequest_DiffMode" json:"diff_mode,omitempty"` } -func (m *CommitDiffRequest) Reset() { *m = CommitDiffRequest{} } -func (m *CommitDiffRequest) String() string { return proto.CompactTextString(m) } -func (*CommitDiffRequest) ProtoMessage() {} -func (*CommitDiffRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{0} +func (x *CommitDiffRequest) Reset() { + *x = CommitDiffRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitDiffRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitDiffRequest.Unmarshal(m, b) -} -func (m *CommitDiffRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitDiffRequest.Marshal(b, m, deterministic) -} -func (m *CommitDiffRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitDiffRequest.Merge(m, src) -} -func (m *CommitDiffRequest) XXX_Size() int { - return xxx_messageInfo_CommitDiffRequest.Size(m) +func (x *CommitDiffRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitDiffRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CommitDiffRequest.DiscardUnknown(m) + +func (*CommitDiffRequest) ProtoMessage() {} + +func (x *CommitDiffRequest) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitDiffRequest proto.InternalMessageInfo +// Deprecated: Use CommitDiffRequest.ProtoReflect.Descriptor instead. +func (*CommitDiffRequest) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{0} +} -func (m *CommitDiffRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CommitDiffRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *CommitDiffRequest) GetLeftCommitId() string { - if m != nil { - return m.LeftCommitId +func (x *CommitDiffRequest) GetLeftCommitId() string { + if x != nil { + return x.LeftCommitId } return "" } -func (m *CommitDiffRequest) GetRightCommitId() string { - if m != nil { - return m.RightCommitId +func (x *CommitDiffRequest) GetRightCommitId() string { + if x != nil { + return x.RightCommitId } return "" } -func (m *CommitDiffRequest) GetIgnoreWhitespaceChange() bool { - if m != nil { - return m.IgnoreWhitespaceChange +func (x *CommitDiffRequest) GetIgnoreWhitespaceChange() bool { + if x != nil { + return x.IgnoreWhitespaceChange } return false } -func (m *CommitDiffRequest) GetPaths() [][]byte { - if m != nil { - return m.Paths +func (x *CommitDiffRequest) GetPaths() [][]byte { + if x != nil { + return x.Paths } return nil } -func (m *CommitDiffRequest) GetCollapseDiffs() bool { - if m != nil { - return m.CollapseDiffs +func (x *CommitDiffRequest) GetCollapseDiffs() bool { + if x != nil { + return x.CollapseDiffs } return false } -func (m *CommitDiffRequest) GetEnforceLimits() bool { - if m != nil { - return m.EnforceLimits +func (x *CommitDiffRequest) GetEnforceLimits() bool { + if x != nil { + return x.EnforceLimits } return false } -func (m *CommitDiffRequest) GetMaxFiles() int32 { - if m != nil { - return m.MaxFiles +func (x *CommitDiffRequest) GetMaxFiles() int32 { + if x != nil { + return x.MaxFiles } return 0 } -func (m *CommitDiffRequest) GetMaxLines() int32 { - if m != nil { - return m.MaxLines +func (x *CommitDiffRequest) GetMaxLines() int32 { + if x != nil { + return x.MaxLines } return 0 } -func (m *CommitDiffRequest) GetMaxBytes() int32 { - if m != nil { - return m.MaxBytes +func (x *CommitDiffRequest) GetMaxBytes() int32 { + if x != nil { + return x.MaxBytes } return 0 } -func (m *CommitDiffRequest) GetMaxPatchBytes() int32 { - if m != nil { - return m.MaxPatchBytes +func (x *CommitDiffRequest) GetMaxPatchBytes() int32 { + if x != nil { + return x.MaxPatchBytes } return 0 } -func (m *CommitDiffRequest) GetSafeMaxFiles() int32 { - if m != nil { - return m.SafeMaxFiles +func (x *CommitDiffRequest) GetSafeMaxFiles() int32 { + if x != nil { + return x.SafeMaxFiles } return 0 } -func (m *CommitDiffRequest) GetSafeMaxLines() int32 { - if m != nil { - return m.SafeMaxLines +func (x *CommitDiffRequest) GetSafeMaxLines() int32 { + if x != nil { + return x.SafeMaxLines } return 0 } -func (m *CommitDiffRequest) GetSafeMaxBytes() int32 { - if m != nil { - return m.SafeMaxBytes +func (x *CommitDiffRequest) GetSafeMaxBytes() int32 { + if x != nil { + return x.SafeMaxBytes } return 0 } -func (m *CommitDiffRequest) GetDiffMode() CommitDiffRequest_DiffMode { - if m != nil { - return m.DiffMode +func (x *CommitDiffRequest) GetDiffMode() CommitDiffRequest_DiffMode { + if x != nil { + return x.DiffMode } return CommitDiffRequest_DEFAULT } // A CommitDiffResponse corresponds to a single changed file in a commit. type CommitDiffResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + FromPath []byte `protobuf:"bytes,1,opt,name=from_path,json=fromPath,proto3" json:"from_path,omitempty"` ToPath []byte `protobuf:"bytes,2,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"` // Blob ID as returned via `git diff --full-index` @@ -262,1305 +312,1367 @@ type CommitDiffResponse struct { Collapsed bool `protobuf:"varint,12,opt,name=collapsed,proto3" json:"collapsed,omitempty"` // Indicates the patch was pruned since it surpassed a hard limit, and can // therefore not be expanded. - TooLarge bool `protobuf:"varint,13,opt,name=too_large,json=tooLarge,proto3" json:"too_large,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TooLarge bool `protobuf:"varint,13,opt,name=too_large,json=tooLarge,proto3" json:"too_large,omitempty"` } -func (m *CommitDiffResponse) Reset() { *m = CommitDiffResponse{} } -func (m *CommitDiffResponse) String() string { return proto.CompactTextString(m) } -func (*CommitDiffResponse) ProtoMessage() {} -func (*CommitDiffResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{1} +func (x *CommitDiffResponse) Reset() { + *x = CommitDiffResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitDiffResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitDiffResponse.Unmarshal(m, b) -} -func (m *CommitDiffResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitDiffResponse.Marshal(b, m, deterministic) +func (x *CommitDiffResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitDiffResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitDiffResponse.Merge(m, src) -} -func (m *CommitDiffResponse) XXX_Size() int { - return xxx_messageInfo_CommitDiffResponse.Size(m) -} -func (m *CommitDiffResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CommitDiffResponse.DiscardUnknown(m) + +func (*CommitDiffResponse) ProtoMessage() {} + +func (x *CommitDiffResponse) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitDiffResponse proto.InternalMessageInfo +// Deprecated: Use CommitDiffResponse.ProtoReflect.Descriptor instead. +func (*CommitDiffResponse) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{1} +} -func (m *CommitDiffResponse) GetFromPath() []byte { - if m != nil { - return m.FromPath +func (x *CommitDiffResponse) GetFromPath() []byte { + if x != nil { + return x.FromPath } return nil } -func (m *CommitDiffResponse) GetToPath() []byte { - if m != nil { - return m.ToPath +func (x *CommitDiffResponse) GetToPath() []byte { + if x != nil { + return x.ToPath } return nil } -func (m *CommitDiffResponse) GetFromId() string { - if m != nil { - return m.FromId +func (x *CommitDiffResponse) GetFromId() string { + if x != nil { + return x.FromId } return "" } -func (m *CommitDiffResponse) GetToId() string { - if m != nil { - return m.ToId +func (x *CommitDiffResponse) GetToId() string { + if x != nil { + return x.ToId } return "" } -func (m *CommitDiffResponse) GetOldMode() int32 { - if m != nil { - return m.OldMode +func (x *CommitDiffResponse) GetOldMode() int32 { + if x != nil { + return x.OldMode } return 0 } -func (m *CommitDiffResponse) GetNewMode() int32 { - if m != nil { - return m.NewMode +func (x *CommitDiffResponse) GetNewMode() int32 { + if x != nil { + return x.NewMode } return 0 } -func (m *CommitDiffResponse) GetBinary() bool { - if m != nil { - return m.Binary +func (x *CommitDiffResponse) GetBinary() bool { + if x != nil { + return x.Binary } return false } -func (m *CommitDiffResponse) GetRawPatchData() []byte { - if m != nil { - return m.RawPatchData +func (x *CommitDiffResponse) GetRawPatchData() []byte { + if x != nil { + return x.RawPatchData } return nil } -func (m *CommitDiffResponse) GetEndOfPatch() bool { - if m != nil { - return m.EndOfPatch +func (x *CommitDiffResponse) GetEndOfPatch() bool { + if x != nil { + return x.EndOfPatch } return false } -func (m *CommitDiffResponse) GetOverflowMarker() bool { - if m != nil { - return m.OverflowMarker +func (x *CommitDiffResponse) GetOverflowMarker() bool { + if x != nil { + return x.OverflowMarker } return false } -func (m *CommitDiffResponse) GetCollapsed() bool { - if m != nil { - return m.Collapsed +func (x *CommitDiffResponse) GetCollapsed() bool { + if x != nil { + return x.Collapsed } return false } -func (m *CommitDiffResponse) GetTooLarge() bool { - if m != nil { - return m.TooLarge +func (x *CommitDiffResponse) GetTooLarge() bool { + if x != nil { + return x.TooLarge } return false } type CommitDeltaRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` - Paths [][]byte `protobuf:"bytes,4,rep,name=paths,proto3" json:"paths,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommitDeltaRequest) Reset() { *m = CommitDeltaRequest{} } -func (m *CommitDeltaRequest) String() string { return proto.CompactTextString(m) } -func (*CommitDeltaRequest) ProtoMessage() {} -func (*CommitDeltaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{2} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CommitDeltaRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitDeltaRequest.Unmarshal(m, b) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` + Paths [][]byte `protobuf:"bytes,4,rep,name=paths,proto3" json:"paths,omitempty"` } -func (m *CommitDeltaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitDeltaRequest.Marshal(b, m, deterministic) -} -func (m *CommitDeltaRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitDeltaRequest.Merge(m, src) + +func (x *CommitDeltaRequest) Reset() { + *x = CommitDeltaRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitDeltaRequest) XXX_Size() int { - return xxx_messageInfo_CommitDeltaRequest.Size(m) + +func (x *CommitDeltaRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitDeltaRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CommitDeltaRequest.DiscardUnknown(m) + +func (*CommitDeltaRequest) ProtoMessage() {} + +func (x *CommitDeltaRequest) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitDeltaRequest proto.InternalMessageInfo +// Deprecated: Use CommitDeltaRequest.ProtoReflect.Descriptor instead. +func (*CommitDeltaRequest) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{2} +} -func (m *CommitDeltaRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CommitDeltaRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *CommitDeltaRequest) GetLeftCommitId() string { - if m != nil { - return m.LeftCommitId +func (x *CommitDeltaRequest) GetLeftCommitId() string { + if x != nil { + return x.LeftCommitId } return "" } -func (m *CommitDeltaRequest) GetRightCommitId() string { - if m != nil { - return m.RightCommitId +func (x *CommitDeltaRequest) GetRightCommitId() string { + if x != nil { + return x.RightCommitId } return "" } -func (m *CommitDeltaRequest) GetPaths() [][]byte { - if m != nil { - return m.Paths +func (x *CommitDeltaRequest) GetPaths() [][]byte { + if x != nil { + return x.Paths } return nil } type CommitDelta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + FromPath []byte `protobuf:"bytes,1,opt,name=from_path,json=fromPath,proto3" json:"from_path,omitempty"` ToPath []byte `protobuf:"bytes,2,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"` // Blob ID as returned via `git diff --full-index` - FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` - ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId,proto3" json:"to_id,omitempty"` - OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode,proto3" json:"old_mode,omitempty"` - NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode,proto3" json:"new_mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommitDelta) Reset() { *m = CommitDelta{} } -func (m *CommitDelta) String() string { return proto.CompactTextString(m) } -func (*CommitDelta) ProtoMessage() {} -func (*CommitDelta) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{3} + FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` + ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId,proto3" json:"to_id,omitempty"` + OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode,proto3" json:"old_mode,omitempty"` + NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode,proto3" json:"new_mode,omitempty"` } -func (m *CommitDelta) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitDelta.Unmarshal(m, b) -} -func (m *CommitDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitDelta.Marshal(b, m, deterministic) -} -func (m *CommitDelta) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitDelta.Merge(m, src) +func (x *CommitDelta) Reset() { + *x = CommitDelta{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitDelta) XXX_Size() int { - return xxx_messageInfo_CommitDelta.Size(m) + +func (x *CommitDelta) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitDelta) XXX_DiscardUnknown() { - xxx_messageInfo_CommitDelta.DiscardUnknown(m) + +func (*CommitDelta) ProtoMessage() {} + +func (x *CommitDelta) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitDelta proto.InternalMessageInfo +// Deprecated: Use CommitDelta.ProtoReflect.Descriptor instead. +func (*CommitDelta) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{3} +} -func (m *CommitDelta) GetFromPath() []byte { - if m != nil { - return m.FromPath +func (x *CommitDelta) GetFromPath() []byte { + if x != nil { + return x.FromPath } return nil } -func (m *CommitDelta) GetToPath() []byte { - if m != nil { - return m.ToPath +func (x *CommitDelta) GetToPath() []byte { + if x != nil { + return x.ToPath } return nil } -func (m *CommitDelta) GetFromId() string { - if m != nil { - return m.FromId +func (x *CommitDelta) GetFromId() string { + if x != nil { + return x.FromId } return "" } -func (m *CommitDelta) GetToId() string { - if m != nil { - return m.ToId +func (x *CommitDelta) GetToId() string { + if x != nil { + return x.ToId } return "" } -func (m *CommitDelta) GetOldMode() int32 { - if m != nil { - return m.OldMode +func (x *CommitDelta) GetOldMode() int32 { + if x != nil { + return x.OldMode } return 0 } -func (m *CommitDelta) GetNewMode() int32 { - if m != nil { - return m.NewMode +func (x *CommitDelta) GetNewMode() int32 { + if x != nil { + return x.NewMode } return 0 } type CommitDeltaResponse struct { - Deltas []*CommitDelta `protobuf:"bytes,1,rep,name=deltas,proto3" json:"deltas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CommitDeltaResponse) Reset() { *m = CommitDeltaResponse{} } -func (m *CommitDeltaResponse) String() string { return proto.CompactTextString(m) } -func (*CommitDeltaResponse) ProtoMessage() {} -func (*CommitDeltaResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{4} -} - -func (m *CommitDeltaResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitDeltaResponse.Unmarshal(m, b) -} -func (m *CommitDeltaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitDeltaResponse.Marshal(b, m, deterministic) -} -func (m *CommitDeltaResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitDeltaResponse.Merge(m, src) -} -func (m *CommitDeltaResponse) XXX_Size() int { - return xxx_messageInfo_CommitDeltaResponse.Size(m) + Deltas []*CommitDelta `protobuf:"bytes,1,rep,name=deltas,proto3" json:"deltas,omitempty"` } -func (m *CommitDeltaResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CommitDeltaResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CommitDeltaResponse proto.InternalMessageInfo -func (m *CommitDeltaResponse) GetDeltas() []*CommitDelta { - if m != nil { - return m.Deltas +func (x *CommitDeltaResponse) Reset() { + *x = CommitDeltaResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type RawDiffRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CommitDeltaResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RawDiffRequest) Reset() { *m = RawDiffRequest{} } -func (m *RawDiffRequest) String() string { return proto.CompactTextString(m) } -func (*RawDiffRequest) ProtoMessage() {} -func (*RawDiffRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{5} -} +func (*CommitDeltaResponse) ProtoMessage() {} -func (m *RawDiffRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RawDiffRequest.Unmarshal(m, b) -} -func (m *RawDiffRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RawDiffRequest.Marshal(b, m, deterministic) -} -func (m *RawDiffRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawDiffRequest.Merge(m, src) -} -func (m *RawDiffRequest) XXX_Size() int { - return xxx_messageInfo_RawDiffRequest.Size(m) -} -func (m *RawDiffRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawDiffRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RawDiffRequest proto.InternalMessageInfo - -func (m *RawDiffRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CommitDeltaResponse) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *RawDiffRequest) GetLeftCommitId() string { - if m != nil { - return m.LeftCommitId - } - return "" +// Deprecated: Use CommitDeltaResponse.ProtoReflect.Descriptor instead. +func (*CommitDeltaResponse) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{4} } -func (m *RawDiffRequest) GetRightCommitId() string { - if m != nil { - return m.RightCommitId +func (x *CommitDeltaResponse) GetDeltas() []*CommitDelta { + if x != nil { + return x.Deltas } - return "" -} - -type RawDiffResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return nil } -func (m *RawDiffResponse) Reset() { *m = RawDiffResponse{} } -func (m *RawDiffResponse) String() string { return proto.CompactTextString(m) } -func (*RawDiffResponse) ProtoMessage() {} -func (*RawDiffResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{6} -} +type RawDiffRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RawDiffResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RawDiffResponse.Unmarshal(m, b) -} -func (m *RawDiffResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RawDiffResponse.Marshal(b, m, deterministic) -} -func (m *RawDiffResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawDiffResponse.Merge(m, src) -} -func (m *RawDiffResponse) XXX_Size() int { - return xxx_messageInfo_RawDiffResponse.Size(m) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` } -func (m *RawDiffResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawDiffResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RawDiffResponse proto.InternalMessageInfo -func (m *RawDiffResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *RawDiffRequest) Reset() { + *x = RawDiffRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type RawPatchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *RawDiffRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RawPatchRequest) Reset() { *m = RawPatchRequest{} } -func (m *RawPatchRequest) String() string { return proto.CompactTextString(m) } -func (*RawPatchRequest) ProtoMessage() {} -func (*RawPatchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{7} -} +func (*RawDiffRequest) ProtoMessage() {} -func (m *RawPatchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RawPatchRequest.Unmarshal(m, b) -} -func (m *RawPatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RawPatchRequest.Marshal(b, m, deterministic) -} -func (m *RawPatchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawPatchRequest.Merge(m, src) -} -func (m *RawPatchRequest) XXX_Size() int { - return xxx_messageInfo_RawPatchRequest.Size(m) -} -func (m *RawPatchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawPatchRequest.DiscardUnknown(m) +func (x *RawDiffRequest) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RawPatchRequest proto.InternalMessageInfo +// Deprecated: Use RawDiffRequest.ProtoReflect.Descriptor instead. +func (*RawDiffRequest) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{5} +} -func (m *RawPatchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *RawDiffRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *RawPatchRequest) GetLeftCommitId() string { - if m != nil { - return m.LeftCommitId +func (x *RawDiffRequest) GetLeftCommitId() string { + if x != nil { + return x.LeftCommitId } return "" } -func (m *RawPatchRequest) GetRightCommitId() string { - if m != nil { - return m.RightCommitId +func (x *RawDiffRequest) GetRightCommitId() string { + if x != nil { + return x.RightCommitId } return "" } -type RawPatchResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawPatchResponse) Reset() { *m = RawPatchResponse{} } -func (m *RawPatchResponse) String() string { return proto.CompactTextString(m) } -func (*RawPatchResponse) ProtoMessage() {} -func (*RawPatchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{8} -} +type RawDiffResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RawPatchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RawPatchResponse.Unmarshal(m, b) -} -func (m *RawPatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RawPatchResponse.Marshal(b, m, deterministic) -} -func (m *RawPatchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawPatchResponse.Merge(m, src) -} -func (m *RawPatchResponse) XXX_Size() int { - return xxx_messageInfo_RawPatchResponse.Size(m) -} -func (m *RawPatchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawPatchResponse.DiscardUnknown(m) + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } -var xxx_messageInfo_RawPatchResponse proto.InternalMessageInfo - -func (m *RawPatchResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *RawDiffResponse) Reset() { + *x = RawDiffResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type DiffStatsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *RawDiffResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DiffStatsRequest) Reset() { *m = DiffStatsRequest{} } -func (m *DiffStatsRequest) String() string { return proto.CompactTextString(m) } -func (*DiffStatsRequest) ProtoMessage() {} -func (*DiffStatsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{9} -} +func (*RawDiffResponse) ProtoMessage() {} -func (m *DiffStatsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DiffStatsRequest.Unmarshal(m, b) -} -func (m *DiffStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DiffStatsRequest.Marshal(b, m, deterministic) -} -func (m *DiffStatsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DiffStatsRequest.Merge(m, src) -} -func (m *DiffStatsRequest) XXX_Size() int { - return xxx_messageInfo_DiffStatsRequest.Size(m) -} -func (m *DiffStatsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DiffStatsRequest.DiscardUnknown(m) +func (x *RawDiffResponse) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DiffStatsRequest proto.InternalMessageInfo +// Deprecated: Use RawDiffResponse.ProtoReflect.Descriptor instead. +func (*RawDiffResponse) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{6} +} -func (m *DiffStatsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *RawDiffResponse) GetData() []byte { + if x != nil { + return x.Data } return nil } -func (m *DiffStatsRequest) GetLeftCommitId() string { - if m != nil { - return m.LeftCommitId - } - return "" +type RawPatchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` } -func (m *DiffStatsRequest) GetRightCommitId() string { - if m != nil { - return m.RightCommitId +func (x *RawPatchRequest) Reset() { + *x = RawPatchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -type DiffStats struct { - Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Additions int32 `protobuf:"varint,2,opt,name=additions,proto3" json:"additions,omitempty"` - Deletions int32 `protobuf:"varint,3,opt,name=deletions,proto3" json:"deletions,omitempty"` - OldPath []byte `protobuf:"bytes,4,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DiffStats) Reset() { *m = DiffStats{} } -func (m *DiffStats) String() string { return proto.CompactTextString(m) } -func (*DiffStats) ProtoMessage() {} -func (*DiffStats) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{10} +func (x *RawPatchRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DiffStats) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DiffStats.Unmarshal(m, b) -} -func (m *DiffStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DiffStats.Marshal(b, m, deterministic) -} -func (m *DiffStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_DiffStats.Merge(m, src) -} -func (m *DiffStats) XXX_Size() int { - return xxx_messageInfo_DiffStats.Size(m) -} -func (m *DiffStats) XXX_DiscardUnknown() { - xxx_messageInfo_DiffStats.DiscardUnknown(m) -} - -var xxx_messageInfo_DiffStats proto.InternalMessageInfo +func (*RawPatchRequest) ProtoMessage() {} -func (m *DiffStats) GetPath() []byte { - if m != nil { - return m.Path +func (x *RawPatchRequest) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *DiffStats) GetAdditions() int32 { - if m != nil { - return m.Additions - } - return 0 +// Deprecated: Use RawPatchRequest.ProtoReflect.Descriptor instead. +func (*RawPatchRequest) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{7} } -func (m *DiffStats) GetDeletions() int32 { - if m != nil { - return m.Deletions +func (x *RawPatchRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return 0 + return nil } -func (m *DiffStats) GetOldPath() []byte { - if m != nil { - return m.OldPath +func (x *RawPatchRequest) GetLeftCommitId() string { + if x != nil { + return x.LeftCommitId } - return nil + return "" } -type DiffStatsResponse struct { - Stats []*DiffStats `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *RawPatchRequest) GetRightCommitId() string { + if x != nil { + return x.RightCommitId + } + return "" } -func (m *DiffStatsResponse) Reset() { *m = DiffStatsResponse{} } -func (m *DiffStatsResponse) String() string { return proto.CompactTextString(m) } -func (*DiffStatsResponse) ProtoMessage() {} -func (*DiffStatsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{11} -} +type RawPatchResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DiffStatsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DiffStatsResponse.Unmarshal(m, b) -} -func (m *DiffStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DiffStatsResponse.Marshal(b, m, deterministic) -} -func (m *DiffStatsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DiffStatsResponse.Merge(m, src) + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } -func (m *DiffStatsResponse) XXX_Size() int { - return xxx_messageInfo_DiffStatsResponse.Size(m) -} -func (m *DiffStatsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DiffStatsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DiffStatsResponse proto.InternalMessageInfo -func (m *DiffStatsResponse) GetStats() []*DiffStats { - if m != nil { - return m.Stats +func (x *RawPatchResponse) Reset() { + *x = RawPatchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// Given a list of commits, return the files changed. Each commit is compared -// to its parent. Merge commits will show files which are different to all of -// its parents. -type FindChangedPathsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Commits []string `protobuf:"bytes,2,rep,name=commits,proto3" json:"commits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *RawPatchResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindChangedPathsRequest) Reset() { *m = FindChangedPathsRequest{} } -func (m *FindChangedPathsRequest) String() string { return proto.CompactTextString(m) } -func (*FindChangedPathsRequest) ProtoMessage() {} -func (*FindChangedPathsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{12} -} +func (*RawPatchResponse) ProtoMessage() {} -func (m *FindChangedPathsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindChangedPathsRequest.Unmarshal(m, b) -} -func (m *FindChangedPathsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindChangedPathsRequest.Marshal(b, m, deterministic) -} -func (m *FindChangedPathsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindChangedPathsRequest.Merge(m, src) -} -func (m *FindChangedPathsRequest) XXX_Size() int { - return xxx_messageInfo_FindChangedPathsRequest.Size(m) -} -func (m *FindChangedPathsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindChangedPathsRequest.DiscardUnknown(m) +func (x *RawPatchResponse) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindChangedPathsRequest proto.InternalMessageInfo - -func (m *FindChangedPathsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil +// Deprecated: Use RawPatchResponse.ProtoReflect.Descriptor instead. +func (*RawPatchResponse) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{8} } -func (m *FindChangedPathsRequest) GetCommits() []string { - if m != nil { - return m.Commits +func (x *RawPatchResponse) GetData() []byte { + if x != nil { + return x.Data } return nil } -// Returns a list of files that have been changed in the commits given -type FindChangedPathsResponse struct { - Paths []*ChangedPaths `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FindChangedPathsResponse) Reset() { *m = FindChangedPathsResponse{} } -func (m *FindChangedPathsResponse) String() string { return proto.CompactTextString(m) } -func (*FindChangedPathsResponse) ProtoMessage() {} -func (*FindChangedPathsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{13} -} +type DiffStatsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindChangedPathsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindChangedPathsResponse.Unmarshal(m, b) -} -func (m *FindChangedPathsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindChangedPathsResponse.Marshal(b, m, deterministic) -} -func (m *FindChangedPathsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindChangedPathsResponse.Merge(m, src) -} -func (m *FindChangedPathsResponse) XXX_Size() int { - return xxx_messageInfo_FindChangedPathsResponse.Size(m) -} -func (m *FindChangedPathsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindChangedPathsResponse.DiscardUnknown(m) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` } -var xxx_messageInfo_FindChangedPathsResponse proto.InternalMessageInfo - -func (m *FindChangedPathsResponse) GetPaths() []*ChangedPaths { - if m != nil { - return m.Paths +func (x *DiffStatsRequest) Reset() { + *x = DiffStatsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// Includes the path of the file, and the status of the change -type ChangedPaths struct { - Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Status ChangedPaths_Status `protobuf:"varint,2,opt,name=status,proto3,enum=gitaly.ChangedPaths_Status" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DiffStatsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ChangedPaths) Reset() { *m = ChangedPaths{} } -func (m *ChangedPaths) String() string { return proto.CompactTextString(m) } -func (*ChangedPaths) ProtoMessage() {} -func (*ChangedPaths) Descriptor() ([]byte, []int) { - return fileDescriptor_686521effc814b25, []int{14} -} +func (*DiffStatsRequest) ProtoMessage() {} -func (m *ChangedPaths) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChangedPaths.Unmarshal(m, b) -} -func (m *ChangedPaths) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChangedPaths.Marshal(b, m, deterministic) -} -func (m *ChangedPaths) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangedPaths.Merge(m, src) -} -func (m *ChangedPaths) XXX_Size() int { - return xxx_messageInfo_ChangedPaths.Size(m) -} -func (m *ChangedPaths) XXX_DiscardUnknown() { - xxx_messageInfo_ChangedPaths.DiscardUnknown(m) +func (x *DiffStatsRequest) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ChangedPaths proto.InternalMessageInfo +// Deprecated: Use DiffStatsRequest.ProtoReflect.Descriptor instead. +func (*DiffStatsRequest) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{9} +} -func (m *ChangedPaths) GetPath() []byte { - if m != nil { - return m.Path +func (x *DiffStatsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ChangedPaths) GetStatus() ChangedPaths_Status { - if m != nil { - return m.Status +func (x *DiffStatsRequest) GetLeftCommitId() string { + if x != nil { + return x.LeftCommitId } - return ChangedPaths_ADDED + return "" } -func init() { - proto.RegisterEnum("gitaly.CommitDiffRequest_DiffMode", CommitDiffRequest_DiffMode_name, CommitDiffRequest_DiffMode_value) - proto.RegisterEnum("gitaly.ChangedPaths_Status", ChangedPaths_Status_name, ChangedPaths_Status_value) - proto.RegisterType((*CommitDiffRequest)(nil), "gitaly.CommitDiffRequest") - proto.RegisterType((*CommitDiffResponse)(nil), "gitaly.CommitDiffResponse") - proto.RegisterType((*CommitDeltaRequest)(nil), "gitaly.CommitDeltaRequest") - proto.RegisterType((*CommitDelta)(nil), "gitaly.CommitDelta") - proto.RegisterType((*CommitDeltaResponse)(nil), "gitaly.CommitDeltaResponse") - proto.RegisterType((*RawDiffRequest)(nil), "gitaly.RawDiffRequest") - proto.RegisterType((*RawDiffResponse)(nil), "gitaly.RawDiffResponse") - proto.RegisterType((*RawPatchRequest)(nil), "gitaly.RawPatchRequest") - proto.RegisterType((*RawPatchResponse)(nil), "gitaly.RawPatchResponse") - proto.RegisterType((*DiffStatsRequest)(nil), "gitaly.DiffStatsRequest") - proto.RegisterType((*DiffStats)(nil), "gitaly.DiffStats") - proto.RegisterType((*DiffStatsResponse)(nil), "gitaly.DiffStatsResponse") - proto.RegisterType((*FindChangedPathsRequest)(nil), "gitaly.FindChangedPathsRequest") - proto.RegisterType((*FindChangedPathsResponse)(nil), "gitaly.FindChangedPathsResponse") - proto.RegisterType((*ChangedPaths)(nil), "gitaly.ChangedPaths") -} - -func init() { proto.RegisterFile("diff.proto", fileDescriptor_686521effc814b25) } - -var fileDescriptor_686521effc814b25 = []byte{ - // 1097 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcd, 0x6e, 0xdb, 0x46, - 0x10, 0x2e, 0xf5, 0x43, 0x51, 0x23, 0x5a, 0x96, 0xd7, 0x81, 0x4d, 0xcb, 0x05, 0x2a, 0x10, 0x71, - 0x22, 0xf4, 0x47, 0x6e, 0x95, 0x1c, 0x72, 0x28, 0x50, 0xd8, 0xa6, 0x94, 0x2a, 0xb5, 0x6b, 0x83, - 0x71, 0x11, 0xb4, 0x17, 0x62, 0x2d, 0x2e, 0x25, 0xa2, 0x24, 0x57, 0x25, 0x37, 0x96, 0xfd, 0x1a, - 0xbd, 0x34, 0xed, 0xb9, 0x40, 0xef, 0x7d, 0x88, 0x3e, 0x4c, 0x9f, 0xa0, 0xe8, 0xa9, 0xd8, 0x5d, - 0x92, 0xa2, 0x2d, 0xb9, 0xa7, 0x1c, 0x74, 0xe3, 0x7e, 0xdf, 0xa7, 0xd9, 0xd9, 0x6f, 0x67, 0x66, - 0x21, 0x00, 0xd7, 0xf7, 0xbc, 0xde, 0x2c, 0xa6, 0x8c, 0x22, 0x75, 0xe2, 0x33, 0x1c, 0xdc, 0xb6, - 0x21, 0xf0, 0x23, 0x26, 0xb1, 0xb6, 0x9e, 0x4c, 0x71, 0x4c, 0x5c, 0xb9, 0x32, 0x7f, 0xae, 0xc2, - 0xd6, 0x09, 0x0d, 0x43, 0x9f, 0x59, 0xbe, 0xe7, 0xd9, 0xe4, 0xa7, 0xb7, 0x24, 0x61, 0xe8, 0x05, - 0x40, 0x4c, 0x66, 0x34, 0xf1, 0x19, 0x8d, 0x6f, 0x0d, 0xa5, 0xa3, 0x74, 0x1b, 0x7d, 0xd4, 0x93, - 0xc1, 0x7a, 0x76, 0xce, 0x1c, 0x57, 0xde, 0xfd, 0xf5, 0xa9, 0x62, 0x17, 0xb4, 0xe8, 0x31, 0x34, - 0x03, 0xe2, 0x31, 0x67, 0x2c, 0x62, 0x3a, 0xbe, 0x6b, 0x94, 0x3a, 0x4a, 0xb7, 0x6e, 0xeb, 0x1c, - 0x95, 0x1b, 0x8d, 0x5c, 0xf4, 0x04, 0x36, 0x63, 0x7f, 0x32, 0x2d, 0xca, 0xca, 0x42, 0xb6, 0x21, - 0xe0, 0x5c, 0xf7, 0x02, 0x0c, 0x7f, 0x12, 0xd1, 0x98, 0x38, 0xf3, 0xa9, 0xcf, 0x48, 0x32, 0xc3, - 0x63, 0xe2, 0x8c, 0xa7, 0x38, 0x9a, 0x10, 0xa3, 0xd2, 0x51, 0xba, 0x9a, 0xbd, 0x23, 0xf9, 0x37, - 0x39, 0x7d, 0x22, 0x58, 0xf4, 0x08, 0xaa, 0x33, 0xcc, 0xa6, 0x89, 0x51, 0xed, 0x94, 0xbb, 0xba, - 0x2d, 0x17, 0xe8, 0x00, 0x9a, 0x63, 0x1a, 0x04, 0x78, 0x96, 0x10, 0x87, 0xdb, 0x94, 0x18, 0xaa, - 0x88, 0xb2, 0x91, 0xa1, 0xdc, 0x04, 0x21, 0x23, 0x91, 0x47, 0xe3, 0x31, 0x71, 0x02, 0x3f, 0xf4, - 0x59, 0x62, 0xd4, 0xa4, 0x2c, 0x45, 0x4f, 0x05, 0x88, 0xf6, 0xa1, 0x1e, 0xe2, 0x1b, 0xc7, 0xf3, - 0x03, 0x92, 0x18, 0x5a, 0x47, 0xe9, 0x56, 0x6d, 0x2d, 0xc4, 0x37, 0x43, 0xbe, 0xce, 0xc8, 0xc0, - 0x8f, 0x48, 0x62, 0xd4, 0x73, 0xf2, 0x94, 0xaf, 0x33, 0xf2, 0xea, 0x96, 0x91, 0xc4, 0x80, 0x9c, - 0x3c, 0xe6, 0x6b, 0x6e, 0x0e, 0x27, 0x67, 0x98, 0x8d, 0xa7, 0xa9, 0xa4, 0x29, 0x24, 0x1b, 0x21, - 0xbe, 0xb9, 0xe0, 0xa8, 0xd4, 0x3d, 0x86, 0x66, 0x82, 0x3d, 0xe2, 0x2c, 0x72, 0x68, 0x08, 0x99, - 0xce, 0xd1, 0xb3, 0x2c, 0x8f, 0xa2, 0x4a, 0x26, 0xa3, 0xdf, 0x51, 0xc9, 0x84, 0x8a, 0x2a, 0xb9, - 0xe5, 0xc6, 0x1d, 0x95, 0xdc, 0xf1, 0x2b, 0xa8, 0x73, 0xd7, 0x9c, 0x90, 0xba, 0xc4, 0xd8, 0xec, - 0x28, 0xdd, 0x66, 0xdf, 0xcc, 0xaa, 0x62, 0xa9, 0x88, 0x7a, 0xfc, 0xfb, 0x8c, 0xba, 0xc4, 0xd6, - 0xdc, 0xf4, 0xcb, 0x3c, 0x00, 0x2d, 0x43, 0x51, 0x03, 0x6a, 0xd6, 0x60, 0x78, 0xf4, 0xdd, 0xe9, - 0x65, 0xeb, 0x03, 0xa4, 0x83, 0xf6, 0xe6, 0xdc, 0xb6, 0xac, 0xd1, 0x70, 0xd8, 0x52, 0xcc, 0x7f, - 0x4a, 0x80, 0x8a, 0xf1, 0x92, 0x19, 0x8d, 0x12, 0xc2, 0x5d, 0xf3, 0x62, 0x1a, 0x72, 0x67, 0xa6, - 0xa2, 0x28, 0x75, 0x5b, 0xe3, 0xc0, 0x05, 0x66, 0x53, 0xb4, 0x0b, 0x35, 0x46, 0x25, 0x55, 0x12, - 0x94, 0xca, 0x68, 0x46, 0x88, 0x5f, 0xe5, 0x35, 0xa6, 0xf2, 0xe5, 0xc8, 0x45, 0xdb, 0x50, 0x65, - 0x94, 0xc3, 0x15, 0x01, 0x57, 0x18, 0x1d, 0xb9, 0x68, 0x0f, 0x34, 0x1a, 0xb8, 0xf2, 0x84, 0x55, - 0x61, 0x41, 0x8d, 0x06, 0xae, 0x48, 0x78, 0x0f, 0xb4, 0x88, 0xcc, 0x25, 0xa5, 0x4a, 0x2a, 0x22, - 0x73, 0x41, 0xed, 0x80, 0x7a, 0xe5, 0x47, 0x38, 0xbe, 0x4d, 0x0b, 0x25, 0x5d, 0x71, 0x5b, 0x63, - 0x3c, 0x4f, 0xaf, 0xd2, 0xc5, 0x0c, 0x8b, 0x4a, 0xd0, 0x6d, 0x3d, 0xc6, 0x73, 0x71, 0x93, 0x16, - 0x66, 0x18, 0x75, 0x40, 0x27, 0x91, 0xeb, 0x50, 0x4f, 0x0a, 0x45, 0x41, 0x68, 0x36, 0x90, 0xc8, - 0x3d, 0xf7, 0x84, 0x0a, 0x3d, 0x85, 0x4d, 0x7a, 0x4d, 0x62, 0x2f, 0xa0, 0x73, 0x27, 0xc4, 0xf1, - 0x8f, 0x24, 0x16, 0x77, 0xad, 0xd9, 0xcd, 0x0c, 0x3e, 0x13, 0x28, 0xfa, 0x10, 0xea, 0x59, 0x29, - 0xbb, 0xe2, 0xa2, 0x35, 0x7b, 0x01, 0x70, 0x03, 0x19, 0xa5, 0x4e, 0x80, 0xe3, 0x09, 0x11, 0x17, - 0xac, 0xd9, 0x1a, 0xa3, 0xf4, 0x94, 0xaf, 0x5f, 0x55, 0x34, 0xad, 0x55, 0x37, 0xff, 0x54, 0x72, - 0xeb, 0x49, 0xc0, 0xf0, 0xba, 0x0d, 0x84, 0xbc, 0xad, 0x2b, 0x85, 0xb6, 0x36, 0xff, 0x50, 0xa0, - 0x51, 0x48, 0x7a, 0x7d, 0x0b, 0xc5, 0x3c, 0x86, 0xed, 0x3b, 0xee, 0xa6, 0x95, 0xfd, 0x09, 0xa8, - 0x2e, 0x07, 0x12, 0x43, 0xe9, 0x94, 0xbb, 0x8d, 0xfe, 0xf6, 0xbd, 0xae, 0x12, 0xe2, 0x54, 0x62, - 0xbe, 0x53, 0xa0, 0x69, 0xe3, 0xf9, 0x1a, 0xce, 0x6b, 0xf3, 0x00, 0x36, 0xf3, 0xcc, 0xd2, 0xa3, - 0x21, 0xa8, 0x88, 0xc2, 0x97, 0xd7, 0x20, 0xbe, 0xcd, 0x5f, 0x15, 0xa1, 0x13, 0xb5, 0xbd, 0x6e, - 0x47, 0x78, 0x02, 0xad, 0x45, 0x6a, 0xff, 0x73, 0x86, 0xdf, 0x14, 0x68, 0xf1, 0x83, 0xbe, 0x66, - 0x98, 0x25, 0xeb, 0x76, 0x88, 0x6b, 0xa8, 0xe7, 0xb9, 0xf1, 0xec, 0x0b, 0x8d, 0x20, 0xbe, 0xf9, - 0x9c, 0xc0, 0xae, 0xeb, 0x33, 0x9f, 0x46, 0x89, 0xd8, 0xa9, 0x6a, 0x2f, 0x00, 0xce, 0xba, 0x24, - 0x20, 0x92, 0x2d, 0x4b, 0x36, 0x07, 0xb2, 0xca, 0x17, 0x31, 0x2b, 0x22, 0x26, 0xaf, 0x7c, 0xde, - 0x42, 0xe6, 0x97, 0xb0, 0x55, 0xf0, 0x24, 0x75, 0xef, 0x29, 0x54, 0x13, 0x0e, 0xa4, 0xb5, 0xbd, - 0x95, 0xf9, 0xb1, 0x50, 0x4a, 0xde, 0x0c, 0x61, 0x77, 0xe8, 0x47, 0xae, 0x7c, 0xc1, 0x45, 0xc0, - 0xf7, 0x60, 0xac, 0x01, 0x35, 0x69, 0x16, 0x3f, 0x67, 0xb9, 0x5b, 0xb7, 0xb3, 0xa5, 0x39, 0x04, - 0x63, 0x79, 0xbb, 0x34, 0xe7, 0x8f, 0xb3, 0x39, 0x23, 0x73, 0x7e, 0x94, 0xf7, 0x63, 0x51, 0x9c, - 0x4e, 0x9f, 0xdf, 0x15, 0xd0, 0x8b, 0xf8, 0x4a, 0xc3, 0x9f, 0x81, 0xca, 0x0f, 0xf9, 0x56, 0xba, - 0xdd, 0xec, 0xef, 0xaf, 0x8a, 0xd8, 0x7b, 0x2d, 0x24, 0x76, 0x2a, 0x35, 0xbf, 0x01, 0x55, 0x22, - 0xa8, 0x0e, 0xd5, 0x23, 0xcb, 0x1a, 0x58, 0xf2, 0xa9, 0x3c, 0x3b, 0xb7, 0x46, 0xc3, 0xd1, 0xc0, - 0x6a, 0x29, 0xf2, 0x15, 0x3d, 0x1d, 0x5c, 0x0e, 0xac, 0x56, 0x09, 0x6d, 0x42, 0xe3, 0xf2, 0xfb, - 0x8b, 0x81, 0x73, 0xf2, 0xf5, 0xd1, 0xb7, 0x2f, 0x07, 0xad, 0x32, 0x02, 0x50, 0x4f, 0xce, 0x2f, - 0xb8, 0xb2, 0xd2, 0xff, 0xbb, 0x0c, 0x0d, 0x61, 0x39, 0x89, 0xaf, 0xfd, 0x31, 0x41, 0x67, 0x00, - 0x8b, 0x37, 0x16, 0xed, 0x3d, 0xf8, 0x8e, 0xb7, 0xdb, 0xab, 0x28, 0xe9, 0x93, 0xa9, 0xfe, 0xfb, - 0x4b, 0xb7, 0xa4, 0x95, 0x3e, 0x57, 0xd0, 0xc5, 0xdd, 0x11, 0xdc, 0x5e, 0x35, 0xc1, 0xd2, 0x80, - 0xfb, 0x2b, 0xb9, 0xa5, 0x88, 0x16, 0xd4, 0xd2, 0x61, 0x82, 0x76, 0xf2, 0xab, 0xbe, 0x33, 0xf7, - 0xda, 0xbb, 0x4b, 0xf8, 0x52, 0x94, 0x97, 0xa0, 0x65, 0xfd, 0x8c, 0x8a, 0xf2, 0xe2, 0xf0, 0x69, - 0x1b, 0xcb, 0xc4, 0x52, 0xa0, 0x57, 0xc5, 0x9e, 0x32, 0x96, 0x8b, 0x38, 0x0d, 0xb5, 0xb7, 0x82, - 0x59, 0x8a, 0xe5, 0x40, 0xeb, 0x7e, 0xe9, 0xa1, 0x8f, 0xb2, 0x1f, 0x3e, 0xd0, 0x03, 0xed, 0xce, - 0xc3, 0x82, 0xfb, 0x1b, 0x1c, 0x3f, 0xff, 0xa1, 0x3f, 0xf1, 0x59, 0x80, 0xaf, 0x7a, 0x63, 0x1a, - 0x1e, 0xca, 0xcf, 0xcf, 0x68, 0x3c, 0x39, 0x94, 0x21, 0x0e, 0xaf, 0xbf, 0x78, 0x7e, 0x28, 0xfe, - 0x00, 0x1c, 0x4e, 0x68, 0x8a, 0xcd, 0xae, 0xae, 0x54, 0x01, 0x3d, 0xfb, 0x2f, 0x00, 0x00, 0xff, - 0xff, 0x20, 0x11, 0x8c, 0x4f, 0x43, 0x0c, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// DiffServiceClient is the client API for DiffService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type DiffServiceClient interface { - // Returns stream of CommitDiffResponse with patches chunked over messages - CommitDiff(ctx context.Context, in *CommitDiffRequest, opts ...grpc.CallOption) (DiffService_CommitDiffClient, error) - // Return a stream so we can divide the response in chunks of deltas - CommitDelta(ctx context.Context, in *CommitDeltaRequest, opts ...grpc.CallOption) (DiffService_CommitDeltaClient, error) - RawDiff(ctx context.Context, in *RawDiffRequest, opts ...grpc.CallOption) (DiffService_RawDiffClient, error) - RawPatch(ctx context.Context, in *RawPatchRequest, opts ...grpc.CallOption) (DiffService_RawPatchClient, error) - DiffStats(ctx context.Context, in *DiffStatsRequest, opts ...grpc.CallOption) (DiffService_DiffStatsClient, error) - // Return a list of files changed along with the status of each file - FindChangedPaths(ctx context.Context, in *FindChangedPathsRequest, opts ...grpc.CallOption) (DiffService_FindChangedPathsClient, error) -} - -type diffServiceClient struct { - cc *grpc.ClientConn -} - -func NewDiffServiceClient(cc *grpc.ClientConn) DiffServiceClient { - return &diffServiceClient{cc} -} - -func (c *diffServiceClient) CommitDiff(ctx context.Context, in *CommitDiffRequest, opts ...grpc.CallOption) (DiffService_CommitDiffClient, error) { - stream, err := c.cc.NewStream(ctx, &_DiffService_serviceDesc.Streams[0], "/gitaly.DiffService/CommitDiff", opts...) - if err != nil { - return nil, err - } - x := &diffServiceCommitDiffClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *DiffStatsRequest) GetRightCommitId() string { + if x != nil { + return x.RightCommitId } - return x, nil + return "" } -type DiffService_CommitDiffClient interface { - Recv() (*CommitDiffResponse, error) - grpc.ClientStream -} +type DiffStats struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type diffServiceCommitDiffClient struct { - grpc.ClientStream + Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Additions int32 `protobuf:"varint,2,opt,name=additions,proto3" json:"additions,omitempty"` + Deletions int32 `protobuf:"varint,3,opt,name=deletions,proto3" json:"deletions,omitempty"` + OldPath []byte `protobuf:"bytes,4,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"` } -func (x *diffServiceCommitDiffClient) Recv() (*CommitDiffResponse, error) { - m := new(CommitDiffResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *DiffStats) Reset() { + *x = DiffStats{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -func (c *diffServiceClient) CommitDelta(ctx context.Context, in *CommitDeltaRequest, opts ...grpc.CallOption) (DiffService_CommitDeltaClient, error) { - stream, err := c.cc.NewStream(ctx, &_DiffService_serviceDesc.Streams[1], "/gitaly.DiffService/CommitDelta", opts...) - if err != nil { - return nil, err - } - x := &diffServiceCommitDeltaClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type DiffService_CommitDeltaClient interface { - Recv() (*CommitDeltaResponse, error) - grpc.ClientStream +func (x *DiffStats) String() string { + return protoimpl.X.MessageStringOf(x) } -type diffServiceCommitDeltaClient struct { - grpc.ClientStream -} +func (*DiffStats) ProtoMessage() {} -func (x *diffServiceCommitDeltaClient) Recv() (*CommitDeltaResponse, error) { - m := new(CommitDeltaResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *DiffStats) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -func (c *diffServiceClient) RawDiff(ctx context.Context, in *RawDiffRequest, opts ...grpc.CallOption) (DiffService_RawDiffClient, error) { - stream, err := c.cc.NewStream(ctx, &_DiffService_serviceDesc.Streams[2], "/gitaly.DiffService/RawDiff", opts...) - if err != nil { - return nil, err - } - x := &diffServiceRawDiffClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil +// Deprecated: Use DiffStats.ProtoReflect.Descriptor instead. +func (*DiffStats) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{10} } -type DiffService_RawDiffClient interface { - Recv() (*RawDiffResponse, error) - grpc.ClientStream +func (x *DiffStats) GetPath() []byte { + if x != nil { + return x.Path + } + return nil } -type diffServiceRawDiffClient struct { - grpc.ClientStream +func (x *DiffStats) GetAdditions() int32 { + if x != nil { + return x.Additions + } + return 0 } -func (x *diffServiceRawDiffClient) Recv() (*RawDiffResponse, error) { - m := new(RawDiffResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *DiffStats) GetDeletions() int32 { + if x != nil { + return x.Deletions } - return m, nil + return 0 } -func (c *diffServiceClient) RawPatch(ctx context.Context, in *RawPatchRequest, opts ...grpc.CallOption) (DiffService_RawPatchClient, error) { - stream, err := c.cc.NewStream(ctx, &_DiffService_serviceDesc.Streams[3], "/gitaly.DiffService/RawPatch", opts...) - if err != nil { - return nil, err +func (x *DiffStats) GetOldPath() []byte { + if x != nil { + return x.OldPath } - x := &diffServiceRawPatchClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil + return nil } -type DiffService_RawPatchClient interface { - Recv() (*RawPatchResponse, error) - grpc.ClientStream -} +type DiffStatsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type diffServiceRawPatchClient struct { - grpc.ClientStream + Stats []*DiffStats `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` } -func (x *diffServiceRawPatchClient) Recv() (*RawPatchResponse, error) { - m := new(RawPatchResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *DiffStatsResponse) Reset() { + *x = DiffStatsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -func (c *diffServiceClient) DiffStats(ctx context.Context, in *DiffStatsRequest, opts ...grpc.CallOption) (DiffService_DiffStatsClient, error) { - stream, err := c.cc.NewStream(ctx, &_DiffService_serviceDesc.Streams[4], "/gitaly.DiffService/DiffStats", opts...) - if err != nil { - return nil, err - } - x := &diffServiceDiffStatsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil +func (x *DiffStatsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type DiffService_DiffStatsClient interface { - Recv() (*DiffStatsResponse, error) - grpc.ClientStream -} +func (*DiffStatsResponse) ProtoMessage() {} -type diffServiceDiffStatsClient struct { - grpc.ClientStream +func (x *DiffStatsResponse) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (x *diffServiceDiffStatsClient) Recv() (*DiffStatsResponse, error) { - m := new(DiffStatsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +// Deprecated: Use DiffStatsResponse.ProtoReflect.Descriptor instead. +func (*DiffStatsResponse) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{11} } -func (c *diffServiceClient) FindChangedPaths(ctx context.Context, in *FindChangedPathsRequest, opts ...grpc.CallOption) (DiffService_FindChangedPathsClient, error) { - stream, err := c.cc.NewStream(ctx, &_DiffService_serviceDesc.Streams[5], "/gitaly.DiffService/FindChangedPaths", opts...) - if err != nil { - return nil, err - } - x := &diffServiceFindChangedPathsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *DiffStatsResponse) GetStats() []*DiffStats { + if x != nil { + return x.Stats } - return x, nil + return nil } -type DiffService_FindChangedPathsClient interface { - Recv() (*FindChangedPathsResponse, error) - grpc.ClientStream -} +// Given a list of commits, return the files changed. Each commit is compared +// to its parent. Merge commits will show files which are different to all of +// its parents. +type FindChangedPathsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type diffServiceFindChangedPathsClient struct { - grpc.ClientStream + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Commits []string `protobuf:"bytes,2,rep,name=commits,proto3" json:"commits,omitempty"` } -func (x *diffServiceFindChangedPathsClient) Recv() (*FindChangedPathsResponse, error) { - m := new(FindChangedPathsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *FindChangedPathsRequest) Reset() { + *x = FindChangedPathsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -// DiffServiceServer is the server API for DiffService service. -type DiffServiceServer interface { - // Returns stream of CommitDiffResponse with patches chunked over messages - CommitDiff(*CommitDiffRequest, DiffService_CommitDiffServer) error - // Return a stream so we can divide the response in chunks of deltas - CommitDelta(*CommitDeltaRequest, DiffService_CommitDeltaServer) error - RawDiff(*RawDiffRequest, DiffService_RawDiffServer) error - RawPatch(*RawPatchRequest, DiffService_RawPatchServer) error - DiffStats(*DiffStatsRequest, DiffService_DiffStatsServer) error - // Return a list of files changed along with the status of each file - FindChangedPaths(*FindChangedPathsRequest, DiffService_FindChangedPathsServer) error +func (x *FindChangedPathsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -// UnimplementedDiffServiceServer can be embedded to have forward compatible implementations. -type UnimplementedDiffServiceServer struct { -} +func (*FindChangedPathsRequest) ProtoMessage() {} -func (*UnimplementedDiffServiceServer) CommitDiff(req *CommitDiffRequest, srv DiffService_CommitDiffServer) error { - return status.Errorf(codes.Unimplemented, "method CommitDiff not implemented") -} -func (*UnimplementedDiffServiceServer) CommitDelta(req *CommitDeltaRequest, srv DiffService_CommitDeltaServer) error { - return status.Errorf(codes.Unimplemented, "method CommitDelta not implemented") -} -func (*UnimplementedDiffServiceServer) RawDiff(req *RawDiffRequest, srv DiffService_RawDiffServer) error { - return status.Errorf(codes.Unimplemented, "method RawDiff not implemented") -} -func (*UnimplementedDiffServiceServer) RawPatch(req *RawPatchRequest, srv DiffService_RawPatchServer) error { - return status.Errorf(codes.Unimplemented, "method RawPatch not implemented") -} -func (*UnimplementedDiffServiceServer) DiffStats(req *DiffStatsRequest, srv DiffService_DiffStatsServer) error { - return status.Errorf(codes.Unimplemented, "method DiffStats not implemented") -} -func (*UnimplementedDiffServiceServer) FindChangedPaths(req *FindChangedPathsRequest, srv DiffService_FindChangedPathsServer) error { - return status.Errorf(codes.Unimplemented, "method FindChangedPaths not implemented") +func (x *FindChangedPathsRequest) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func RegisterDiffServiceServer(s *grpc.Server, srv DiffServiceServer) { - s.RegisterService(&_DiffService_serviceDesc, srv) +// Deprecated: Use FindChangedPathsRequest.ProtoReflect.Descriptor instead. +func (*FindChangedPathsRequest) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{12} } -func _DiffService_CommitDiff_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CommitDiffRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *FindChangedPathsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return srv.(DiffServiceServer).CommitDiff(m, &diffServiceCommitDiffServer{stream}) + return nil } -type DiffService_CommitDiffServer interface { - Send(*CommitDiffResponse) error - grpc.ServerStream +func (x *FindChangedPathsRequest) GetCommits() []string { + if x != nil { + return x.Commits + } + return nil } -type diffServiceCommitDiffServer struct { - grpc.ServerStream -} +// Returns a list of files that have been changed in the commits given +type FindChangedPathsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *diffServiceCommitDiffServer) Send(m *CommitDiffResponse) error { - return x.ServerStream.SendMsg(m) + Paths []*ChangedPaths `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` } -func _DiffService_CommitDelta_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CommitDeltaRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *FindChangedPathsResponse) Reset() { + *x = FindChangedPathsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(DiffServiceServer).CommitDelta(m, &diffServiceCommitDeltaServer{stream}) -} - -type DiffService_CommitDeltaServer interface { - Send(*CommitDeltaResponse) error - grpc.ServerStream } -type diffServiceCommitDeltaServer struct { - grpc.ServerStream +func (x *FindChangedPathsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *diffServiceCommitDeltaServer) Send(m *CommitDeltaResponse) error { - return x.ServerStream.SendMsg(m) -} +func (*FindChangedPathsResponse) ProtoMessage() {} -func _DiffService_RawDiff_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(RawDiffRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *FindChangedPathsResponse) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(DiffServiceServer).RawDiff(m, &diffServiceRawDiffServer{stream}) -} - -type DiffService_RawDiffServer interface { - Send(*RawDiffResponse) error - grpc.ServerStream -} - -type diffServiceRawDiffServer struct { - grpc.ServerStream + return mi.MessageOf(x) } -func (x *diffServiceRawDiffServer) Send(m *RawDiffResponse) error { - return x.ServerStream.SendMsg(m) +// Deprecated: Use FindChangedPathsResponse.ProtoReflect.Descriptor instead. +func (*FindChangedPathsResponse) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{13} } -func _DiffService_RawPatch_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(RawPatchRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *FindChangedPathsResponse) GetPaths() []*ChangedPaths { + if x != nil { + return x.Paths } - return srv.(DiffServiceServer).RawPatch(m, &diffServiceRawPatchServer{stream}) -} - -type DiffService_RawPatchServer interface { - Send(*RawPatchResponse) error - grpc.ServerStream + return nil } -type diffServiceRawPatchServer struct { - grpc.ServerStream -} +// Includes the path of the file, and the status of the change +type ChangedPaths struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *diffServiceRawPatchServer) Send(m *RawPatchResponse) error { - return x.ServerStream.SendMsg(m) + Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Status ChangedPaths_Status `protobuf:"varint,2,opt,name=status,proto3,enum=gitaly.ChangedPaths_Status" json:"status,omitempty"` } -func _DiffService_DiffStats_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(DiffStatsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *ChangedPaths) Reset() { + *x = ChangedPaths{} + if protoimpl.UnsafeEnabled { + mi := &file_diff_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(DiffServiceServer).DiffStats(m, &diffServiceDiffStatsServer{stream}) } -type DiffService_DiffStatsServer interface { - Send(*DiffStatsResponse) error - grpc.ServerStream +func (x *ChangedPaths) String() string { + return protoimpl.X.MessageStringOf(x) } -type diffServiceDiffStatsServer struct { - grpc.ServerStream -} +func (*ChangedPaths) ProtoMessage() {} -func (x *diffServiceDiffStatsServer) Send(m *DiffStatsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _DiffService_FindChangedPaths_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindChangedPathsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *ChangedPaths) ProtoReflect() protoreflect.Message { + mi := &file_diff_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(DiffServiceServer).FindChangedPaths(m, &diffServiceFindChangedPathsServer{stream}) + return mi.MessageOf(x) } -type DiffService_FindChangedPathsServer interface { - Send(*FindChangedPathsResponse) error - grpc.ServerStream +// Deprecated: Use ChangedPaths.ProtoReflect.Descriptor instead. +func (*ChangedPaths) Descriptor() ([]byte, []int) { + return file_diff_proto_rawDescGZIP(), []int{14} } -type diffServiceFindChangedPathsServer struct { - grpc.ServerStream +func (x *ChangedPaths) GetPath() []byte { + if x != nil { + return x.Path + } + return nil } -func (x *diffServiceFindChangedPathsServer) Send(m *FindChangedPathsResponse) error { - return x.ServerStream.SendMsg(m) +func (x *ChangedPaths) GetStatus() ChangedPaths_Status { + if x != nil { + return x.Status + } + return ChangedPaths_ADDED } -var _DiffService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.DiffService", - HandlerType: (*DiffServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "CommitDiff", - Handler: _DiffService_CommitDiff_Handler, - ServerStreams: true, - }, - { - StreamName: "CommitDelta", - Handler: _DiffService_CommitDelta_Handler, - ServerStreams: true, - }, - { - StreamName: "RawDiff", - Handler: _DiffService_RawDiff_Handler, - ServerStreams: true, - }, - { - StreamName: "RawPatch", - Handler: _DiffService_RawPatch_Handler, - ServerStreams: true, - }, - { - StreamName: "DiffStats", - Handler: _DiffService_DiffStats_Handler, - ServerStreams: true, - }, - { - StreamName: "FindChangedPaths", - Handler: _DiffService_FindChangedPaths_Handler, - ServerStreams: true, +var File_diff_proto protoreflect.FileDescriptor + +var file_diff_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, + 0x05, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, + 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x24, + 0x0a, 0x0e, 0x6c, 0x65, 0x66, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x65, 0x66, 0x74, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x72, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, + 0x69, 0x67, 0x68, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x18, + 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x77, 0x68, 0x69, 0x74, 0x65, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, + 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x57, 0x68, 0x69, 0x74, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x12, 0x25, 0x0a, 0x0e, + 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x5f, 0x64, 0x69, 0x66, 0x66, 0x73, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x44, 0x69, + 0x66, 0x66, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x6e, 0x66, + 0x6f, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, + 0x78, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x6d, + 0x61, 0x78, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x6c, + 0x69, 0x6e, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x4c, + 0x69, 0x6e, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, + 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x42, 0x79, 0x74, 0x65, + 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x62, + 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x50, + 0x61, 0x74, 0x63, 0x68, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x61, 0x66, + 0x65, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x0c, 0x73, 0x61, 0x66, 0x65, 0x4d, 0x61, 0x78, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, + 0x24, 0x0a, 0x0e, 0x73, 0x61, 0x66, 0x65, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x6c, 0x69, 0x6e, 0x65, + 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x73, 0x61, 0x66, 0x65, 0x4d, 0x61, 0x78, + 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x61, 0x66, 0x65, 0x5f, 0x6d, 0x61, + 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x73, + 0x61, 0x66, 0x65, 0x4d, 0x61, 0x78, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x3f, 0x0a, 0x09, 0x64, + 0x69, 0x66, 0x66, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x69, + 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x6f, + 0x64, 0x65, 0x52, 0x08, 0x64, 0x69, 0x66, 0x66, 0x4d, 0x6f, 0x64, 0x65, 0x22, 0x25, 0x0a, 0x08, + 0x44, 0x69, 0x66, 0x66, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, + 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x57, 0x4f, 0x52, 0x44, 0x44, 0x49, 0x46, + 0x46, 0x10, 0x01, 0x22, 0xf8, 0x02, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x69, + 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x72, + 0x6f, 0x6d, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x66, + 0x72, 0x6f, 0x6d, 0x50, 0x61, 0x74, 0x68, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x6f, 0x5f, 0x70, 0x61, + 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x74, 0x6f, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x17, 0x0a, 0x07, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x66, 0x72, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x6f, 0x5f, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x6f, 0x49, 0x64, 0x12, 0x19, + 0x0a, 0x08, 0x6f, 0x6c, 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x07, 0x6f, 0x6c, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x77, + 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6e, 0x65, 0x77, + 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x12, 0x24, 0x0a, 0x0e, + 0x72, 0x61, 0x77, 0x5f, 0x70, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x61, 0x77, 0x50, 0x61, 0x74, 0x63, 0x68, 0x44, 0x61, + 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0c, 0x65, 0x6e, 0x64, 0x5f, 0x6f, 0x66, 0x5f, 0x70, 0x61, 0x74, + 0x63, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x65, 0x6e, 0x64, 0x4f, 0x66, 0x50, + 0x61, 0x74, 0x63, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x76, 0x65, 0x72, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6f, + 0x76, 0x65, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x12, 0x1c, 0x0a, + 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, + 0x6f, 0x6f, 0x5f, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, + 0x74, 0x6f, 0x6f, 0x4c, 0x61, 0x72, 0x67, 0x65, 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, 0x22, 0xb2, + 0x01, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x24, 0x0a, 0x0e, 0x6c, 0x65, 0x66, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x65, 0x66, 0x74, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x72, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x72, 0x69, 0x67, 0x68, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, + 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x05, 0x70, 0x61, + 0x74, 0x68, 0x73, 0x22, 0xa7, 0x01, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x65, + 0x6c, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x70, 0x61, 0x74, 0x68, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x66, 0x72, 0x6f, 0x6d, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x17, 0x0a, 0x07, 0x74, 0x6f, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x06, 0x74, 0x6f, 0x50, 0x61, 0x74, 0x68, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x72, 0x6f, + 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x72, 0x6f, 0x6d, + 0x49, 0x64, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x6f, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x74, 0x6f, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x6c, 0x64, 0x5f, 0x6d, + 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6f, 0x6c, 0x64, 0x4d, 0x6f, + 0x64, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x22, 0x42, 0x0a, + 0x13, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x74, 0x61, + 0x73, 0x22, 0x98, 0x01, 0x0a, 0x0e, 0x52, 0x61, 0x77, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, + 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x24, + 0x0a, 0x0e, 0x6c, 0x65, 0x66, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x65, 0x66, 0x74, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x72, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, + 0x69, 0x67, 0x68, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x22, 0x25, 0x0a, 0x0f, + 0x52, 0x61, 0x77, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, + 0x61, 0x74, 0x61, 0x22, 0x99, 0x01, 0x0a, 0x0f, 0x52, 0x61, 0x77, 0x50, 0x61, 0x74, 0x63, 0x68, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, + 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x65, 0x66, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x65, 0x66, 0x74, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x72, 0x69, 0x67, 0x68, 0x74, + 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x72, 0x69, 0x67, 0x68, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x22, + 0x26, 0x0a, 0x10, 0x52, 0x61, 0x77, 0x50, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x9a, 0x01, 0x0a, 0x10, 0x44, 0x69, 0x66, 0x66, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x65, 0x66, 0x74, 0x5f, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x6c, 0x65, 0x66, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, + 0x72, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x69, 0x67, 0x68, 0x74, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x49, 0x64, 0x22, 0x76, 0x0a, 0x09, 0x44, 0x69, 0x66, 0x66, 0x53, 0x74, 0x61, 0x74, + 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6f, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x22, 0x3c, 0x0a, 0x11, + 0x44, 0x69, 0x66, 0x66, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x27, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x74, + 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x6d, 0x0a, 0x17, 0x46, 0x69, + 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x50, 0x61, 0x74, 0x68, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x22, 0x46, 0x0a, 0x18, 0x46, 0x69, 0x6e, + 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x50, 0x61, 0x74, 0x68, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x64, 0x50, 0x61, 0x74, 0x68, 0x73, 0x52, 0x05, 0x70, 0x61, 0x74, 0x68, + 0x73, 0x22, 0xa4, 0x01, 0x0a, 0x0c, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x50, 0x61, 0x74, + 0x68, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x33, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x50, 0x61, 0x74, 0x68, 0x73, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x4b, 0x0a, 0x06, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x44, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x4f, 0x44, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, + 0x0a, 0x07, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, + 0x43, 0x4f, 0x50, 0x49, 0x45, 0x44, 0x10, 0x04, 0x32, 0xea, 0x03, 0x0a, 0x0b, 0x44, 0x69, 0x66, + 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4d, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x44, 0x69, 0x66, 0x66, 0x12, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, + 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x50, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x44, 0x0a, 0x07, 0x52, 0x61, 0x77, + 0x44, 0x69, 0x66, 0x66, 0x12, 0x16, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x61, + 0x77, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x61, 0x77, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, + 0x47, 0x0a, 0x08, 0x52, 0x61, 0x77, 0x50, 0x61, 0x74, 0x63, 0x68, 0x12, 0x17, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x61, 0x77, 0x50, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x61, + 0x77, 0x50, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, + 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x4a, 0x0a, 0x09, 0x44, 0x69, 0x66, 0x66, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, + 0x69, 0x66, 0x66, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x74, 0x61, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, + 0x08, 0x02, 0x30, 0x01, 0x12, 0x5f, 0x0a, 0x10, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x64, 0x50, 0x61, 0x74, 0x68, 0x73, 0x12, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x50, 0x61, 0x74, + 0x68, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x50, 0x61, + 0x74, 0x68, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x02, 0x30, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_diff_proto_rawDescOnce sync.Once + file_diff_proto_rawDescData = file_diff_proto_rawDesc +) + +func file_diff_proto_rawDescGZIP() []byte { + file_diff_proto_rawDescOnce.Do(func() { + file_diff_proto_rawDescData = protoimpl.X.CompressGZIP(file_diff_proto_rawDescData) + }) + return file_diff_proto_rawDescData +} + +var file_diff_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_diff_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_diff_proto_goTypes = []interface{}{ + (CommitDiffRequest_DiffMode)(0), // 0: gitaly.CommitDiffRequest.DiffMode + (ChangedPaths_Status)(0), // 1: gitaly.ChangedPaths.Status + (*CommitDiffRequest)(nil), // 2: gitaly.CommitDiffRequest + (*CommitDiffResponse)(nil), // 3: gitaly.CommitDiffResponse + (*CommitDeltaRequest)(nil), // 4: gitaly.CommitDeltaRequest + (*CommitDelta)(nil), // 5: gitaly.CommitDelta + (*CommitDeltaResponse)(nil), // 6: gitaly.CommitDeltaResponse + (*RawDiffRequest)(nil), // 7: gitaly.RawDiffRequest + (*RawDiffResponse)(nil), // 8: gitaly.RawDiffResponse + (*RawPatchRequest)(nil), // 9: gitaly.RawPatchRequest + (*RawPatchResponse)(nil), // 10: gitaly.RawPatchResponse + (*DiffStatsRequest)(nil), // 11: gitaly.DiffStatsRequest + (*DiffStats)(nil), // 12: gitaly.DiffStats + (*DiffStatsResponse)(nil), // 13: gitaly.DiffStatsResponse + (*FindChangedPathsRequest)(nil), // 14: gitaly.FindChangedPathsRequest + (*FindChangedPathsResponse)(nil), // 15: gitaly.FindChangedPathsResponse + (*ChangedPaths)(nil), // 16: gitaly.ChangedPaths + (*Repository)(nil), // 17: gitaly.Repository +} +var file_diff_proto_depIdxs = []int32{ + 17, // 0: gitaly.CommitDiffRequest.repository:type_name -> gitaly.Repository + 0, // 1: gitaly.CommitDiffRequest.diff_mode:type_name -> gitaly.CommitDiffRequest.DiffMode + 17, // 2: gitaly.CommitDeltaRequest.repository:type_name -> gitaly.Repository + 5, // 3: gitaly.CommitDeltaResponse.deltas:type_name -> gitaly.CommitDelta + 17, // 4: gitaly.RawDiffRequest.repository:type_name -> gitaly.Repository + 17, // 5: gitaly.RawPatchRequest.repository:type_name -> gitaly.Repository + 17, // 6: gitaly.DiffStatsRequest.repository:type_name -> gitaly.Repository + 12, // 7: gitaly.DiffStatsResponse.stats:type_name -> gitaly.DiffStats + 17, // 8: gitaly.FindChangedPathsRequest.repository:type_name -> gitaly.Repository + 16, // 9: gitaly.FindChangedPathsResponse.paths:type_name -> gitaly.ChangedPaths + 1, // 10: gitaly.ChangedPaths.status:type_name -> gitaly.ChangedPaths.Status + 2, // 11: gitaly.DiffService.CommitDiff:input_type -> gitaly.CommitDiffRequest + 4, // 12: gitaly.DiffService.CommitDelta:input_type -> gitaly.CommitDeltaRequest + 7, // 13: gitaly.DiffService.RawDiff:input_type -> gitaly.RawDiffRequest + 9, // 14: gitaly.DiffService.RawPatch:input_type -> gitaly.RawPatchRequest + 11, // 15: gitaly.DiffService.DiffStats:input_type -> gitaly.DiffStatsRequest + 14, // 16: gitaly.DiffService.FindChangedPaths:input_type -> gitaly.FindChangedPathsRequest + 3, // 17: gitaly.DiffService.CommitDiff:output_type -> gitaly.CommitDiffResponse + 6, // 18: gitaly.DiffService.CommitDelta:output_type -> gitaly.CommitDeltaResponse + 8, // 19: gitaly.DiffService.RawDiff:output_type -> gitaly.RawDiffResponse + 10, // 20: gitaly.DiffService.RawPatch:output_type -> gitaly.RawPatchResponse + 13, // 21: gitaly.DiffService.DiffStats:output_type -> gitaly.DiffStatsResponse + 15, // 22: gitaly.DiffService.FindChangedPaths:output_type -> gitaly.FindChangedPathsResponse + 17, // [17:23] is the sub-list for method output_type + 11, // [11:17] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_diff_proto_init() } +func file_diff_proto_init() { + if File_diff_proto != nil { + return + } + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_diff_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitDiffRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitDiffResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitDeltaRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitDelta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitDeltaResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RawDiffRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RawDiffResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RawPatchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RawPatchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DiffStatsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DiffStats); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DiffStatsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindChangedPathsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindChangedPathsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diff_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChangedPaths); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_diff_proto_rawDesc, + NumEnums: 2, + NumMessages: 15, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "diff.proto", + GoTypes: file_diff_proto_goTypes, + DependencyIndexes: file_diff_proto_depIdxs, + EnumInfos: file_diff_proto_enumTypes, + MessageInfos: file_diff_proto_msgTypes, + }.Build() + File_diff_proto = out.File + file_diff_proto_rawDesc = nil + file_diff_proto_goTypes = nil + file_diff_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/diff_grpc.pb.go b/proto/go/gitalypb/diff_grpc.pb.go new file mode 100644 index 000000000..7fdc2a73c --- /dev/null +++ b/proto/go/gitalypb/diff_grpc.pb.go @@ -0,0 +1,449 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// DiffServiceClient is the client API for DiffService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type DiffServiceClient interface { + // Returns stream of CommitDiffResponse with patches chunked over messages + CommitDiff(ctx context.Context, in *CommitDiffRequest, opts ...grpc.CallOption) (DiffService_CommitDiffClient, error) + // Return a stream so we can divide the response in chunks of deltas + CommitDelta(ctx context.Context, in *CommitDeltaRequest, opts ...grpc.CallOption) (DiffService_CommitDeltaClient, error) + RawDiff(ctx context.Context, in *RawDiffRequest, opts ...grpc.CallOption) (DiffService_RawDiffClient, error) + RawPatch(ctx context.Context, in *RawPatchRequest, opts ...grpc.CallOption) (DiffService_RawPatchClient, error) + DiffStats(ctx context.Context, in *DiffStatsRequest, opts ...grpc.CallOption) (DiffService_DiffStatsClient, error) + // Return a list of files changed along with the status of each file + FindChangedPaths(ctx context.Context, in *FindChangedPathsRequest, opts ...grpc.CallOption) (DiffService_FindChangedPathsClient, error) +} + +type diffServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewDiffServiceClient(cc grpc.ClientConnInterface) DiffServiceClient { + return &diffServiceClient{cc} +} + +func (c *diffServiceClient) CommitDiff(ctx context.Context, in *CommitDiffRequest, opts ...grpc.CallOption) (DiffService_CommitDiffClient, error) { + stream, err := c.cc.NewStream(ctx, &DiffService_ServiceDesc.Streams[0], "/gitaly.DiffService/CommitDiff", opts...) + if err != nil { + return nil, err + } + x := &diffServiceCommitDiffClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type DiffService_CommitDiffClient interface { + Recv() (*CommitDiffResponse, error) + grpc.ClientStream +} + +type diffServiceCommitDiffClient struct { + grpc.ClientStream +} + +func (x *diffServiceCommitDiffClient) Recv() (*CommitDiffResponse, error) { + m := new(CommitDiffResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *diffServiceClient) CommitDelta(ctx context.Context, in *CommitDeltaRequest, opts ...grpc.CallOption) (DiffService_CommitDeltaClient, error) { + stream, err := c.cc.NewStream(ctx, &DiffService_ServiceDesc.Streams[1], "/gitaly.DiffService/CommitDelta", opts...) + if err != nil { + return nil, err + } + x := &diffServiceCommitDeltaClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type DiffService_CommitDeltaClient interface { + Recv() (*CommitDeltaResponse, error) + grpc.ClientStream +} + +type diffServiceCommitDeltaClient struct { + grpc.ClientStream +} + +func (x *diffServiceCommitDeltaClient) Recv() (*CommitDeltaResponse, error) { + m := new(CommitDeltaResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *diffServiceClient) RawDiff(ctx context.Context, in *RawDiffRequest, opts ...grpc.CallOption) (DiffService_RawDiffClient, error) { + stream, err := c.cc.NewStream(ctx, &DiffService_ServiceDesc.Streams[2], "/gitaly.DiffService/RawDiff", opts...) + if err != nil { + return nil, err + } + x := &diffServiceRawDiffClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type DiffService_RawDiffClient interface { + Recv() (*RawDiffResponse, error) + grpc.ClientStream +} + +type diffServiceRawDiffClient struct { + grpc.ClientStream +} + +func (x *diffServiceRawDiffClient) Recv() (*RawDiffResponse, error) { + m := new(RawDiffResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *diffServiceClient) RawPatch(ctx context.Context, in *RawPatchRequest, opts ...grpc.CallOption) (DiffService_RawPatchClient, error) { + stream, err := c.cc.NewStream(ctx, &DiffService_ServiceDesc.Streams[3], "/gitaly.DiffService/RawPatch", opts...) + if err != nil { + return nil, err + } + x := &diffServiceRawPatchClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type DiffService_RawPatchClient interface { + Recv() (*RawPatchResponse, error) + grpc.ClientStream +} + +type diffServiceRawPatchClient struct { + grpc.ClientStream +} + +func (x *diffServiceRawPatchClient) Recv() (*RawPatchResponse, error) { + m := new(RawPatchResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *diffServiceClient) DiffStats(ctx context.Context, in *DiffStatsRequest, opts ...grpc.CallOption) (DiffService_DiffStatsClient, error) { + stream, err := c.cc.NewStream(ctx, &DiffService_ServiceDesc.Streams[4], "/gitaly.DiffService/DiffStats", opts...) + if err != nil { + return nil, err + } + x := &diffServiceDiffStatsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type DiffService_DiffStatsClient interface { + Recv() (*DiffStatsResponse, error) + grpc.ClientStream +} + +type diffServiceDiffStatsClient struct { + grpc.ClientStream +} + +func (x *diffServiceDiffStatsClient) Recv() (*DiffStatsResponse, error) { + m := new(DiffStatsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *diffServiceClient) FindChangedPaths(ctx context.Context, in *FindChangedPathsRequest, opts ...grpc.CallOption) (DiffService_FindChangedPathsClient, error) { + stream, err := c.cc.NewStream(ctx, &DiffService_ServiceDesc.Streams[5], "/gitaly.DiffService/FindChangedPaths", opts...) + if err != nil { + return nil, err + } + x := &diffServiceFindChangedPathsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type DiffService_FindChangedPathsClient interface { + Recv() (*FindChangedPathsResponse, error) + grpc.ClientStream +} + +type diffServiceFindChangedPathsClient struct { + grpc.ClientStream +} + +func (x *diffServiceFindChangedPathsClient) Recv() (*FindChangedPathsResponse, error) { + m := new(FindChangedPathsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// DiffServiceServer is the server API for DiffService service. +// All implementations must embed UnimplementedDiffServiceServer +// for forward compatibility +type DiffServiceServer interface { + // Returns stream of CommitDiffResponse with patches chunked over messages + CommitDiff(*CommitDiffRequest, DiffService_CommitDiffServer) error + // Return a stream so we can divide the response in chunks of deltas + CommitDelta(*CommitDeltaRequest, DiffService_CommitDeltaServer) error + RawDiff(*RawDiffRequest, DiffService_RawDiffServer) error + RawPatch(*RawPatchRequest, DiffService_RawPatchServer) error + DiffStats(*DiffStatsRequest, DiffService_DiffStatsServer) error + // Return a list of files changed along with the status of each file + FindChangedPaths(*FindChangedPathsRequest, DiffService_FindChangedPathsServer) error + mustEmbedUnimplementedDiffServiceServer() +} + +// UnimplementedDiffServiceServer must be embedded to have forward compatible implementations. +type UnimplementedDiffServiceServer struct { +} + +func (UnimplementedDiffServiceServer) CommitDiff(*CommitDiffRequest, DiffService_CommitDiffServer) error { + return status.Errorf(codes.Unimplemented, "method CommitDiff not implemented") +} +func (UnimplementedDiffServiceServer) CommitDelta(*CommitDeltaRequest, DiffService_CommitDeltaServer) error { + return status.Errorf(codes.Unimplemented, "method CommitDelta not implemented") +} +func (UnimplementedDiffServiceServer) RawDiff(*RawDiffRequest, DiffService_RawDiffServer) error { + return status.Errorf(codes.Unimplemented, "method RawDiff not implemented") +} +func (UnimplementedDiffServiceServer) RawPatch(*RawPatchRequest, DiffService_RawPatchServer) error { + return status.Errorf(codes.Unimplemented, "method RawPatch not implemented") +} +func (UnimplementedDiffServiceServer) DiffStats(*DiffStatsRequest, DiffService_DiffStatsServer) error { + return status.Errorf(codes.Unimplemented, "method DiffStats not implemented") +} +func (UnimplementedDiffServiceServer) FindChangedPaths(*FindChangedPathsRequest, DiffService_FindChangedPathsServer) error { + return status.Errorf(codes.Unimplemented, "method FindChangedPaths not implemented") +} +func (UnimplementedDiffServiceServer) mustEmbedUnimplementedDiffServiceServer() {} + +// UnsafeDiffServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to DiffServiceServer will +// result in compilation errors. +type UnsafeDiffServiceServer interface { + mustEmbedUnimplementedDiffServiceServer() +} + +func RegisterDiffServiceServer(s grpc.ServiceRegistrar, srv DiffServiceServer) { + s.RegisterService(&DiffService_ServiceDesc, srv) +} + +func _DiffService_CommitDiff_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(CommitDiffRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(DiffServiceServer).CommitDiff(m, &diffServiceCommitDiffServer{stream}) +} + +type DiffService_CommitDiffServer interface { + Send(*CommitDiffResponse) error + grpc.ServerStream +} + +type diffServiceCommitDiffServer struct { + grpc.ServerStream +} + +func (x *diffServiceCommitDiffServer) Send(m *CommitDiffResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _DiffService_CommitDelta_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(CommitDeltaRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(DiffServiceServer).CommitDelta(m, &diffServiceCommitDeltaServer{stream}) +} + +type DiffService_CommitDeltaServer interface { + Send(*CommitDeltaResponse) error + grpc.ServerStream +} + +type diffServiceCommitDeltaServer struct { + grpc.ServerStream +} + +func (x *diffServiceCommitDeltaServer) Send(m *CommitDeltaResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _DiffService_RawDiff_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(RawDiffRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(DiffServiceServer).RawDiff(m, &diffServiceRawDiffServer{stream}) +} + +type DiffService_RawDiffServer interface { + Send(*RawDiffResponse) error + grpc.ServerStream +} + +type diffServiceRawDiffServer struct { + grpc.ServerStream +} + +func (x *diffServiceRawDiffServer) Send(m *RawDiffResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _DiffService_RawPatch_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(RawPatchRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(DiffServiceServer).RawPatch(m, &diffServiceRawPatchServer{stream}) +} + +type DiffService_RawPatchServer interface { + Send(*RawPatchResponse) error + grpc.ServerStream +} + +type diffServiceRawPatchServer struct { + grpc.ServerStream +} + +func (x *diffServiceRawPatchServer) Send(m *RawPatchResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _DiffService_DiffStats_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(DiffStatsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(DiffServiceServer).DiffStats(m, &diffServiceDiffStatsServer{stream}) +} + +type DiffService_DiffStatsServer interface { + Send(*DiffStatsResponse) error + grpc.ServerStream +} + +type diffServiceDiffStatsServer struct { + grpc.ServerStream +} + +func (x *diffServiceDiffStatsServer) Send(m *DiffStatsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _DiffService_FindChangedPaths_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindChangedPathsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(DiffServiceServer).FindChangedPaths(m, &diffServiceFindChangedPathsServer{stream}) +} + +type DiffService_FindChangedPathsServer interface { + Send(*FindChangedPathsResponse) error + grpc.ServerStream +} + +type diffServiceFindChangedPathsServer struct { + grpc.ServerStream +} + +func (x *diffServiceFindChangedPathsServer) Send(m *FindChangedPathsResponse) error { + return x.ServerStream.SendMsg(m) +} + +// DiffService_ServiceDesc is the grpc.ServiceDesc for DiffService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var DiffService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.DiffService", + HandlerType: (*DiffServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "CommitDiff", + Handler: _DiffService_CommitDiff_Handler, + ServerStreams: true, + }, + { + StreamName: "CommitDelta", + Handler: _DiffService_CommitDelta_Handler, + ServerStreams: true, + }, + { + StreamName: "RawDiff", + Handler: _DiffService_RawDiff_Handler, + ServerStreams: true, + }, + { + StreamName: "RawPatch", + Handler: _DiffService_RawPatch_Handler, + ServerStreams: true, + }, + { + StreamName: "DiffStats", + Handler: _DiffService_DiffStats_Handler, + ServerStreams: true, + }, + { + StreamName: "FindChangedPaths", + Handler: _DiffService_FindChangedPaths_Handler, + ServerStreams: true, + }, + }, + Metadata: "diff.proto", +} diff --git a/proto/go/gitalypb/hook.pb.go b/proto/go/gitalypb/hook.pb.go index bf1839a0b..a25bf0254 100644 --- a/proto/go/gitalypb/hook.pb.go +++ b/proto/go/gitalypb/hook.pb.go @@ -1,28 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: hook.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ReferenceTransactionHookRequest_State int32 @@ -32,1054 +28,1061 @@ const ( ReferenceTransactionHookRequest_ABORTED ReferenceTransactionHookRequest_State = 2 ) -var ReferenceTransactionHookRequest_State_name = map[int32]string{ - 0: "PREPARED", - 1: "COMMITTED", - 2: "ABORTED", -} +// Enum value maps for ReferenceTransactionHookRequest_State. +var ( + ReferenceTransactionHookRequest_State_name = map[int32]string{ + 0: "PREPARED", + 1: "COMMITTED", + 2: "ABORTED", + } + ReferenceTransactionHookRequest_State_value = map[string]int32{ + "PREPARED": 0, + "COMMITTED": 1, + "ABORTED": 2, + } +) -var ReferenceTransactionHookRequest_State_value = map[string]int32{ - "PREPARED": 0, - "COMMITTED": 1, - "ABORTED": 2, +func (x ReferenceTransactionHookRequest_State) Enum() *ReferenceTransactionHookRequest_State { + p := new(ReferenceTransactionHookRequest_State) + *p = x + return p } func (x ReferenceTransactionHookRequest_State) String() string { - return proto.EnumName(ReferenceTransactionHookRequest_State_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (ReferenceTransactionHookRequest_State) Descriptor() protoreflect.EnumDescriptor { + return file_hook_proto_enumTypes[0].Descriptor() +} + +func (ReferenceTransactionHookRequest_State) Type() protoreflect.EnumType { + return &file_hook_proto_enumTypes[0] +} + +func (x ReferenceTransactionHookRequest_State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ReferenceTransactionHookRequest_State.Descriptor instead. func (ReferenceTransactionHookRequest_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3eef30da1c11ee1b, []int{6, 0} + return file_hook_proto_rawDescGZIP(), []int{6, 0} } type PreReceiveHookRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` EnvironmentVariables []string `protobuf:"bytes,2,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"` Stdin []byte `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"` GitPushOptions []string `protobuf:"bytes,5,rep,name=git_push_options,json=gitPushOptions,proto3" json:"git_push_options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *PreReceiveHookRequest) Reset() { *m = PreReceiveHookRequest{} } -func (m *PreReceiveHookRequest) String() string { return proto.CompactTextString(m) } -func (*PreReceiveHookRequest) ProtoMessage() {} -func (*PreReceiveHookRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3eef30da1c11ee1b, []int{0} +func (x *PreReceiveHookRequest) Reset() { + *x = PreReceiveHookRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_hook_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PreReceiveHookRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PreReceiveHookRequest.Unmarshal(m, b) -} -func (m *PreReceiveHookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PreReceiveHookRequest.Marshal(b, m, deterministic) -} -func (m *PreReceiveHookRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PreReceiveHookRequest.Merge(m, src) -} -func (m *PreReceiveHookRequest) XXX_Size() int { - return xxx_messageInfo_PreReceiveHookRequest.Size(m) +func (x *PreReceiveHookRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PreReceiveHookRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PreReceiveHookRequest.DiscardUnknown(m) + +func (*PreReceiveHookRequest) ProtoMessage() {} + +func (x *PreReceiveHookRequest) ProtoReflect() protoreflect.Message { + mi := &file_hook_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PreReceiveHookRequest proto.InternalMessageInfo +// Deprecated: Use PreReceiveHookRequest.ProtoReflect.Descriptor instead. +func (*PreReceiveHookRequest) Descriptor() ([]byte, []int) { + return file_hook_proto_rawDescGZIP(), []int{0} +} -func (m *PreReceiveHookRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *PreReceiveHookRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *PreReceiveHookRequest) GetEnvironmentVariables() []string { - if m != nil { - return m.EnvironmentVariables +func (x *PreReceiveHookRequest) GetEnvironmentVariables() []string { + if x != nil { + return x.EnvironmentVariables } return nil } -func (m *PreReceiveHookRequest) GetStdin() []byte { - if m != nil { - return m.Stdin +func (x *PreReceiveHookRequest) GetStdin() []byte { + if x != nil { + return x.Stdin } return nil } -func (m *PreReceiveHookRequest) GetGitPushOptions() []string { - if m != nil { - return m.GitPushOptions +func (x *PreReceiveHookRequest) GetGitPushOptions() []string { + if x != nil { + return x.GitPushOptions } return nil } type PreReceiveHookResponse struct { - Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` - Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` - ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PreReceiveHookResponse) Reset() { *m = PreReceiveHookResponse{} } -func (m *PreReceiveHookResponse) String() string { return proto.CompactTextString(m) } -func (*PreReceiveHookResponse) ProtoMessage() {} -func (*PreReceiveHookResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3eef30da1c11ee1b, []int{1} + Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` + Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` } -func (m *PreReceiveHookResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PreReceiveHookResponse.Unmarshal(m, b) -} -func (m *PreReceiveHookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PreReceiveHookResponse.Marshal(b, m, deterministic) -} -func (m *PreReceiveHookResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PreReceiveHookResponse.Merge(m, src) +func (x *PreReceiveHookResponse) Reset() { + *x = PreReceiveHookResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_hook_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PreReceiveHookResponse) XXX_Size() int { - return xxx_messageInfo_PreReceiveHookResponse.Size(m) + +func (x *PreReceiveHookResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PreReceiveHookResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PreReceiveHookResponse.DiscardUnknown(m) + +func (*PreReceiveHookResponse) ProtoMessage() {} + +func (x *PreReceiveHookResponse) ProtoReflect() protoreflect.Message { + mi := &file_hook_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PreReceiveHookResponse proto.InternalMessageInfo +// Deprecated: Use PreReceiveHookResponse.ProtoReflect.Descriptor instead. +func (*PreReceiveHookResponse) Descriptor() ([]byte, []int) { + return file_hook_proto_rawDescGZIP(), []int{1} +} -func (m *PreReceiveHookResponse) GetStdout() []byte { - if m != nil { - return m.Stdout +func (x *PreReceiveHookResponse) GetStdout() []byte { + if x != nil { + return x.Stdout } return nil } -func (m *PreReceiveHookResponse) GetStderr() []byte { - if m != nil { - return m.Stderr +func (x *PreReceiveHookResponse) GetStderr() []byte { + if x != nil { + return x.Stderr } return nil } -func (m *PreReceiveHookResponse) GetExitStatus() *ExitStatus { - if m != nil { - return m.ExitStatus +func (x *PreReceiveHookResponse) GetExitStatus() *ExitStatus { + if x != nil { + return x.ExitStatus } return nil } type PostReceiveHookRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` EnvironmentVariables []string `protobuf:"bytes,2,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"` Stdin []byte `protobuf:"bytes,3,opt,name=stdin,proto3" json:"stdin,omitempty"` GitPushOptions []string `protobuf:"bytes,4,rep,name=git_push_options,json=gitPushOptions,proto3" json:"git_push_options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *PostReceiveHookRequest) Reset() { *m = PostReceiveHookRequest{} } -func (m *PostReceiveHookRequest) String() string { return proto.CompactTextString(m) } -func (*PostReceiveHookRequest) ProtoMessage() {} -func (*PostReceiveHookRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3eef30da1c11ee1b, []int{2} +func (x *PostReceiveHookRequest) Reset() { + *x = PostReceiveHookRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_hook_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PostReceiveHookRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostReceiveHookRequest.Unmarshal(m, b) +func (x *PostReceiveHookRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PostReceiveHookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostReceiveHookRequest.Marshal(b, m, deterministic) -} -func (m *PostReceiveHookRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostReceiveHookRequest.Merge(m, src) -} -func (m *PostReceiveHookRequest) XXX_Size() int { - return xxx_messageInfo_PostReceiveHookRequest.Size(m) -} -func (m *PostReceiveHookRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PostReceiveHookRequest.DiscardUnknown(m) + +func (*PostReceiveHookRequest) ProtoMessage() {} + +func (x *PostReceiveHookRequest) ProtoReflect() protoreflect.Message { + mi := &file_hook_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PostReceiveHookRequest proto.InternalMessageInfo +// Deprecated: Use PostReceiveHookRequest.ProtoReflect.Descriptor instead. +func (*PostReceiveHookRequest) Descriptor() ([]byte, []int) { + return file_hook_proto_rawDescGZIP(), []int{2} +} -func (m *PostReceiveHookRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *PostReceiveHookRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *PostReceiveHookRequest) GetEnvironmentVariables() []string { - if m != nil { - return m.EnvironmentVariables +func (x *PostReceiveHookRequest) GetEnvironmentVariables() []string { + if x != nil { + return x.EnvironmentVariables } return nil } -func (m *PostReceiveHookRequest) GetStdin() []byte { - if m != nil { - return m.Stdin +func (x *PostReceiveHookRequest) GetStdin() []byte { + if x != nil { + return x.Stdin } return nil } -func (m *PostReceiveHookRequest) GetGitPushOptions() []string { - if m != nil { - return m.GitPushOptions +func (x *PostReceiveHookRequest) GetGitPushOptions() []string { + if x != nil { + return x.GitPushOptions } return nil } type PostReceiveHookResponse struct { - Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` - Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` - ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PostReceiveHookResponse) Reset() { *m = PostReceiveHookResponse{} } -func (m *PostReceiveHookResponse) String() string { return proto.CompactTextString(m) } -func (*PostReceiveHookResponse) ProtoMessage() {} -func (*PostReceiveHookResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3eef30da1c11ee1b, []int{3} + Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` + Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` } -func (m *PostReceiveHookResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostReceiveHookResponse.Unmarshal(m, b) -} -func (m *PostReceiveHookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostReceiveHookResponse.Marshal(b, m, deterministic) -} -func (m *PostReceiveHookResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostReceiveHookResponse.Merge(m, src) +func (x *PostReceiveHookResponse) Reset() { + *x = PostReceiveHookResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_hook_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PostReceiveHookResponse) XXX_Size() int { - return xxx_messageInfo_PostReceiveHookResponse.Size(m) + +func (x *PostReceiveHookResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PostReceiveHookResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PostReceiveHookResponse.DiscardUnknown(m) + +func (*PostReceiveHookResponse) ProtoMessage() {} + +func (x *PostReceiveHookResponse) ProtoReflect() protoreflect.Message { + mi := &file_hook_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PostReceiveHookResponse proto.InternalMessageInfo +// Deprecated: Use PostReceiveHookResponse.ProtoReflect.Descriptor instead. +func (*PostReceiveHookResponse) Descriptor() ([]byte, []int) { + return file_hook_proto_rawDescGZIP(), []int{3} +} -func (m *PostReceiveHookResponse) GetStdout() []byte { - if m != nil { - return m.Stdout +func (x *PostReceiveHookResponse) GetStdout() []byte { + if x != nil { + return x.Stdout } return nil } -func (m *PostReceiveHookResponse) GetStderr() []byte { - if m != nil { - return m.Stderr +func (x *PostReceiveHookResponse) GetStderr() []byte { + if x != nil { + return x.Stderr } return nil } -func (m *PostReceiveHookResponse) GetExitStatus() *ExitStatus { - if m != nil { - return m.ExitStatus +func (x *PostReceiveHookResponse) GetExitStatus() *ExitStatus { + if x != nil { + return x.ExitStatus } return nil } type UpdateHookRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` EnvironmentVariables []string `protobuf:"bytes,2,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"` Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` OldValue string `protobuf:"bytes,4,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"` NewValue string `protobuf:"bytes,5,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *UpdateHookRequest) Reset() { *m = UpdateHookRequest{} } -func (m *UpdateHookRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateHookRequest) ProtoMessage() {} -func (*UpdateHookRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3eef30da1c11ee1b, []int{4} +func (x *UpdateHookRequest) Reset() { + *x = UpdateHookRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_hook_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UpdateHookRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateHookRequest.Unmarshal(m, b) +func (x *UpdateHookRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateHookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateHookRequest.Marshal(b, m, deterministic) -} -func (m *UpdateHookRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateHookRequest.Merge(m, src) -} -func (m *UpdateHookRequest) XXX_Size() int { - return xxx_messageInfo_UpdateHookRequest.Size(m) -} -func (m *UpdateHookRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateHookRequest.DiscardUnknown(m) + +func (*UpdateHookRequest) ProtoMessage() {} + +func (x *UpdateHookRequest) ProtoReflect() protoreflect.Message { + mi := &file_hook_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateHookRequest proto.InternalMessageInfo +// Deprecated: Use UpdateHookRequest.ProtoReflect.Descriptor instead. +func (*UpdateHookRequest) Descriptor() ([]byte, []int) { + return file_hook_proto_rawDescGZIP(), []int{4} +} -func (m *UpdateHookRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UpdateHookRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UpdateHookRequest) GetEnvironmentVariables() []string { - if m != nil { - return m.EnvironmentVariables +func (x *UpdateHookRequest) GetEnvironmentVariables() []string { + if x != nil { + return x.EnvironmentVariables } return nil } -func (m *UpdateHookRequest) GetRef() []byte { - if m != nil { - return m.Ref +func (x *UpdateHookRequest) GetRef() []byte { + if x != nil { + return x.Ref } return nil } -func (m *UpdateHookRequest) GetOldValue() string { - if m != nil { - return m.OldValue +func (x *UpdateHookRequest) GetOldValue() string { + if x != nil { + return x.OldValue } return "" } -func (m *UpdateHookRequest) GetNewValue() string { - if m != nil { - return m.NewValue +func (x *UpdateHookRequest) GetNewValue() string { + if x != nil { + return x.NewValue } return "" } type UpdateHookResponse struct { - Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` - Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` - ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UpdateHookResponse) Reset() { *m = UpdateHookResponse{} } -func (m *UpdateHookResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateHookResponse) ProtoMessage() {} -func (*UpdateHookResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3eef30da1c11ee1b, []int{5} + Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` + Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` } -func (m *UpdateHookResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateHookResponse.Unmarshal(m, b) -} -func (m *UpdateHookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateHookResponse.Marshal(b, m, deterministic) -} -func (m *UpdateHookResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateHookResponse.Merge(m, src) +func (x *UpdateHookResponse) Reset() { + *x = UpdateHookResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_hook_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UpdateHookResponse) XXX_Size() int { - return xxx_messageInfo_UpdateHookResponse.Size(m) + +func (x *UpdateHookResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateHookResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateHookResponse.DiscardUnknown(m) + +func (*UpdateHookResponse) ProtoMessage() {} + +func (x *UpdateHookResponse) ProtoReflect() protoreflect.Message { + mi := &file_hook_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateHookResponse proto.InternalMessageInfo +// Deprecated: Use UpdateHookResponse.ProtoReflect.Descriptor instead. +func (*UpdateHookResponse) Descriptor() ([]byte, []int) { + return file_hook_proto_rawDescGZIP(), []int{5} +} -func (m *UpdateHookResponse) GetStdout() []byte { - if m != nil { - return m.Stdout +func (x *UpdateHookResponse) GetStdout() []byte { + if x != nil { + return x.Stdout } return nil } -func (m *UpdateHookResponse) GetStderr() []byte { - if m != nil { - return m.Stderr +func (x *UpdateHookResponse) GetStderr() []byte { + if x != nil { + return x.Stderr } return nil } -func (m *UpdateHookResponse) GetExitStatus() *ExitStatus { - if m != nil { - return m.ExitStatus +func (x *UpdateHookResponse) GetExitStatus() *ExitStatus { + if x != nil { + return x.ExitStatus } return nil } type ReferenceTransactionHookRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` EnvironmentVariables []string `protobuf:"bytes,2,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"` Stdin []byte `protobuf:"bytes,3,opt,name=stdin,proto3" json:"stdin,omitempty"` State ReferenceTransactionHookRequest_State `protobuf:"varint,4,opt,name=state,proto3,enum=gitaly.ReferenceTransactionHookRequest_State" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReferenceTransactionHookRequest) Reset() { *m = ReferenceTransactionHookRequest{} } -func (m *ReferenceTransactionHookRequest) String() string { return proto.CompactTextString(m) } -func (*ReferenceTransactionHookRequest) ProtoMessage() {} -func (*ReferenceTransactionHookRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3eef30da1c11ee1b, []int{6} } -func (m *ReferenceTransactionHookRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReferenceTransactionHookRequest.Unmarshal(m, b) -} -func (m *ReferenceTransactionHookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReferenceTransactionHookRequest.Marshal(b, m, deterministic) -} -func (m *ReferenceTransactionHookRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReferenceTransactionHookRequest.Merge(m, src) -} -func (m *ReferenceTransactionHookRequest) XXX_Size() int { - return xxx_messageInfo_ReferenceTransactionHookRequest.Size(m) -} -func (m *ReferenceTransactionHookRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReferenceTransactionHookRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ReferenceTransactionHookRequest proto.InternalMessageInfo - -func (m *ReferenceTransactionHookRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ReferenceTransactionHookRequest) Reset() { + *x = ReferenceTransactionHookRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_hook_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *ReferenceTransactionHookRequest) GetEnvironmentVariables() []string { - if m != nil { - return m.EnvironmentVariables - } - return nil +func (x *ReferenceTransactionHookRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReferenceTransactionHookRequest) GetStdin() []byte { - if m != nil { - return m.Stdin - } - return nil -} +func (*ReferenceTransactionHookRequest) ProtoMessage() {} -func (m *ReferenceTransactionHookRequest) GetState() ReferenceTransactionHookRequest_State { - if m != nil { - return m.State +func (x *ReferenceTransactionHookRequest) ProtoReflect() protoreflect.Message { + mi := &file_hook_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return ReferenceTransactionHookRequest_PREPARED + return mi.MessageOf(x) } -type ReferenceTransactionHookResponse struct { - Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` - Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` - ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReferenceTransactionHookResponse) Reset() { *m = ReferenceTransactionHookResponse{} } -func (m *ReferenceTransactionHookResponse) String() string { return proto.CompactTextString(m) } -func (*ReferenceTransactionHookResponse) ProtoMessage() {} -func (*ReferenceTransactionHookResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3eef30da1c11ee1b, []int{7} -} - -func (m *ReferenceTransactionHookResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReferenceTransactionHookResponse.Unmarshal(m, b) -} -func (m *ReferenceTransactionHookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReferenceTransactionHookResponse.Marshal(b, m, deterministic) -} -func (m *ReferenceTransactionHookResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReferenceTransactionHookResponse.Merge(m, src) -} -func (m *ReferenceTransactionHookResponse) XXX_Size() int { - return xxx_messageInfo_ReferenceTransactionHookResponse.Size(m) -} -func (m *ReferenceTransactionHookResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReferenceTransactionHookResponse.DiscardUnknown(m) +// Deprecated: Use ReferenceTransactionHookRequest.ProtoReflect.Descriptor instead. +func (*ReferenceTransactionHookRequest) Descriptor() ([]byte, []int) { + return file_hook_proto_rawDescGZIP(), []int{6} } -var xxx_messageInfo_ReferenceTransactionHookResponse proto.InternalMessageInfo - -func (m *ReferenceTransactionHookResponse) GetStdout() []byte { - if m != nil { - return m.Stdout +func (x *ReferenceTransactionHookRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ReferenceTransactionHookResponse) GetStderr() []byte { - if m != nil { - return m.Stderr +func (x *ReferenceTransactionHookRequest) GetEnvironmentVariables() []string { + if x != nil { + return x.EnvironmentVariables } return nil } -func (m *ReferenceTransactionHookResponse) GetExitStatus() *ExitStatus { - if m != nil { - return m.ExitStatus +func (x *ReferenceTransactionHookRequest) GetStdin() []byte { + if x != nil { + return x.Stdin } return nil } -type PackObjectsHookRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - // args contains the arguments passed to the pack-objects hook, without the leading "git" - Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` - // stdin is meant for consumption by git-pack-objects - Stdin []byte `protobuf:"bytes,3,opt,name=stdin,proto3" json:"stdin,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PackObjectsHookRequest) Reset() { *m = PackObjectsHookRequest{} } -func (m *PackObjectsHookRequest) String() string { return proto.CompactTextString(m) } -func (*PackObjectsHookRequest) ProtoMessage() {} -func (*PackObjectsHookRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3eef30da1c11ee1b, []int{8} -} - -func (m *PackObjectsHookRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PackObjectsHookRequest.Unmarshal(m, b) -} -func (m *PackObjectsHookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PackObjectsHookRequest.Marshal(b, m, deterministic) -} -func (m *PackObjectsHookRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PackObjectsHookRequest.Merge(m, src) -} -func (m *PackObjectsHookRequest) XXX_Size() int { - return xxx_messageInfo_PackObjectsHookRequest.Size(m) -} -func (m *PackObjectsHookRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PackObjectsHookRequest.DiscardUnknown(m) +func (x *ReferenceTransactionHookRequest) GetState() ReferenceTransactionHookRequest_State { + if x != nil { + return x.State + } + return ReferenceTransactionHookRequest_PREPARED } -var xxx_messageInfo_PackObjectsHookRequest proto.InternalMessageInfo +type ReferenceTransactionHookResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PackObjectsHookRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil + Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` + Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` } -func (m *PackObjectsHookRequest) GetArgs() []string { - if m != nil { - return m.Args +func (x *ReferenceTransactionHookResponse) Reset() { + *x = ReferenceTransactionHookResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_hook_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *PackObjectsHookRequest) GetStdin() []byte { - if m != nil { - return m.Stdin - } - return nil +func (x *ReferenceTransactionHookResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type PackObjectsHookResponse struct { - // stdout contains packfile data - Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` - // stderr contains progress messages (such as "Enumerating objects ...") - Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*ReferenceTransactionHookResponse) ProtoMessage() {} -func (m *PackObjectsHookResponse) Reset() { *m = PackObjectsHookResponse{} } -func (m *PackObjectsHookResponse) String() string { return proto.CompactTextString(m) } -func (*PackObjectsHookResponse) ProtoMessage() {} -func (*PackObjectsHookResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3eef30da1c11ee1b, []int{9} +func (x *ReferenceTransactionHookResponse) ProtoReflect() protoreflect.Message { + mi := &file_hook_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *PackObjectsHookResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PackObjectsHookResponse.Unmarshal(m, b) -} -func (m *PackObjectsHookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PackObjectsHookResponse.Marshal(b, m, deterministic) -} -func (m *PackObjectsHookResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PackObjectsHookResponse.Merge(m, src) -} -func (m *PackObjectsHookResponse) XXX_Size() int { - return xxx_messageInfo_PackObjectsHookResponse.Size(m) -} -func (m *PackObjectsHookResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PackObjectsHookResponse.DiscardUnknown(m) +// Deprecated: Use ReferenceTransactionHookResponse.ProtoReflect.Descriptor instead. +func (*ReferenceTransactionHookResponse) Descriptor() ([]byte, []int) { + return file_hook_proto_rawDescGZIP(), []int{7} } -var xxx_messageInfo_PackObjectsHookResponse proto.InternalMessageInfo - -func (m *PackObjectsHookResponse) GetStdout() []byte { - if m != nil { - return m.Stdout +func (x *ReferenceTransactionHookResponse) GetStdout() []byte { + if x != nil { + return x.Stdout } return nil } -func (m *PackObjectsHookResponse) GetStderr() []byte { - if m != nil { - return m.Stderr +func (x *ReferenceTransactionHookResponse) GetStderr() []byte { + if x != nil { + return x.Stderr } return nil } -func init() { - proto.RegisterEnum("gitaly.ReferenceTransactionHookRequest_State", ReferenceTransactionHookRequest_State_name, ReferenceTransactionHookRequest_State_value) - proto.RegisterType((*PreReceiveHookRequest)(nil), "gitaly.PreReceiveHookRequest") - proto.RegisterType((*PreReceiveHookResponse)(nil), "gitaly.PreReceiveHookResponse") - proto.RegisterType((*PostReceiveHookRequest)(nil), "gitaly.PostReceiveHookRequest") - proto.RegisterType((*PostReceiveHookResponse)(nil), "gitaly.PostReceiveHookResponse") - proto.RegisterType((*UpdateHookRequest)(nil), "gitaly.UpdateHookRequest") - proto.RegisterType((*UpdateHookResponse)(nil), "gitaly.UpdateHookResponse") - proto.RegisterType((*ReferenceTransactionHookRequest)(nil), "gitaly.ReferenceTransactionHookRequest") - proto.RegisterType((*ReferenceTransactionHookResponse)(nil), "gitaly.ReferenceTransactionHookResponse") - proto.RegisterType((*PackObjectsHookRequest)(nil), "gitaly.PackObjectsHookRequest") - proto.RegisterType((*PackObjectsHookResponse)(nil), "gitaly.PackObjectsHookResponse") -} - -func init() { proto.RegisterFile("hook.proto", fileDescriptor_3eef30da1c11ee1b) } - -var fileDescriptor_3eef30da1c11ee1b = []byte{ - // 649 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4d, 0x6f, 0xd3, 0x4a, - 0x14, 0x7d, 0xce, 0xd7, 0x6b, 0x6e, 0xf2, 0xfa, 0xc2, 0xa8, 0x4d, 0x8d, 0x11, 0x34, 0xf2, 0x06, - 0x2f, 0x68, 0xd2, 0xa6, 0x5d, 0xb0, 0xed, 0x47, 0x24, 0xba, 0xa8, 0x12, 0x4d, 0x4b, 0x17, 0x20, - 0x11, 0x39, 0xce, 0xad, 0x33, 0xd4, 0xf5, 0x98, 0x99, 0x49, 0xda, 0x48, 0xc0, 0x96, 0x9f, 0x00, - 0x2b, 0x7e, 0x4e, 0xd9, 0xf1, 0x6b, 0x58, 0xb1, 0x42, 0xb6, 0x93, 0x36, 0x69, 0x1d, 0x8a, 0x10, - 0x2a, 0xdd, 0xcd, 0xbd, 0x67, 0xe6, 0xcc, 0x9c, 0x73, 0x6f, 0x6e, 0x0c, 0xd0, 0xe3, 0xfc, 0xb8, - 0x1a, 0x08, 0xae, 0x38, 0xc9, 0xb9, 0x4c, 0xd9, 0xde, 0xd0, 0x00, 0x8f, 0xf9, 0x2a, 0xce, 0x19, - 0x45, 0xd9, 0xb3, 0x05, 0x76, 0xe3, 0xc8, 0x3c, 0xd7, 0x60, 0xb1, 0x25, 0x90, 0xa2, 0x83, 0x6c, - 0x80, 0xcf, 0x38, 0x3f, 0xa6, 0xf8, 0xa6, 0x8f, 0x52, 0x91, 0xa7, 0x00, 0x02, 0x03, 0x2e, 0x99, - 0xe2, 0x62, 0xa8, 0x6b, 0x15, 0xcd, 0x2a, 0xd4, 0x49, 0x35, 0x26, 0xac, 0xd2, 0x0b, 0x64, 0x2b, - 0xf3, 0xe9, 0xfc, 0x89, 0x46, 0x27, 0xf6, 0x92, 0x75, 0x58, 0x44, 0x7f, 0xc0, 0x04, 0xf7, 0x4f, - 0xd0, 0x57, 0xed, 0x81, 0x2d, 0x98, 0xdd, 0xf1, 0x50, 0xea, 0xa9, 0x4a, 0xda, 0xca, 0xd3, 0x85, - 0x09, 0xf0, 0x70, 0x8c, 0x91, 0x05, 0xc8, 0x4a, 0xd5, 0x65, 0xbe, 0x9e, 0xa9, 0x68, 0x56, 0x91, - 0xc6, 0x01, 0xb1, 0xa0, 0xe4, 0x32, 0xd5, 0x0e, 0xfa, 0xb2, 0xd7, 0xe6, 0x81, 0x62, 0xdc, 0x97, - 0x7a, 0x36, 0x62, 0x99, 0x77, 0x99, 0x6a, 0xf5, 0x65, 0xaf, 0x19, 0x67, 0xcd, 0x77, 0x50, 0xbe, - 0xaa, 0x43, 0x06, 0xdc, 0x97, 0x48, 0xca, 0x90, 0x93, 0xaa, 0xcb, 0xfb, 0x2a, 0x12, 0x51, 0xa4, - 0xa3, 0x68, 0x94, 0x47, 0x21, 0xf4, 0xd4, 0x45, 0x1e, 0x85, 0x20, 0xeb, 0x50, 0xc0, 0x33, 0xa6, - 0xda, 0x52, 0xd9, 0xaa, 0x2f, 0xf5, 0xf4, 0xb4, 0xf2, 0xc6, 0x19, 0x53, 0xfb, 0x11, 0x42, 0x01, - 0x2f, 0xd6, 0xe6, 0x17, 0x0d, 0xca, 0x2d, 0x2e, 0xd5, 0x1d, 0x32, 0x32, 0x7d, 0x93, 0x91, 0x99, - 0x44, 0x23, 0xdf, 0xc3, 0xd2, 0x35, 0x21, 0xb7, 0xe9, 0xe4, 0x57, 0x0d, 0xee, 0x3d, 0x0f, 0xba, - 0xb6, 0xfa, 0x9b, 0x26, 0x96, 0x20, 0x2d, 0xf0, 0x68, 0x64, 0x61, 0xb8, 0x24, 0x0f, 0x20, 0xcf, - 0xbd, 0x6e, 0x7b, 0x60, 0x7b, 0x7d, 0x8c, 0x7a, 0x34, 0x4f, 0xe7, 0xb8, 0xd7, 0x3d, 0x0c, 0xe3, - 0x10, 0xf4, 0xf1, 0x74, 0x04, 0x66, 0x63, 0xd0, 0xc7, 0xd3, 0x08, 0x34, 0x87, 0x40, 0x26, 0xf5, - 0xdc, 0xa6, 0x97, 0x9f, 0x53, 0xb0, 0x4c, 0xf1, 0x08, 0x05, 0xfa, 0x0e, 0x1e, 0x08, 0xdb, 0x97, - 0xb6, 0x13, 0x56, 0xf9, 0xce, 0xb5, 0xe7, 0x76, 0x98, 0xb5, 0x55, 0xec, 0xec, 0x7c, 0x7d, 0xe5, - 0xf2, 0xfe, 0x9f, 0x3e, 0xbe, 0x1a, 0xea, 0x44, 0x1a, 0x9f, 0x35, 0xd7, 0x20, 0x1b, 0xc5, 0xa4, - 0x08, 0x73, 0x2d, 0xda, 0x68, 0x6d, 0xd2, 0xc6, 0x4e, 0xe9, 0x1f, 0xf2, 0x1f, 0xe4, 0xb7, 0x9b, - 0x7b, 0x7b, 0xbb, 0x07, 0x07, 0x8d, 0x9d, 0x92, 0x46, 0x0a, 0xf0, 0xef, 0xe6, 0x56, 0x93, 0x86, - 0x41, 0xca, 0xfc, 0xa0, 0x41, 0x65, 0xf6, 0x1d, 0xb7, 0x59, 0xaa, 0xb7, 0x50, 0x6e, 0xd9, 0xce, - 0x71, 0xb3, 0xf3, 0x1a, 0x1d, 0x25, 0xff, 0x4c, 0x81, 0x08, 0x64, 0x6c, 0xe1, 0x8e, 0xeb, 0x11, - 0xad, 0x93, 0xfd, 0x37, 0x77, 0x61, 0xe9, 0xda, 0xed, 0xbf, 0xa7, 0xbe, 0xfe, 0x2d, 0x0d, 0x85, - 0x90, 0x60, 0x1f, 0xc5, 0x80, 0x39, 0x48, 0x5e, 0xc2, 0xfc, 0xf4, 0x60, 0x26, 0x0f, 0xc7, 0x8f, - 0x4f, 0xfc, 0xe3, 0x31, 0x1e, 0xcd, 0x82, 0xe3, 0x07, 0x99, 0xb9, 0xef, 0x1f, 0xad, 0xd4, 0x5c, - 0xca, 0xd2, 0x56, 0x35, 0xf2, 0x0a, 0xfe, 0xbf, 0x32, 0xac, 0xc8, 0xe5, 0xf1, 0xc4, 0x71, 0x6c, - 0x2c, 0xcf, 0xc4, 0x13, 0xf8, 0xf7, 0x00, 0x2e, 0x7f, 0xbb, 0xe4, 0xfe, 0xf8, 0xe8, 0xb5, 0xf9, - 0x64, 0x18, 0x49, 0xd0, 0x34, 0xe1, 0xaa, 0x46, 0x86, 0xa0, 0xcf, 0xea, 0x36, 0xf2, 0xf8, 0x17, - 0x7b, 0xde, 0xb0, 0x6e, 0xde, 0x38, 0xc3, 0xa9, 0xe9, 0x0a, 0x4f, 0x38, 0x95, 0xd8, 0x78, 0x13, - 0x4e, 0x25, 0xb7, 0xc6, 0x24, 0xff, 0xd6, 0xc6, 0x8b, 0xba, 0xcb, 0x94, 0x67, 0x77, 0xaa, 0x0e, - 0x3f, 0xa9, 0xc5, 0xcb, 0x15, 0x2e, 0xdc, 0x5a, 0xcc, 0x51, 0x1b, 0xac, 0x6d, 0xd4, 0xa2, 0x4f, - 0x8e, 0x9a, 0xcb, 0x47, 0xb9, 0xa0, 0xd3, 0xc9, 0x45, 0xa9, 0xf5, 0x1f, 0x01, 0x00, 0x00, 0xff, - 0xff, 0xde, 0xf8, 0x7f, 0xae, 0xb5, 0x08, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// HookServiceClient is the client API for HookService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type HookServiceClient interface { - PreReceiveHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PreReceiveHookClient, error) - PostReceiveHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PostReceiveHookClient, error) - UpdateHook(ctx context.Context, in *UpdateHookRequest, opts ...grpc.CallOption) (HookService_UpdateHookClient, error) - ReferenceTransactionHook(ctx context.Context, opts ...grpc.CallOption) (HookService_ReferenceTransactionHookClient, error) - // PackObjectsHook is meant to be called by git-upload-pack via the - // uploadpack.packObjectsHook mechanism. It generates a stream of packed - // Git objects. - PackObjectsHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PackObjectsHookClient, error) -} - -type hookServiceClient struct { - cc *grpc.ClientConn -} - -func NewHookServiceClient(cc *grpc.ClientConn) HookServiceClient { - return &hookServiceClient{cc} -} - -func (c *hookServiceClient) PreReceiveHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PreReceiveHookClient, error) { - stream, err := c.cc.NewStream(ctx, &_HookService_serviceDesc.Streams[0], "/gitaly.HookService/PreReceiveHook", opts...) - if err != nil { - return nil, err +func (x *ReferenceTransactionHookResponse) GetExitStatus() *ExitStatus { + if x != nil { + return x.ExitStatus } - x := &hookServicePreReceiveHookClient{stream} - return x, nil -} - -type HookService_PreReceiveHookClient interface { - Send(*PreReceiveHookRequest) error - Recv() (*PreReceiveHookResponse, error) - grpc.ClientStream -} - -type hookServicePreReceiveHookClient struct { - grpc.ClientStream + return nil } -func (x *hookServicePreReceiveHookClient) Send(m *PreReceiveHookRequest) error { - return x.ClientStream.SendMsg(m) -} +type PackObjectsHookRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *hookServicePreReceiveHookClient) Recv() (*PreReceiveHookResponse, error) { - m := new(PreReceiveHookResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // args contains the arguments passed to the pack-objects hook, without the leading "git" + Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` + // stdin is meant for consumption by git-pack-objects + Stdin []byte `protobuf:"bytes,3,opt,name=stdin,proto3" json:"stdin,omitempty"` } -func (c *hookServiceClient) PostReceiveHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PostReceiveHookClient, error) { - stream, err := c.cc.NewStream(ctx, &_HookService_serviceDesc.Streams[1], "/gitaly.HookService/PostReceiveHook", opts...) - if err != nil { - return nil, err +func (x *PackObjectsHookRequest) Reset() { + *x = PackObjectsHookRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_hook_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - x := &hookServicePostReceiveHookClient{stream} - return x, nil } -type HookService_PostReceiveHookClient interface { - Send(*PostReceiveHookRequest) error - Recv() (*PostReceiveHookResponse, error) - grpc.ClientStream +func (x *PackObjectsHookRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type hookServicePostReceiveHookClient struct { - grpc.ClientStream -} +func (*PackObjectsHookRequest) ProtoMessage() {} -func (x *hookServicePostReceiveHookClient) Send(m *PostReceiveHookRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *hookServicePostReceiveHookClient) Recv() (*PostReceiveHookResponse, error) { - m := new(PostReceiveHookResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *hookServiceClient) UpdateHook(ctx context.Context, in *UpdateHookRequest, opts ...grpc.CallOption) (HookService_UpdateHookClient, error) { - stream, err := c.cc.NewStream(ctx, &_HookService_serviceDesc.Streams[2], "/gitaly.HookService/UpdateHook", opts...) - if err != nil { - return nil, err +func (x *PackObjectsHookRequest) ProtoReflect() protoreflect.Message { + mi := &file_hook_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - x := &hookServiceUpdateHookClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type HookService_UpdateHookClient interface { - Recv() (*UpdateHookResponse, error) - grpc.ClientStream -} - -type hookServiceUpdateHookClient struct { - grpc.ClientStream + return mi.MessageOf(x) } -func (x *hookServiceUpdateHookClient) Recv() (*UpdateHookResponse, error) { - m := new(UpdateHookResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +// Deprecated: Use PackObjectsHookRequest.ProtoReflect.Descriptor instead. +func (*PackObjectsHookRequest) Descriptor() ([]byte, []int) { + return file_hook_proto_rawDescGZIP(), []int{8} } -func (c *hookServiceClient) ReferenceTransactionHook(ctx context.Context, opts ...grpc.CallOption) (HookService_ReferenceTransactionHookClient, error) { - stream, err := c.cc.NewStream(ctx, &_HookService_serviceDesc.Streams[3], "/gitaly.HookService/ReferenceTransactionHook", opts...) - if err != nil { - return nil, err +func (x *PackObjectsHookRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - x := &hookServiceReferenceTransactionHookClient{stream} - return x, nil -} - -type HookService_ReferenceTransactionHookClient interface { - Send(*ReferenceTransactionHookRequest) error - Recv() (*ReferenceTransactionHookResponse, error) - grpc.ClientStream -} - -type hookServiceReferenceTransactionHookClient struct { - grpc.ClientStream -} - -func (x *hookServiceReferenceTransactionHookClient) Send(m *ReferenceTransactionHookRequest) error { - return x.ClientStream.SendMsg(m) + return nil } -func (x *hookServiceReferenceTransactionHookClient) Recv() (*ReferenceTransactionHookResponse, error) { - m := new(ReferenceTransactionHookResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *PackObjectsHookRequest) GetArgs() []string { + if x != nil { + return x.Args } - return m, nil + return nil } -func (c *hookServiceClient) PackObjectsHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PackObjectsHookClient, error) { - stream, err := c.cc.NewStream(ctx, &_HookService_serviceDesc.Streams[4], "/gitaly.HookService/PackObjectsHook", opts...) - if err != nil { - return nil, err +func (x *PackObjectsHookRequest) GetStdin() []byte { + if x != nil { + return x.Stdin } - x := &hookServicePackObjectsHookClient{stream} - return x, nil -} - -type HookService_PackObjectsHookClient interface { - Send(*PackObjectsHookRequest) error - Recv() (*PackObjectsHookResponse, error) - grpc.ClientStream + return nil } -type hookServicePackObjectsHookClient struct { - grpc.ClientStream -} +type PackObjectsHookResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *hookServicePackObjectsHookClient) Send(m *PackObjectsHookRequest) error { - return x.ClientStream.SendMsg(m) + // stdout contains packfile data + Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` + // stderr contains progress messages (such as "Enumerating objects ...") + Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` } -func (x *hookServicePackObjectsHookClient) Recv() (*PackObjectsHookResponse, error) { - m := new(PackObjectsHookResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *PackObjectsHookResponse) Reset() { + *x = PackObjectsHookResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_hook_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil -} - -// HookServiceServer is the server API for HookService service. -type HookServiceServer interface { - PreReceiveHook(HookService_PreReceiveHookServer) error - PostReceiveHook(HookService_PostReceiveHookServer) error - UpdateHook(*UpdateHookRequest, HookService_UpdateHookServer) error - ReferenceTransactionHook(HookService_ReferenceTransactionHookServer) error - // PackObjectsHook is meant to be called by git-upload-pack via the - // uploadpack.packObjectsHook mechanism. It generates a stream of packed - // Git objects. - PackObjectsHook(HookService_PackObjectsHookServer) error -} - -// UnimplementedHookServiceServer can be embedded to have forward compatible implementations. -type UnimplementedHookServiceServer struct { -} - -func (*UnimplementedHookServiceServer) PreReceiveHook(srv HookService_PreReceiveHookServer) error { - return status.Errorf(codes.Unimplemented, "method PreReceiveHook not implemented") -} -func (*UnimplementedHookServiceServer) PostReceiveHook(srv HookService_PostReceiveHookServer) error { - return status.Errorf(codes.Unimplemented, "method PostReceiveHook not implemented") -} -func (*UnimplementedHookServiceServer) UpdateHook(req *UpdateHookRequest, srv HookService_UpdateHookServer) error { - return status.Errorf(codes.Unimplemented, "method UpdateHook not implemented") -} -func (*UnimplementedHookServiceServer) ReferenceTransactionHook(srv HookService_ReferenceTransactionHookServer) error { - return status.Errorf(codes.Unimplemented, "method ReferenceTransactionHook not implemented") -} -func (*UnimplementedHookServiceServer) PackObjectsHook(srv HookService_PackObjectsHookServer) error { - return status.Errorf(codes.Unimplemented, "method PackObjectsHook not implemented") -} - -func RegisterHookServiceServer(s *grpc.Server, srv HookServiceServer) { - s.RegisterService(&_HookService_serviceDesc, srv) -} - -func _HookService_PreReceiveHook_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(HookServiceServer).PreReceiveHook(&hookServicePreReceiveHookServer{stream}) -} - -type HookService_PreReceiveHookServer interface { - Send(*PreReceiveHookResponse) error - Recv() (*PreReceiveHookRequest, error) - grpc.ServerStream } -type hookServicePreReceiveHookServer struct { - grpc.ServerStream +func (x *PackObjectsHookResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *hookServicePreReceiveHookServer) Send(m *PreReceiveHookResponse) error { - return x.ServerStream.SendMsg(m) -} +func (*PackObjectsHookResponse) ProtoMessage() {} -func (x *hookServicePreReceiveHookServer) Recv() (*PreReceiveHookRequest, error) { - m := new(PreReceiveHookRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func (x *PackObjectsHookResponse) ProtoReflect() protoreflect.Message { + mi := &file_hook_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -func _HookService_PostReceiveHook_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(HookServiceServer).PostReceiveHook(&hookServicePostReceiveHookServer{stream}) -} - -type HookService_PostReceiveHookServer interface { - Send(*PostReceiveHookResponse) error - Recv() (*PostReceiveHookRequest, error) - grpc.ServerStream -} - -type hookServicePostReceiveHookServer struct { - grpc.ServerStream -} - -func (x *hookServicePostReceiveHookServer) Send(m *PostReceiveHookResponse) error { - return x.ServerStream.SendMsg(m) +// Deprecated: Use PackObjectsHookResponse.ProtoReflect.Descriptor instead. +func (*PackObjectsHookResponse) Descriptor() ([]byte, []int) { + return file_hook_proto_rawDescGZIP(), []int{9} } -func (x *hookServicePostReceiveHookServer) Recv() (*PostReceiveHookRequest, error) { - m := new(PostReceiveHookRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func (x *PackObjectsHookResponse) GetStdout() []byte { + if x != nil { + return x.Stdout } - return m, nil + return nil } -func _HookService_UpdateHook_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(UpdateHookRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *PackObjectsHookResponse) GetStderr() []byte { + if x != nil { + return x.Stderr } - return srv.(HookServiceServer).UpdateHook(m, &hookServiceUpdateHookServer{stream}) -} - -type HookService_UpdateHookServer interface { - Send(*UpdateHookResponse) error - grpc.ServerStream -} - -type hookServiceUpdateHookServer struct { - grpc.ServerStream -} - -func (x *hookServiceUpdateHookServer) Send(m *UpdateHookResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _HookService_ReferenceTransactionHook_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(HookServiceServer).ReferenceTransactionHook(&hookServiceReferenceTransactionHookServer{stream}) -} - -type HookService_ReferenceTransactionHookServer interface { - Send(*ReferenceTransactionHookResponse) error - Recv() (*ReferenceTransactionHookRequest, error) - grpc.ServerStream -} - -type hookServiceReferenceTransactionHookServer struct { - grpc.ServerStream + return nil } -func (x *hookServiceReferenceTransactionHookServer) Send(m *ReferenceTransactionHookResponse) error { - return x.ServerStream.SendMsg(m) -} +var File_hook_proto protoreflect.FileDescriptor + +var file_hook_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc6, + 0x01, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x48, 0x6f, 0x6f, + 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x33, 0x0a, 0x15, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, + 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x14, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, + 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x12, 0x28, 0x0a, + 0x10, 0x67, 0x69, 0x74, 0x5f, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x67, 0x69, 0x74, 0x50, 0x75, 0x73, 0x68, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7d, 0x0a, 0x16, 0x50, 0x72, 0x65, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, + 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, + 0x72, 0x12, 0x33, 0x0a, 0x0b, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x45, 0x78, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0a, 0x65, 0x78, 0x69, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xc7, 0x01, 0x0a, 0x16, 0x50, 0x6f, 0x73, 0x74, 0x52, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x33, 0x0a, 0x15, 0x65, + 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, + 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x65, 0x6e, 0x76, 0x69, + 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, + 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x69, 0x74, 0x5f, 0x70, 0x75, + 0x73, 0x68, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0e, 0x67, 0x69, 0x74, 0x50, 0x75, 0x73, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x22, 0x7e, 0x0a, 0x17, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x48, + 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x74, 0x64, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, + 0x6f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x12, 0x33, 0x0a, 0x0b, 0x65, + 0x78, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x45, 0x78, 0x69, 0x74, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x0a, 0x65, 0x78, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x22, 0xce, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, + 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x33, 0x0a, 0x15, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, + 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x14, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x6c, 0x64, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x6c, 0x64, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x22, 0x79, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x12, 0x33, 0x0a, 0x0b, 0x65, 0x78, 0x69, 0x74, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x45, 0x78, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x0a, 0x65, 0x78, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x9e, 0x02, 0x0a, + 0x1f, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x33, 0x0a, 0x15, 0x65, 0x6e, + 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, + 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x65, 0x6e, 0x76, 0x69, 0x72, + 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, + 0x14, 0x0a, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, + 0x73, 0x74, 0x64, 0x69, 0x6e, 0x12, 0x43, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x31, 0x0a, 0x05, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x52, 0x45, 0x50, 0x41, 0x52, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x54, 0x45, 0x44, 0x10, 0x01, + 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x87, 0x01, + 0x0a, 0x20, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, + 0x64, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x65, + 0x72, 0x72, 0x12, 0x33, 0x0a, 0x0b, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x45, 0x78, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0a, 0x65, 0x78, 0x69, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x7c, 0x0a, 0x16, 0x50, 0x61, 0x63, 0x6b, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x61, + 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, + 0x14, 0x0a, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, + 0x73, 0x74, 0x64, 0x69, 0x6e, 0x22, 0x49, 0x0a, 0x17, 0x50, 0x61, 0x63, 0x6b, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x65, + 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, + 0x32, 0xf4, 0x03, 0x0a, 0x0b, 0x48, 0x6f, 0x6f, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x5b, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x48, 0x6f, + 0x6f, 0x6b, 0x12, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x50, 0x72, 0x65, 0x52, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x50, 0x72, 0x65, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x28, 0x01, 0x30, 0x01, 0x12, 0x5e, 0x0a, + 0x0f, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x48, 0x6f, 0x6f, 0x6b, + 0x12, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x28, 0x01, 0x30, 0x01, 0x12, 0x4d, 0x0a, + 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x12, 0x19, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x79, 0x0a, 0x18, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x6f, 0x6f, 0x6b, 0x12, 0x27, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, + 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x02, 0x28, 0x01, 0x30, 0x01, 0x12, 0x5e, 0x0a, 0x0f, 0x50, 0x61, 0x63, 0x6b, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x48, 0x6f, 0x6f, 0x6b, 0x12, 0x1e, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x48, + 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x48, + 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x02, 0x28, 0x01, 0x30, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, + 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_hook_proto_rawDescOnce sync.Once + file_hook_proto_rawDescData = file_hook_proto_rawDesc +) -func (x *hookServiceReferenceTransactionHookServer) Recv() (*ReferenceTransactionHookRequest, error) { - m := new(ReferenceTransactionHookRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func file_hook_proto_rawDescGZIP() []byte { + file_hook_proto_rawDescOnce.Do(func() { + file_hook_proto_rawDescData = protoimpl.X.CompressGZIP(file_hook_proto_rawDescData) + }) + return file_hook_proto_rawDescData +} + +var file_hook_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_hook_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_hook_proto_goTypes = []interface{}{ + (ReferenceTransactionHookRequest_State)(0), // 0: gitaly.ReferenceTransactionHookRequest.State + (*PreReceiveHookRequest)(nil), // 1: gitaly.PreReceiveHookRequest + (*PreReceiveHookResponse)(nil), // 2: gitaly.PreReceiveHookResponse + (*PostReceiveHookRequest)(nil), // 3: gitaly.PostReceiveHookRequest + (*PostReceiveHookResponse)(nil), // 4: gitaly.PostReceiveHookResponse + (*UpdateHookRequest)(nil), // 5: gitaly.UpdateHookRequest + (*UpdateHookResponse)(nil), // 6: gitaly.UpdateHookResponse + (*ReferenceTransactionHookRequest)(nil), // 7: gitaly.ReferenceTransactionHookRequest + (*ReferenceTransactionHookResponse)(nil), // 8: gitaly.ReferenceTransactionHookResponse + (*PackObjectsHookRequest)(nil), // 9: gitaly.PackObjectsHookRequest + (*PackObjectsHookResponse)(nil), // 10: gitaly.PackObjectsHookResponse + (*Repository)(nil), // 11: gitaly.Repository + (*ExitStatus)(nil), // 12: gitaly.ExitStatus +} +var file_hook_proto_depIdxs = []int32{ + 11, // 0: gitaly.PreReceiveHookRequest.repository:type_name -> gitaly.Repository + 12, // 1: gitaly.PreReceiveHookResponse.exit_status:type_name -> gitaly.ExitStatus + 11, // 2: gitaly.PostReceiveHookRequest.repository:type_name -> gitaly.Repository + 12, // 3: gitaly.PostReceiveHookResponse.exit_status:type_name -> gitaly.ExitStatus + 11, // 4: gitaly.UpdateHookRequest.repository:type_name -> gitaly.Repository + 12, // 5: gitaly.UpdateHookResponse.exit_status:type_name -> gitaly.ExitStatus + 11, // 6: gitaly.ReferenceTransactionHookRequest.repository:type_name -> gitaly.Repository + 0, // 7: gitaly.ReferenceTransactionHookRequest.state:type_name -> gitaly.ReferenceTransactionHookRequest.State + 12, // 8: gitaly.ReferenceTransactionHookResponse.exit_status:type_name -> gitaly.ExitStatus + 11, // 9: gitaly.PackObjectsHookRequest.repository:type_name -> gitaly.Repository + 1, // 10: gitaly.HookService.PreReceiveHook:input_type -> gitaly.PreReceiveHookRequest + 3, // 11: gitaly.HookService.PostReceiveHook:input_type -> gitaly.PostReceiveHookRequest + 5, // 12: gitaly.HookService.UpdateHook:input_type -> gitaly.UpdateHookRequest + 7, // 13: gitaly.HookService.ReferenceTransactionHook:input_type -> gitaly.ReferenceTransactionHookRequest + 9, // 14: gitaly.HookService.PackObjectsHook:input_type -> gitaly.PackObjectsHookRequest + 2, // 15: gitaly.HookService.PreReceiveHook:output_type -> gitaly.PreReceiveHookResponse + 4, // 16: gitaly.HookService.PostReceiveHook:output_type -> gitaly.PostReceiveHookResponse + 6, // 17: gitaly.HookService.UpdateHook:output_type -> gitaly.UpdateHookResponse + 8, // 18: gitaly.HookService.ReferenceTransactionHook:output_type -> gitaly.ReferenceTransactionHookResponse + 10, // 19: gitaly.HookService.PackObjectsHook:output_type -> gitaly.PackObjectsHookResponse + 15, // [15:20] is the sub-list for method output_type + 10, // [10:15] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_hook_proto_init() } +func file_hook_proto_init() { + if File_hook_proto != nil { + return } - return m, nil -} - -func _HookService_PackObjectsHook_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(HookServiceServer).PackObjectsHook(&hookServicePackObjectsHookServer{stream}) -} - -type HookService_PackObjectsHookServer interface { - Send(*PackObjectsHookResponse) error - Recv() (*PackObjectsHookRequest, error) - grpc.ServerStream -} - -type hookServicePackObjectsHookServer struct { - grpc.ServerStream -} - -func (x *hookServicePackObjectsHookServer) Send(m *PackObjectsHookResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *hookServicePackObjectsHookServer) Recv() (*PackObjectsHookRequest, error) { - m := new(PackObjectsHookRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_hook_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PreReceiveHookRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hook_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PreReceiveHookResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hook_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostReceiveHookRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hook_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostReceiveHookResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hook_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateHookRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hook_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateHookResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hook_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReferenceTransactionHookRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hook_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReferenceTransactionHookResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hook_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PackObjectsHookRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hook_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PackObjectsHookResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return m, nil -} - -var _HookService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.HookService", - HandlerType: (*HookServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "PreReceiveHook", - Handler: _HookService_PreReceiveHook_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "PostReceiveHook", - Handler: _HookService_PostReceiveHook_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "UpdateHook", - Handler: _HookService_UpdateHook_Handler, - ServerStreams: true, - }, - { - StreamName: "ReferenceTransactionHook", - Handler: _HookService_ReferenceTransactionHook_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "PackObjectsHook", - Handler: _HookService_PackObjectsHook_Handler, - ServerStreams: true, - ClientStreams: true, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_hook_proto_rawDesc, + NumEnums: 1, + NumMessages: 10, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "hook.proto", + GoTypes: file_hook_proto_goTypes, + DependencyIndexes: file_hook_proto_depIdxs, + EnumInfos: file_hook_proto_enumTypes, + MessageInfos: file_hook_proto_msgTypes, + }.Build() + File_hook_proto = out.File + file_hook_proto_rawDesc = nil + file_hook_proto_goTypes = nil + file_hook_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/hook_grpc.pb.go b/proto/go/gitalypb/hook_grpc.pb.go new file mode 100644 index 000000000..7efe8249f --- /dev/null +++ b/proto/go/gitalypb/hook_grpc.pb.go @@ -0,0 +1,406 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// HookServiceClient is the client API for HookService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type HookServiceClient interface { + PreReceiveHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PreReceiveHookClient, error) + PostReceiveHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PostReceiveHookClient, error) + UpdateHook(ctx context.Context, in *UpdateHookRequest, opts ...grpc.CallOption) (HookService_UpdateHookClient, error) + ReferenceTransactionHook(ctx context.Context, opts ...grpc.CallOption) (HookService_ReferenceTransactionHookClient, error) + // PackObjectsHook is meant to be called by git-upload-pack via the + // uploadpack.packObjectsHook mechanism. It generates a stream of packed + // Git objects. + PackObjectsHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PackObjectsHookClient, error) +} + +type hookServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewHookServiceClient(cc grpc.ClientConnInterface) HookServiceClient { + return &hookServiceClient{cc} +} + +func (c *hookServiceClient) PreReceiveHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PreReceiveHookClient, error) { + stream, err := c.cc.NewStream(ctx, &HookService_ServiceDesc.Streams[0], "/gitaly.HookService/PreReceiveHook", opts...) + if err != nil { + return nil, err + } + x := &hookServicePreReceiveHookClient{stream} + return x, nil +} + +type HookService_PreReceiveHookClient interface { + Send(*PreReceiveHookRequest) error + Recv() (*PreReceiveHookResponse, error) + grpc.ClientStream +} + +type hookServicePreReceiveHookClient struct { + grpc.ClientStream +} + +func (x *hookServicePreReceiveHookClient) Send(m *PreReceiveHookRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *hookServicePreReceiveHookClient) Recv() (*PreReceiveHookResponse, error) { + m := new(PreReceiveHookResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *hookServiceClient) PostReceiveHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PostReceiveHookClient, error) { + stream, err := c.cc.NewStream(ctx, &HookService_ServiceDesc.Streams[1], "/gitaly.HookService/PostReceiveHook", opts...) + if err != nil { + return nil, err + } + x := &hookServicePostReceiveHookClient{stream} + return x, nil +} + +type HookService_PostReceiveHookClient interface { + Send(*PostReceiveHookRequest) error + Recv() (*PostReceiveHookResponse, error) + grpc.ClientStream +} + +type hookServicePostReceiveHookClient struct { + grpc.ClientStream +} + +func (x *hookServicePostReceiveHookClient) Send(m *PostReceiveHookRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *hookServicePostReceiveHookClient) Recv() (*PostReceiveHookResponse, error) { + m := new(PostReceiveHookResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *hookServiceClient) UpdateHook(ctx context.Context, in *UpdateHookRequest, opts ...grpc.CallOption) (HookService_UpdateHookClient, error) { + stream, err := c.cc.NewStream(ctx, &HookService_ServiceDesc.Streams[2], "/gitaly.HookService/UpdateHook", opts...) + if err != nil { + return nil, err + } + x := &hookServiceUpdateHookClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type HookService_UpdateHookClient interface { + Recv() (*UpdateHookResponse, error) + grpc.ClientStream +} + +type hookServiceUpdateHookClient struct { + grpc.ClientStream +} + +func (x *hookServiceUpdateHookClient) Recv() (*UpdateHookResponse, error) { + m := new(UpdateHookResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *hookServiceClient) ReferenceTransactionHook(ctx context.Context, opts ...grpc.CallOption) (HookService_ReferenceTransactionHookClient, error) { + stream, err := c.cc.NewStream(ctx, &HookService_ServiceDesc.Streams[3], "/gitaly.HookService/ReferenceTransactionHook", opts...) + if err != nil { + return nil, err + } + x := &hookServiceReferenceTransactionHookClient{stream} + return x, nil +} + +type HookService_ReferenceTransactionHookClient interface { + Send(*ReferenceTransactionHookRequest) error + Recv() (*ReferenceTransactionHookResponse, error) + grpc.ClientStream +} + +type hookServiceReferenceTransactionHookClient struct { + grpc.ClientStream +} + +func (x *hookServiceReferenceTransactionHookClient) Send(m *ReferenceTransactionHookRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *hookServiceReferenceTransactionHookClient) Recv() (*ReferenceTransactionHookResponse, error) { + m := new(ReferenceTransactionHookResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *hookServiceClient) PackObjectsHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PackObjectsHookClient, error) { + stream, err := c.cc.NewStream(ctx, &HookService_ServiceDesc.Streams[4], "/gitaly.HookService/PackObjectsHook", opts...) + if err != nil { + return nil, err + } + x := &hookServicePackObjectsHookClient{stream} + return x, nil +} + +type HookService_PackObjectsHookClient interface { + Send(*PackObjectsHookRequest) error + Recv() (*PackObjectsHookResponse, error) + grpc.ClientStream +} + +type hookServicePackObjectsHookClient struct { + grpc.ClientStream +} + +func (x *hookServicePackObjectsHookClient) Send(m *PackObjectsHookRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *hookServicePackObjectsHookClient) Recv() (*PackObjectsHookResponse, error) { + m := new(PackObjectsHookResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// HookServiceServer is the server API for HookService service. +// All implementations must embed UnimplementedHookServiceServer +// for forward compatibility +type HookServiceServer interface { + PreReceiveHook(HookService_PreReceiveHookServer) error + PostReceiveHook(HookService_PostReceiveHookServer) error + UpdateHook(*UpdateHookRequest, HookService_UpdateHookServer) error + ReferenceTransactionHook(HookService_ReferenceTransactionHookServer) error + // PackObjectsHook is meant to be called by git-upload-pack via the + // uploadpack.packObjectsHook mechanism. It generates a stream of packed + // Git objects. + PackObjectsHook(HookService_PackObjectsHookServer) error + mustEmbedUnimplementedHookServiceServer() +} + +// UnimplementedHookServiceServer must be embedded to have forward compatible implementations. +type UnimplementedHookServiceServer struct { +} + +func (UnimplementedHookServiceServer) PreReceiveHook(HookService_PreReceiveHookServer) error { + return status.Errorf(codes.Unimplemented, "method PreReceiveHook not implemented") +} +func (UnimplementedHookServiceServer) PostReceiveHook(HookService_PostReceiveHookServer) error { + return status.Errorf(codes.Unimplemented, "method PostReceiveHook not implemented") +} +func (UnimplementedHookServiceServer) UpdateHook(*UpdateHookRequest, HookService_UpdateHookServer) error { + return status.Errorf(codes.Unimplemented, "method UpdateHook not implemented") +} +func (UnimplementedHookServiceServer) ReferenceTransactionHook(HookService_ReferenceTransactionHookServer) error { + return status.Errorf(codes.Unimplemented, "method ReferenceTransactionHook not implemented") +} +func (UnimplementedHookServiceServer) PackObjectsHook(HookService_PackObjectsHookServer) error { + return status.Errorf(codes.Unimplemented, "method PackObjectsHook not implemented") +} +func (UnimplementedHookServiceServer) mustEmbedUnimplementedHookServiceServer() {} + +// UnsafeHookServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to HookServiceServer will +// result in compilation errors. +type UnsafeHookServiceServer interface { + mustEmbedUnimplementedHookServiceServer() +} + +func RegisterHookServiceServer(s grpc.ServiceRegistrar, srv HookServiceServer) { + s.RegisterService(&HookService_ServiceDesc, srv) +} + +func _HookService_PreReceiveHook_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(HookServiceServer).PreReceiveHook(&hookServicePreReceiveHookServer{stream}) +} + +type HookService_PreReceiveHookServer interface { + Send(*PreReceiveHookResponse) error + Recv() (*PreReceiveHookRequest, error) + grpc.ServerStream +} + +type hookServicePreReceiveHookServer struct { + grpc.ServerStream +} + +func (x *hookServicePreReceiveHookServer) Send(m *PreReceiveHookResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *hookServicePreReceiveHookServer) Recv() (*PreReceiveHookRequest, error) { + m := new(PreReceiveHookRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _HookService_PostReceiveHook_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(HookServiceServer).PostReceiveHook(&hookServicePostReceiveHookServer{stream}) +} + +type HookService_PostReceiveHookServer interface { + Send(*PostReceiveHookResponse) error + Recv() (*PostReceiveHookRequest, error) + grpc.ServerStream +} + +type hookServicePostReceiveHookServer struct { + grpc.ServerStream +} + +func (x *hookServicePostReceiveHookServer) Send(m *PostReceiveHookResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *hookServicePostReceiveHookServer) Recv() (*PostReceiveHookRequest, error) { + m := new(PostReceiveHookRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _HookService_UpdateHook_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(UpdateHookRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(HookServiceServer).UpdateHook(m, &hookServiceUpdateHookServer{stream}) +} + +type HookService_UpdateHookServer interface { + Send(*UpdateHookResponse) error + grpc.ServerStream +} + +type hookServiceUpdateHookServer struct { + grpc.ServerStream +} + +func (x *hookServiceUpdateHookServer) Send(m *UpdateHookResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _HookService_ReferenceTransactionHook_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(HookServiceServer).ReferenceTransactionHook(&hookServiceReferenceTransactionHookServer{stream}) +} + +type HookService_ReferenceTransactionHookServer interface { + Send(*ReferenceTransactionHookResponse) error + Recv() (*ReferenceTransactionHookRequest, error) + grpc.ServerStream +} + +type hookServiceReferenceTransactionHookServer struct { + grpc.ServerStream +} + +func (x *hookServiceReferenceTransactionHookServer) Send(m *ReferenceTransactionHookResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *hookServiceReferenceTransactionHookServer) Recv() (*ReferenceTransactionHookRequest, error) { + m := new(ReferenceTransactionHookRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _HookService_PackObjectsHook_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(HookServiceServer).PackObjectsHook(&hookServicePackObjectsHookServer{stream}) +} + +type HookService_PackObjectsHookServer interface { + Send(*PackObjectsHookResponse) error + Recv() (*PackObjectsHookRequest, error) + grpc.ServerStream +} + +type hookServicePackObjectsHookServer struct { + grpc.ServerStream +} + +func (x *hookServicePackObjectsHookServer) Send(m *PackObjectsHookResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *hookServicePackObjectsHookServer) Recv() (*PackObjectsHookRequest, error) { + m := new(PackObjectsHookRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// HookService_ServiceDesc is the grpc.ServiceDesc for HookService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var HookService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.HookService", + HandlerType: (*HookServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "PreReceiveHook", + Handler: _HookService_PreReceiveHook_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "PostReceiveHook", + Handler: _HookService_PostReceiveHook_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "UpdateHook", + Handler: _HookService_UpdateHook_Handler, + ServerStreams: true, + }, + { + StreamName: "ReferenceTransactionHook", + Handler: _HookService_ReferenceTransactionHook_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "PackObjectsHook", + Handler: _HookService_PackObjectsHook_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "hook.proto", +} diff --git a/proto/go/gitalypb/internal.pb.go b/proto/go/gitalypb/internal.pb.go index 64de3e301..b5ddcb5ef 100644 --- a/proto/go/gitalypb/internal.pb.go +++ b/proto/go/gitalypb/internal.pb.go @@ -1,240 +1,219 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: internal.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type WalkReposRequest struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WalkReposRequest) Reset() { *m = WalkReposRequest{} } -func (m *WalkReposRequest) String() string { return proto.CompactTextString(m) } -func (*WalkReposRequest) ProtoMessage() {} -func (*WalkReposRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_41f4a519b878ee3b, []int{0} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WalkReposRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WalkReposRequest.Unmarshal(m, b) + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` } -func (m *WalkReposRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WalkReposRequest.Marshal(b, m, deterministic) -} -func (m *WalkReposRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WalkReposRequest.Merge(m, src) -} -func (m *WalkReposRequest) XXX_Size() int { - return xxx_messageInfo_WalkReposRequest.Size(m) -} -func (m *WalkReposRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WalkReposRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WalkReposRequest proto.InternalMessageInfo -func (m *WalkReposRequest) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *WalkReposRequest) Reset() { + *x = WalkReposRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_internal_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -type WalkReposResponse struct { - RelativePath string `protobuf:"bytes,1,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *WalkReposRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WalkReposResponse) Reset() { *m = WalkReposResponse{} } -func (m *WalkReposResponse) String() string { return proto.CompactTextString(m) } -func (*WalkReposResponse) ProtoMessage() {} -func (*WalkReposResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_41f4a519b878ee3b, []int{1} -} +func (*WalkReposRequest) ProtoMessage() {} -func (m *WalkReposResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WalkReposResponse.Unmarshal(m, b) -} -func (m *WalkReposResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WalkReposResponse.Marshal(b, m, deterministic) -} -func (m *WalkReposResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WalkReposResponse.Merge(m, src) -} -func (m *WalkReposResponse) XXX_Size() int { - return xxx_messageInfo_WalkReposResponse.Size(m) -} -func (m *WalkReposResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WalkReposResponse.DiscardUnknown(m) +func (x *WalkReposRequest) ProtoReflect() protoreflect.Message { + mi := &file_internal_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WalkReposResponse proto.InternalMessageInfo +// Deprecated: Use WalkReposRequest.ProtoReflect.Descriptor instead. +func (*WalkReposRequest) Descriptor() ([]byte, []int) { + return file_internal_proto_rawDescGZIP(), []int{0} +} -func (m *WalkReposResponse) GetRelativePath() string { - if m != nil { - return m.RelativePath +func (x *WalkReposRequest) GetStorageName() string { + if x != nil { + return x.StorageName } return "" } -func init() { - proto.RegisterType((*WalkReposRequest)(nil), "gitaly.WalkReposRequest") - proto.RegisterType((*WalkReposResponse)(nil), "gitaly.WalkReposResponse") -} - -func init() { proto.RegisterFile("internal.proto", fileDescriptor_41f4a519b878ee3b) } +type WalkReposResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var fileDescriptor_41f4a519b878ee3b = []byte{ - // 238 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0xcc, 0x2b, 0x49, - 0x2d, 0xca, 0x4b, 0xcc, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4b, 0xcf, 0x2c, 0x49, - 0xcc, 0xa9, 0x94, 0xe2, 0xca, 0xc9, 0xcc, 0x2b, 0x81, 0x88, 0x29, 0x59, 0x73, 0x09, 0x84, 0x27, - 0xe6, 0x64, 0x07, 0xa5, 0x16, 0xe4, 0x17, 0x07, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0xa9, - 0x73, 0xf1, 0x14, 0x97, 0xe4, 0x17, 0x25, 0xa6, 0xa7, 0xc6, 0xe7, 0x25, 0xe6, 0xa6, 0x4a, 0x30, - 0x2a, 0x30, 0x6a, 0x70, 0x3a, 0xb1, 0x74, 0x1c, 0xd3, 0x61, 0x0c, 0xe2, 0x86, 0xca, 0xf8, 0x25, - 0xe6, 0xa6, 0x2a, 0x59, 0x70, 0x09, 0x22, 0x69, 0x2e, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0x15, 0x52, - 0xe6, 0xe2, 0x2d, 0x4a, 0xcd, 0x49, 0x2c, 0xc9, 0x2c, 0x4b, 0x8d, 0x2f, 0x48, 0x2c, 0xc9, 0x80, - 0x68, 0x0f, 0xe2, 0x81, 0x09, 0x06, 0x24, 0x96, 0x64, 0x18, 0xc5, 0x71, 0xf1, 0x79, 0x42, 0x1d, - 0xe7, 0x0e, 0x76, 0x94, 0x90, 0x0f, 0x17, 0x27, 0xdc, 0x2c, 0x21, 0x09, 0x3d, 0x88, 0x53, 0xf5, - 0xd0, 0xdd, 0x26, 0x25, 0x89, 0x45, 0x06, 0x62, 0xb1, 0x12, 0xc7, 0xaf, 0xe9, 0x1a, 0x2c, 0x1c, - 0x4c, 0x02, 0x4c, 0x06, 0x8c, 0x4e, 0x26, 0x51, 0x46, 0xe9, 0x99, 0x25, 0x39, 0x89, 0x49, 0x7a, - 0xc9, 0xf9, 0xb9, 0xfa, 0x10, 0xa6, 0x6e, 0x7e, 0x51, 0xba, 0x3e, 0x44, 0xb7, 0x7e, 0x99, 0xa1, - 0x89, 0x3e, 0x38, 0x00, 0xf4, 0xd3, 0xf3, 0xa1, 0x62, 0x05, 0x49, 0x49, 0x6c, 0x60, 0x21, 0x63, - 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6a, 0x5c, 0x16, 0x45, 0x39, 0x01, 0x00, 0x00, + RelativePath string `protobuf:"bytes,1,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// InternalGitalyClient is the client API for InternalGitaly service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type InternalGitalyClient interface { - // WalkRepos walks the storage and streams back all known git repos on the - // requested storage - WalkRepos(ctx context.Context, in *WalkReposRequest, opts ...grpc.CallOption) (InternalGitaly_WalkReposClient, error) +func (x *WalkReposResponse) Reset() { + *x = WalkReposResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_internal_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type internalGitalyClient struct { - cc *grpc.ClientConn +func (x *WalkReposResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func NewInternalGitalyClient(cc *grpc.ClientConn) InternalGitalyClient { - return &internalGitalyClient{cc} -} +func (*WalkReposResponse) ProtoMessage() {} -func (c *internalGitalyClient) WalkRepos(ctx context.Context, in *WalkReposRequest, opts ...grpc.CallOption) (InternalGitaly_WalkReposClient, error) { - stream, err := c.cc.NewStream(ctx, &_InternalGitaly_serviceDesc.Streams[0], "/gitaly.InternalGitaly/WalkRepos", opts...) - if err != nil { - return nil, err - } - x := &internalGitalyWalkReposClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *WalkReposResponse) ProtoReflect() protoreflect.Message { + mi := &file_internal_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type InternalGitaly_WalkReposClient interface { - Recv() (*WalkReposResponse, error) - grpc.ClientStream + return mi.MessageOf(x) } -type internalGitalyWalkReposClient struct { - grpc.ClientStream +// Deprecated: Use WalkReposResponse.ProtoReflect.Descriptor instead. +func (*WalkReposResponse) Descriptor() ([]byte, []int) { + return file_internal_proto_rawDescGZIP(), []int{1} } -func (x *internalGitalyWalkReposClient) Recv() (*WalkReposResponse, error) { - m := new(WalkReposResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *WalkReposResponse) GetRelativePath() string { + if x != nil { + return x.RelativePath } - return m, nil + return "" } -// InternalGitalyServer is the server API for InternalGitaly service. -type InternalGitalyServer interface { - // WalkRepos walks the storage and streams back all known git repos on the - // requested storage - WalkRepos(*WalkReposRequest, InternalGitaly_WalkReposServer) error -} +var File_internal_proto protoreflect.FileDescriptor + +var file_internal_proto_rawDesc = []byte{ + 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x06, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3b, 0x0a, 0x10, 0x57, 0x61, 0x6c, 0x6b, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, + 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, + 0x65, 0x22, 0x38, 0x0a, 0x11, 0x57, 0x61, 0x6c, 0x6b, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, + 0x76, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, + 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x50, 0x61, 0x74, 0x68, 0x32, 0x5e, 0x0a, 0x0e, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x47, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x12, 0x4c, 0x0a, + 0x09, 0x57, 0x61, 0x6c, 0x6b, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x12, 0x18, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x61, 0x6c, 0x6b, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x61, + 0x6c, 0x6b, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x08, 0xfa, 0x97, 0x28, 0x04, 0x08, 0x02, 0x10, 0x02, 0x30, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, + 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, + 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, + 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_internal_proto_rawDescOnce sync.Once + file_internal_proto_rawDescData = file_internal_proto_rawDesc +) -// UnimplementedInternalGitalyServer can be embedded to have forward compatible implementations. -type UnimplementedInternalGitalyServer struct { +func file_internal_proto_rawDescGZIP() []byte { + file_internal_proto_rawDescOnce.Do(func() { + file_internal_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_proto_rawDescData) + }) + return file_internal_proto_rawDescData } -func (*UnimplementedInternalGitalyServer) WalkRepos(req *WalkReposRequest, srv InternalGitaly_WalkReposServer) error { - return status.Errorf(codes.Unimplemented, "method WalkRepos not implemented") +var file_internal_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_internal_proto_goTypes = []interface{}{ + (*WalkReposRequest)(nil), // 0: gitaly.WalkReposRequest + (*WalkReposResponse)(nil), // 1: gitaly.WalkReposResponse } - -func RegisterInternalGitalyServer(s *grpc.Server, srv InternalGitalyServer) { - s.RegisterService(&_InternalGitaly_serviceDesc, srv) +var file_internal_proto_depIdxs = []int32{ + 0, // 0: gitaly.InternalGitaly.WalkRepos:input_type -> gitaly.WalkReposRequest + 1, // 1: gitaly.InternalGitaly.WalkRepos:output_type -> gitaly.WalkReposResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func _InternalGitaly_WalkRepos_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WalkReposRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func init() { file_internal_proto_init() } +func file_internal_proto_init() { + if File_internal_proto != nil { + return } - return srv.(InternalGitalyServer).WalkRepos(m, &internalGitalyWalkReposServer{stream}) -} - -type InternalGitaly_WalkReposServer interface { - Send(*WalkReposResponse) error - grpc.ServerStream -} - -type internalGitalyWalkReposServer struct { - grpc.ServerStream -} - -func (x *internalGitalyWalkReposServer) Send(m *WalkReposResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _InternalGitaly_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.InternalGitaly", - HandlerType: (*InternalGitalyServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "WalkRepos", - Handler: _InternalGitaly_WalkRepos_Handler, - ServerStreams: true, + file_lint_proto_init() + if !protoimpl.UnsafeEnabled { + file_internal_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WalkReposRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_internal_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WalkReposResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_internal_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "internal.proto", + GoTypes: file_internal_proto_goTypes, + DependencyIndexes: file_internal_proto_depIdxs, + MessageInfos: file_internal_proto_msgTypes, + }.Build() + File_internal_proto = out.File + file_internal_proto_rawDesc = nil + file_internal_proto_goTypes = nil + file_internal_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/internal_grpc.pb.go b/proto/go/gitalypb/internal_grpc.pb.go new file mode 100644 index 000000000..6b5b3564c --- /dev/null +++ b/proto/go/gitalypb/internal_grpc.pb.go @@ -0,0 +1,132 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// InternalGitalyClient is the client API for InternalGitaly service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type InternalGitalyClient interface { + // WalkRepos walks the storage and streams back all known git repos on the + // requested storage + WalkRepos(ctx context.Context, in *WalkReposRequest, opts ...grpc.CallOption) (InternalGitaly_WalkReposClient, error) +} + +type internalGitalyClient struct { + cc grpc.ClientConnInterface +} + +func NewInternalGitalyClient(cc grpc.ClientConnInterface) InternalGitalyClient { + return &internalGitalyClient{cc} +} + +func (c *internalGitalyClient) WalkRepos(ctx context.Context, in *WalkReposRequest, opts ...grpc.CallOption) (InternalGitaly_WalkReposClient, error) { + stream, err := c.cc.NewStream(ctx, &InternalGitaly_ServiceDesc.Streams[0], "/gitaly.InternalGitaly/WalkRepos", opts...) + if err != nil { + return nil, err + } + x := &internalGitalyWalkReposClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type InternalGitaly_WalkReposClient interface { + Recv() (*WalkReposResponse, error) + grpc.ClientStream +} + +type internalGitalyWalkReposClient struct { + grpc.ClientStream +} + +func (x *internalGitalyWalkReposClient) Recv() (*WalkReposResponse, error) { + m := new(WalkReposResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// InternalGitalyServer is the server API for InternalGitaly service. +// All implementations must embed UnimplementedInternalGitalyServer +// for forward compatibility +type InternalGitalyServer interface { + // WalkRepos walks the storage and streams back all known git repos on the + // requested storage + WalkRepos(*WalkReposRequest, InternalGitaly_WalkReposServer) error + mustEmbedUnimplementedInternalGitalyServer() +} + +// UnimplementedInternalGitalyServer must be embedded to have forward compatible implementations. +type UnimplementedInternalGitalyServer struct { +} + +func (UnimplementedInternalGitalyServer) WalkRepos(*WalkReposRequest, InternalGitaly_WalkReposServer) error { + return status.Errorf(codes.Unimplemented, "method WalkRepos not implemented") +} +func (UnimplementedInternalGitalyServer) mustEmbedUnimplementedInternalGitalyServer() {} + +// UnsafeInternalGitalyServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to InternalGitalyServer will +// result in compilation errors. +type UnsafeInternalGitalyServer interface { + mustEmbedUnimplementedInternalGitalyServer() +} + +func RegisterInternalGitalyServer(s grpc.ServiceRegistrar, srv InternalGitalyServer) { + s.RegisterService(&InternalGitaly_ServiceDesc, srv) +} + +func _InternalGitaly_WalkRepos_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WalkReposRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(InternalGitalyServer).WalkRepos(m, &internalGitalyWalkReposServer{stream}) +} + +type InternalGitaly_WalkReposServer interface { + Send(*WalkReposResponse) error + grpc.ServerStream +} + +type internalGitalyWalkReposServer struct { + grpc.ServerStream +} + +func (x *internalGitalyWalkReposServer) Send(m *WalkReposResponse) error { + return x.ServerStream.SendMsg(m) +} + +// InternalGitaly_ServiceDesc is the grpc.ServiceDesc for InternalGitaly service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var InternalGitaly_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.InternalGitaly", + HandlerType: (*InternalGitalyServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "WalkRepos", + Handler: _InternalGitaly_WalkRepos_Handler, + ServerStreams: true, + }, + }, + Metadata: "internal.proto", +} diff --git a/proto/go/gitalypb/lint.pb.go b/proto/go/gitalypb/lint.pb.go index 7378ae374..b0c1343c7 100644 --- a/proto/go/gitalypb/lint.pb.go +++ b/proto/go/gitalypb/lint.pb.go @@ -1,25 +1,25 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: lint.proto package gitalypb import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type OperationMsg_Operation int32 @@ -29,24 +29,45 @@ const ( OperationMsg_ACCESSOR OperationMsg_Operation = 2 ) -var OperationMsg_Operation_name = map[int32]string{ - 0: "UNKNOWN", - 1: "MUTATOR", - 2: "ACCESSOR", -} +// Enum value maps for OperationMsg_Operation. +var ( + OperationMsg_Operation_name = map[int32]string{ + 0: "UNKNOWN", + 1: "MUTATOR", + 2: "ACCESSOR", + } + OperationMsg_Operation_value = map[string]int32{ + "UNKNOWN": 0, + "MUTATOR": 1, + "ACCESSOR": 2, + } +) -var OperationMsg_Operation_value = map[string]int32{ - "UNKNOWN": 0, - "MUTATOR": 1, - "ACCESSOR": 2, +func (x OperationMsg_Operation) Enum() *OperationMsg_Operation { + p := new(OperationMsg_Operation) + *p = x + return p } func (x OperationMsg_Operation) String() string { - return proto.EnumName(OperationMsg_Operation_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (OperationMsg_Operation) Descriptor() protoreflect.EnumDescriptor { + return file_lint_proto_enumTypes[0].Descriptor() +} + +func (OperationMsg_Operation) Type() protoreflect.EnumType { + return &file_lint_proto_enumTypes[0] +} + +func (x OperationMsg_Operation) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use OperationMsg_Operation.Descriptor instead. func (OperationMsg_Operation) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1612d42a10b555ca, []int{0, 0} + return file_lint_proto_rawDescGZIP(), []int{0, 0} } type OperationMsg_Scope int32 @@ -56,170 +77,329 @@ const ( OperationMsg_STORAGE OperationMsg_Scope = 2 ) -var OperationMsg_Scope_name = map[int32]string{ - 0: "REPOSITORY", - 2: "STORAGE", -} +// Enum value maps for OperationMsg_Scope. +var ( + OperationMsg_Scope_name = map[int32]string{ + 0: "REPOSITORY", + 2: "STORAGE", + } + OperationMsg_Scope_value = map[string]int32{ + "REPOSITORY": 0, + "STORAGE": 2, + } +) -var OperationMsg_Scope_value = map[string]int32{ - "REPOSITORY": 0, - "STORAGE": 2, +func (x OperationMsg_Scope) Enum() *OperationMsg_Scope { + p := new(OperationMsg_Scope) + *p = x + return p } func (x OperationMsg_Scope) String() string { - return proto.EnumName(OperationMsg_Scope_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (OperationMsg_Scope) Descriptor() protoreflect.EnumDescriptor { + return file_lint_proto_enumTypes[1].Descriptor() +} + +func (OperationMsg_Scope) Type() protoreflect.EnumType { + return &file_lint_proto_enumTypes[1] } +func (x OperationMsg_Scope) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use OperationMsg_Scope.Descriptor instead. func (OperationMsg_Scope) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1612d42a10b555ca, []int{0, 1} + return file_lint_proto_rawDescGZIP(), []int{0, 1} } type OperationMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Op OperationMsg_Operation `protobuf:"varint,1,opt,name=op,proto3,enum=gitaly.OperationMsg_Operation" json:"op,omitempty"` // Scope level indicates what level an RPC interacts with a server: // - REPOSITORY: scoped to only a single repo // - SERVER: affects the entire server and potentially all repos // - STORAGE: scoped to a specific storage location and all repos within - ScopeLevel OperationMsg_Scope `protobuf:"varint,2,opt,name=scope_level,json=scopeLevel,proto3,enum=gitaly.OperationMsg_Scope" json:"scope_level,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ScopeLevel OperationMsg_Scope `protobuf:"varint,2,opt,name=scope_level,json=scopeLevel,proto3,enum=gitaly.OperationMsg_Scope" json:"scope_level,omitempty"` } -func (m *OperationMsg) Reset() { *m = OperationMsg{} } -func (m *OperationMsg) String() string { return proto.CompactTextString(m) } -func (*OperationMsg) ProtoMessage() {} -func (*OperationMsg) Descriptor() ([]byte, []int) { - return fileDescriptor_1612d42a10b555ca, []int{0} +func (x *OperationMsg) Reset() { + *x = OperationMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_lint_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *OperationMsg) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OperationMsg.Unmarshal(m, b) -} -func (m *OperationMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OperationMsg.Marshal(b, m, deterministic) +func (x *OperationMsg) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OperationMsg) XXX_Merge(src proto.Message) { - xxx_messageInfo_OperationMsg.Merge(m, src) -} -func (m *OperationMsg) XXX_Size() int { - return xxx_messageInfo_OperationMsg.Size(m) -} -func (m *OperationMsg) XXX_DiscardUnknown() { - xxx_messageInfo_OperationMsg.DiscardUnknown(m) + +func (*OperationMsg) ProtoMessage() {} + +func (x *OperationMsg) ProtoReflect() protoreflect.Message { + mi := &file_lint_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_OperationMsg proto.InternalMessageInfo +// Deprecated: Use OperationMsg.ProtoReflect.Descriptor instead. +func (*OperationMsg) Descriptor() ([]byte, []int) { + return file_lint_proto_rawDescGZIP(), []int{0} +} -func (m *OperationMsg) GetOp() OperationMsg_Operation { - if m != nil { - return m.Op +func (x *OperationMsg) GetOp() OperationMsg_Operation { + if x != nil { + return x.Op } return OperationMsg_UNKNOWN } -func (m *OperationMsg) GetScopeLevel() OperationMsg_Scope { - if m != nil { - return m.ScopeLevel +func (x *OperationMsg) GetScopeLevel() OperationMsg_Scope { + if x != nil { + return x.ScopeLevel } return OperationMsg_REPOSITORY } -var E_Intercepted = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.ServiceOptions)(nil), - ExtensionType: (*bool)(nil), - Field: 82302, - Name: "gitaly.intercepted", - Tag: "varint,82302,opt,name=intercepted", - Filename: "lint.proto", -} - -var E_OpType = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.MethodOptions)(nil), - ExtensionType: (*OperationMsg)(nil), - Field: 82303, - Name: "gitaly.op_type", - Tag: "bytes,82303,opt,name=op_type", - Filename: "lint.proto", -} - -var E_Storage = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FieldOptions)(nil), - ExtensionType: (*bool)(nil), - Field: 91233, - Name: "gitaly.storage", - Tag: "varint,91233,opt,name=storage", - Filename: "lint.proto", -} - -var E_Repository = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FieldOptions)(nil), - ExtensionType: (*bool)(nil), - Field: 91234, - Name: "gitaly.repository", - Tag: "varint,91234,opt,name=repository", - Filename: "lint.proto", -} - -var E_TargetRepository = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FieldOptions)(nil), - ExtensionType: (*bool)(nil), - Field: 91235, - Name: "gitaly.target_repository", - Tag: "varint,91235,opt,name=target_repository", - Filename: "lint.proto", -} - -var E_AdditionalRepository = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FieldOptions)(nil), - ExtensionType: (*bool)(nil), - Field: 91236, - Name: "gitaly.additional_repository", - Tag: "varint,91236,opt,name=additional_repository", - Filename: "lint.proto", -} - -func init() { - proto.RegisterEnum("gitaly.OperationMsg_Operation", OperationMsg_Operation_name, OperationMsg_Operation_value) - proto.RegisterEnum("gitaly.OperationMsg_Scope", OperationMsg_Scope_name, OperationMsg_Scope_value) - proto.RegisterType((*OperationMsg)(nil), "gitaly.OperationMsg") - proto.RegisterExtension(E_Intercepted) - proto.RegisterExtension(E_OpType) - proto.RegisterExtension(E_Storage) - proto.RegisterExtension(E_Repository) - proto.RegisterExtension(E_TargetRepository) - proto.RegisterExtension(E_AdditionalRepository) -} - -func init() { proto.RegisterFile("lint.proto", fileDescriptor_1612d42a10b555ca) } - -var fileDescriptor_1612d42a10b555ca = []byte{ - // 430 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x51, 0x6b, 0xd3, 0x50, - 0x14, 0x80, 0x4d, 0x70, 0x6d, 0x3d, 0x1d, 0x23, 0x86, 0x09, 0x65, 0xe0, 0x2c, 0x7d, 0x1a, 0x82, - 0x09, 0x76, 0x7b, 0x31, 0x3e, 0x48, 0x2d, 0x51, 0xc4, 0xb5, 0x57, 0x6e, 0x32, 0x45, 0x5f, 0x4a, - 0x9a, 0x1c, 0xaf, 0x17, 0x62, 0xcf, 0xe5, 0xe6, 0x5a, 0xe8, 0xab, 0xbf, 0xce, 0xbf, 0xa1, 0xee, - 0x77, 0xa8, 0x24, 0xb7, 0x5d, 0x0b, 0x1b, 0xa8, 0x6f, 0xb9, 0x87, 0xef, 0xfb, 0x38, 0x1c, 0x02, - 0x50, 0xca, 0x85, 0x09, 0x94, 0x26, 0x43, 0x7e, 0x4b, 0x48, 0x93, 0x95, 0xab, 0xa3, 0xbe, 0x20, - 0x12, 0x25, 0x86, 0xcd, 0x74, 0xfe, 0xe5, 0x63, 0x58, 0x60, 0x95, 0x6b, 0xa9, 0x0c, 0x69, 0x4b, - 0x0e, 0x2e, 0x1d, 0xd8, 0x67, 0x0a, 0x75, 0x66, 0x24, 0x2d, 0x26, 0x95, 0xf0, 0x03, 0x70, 0x49, - 0xf5, 0x9c, 0xbe, 0x73, 0x72, 0x30, 0x3c, 0x0e, 0x6c, 0x27, 0xd8, 0x25, 0xb6, 0x0f, 0xee, 0x92, - 0xf2, 0x9f, 0x42, 0xb7, 0xca, 0x49, 0xe1, 0xac, 0xc4, 0x25, 0x96, 0x3d, 0xb7, 0x11, 0x8f, 0x6e, - 0x14, 0x93, 0x9a, 0xe3, 0xd0, 0xe0, 0xe7, 0x35, 0x3d, 0x38, 0x85, 0x3b, 0x57, 0x84, 0xdf, 0x85, - 0xf6, 0xc5, 0xf4, 0xf5, 0x94, 0xbd, 0x9b, 0x7a, 0xb7, 0xea, 0xc7, 0xe4, 0x22, 0x1d, 0xa5, 0x8c, - 0x7b, 0x8e, 0xbf, 0x0f, 0x9d, 0xd1, 0x78, 0x1c, 0x27, 0x09, 0xe3, 0x9e, 0x3b, 0x18, 0xc2, 0x5e, - 0x53, 0xf2, 0x0f, 0x00, 0x78, 0xfc, 0x86, 0x25, 0xaf, 0x52, 0xc6, 0xdf, 0x5b, 0x27, 0x49, 0x19, - 0x1f, 0xbd, 0x8c, 0x3d, 0x77, 0x70, 0xbb, 0xe3, 0x78, 0xce, 0xc3, 0x56, 0x12, 0xf3, 0xb7, 0x31, - 0x8f, 0xc6, 0xd0, 0x95, 0x0b, 0x83, 0x3a, 0x47, 0x65, 0xb0, 0xf0, 0x1f, 0x04, 0xf6, 0x30, 0xc1, - 0xe6, 0x30, 0x41, 0x82, 0x7a, 0x29, 0x73, 0x64, 0xaa, 0x5e, 0xa5, 0xea, 0xfd, 0xfa, 0xba, 0xd7, - 0x77, 0x4e, 0x3a, 0x7c, 0xd7, 0x8a, 0x18, 0xb4, 0x49, 0xcd, 0xcc, 0x4a, 0xa1, 0x7f, 0x7c, 0x2d, - 0x30, 0x41, 0xf3, 0x89, 0x8a, 0x8d, 0xff, 0xbb, 0xf1, 0xbb, 0xc3, 0xc3, 0x9b, 0x0e, 0xc1, 0x5b, - 0xa4, 0xd2, 0x95, 0xc2, 0xe8, 0x09, 0xb4, 0x2b, 0x43, 0x3a, 0x13, 0xe8, 0xdf, 0xbf, 0x16, 0x7c, - 0x21, 0xb1, 0xbc, 0xea, 0x7d, 0xff, 0x66, 0xf7, 0xd9, 0xf0, 0xd1, 0x33, 0x00, 0x8d, 0x8a, 0x2a, - 0x69, 0x48, 0xaf, 0xfe, 0x66, 0xff, 0x58, 0xdb, 0x3b, 0x4a, 0x74, 0x0e, 0x77, 0x4d, 0xa6, 0x05, - 0x9a, 0xd9, 0xbf, 0x77, 0x7e, 0xae, 0x3b, 0x9e, 0x35, 0xf9, 0xb6, 0x96, 0xc2, 0xbd, 0xac, 0x28, - 0x64, 0x8d, 0x65, 0xe5, 0x7f, 0x14, 0x2f, 0xd7, 0xc5, 0xc3, 0xad, 0xbd, 0xad, 0x3e, 0x3f, 0xfb, - 0x30, 0x14, 0xd2, 0x94, 0xd9, 0x3c, 0xc8, 0xe9, 0x73, 0x68, 0x3f, 0x1f, 0x91, 0x16, 0xa1, 0x3d, - 0x6a, 0xb8, 0x7c, 0x7c, 0x66, 0x7f, 0xed, 0x50, 0xd0, 0x7a, 0xa6, 0xe6, 0xf3, 0x56, 0x33, 0x3a, - 0xfd, 0x13, 0x00, 0x00, 0xff, 0xff, 0x42, 0xe0, 0xf9, 0xb0, 0x11, 0x03, 0x00, 0x00, +var file_lint_proto_extTypes = []protoimpl.ExtensionInfo{ + { + ExtendedType: (*descriptorpb.ServiceOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 82302, + Name: "gitaly.intercepted", + Tag: "varint,82302,opt,name=intercepted", + Filename: "lint.proto", + }, + { + ExtendedType: (*descriptorpb.MethodOptions)(nil), + ExtensionType: (*OperationMsg)(nil), + Field: 82303, + Name: "gitaly.op_type", + Tag: "bytes,82303,opt,name=op_type", + Filename: "lint.proto", + }, + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 91233, + Name: "gitaly.storage", + Tag: "varint,91233,opt,name=storage", + Filename: "lint.proto", + }, + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 91234, + Name: "gitaly.repository", + Tag: "varint,91234,opt,name=repository", + Filename: "lint.proto", + }, + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 91235, + Name: "gitaly.target_repository", + Tag: "varint,91235,opt,name=target_repository", + Filename: "lint.proto", + }, + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 91236, + Name: "gitaly.additional_repository", + Tag: "varint,91236,opt,name=additional_repository", + Filename: "lint.proto", + }, +} + +// Extension fields to descriptorpb.ServiceOptions. +var ( + // intercepted indicates whether the proxy intercepts and handles the call + // instead of proxying. Intercepted services do not require scope or operation + // annotations. + // + // optional bool intercepted = 82302; + E_Intercepted = &file_lint_proto_extTypes[0] +) + +// Extension fields to descriptorpb.MethodOptions. +var ( + // Random high number.. + // + // optional gitaly.OperationMsg op_type = 82303; + E_OpType = &file_lint_proto_extTypes[1] +) + +// Extension fields to descriptorpb.FieldOptions. +var ( + // Used to mark field containing name of affected storage. + // + // optional bool storage = 91233; + E_Storage = &file_lint_proto_extTypes[2] // Random high number.. + // If this operation modifies a repository, this annotations + // will specify the location of the Repository field within + // the request message. + // + // Repository annotation is used mark field used as repository + // when parent message is marked as target or additional repository + // + // optional bool repository = 91234; + E_Repository = &file_lint_proto_extTypes[3] + // Used to mark target repository + // + // optional bool target_repository = 91235; + E_TargetRepository = &file_lint_proto_extTypes[4] + // Used to mark additional repository + // + // optional bool additional_repository = 91236; + E_AdditionalRepository = &file_lint_proto_extTypes[5] +) + +var File_lint_proto protoreflect.FileDescriptor + +var file_lint_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe4, 0x01, 0x0a, 0x0c, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x73, 0x67, 0x12, 0x2e, 0x0a, 0x02, 0x6f, 0x70, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x73, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x6f, 0x70, 0x12, 0x3b, 0x0a, 0x0b, 0x73, 0x63, 0x6f, 0x70, 0x65, + 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x73, 0x67, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x0a, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x4c, + 0x65, 0x76, 0x65, 0x6c, 0x22, 0x33, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, + 0x0a, 0x07, 0x4d, 0x55, 0x54, 0x41, 0x54, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, + 0x43, 0x43, 0x45, 0x53, 0x53, 0x4f, 0x52, 0x10, 0x02, 0x22, 0x32, 0x0a, 0x05, 0x53, 0x63, 0x6f, + 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, + 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x02, 0x22, + 0x04, 0x08, 0x01, 0x10, 0x01, 0x2a, 0x06, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x3a, 0x43, 0x0a, + 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x12, 0x1f, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xfe, 0x82, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x63, 0x65, 0x70, 0x74, + 0x65, 0x64, 0x3a, 0x4f, 0x0a, 0x07, 0x6f, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xff, 0x82, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x73, 0x67, 0x52, 0x06, 0x6f, 0x70, 0x54, + 0x79, 0x70, 0x65, 0x3a, 0x39, 0x0a, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x1d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe1, 0xc8, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x3a, 0x3f, + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe2, 0xc8, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x3a, + 0x4c, 0x0a, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0xe3, 0xc8, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x3a, 0x54, 0x0a, + 0x15, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe4, 0xc8, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x61, + 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, + 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_lint_proto_rawDescOnce sync.Once + file_lint_proto_rawDescData = file_lint_proto_rawDesc +) + +func file_lint_proto_rawDescGZIP() []byte { + file_lint_proto_rawDescOnce.Do(func() { + file_lint_proto_rawDescData = protoimpl.X.CompressGZIP(file_lint_proto_rawDescData) + }) + return file_lint_proto_rawDescData +} + +var file_lint_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_lint_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_lint_proto_goTypes = []interface{}{ + (OperationMsg_Operation)(0), // 0: gitaly.OperationMsg.Operation + (OperationMsg_Scope)(0), // 1: gitaly.OperationMsg.Scope + (*OperationMsg)(nil), // 2: gitaly.OperationMsg + (*descriptorpb.ServiceOptions)(nil), // 3: google.protobuf.ServiceOptions + (*descriptorpb.MethodOptions)(nil), // 4: google.protobuf.MethodOptions + (*descriptorpb.FieldOptions)(nil), // 5: google.protobuf.FieldOptions +} +var file_lint_proto_depIdxs = []int32{ + 0, // 0: gitaly.OperationMsg.op:type_name -> gitaly.OperationMsg.Operation + 1, // 1: gitaly.OperationMsg.scope_level:type_name -> gitaly.OperationMsg.Scope + 3, // 2: gitaly.intercepted:extendee -> google.protobuf.ServiceOptions + 4, // 3: gitaly.op_type:extendee -> google.protobuf.MethodOptions + 5, // 4: gitaly.storage:extendee -> google.protobuf.FieldOptions + 5, // 5: gitaly.repository:extendee -> google.protobuf.FieldOptions + 5, // 6: gitaly.target_repository:extendee -> google.protobuf.FieldOptions + 5, // 7: gitaly.additional_repository:extendee -> google.protobuf.FieldOptions + 2, // 8: gitaly.op_type:type_name -> gitaly.OperationMsg + 9, // [9:9] is the sub-list for method output_type + 9, // [9:9] is the sub-list for method input_type + 8, // [8:9] is the sub-list for extension type_name + 2, // [2:8] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_lint_proto_init() } +func file_lint_proto_init() { + if File_lint_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_lint_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OperationMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_lint_proto_rawDesc, + NumEnums: 2, + NumMessages: 1, + NumExtensions: 6, + NumServices: 0, + }, + GoTypes: file_lint_proto_goTypes, + DependencyIndexes: file_lint_proto_depIdxs, + EnumInfos: file_lint_proto_enumTypes, + MessageInfos: file_lint_proto_msgTypes, + ExtensionInfos: file_lint_proto_extTypes, + }.Build() + File_lint_proto = out.File + file_lint_proto_rawDesc = nil + file_lint_proto_goTypes = nil + file_lint_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/namespace.pb.go b/proto/go/gitalypb/namespace.pb.go index f0e4233af..1fb49c9c1 100644 --- a/proto/go/gitalypb/namespace.pb.go +++ b/proto/go/gitalypb/namespace.pb.go @@ -1,580 +1,640 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: namespace.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type AddNamespaceRequest struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AddNamespaceRequest) Reset() { *m = AddNamespaceRequest{} } -func (m *AddNamespaceRequest) String() string { return proto.CompactTextString(m) } -func (*AddNamespaceRequest) ProtoMessage() {} -func (*AddNamespaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ecb1e126f615f5dd, []int{0} + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -func (m *AddNamespaceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddNamespaceRequest.Unmarshal(m, b) -} -func (m *AddNamespaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddNamespaceRequest.Marshal(b, m, deterministic) -} -func (m *AddNamespaceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddNamespaceRequest.Merge(m, src) +func (x *AddNamespaceRequest) Reset() { + *x = AddNamespaceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_namespace_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AddNamespaceRequest) XXX_Size() int { - return xxx_messageInfo_AddNamespaceRequest.Size(m) + +func (x *AddNamespaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AddNamespaceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AddNamespaceRequest.DiscardUnknown(m) + +func (*AddNamespaceRequest) ProtoMessage() {} + +func (x *AddNamespaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_namespace_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AddNamespaceRequest proto.InternalMessageInfo +// Deprecated: Use AddNamespaceRequest.ProtoReflect.Descriptor instead. +func (*AddNamespaceRequest) Descriptor() ([]byte, []int) { + return file_namespace_proto_rawDescGZIP(), []int{0} +} -func (m *AddNamespaceRequest) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *AddNamespaceRequest) GetStorageName() string { + if x != nil { + return x.StorageName } return "" } -func (m *AddNamespaceRequest) GetName() string { - if m != nil { - return m.Name +func (x *AddNamespaceRequest) GetName() string { + if x != nil { + return x.Name } return "" } type RemoveNamespaceRequest struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RemoveNamespaceRequest) Reset() { *m = RemoveNamespaceRequest{} } -func (m *RemoveNamespaceRequest) String() string { return proto.CompactTextString(m) } -func (*RemoveNamespaceRequest) ProtoMessage() {} -func (*RemoveNamespaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ecb1e126f615f5dd, []int{1} + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -func (m *RemoveNamespaceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoveNamespaceRequest.Unmarshal(m, b) -} -func (m *RemoveNamespaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoveNamespaceRequest.Marshal(b, m, deterministic) -} -func (m *RemoveNamespaceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveNamespaceRequest.Merge(m, src) +func (x *RemoveNamespaceRequest) Reset() { + *x = RemoveNamespaceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_namespace_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RemoveNamespaceRequest) XXX_Size() int { - return xxx_messageInfo_RemoveNamespaceRequest.Size(m) + +func (x *RemoveNamespaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RemoveNamespaceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveNamespaceRequest.DiscardUnknown(m) + +func (*RemoveNamespaceRequest) ProtoMessage() {} + +func (x *RemoveNamespaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_namespace_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RemoveNamespaceRequest proto.InternalMessageInfo +// Deprecated: Use RemoveNamespaceRequest.ProtoReflect.Descriptor instead. +func (*RemoveNamespaceRequest) Descriptor() ([]byte, []int) { + return file_namespace_proto_rawDescGZIP(), []int{1} +} -func (m *RemoveNamespaceRequest) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *RemoveNamespaceRequest) GetStorageName() string { + if x != nil { + return x.StorageName } return "" } -func (m *RemoveNamespaceRequest) GetName() string { - if m != nil { - return m.Name +func (x *RemoveNamespaceRequest) GetName() string { + if x != nil { + return x.Name } return "" } type RenameNamespaceRequest struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RenameNamespaceRequest) Reset() { *m = RenameNamespaceRequest{} } -func (m *RenameNamespaceRequest) String() string { return proto.CompactTextString(m) } -func (*RenameNamespaceRequest) ProtoMessage() {} -func (*RenameNamespaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ecb1e126f615f5dd, []int{2} + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` } -func (m *RenameNamespaceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RenameNamespaceRequest.Unmarshal(m, b) -} -func (m *RenameNamespaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RenameNamespaceRequest.Marshal(b, m, deterministic) -} -func (m *RenameNamespaceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RenameNamespaceRequest.Merge(m, src) -} -func (m *RenameNamespaceRequest) XXX_Size() int { - return xxx_messageInfo_RenameNamespaceRequest.Size(m) +func (x *RenameNamespaceRequest) Reset() { + *x = RenameNamespaceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_namespace_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RenameNamespaceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RenameNamespaceRequest.DiscardUnknown(m) + +func (x *RenameNamespaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RenameNamespaceRequest proto.InternalMessageInfo +func (*RenameNamespaceRequest) ProtoMessage() {} -func (m *RenameNamespaceRequest) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *RenameNamespaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_namespace_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *RenameNamespaceRequest) GetFrom() string { - if m != nil { - return m.From - } - return "" +// Deprecated: Use RenameNamespaceRequest.ProtoReflect.Descriptor instead. +func (*RenameNamespaceRequest) Descriptor() ([]byte, []int) { + return file_namespace_proto_rawDescGZIP(), []int{2} } -func (m *RenameNamespaceRequest) GetTo() string { - if m != nil { - return m.To +func (x *RenameNamespaceRequest) GetStorageName() string { + if x != nil { + return x.StorageName } return "" } -type NamespaceExistsRequest struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NamespaceExistsRequest) Reset() { *m = NamespaceExistsRequest{} } -func (m *NamespaceExistsRequest) String() string { return proto.CompactTextString(m) } -func (*NamespaceExistsRequest) ProtoMessage() {} -func (*NamespaceExistsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ecb1e126f615f5dd, []int{3} -} - -func (m *NamespaceExistsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NamespaceExistsRequest.Unmarshal(m, b) -} -func (m *NamespaceExistsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NamespaceExistsRequest.Marshal(b, m, deterministic) -} -func (m *NamespaceExistsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamespaceExistsRequest.Merge(m, src) -} -func (m *NamespaceExistsRequest) XXX_Size() int { - return xxx_messageInfo_NamespaceExistsRequest.Size(m) -} -func (m *NamespaceExistsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NamespaceExistsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_NamespaceExistsRequest proto.InternalMessageInfo - -func (m *NamespaceExistsRequest) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *RenameNamespaceRequest) GetFrom() string { + if x != nil { + return x.From } return "" } -func (m *NamespaceExistsRequest) GetName() string { - if m != nil { - return m.Name +func (x *RenameNamespaceRequest) GetTo() string { + if x != nil { + return x.To } return "" } -type NamespaceExistsResponse struct { - Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type NamespaceExistsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *NamespaceExistsResponse) Reset() { *m = NamespaceExistsResponse{} } -func (m *NamespaceExistsResponse) String() string { return proto.CompactTextString(m) } -func (*NamespaceExistsResponse) ProtoMessage() {} -func (*NamespaceExistsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ecb1e126f615f5dd, []int{4} + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -func (m *NamespaceExistsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NamespaceExistsResponse.Unmarshal(m, b) -} -func (m *NamespaceExistsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NamespaceExistsResponse.Marshal(b, m, deterministic) -} -func (m *NamespaceExistsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamespaceExistsResponse.Merge(m, src) -} -func (m *NamespaceExistsResponse) XXX_Size() int { - return xxx_messageInfo_NamespaceExistsResponse.Size(m) +func (x *NamespaceExistsRequest) Reset() { + *x = NamespaceExistsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_namespace_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NamespaceExistsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_NamespaceExistsResponse.DiscardUnknown(m) + +func (x *NamespaceExistsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_NamespaceExistsResponse proto.InternalMessageInfo +func (*NamespaceExistsRequest) ProtoMessage() {} -func (m *NamespaceExistsResponse) GetExists() bool { - if m != nil { - return m.Exists +func (x *NamespaceExistsRequest) ProtoReflect() protoreflect.Message { + mi := &file_namespace_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return false + return mi.MessageOf(x) } -type AddNamespaceResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use NamespaceExistsRequest.ProtoReflect.Descriptor instead. +func (*NamespaceExistsRequest) Descriptor() ([]byte, []int) { + return file_namespace_proto_rawDescGZIP(), []int{3} } -func (m *AddNamespaceResponse) Reset() { *m = AddNamespaceResponse{} } -func (m *AddNamespaceResponse) String() string { return proto.CompactTextString(m) } -func (*AddNamespaceResponse) ProtoMessage() {} -func (*AddNamespaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ecb1e126f615f5dd, []int{5} +func (x *NamespaceExistsRequest) GetStorageName() string { + if x != nil { + return x.StorageName + } + return "" } -func (m *AddNamespaceResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddNamespaceResponse.Unmarshal(m, b) -} -func (m *AddNamespaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddNamespaceResponse.Marshal(b, m, deterministic) -} -func (m *AddNamespaceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddNamespaceResponse.Merge(m, src) -} -func (m *AddNamespaceResponse) XXX_Size() int { - return xxx_messageInfo_AddNamespaceResponse.Size(m) -} -func (m *AddNamespaceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AddNamespaceResponse.DiscardUnknown(m) +func (x *NamespaceExistsRequest) GetName() string { + if x != nil { + return x.Name + } + return "" } -var xxx_messageInfo_AddNamespaceResponse proto.InternalMessageInfo +type NamespaceExistsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type RemoveNamespaceResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` } -func (m *RemoveNamespaceResponse) Reset() { *m = RemoveNamespaceResponse{} } -func (m *RemoveNamespaceResponse) String() string { return proto.CompactTextString(m) } -func (*RemoveNamespaceResponse) ProtoMessage() {} -func (*RemoveNamespaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ecb1e126f615f5dd, []int{6} +func (x *NamespaceExistsResponse) Reset() { + *x = NamespaceExistsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_namespace_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RemoveNamespaceResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoveNamespaceResponse.Unmarshal(m, b) -} -func (m *RemoveNamespaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoveNamespaceResponse.Marshal(b, m, deterministic) -} -func (m *RemoveNamespaceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveNamespaceResponse.Merge(m, src) -} -func (m *RemoveNamespaceResponse) XXX_Size() int { - return xxx_messageInfo_RemoveNamespaceResponse.Size(m) -} -func (m *RemoveNamespaceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveNamespaceResponse.DiscardUnknown(m) +func (x *NamespaceExistsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RemoveNamespaceResponse proto.InternalMessageInfo +func (*NamespaceExistsResponse) ProtoMessage() {} -type RenameNamespaceResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *NamespaceExistsResponse) ProtoReflect() protoreflect.Message { + mi := &file_namespace_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *RenameNamespaceResponse) Reset() { *m = RenameNamespaceResponse{} } -func (m *RenameNamespaceResponse) String() string { return proto.CompactTextString(m) } -func (*RenameNamespaceResponse) ProtoMessage() {} -func (*RenameNamespaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ecb1e126f615f5dd, []int{7} +// Deprecated: Use NamespaceExistsResponse.ProtoReflect.Descriptor instead. +func (*NamespaceExistsResponse) Descriptor() ([]byte, []int) { + return file_namespace_proto_rawDescGZIP(), []int{4} } -func (m *RenameNamespaceResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RenameNamespaceResponse.Unmarshal(m, b) -} -func (m *RenameNamespaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RenameNamespaceResponse.Marshal(b, m, deterministic) -} -func (m *RenameNamespaceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RenameNamespaceResponse.Merge(m, src) -} -func (m *RenameNamespaceResponse) XXX_Size() int { - return xxx_messageInfo_RenameNamespaceResponse.Size(m) -} -func (m *RenameNamespaceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RenameNamespaceResponse.DiscardUnknown(m) +func (x *NamespaceExistsResponse) GetExists() bool { + if x != nil { + return x.Exists + } + return false } -var xxx_messageInfo_RenameNamespaceResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AddNamespaceRequest)(nil), "gitaly.AddNamespaceRequest") - proto.RegisterType((*RemoveNamespaceRequest)(nil), "gitaly.RemoveNamespaceRequest") - proto.RegisterType((*RenameNamespaceRequest)(nil), "gitaly.RenameNamespaceRequest") - proto.RegisterType((*NamespaceExistsRequest)(nil), "gitaly.NamespaceExistsRequest") - proto.RegisterType((*NamespaceExistsResponse)(nil), "gitaly.NamespaceExistsResponse") - proto.RegisterType((*AddNamespaceResponse)(nil), "gitaly.AddNamespaceResponse") - proto.RegisterType((*RemoveNamespaceResponse)(nil), "gitaly.RemoveNamespaceResponse") - proto.RegisterType((*RenameNamespaceResponse)(nil), "gitaly.RenameNamespaceResponse") +type AddNamespaceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func init() { proto.RegisterFile("namespace.proto", fileDescriptor_ecb1e126f615f5dd) } - -var fileDescriptor_ecb1e126f615f5dd = []byte{ - // 352 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xc1, 0x4e, 0xc2, 0x40, - 0x10, 0x86, 0xd3, 0x85, 0x10, 0x1c, 0x89, 0x90, 0xd5, 0x00, 0xa2, 0x51, 0xd3, 0x8b, 0x1c, 0xb4, - 0x0d, 0xc8, 0x0b, 0x48, 0xe2, 0xd5, 0xc3, 0x12, 0x2f, 0xc6, 0xc4, 0x14, 0x18, 0x9b, 0x26, 0x94, - 0xad, 0xdd, 0x95, 0xe8, 0xd1, 0x9b, 0x6f, 0xe0, 0x1b, 0xf9, 0x50, 0x9e, 0xcc, 0xee, 0x16, 0x28, - 0xb0, 0x9c, 0xe4, 0x36, 0xfc, 0x33, 0xfb, 0xcd, 0x30, 0xf3, 0x17, 0xaa, 0xd3, 0x20, 0x46, 0x91, - 0x04, 0x23, 0xf4, 0x92, 0x94, 0x4b, 0x4e, 0x4b, 0x61, 0x24, 0x83, 0xc9, 0x47, 0x0b, 0x26, 0xd1, - 0x54, 0x1a, 0xcd, 0x65, 0x70, 0x78, 0x3b, 0x1e, 0xdf, 0xcf, 0x2b, 0x19, 0xbe, 0xbe, 0xa1, 0x90, - 0xf4, 0x12, 0x2a, 0x42, 0xf2, 0x34, 0x08, 0xf1, 0x59, 0x51, 0x9a, 0xce, 0x85, 0xd3, 0xde, 0xeb, - 0x17, 0xbf, 0x7e, 0xae, 0x1c, 0xb6, 0x9f, 0x65, 0xd4, 0x23, 0x4a, 0xa1, 0xa8, 0x0b, 0x88, 0x2a, - 0x60, 0x3a, 0x76, 0x1f, 0xa0, 0xce, 0x30, 0xe6, 0x33, 0xdc, 0x2d, 0x16, 0x15, 0x56, 0x45, 0xff, - 0xc2, 0xbe, 0xa4, 0x3c, 0x9e, 0x63, 0x55, 0x4c, 0x0f, 0x80, 0x48, 0xde, 0x2c, 0x68, 0x85, 0x48, - 0xae, 0xa6, 0x5f, 0x34, 0xb8, 0x7b, 0x8f, 0x84, 0x14, 0x3b, 0x99, 0xbe, 0x03, 0x8d, 0x0d, 0xac, - 0x48, 0xf8, 0x54, 0x20, 0xad, 0x43, 0x09, 0xb5, 0xa2, 0x89, 0x65, 0x96, 0xfd, 0x72, 0xeb, 0x70, - 0xb4, 0x7a, 0x1b, 0x53, 0xef, 0x1e, 0x43, 0x63, 0x63, 0xbf, 0xf9, 0xd4, 0xda, 0x8e, 0x4c, 0xaa, - 0xfb, 0x59, 0x80, 0xda, 0x42, 0x1d, 0x60, 0x3a, 0x8b, 0x46, 0x48, 0x07, 0x50, 0xc9, 0xb7, 0xa0, - 0x27, 0x9e, 0xf1, 0x88, 0x67, 0x31, 0x45, 0xeb, 0xd4, 0x9e, 0xcc, 0x5a, 0x97, 0x7f, 0xbf, 0xdb, - 0xc5, 0xb2, 0x53, 0x23, 0xf4, 0x09, 0xaa, 0x6b, 0xf3, 0xd1, 0xb3, 0xf9, 0x53, 0xbb, 0x31, 0x5a, - 0xe7, 0x5b, 0xf3, 0x76, 0xfa, 0xca, 0x5f, 0xcc, 0xd3, 0x6d, 0xfe, 0xc8, 0xd3, 0xad, 0xbb, 0x59, - 0xa5, 0xaf, 0x9d, 0x69, 0x49, 0xb7, 0xdb, 0x62, 0x49, 0xdf, 0x72, 0xdf, 0x8c, 0x4e, 0x6a, 0xa4, - 0xdf, 0x7b, 0xec, 0x86, 0x91, 0x9c, 0x04, 0x43, 0x6f, 0xc4, 0x63, 0xdf, 0x84, 0xd7, 0x3c, 0x0d, - 0x7d, 0x43, 0xf0, 0x67, 0x9d, 0x9e, 0xaf, 0xbf, 0x4b, 0x3f, 0xe4, 0x99, 0x96, 0x0c, 0x87, 0x25, - 0x2d, 0xdd, 0xfc, 0x05, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x7c, 0x16, 0x5a, 0xd1, 0x03, 0x00, 0x00, +func (x *AddNamespaceResponse) Reset() { + *x = AddNamespaceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_namespace_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +func (x *AddNamespaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +func (*AddNamespaceResponse) ProtoMessage() {} -// NamespaceServiceClient is the client API for NamespaceService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type NamespaceServiceClient interface { - AddNamespace(ctx context.Context, in *AddNamespaceRequest, opts ...grpc.CallOption) (*AddNamespaceResponse, error) - RemoveNamespace(ctx context.Context, in *RemoveNamespaceRequest, opts ...grpc.CallOption) (*RemoveNamespaceResponse, error) - RenameNamespace(ctx context.Context, in *RenameNamespaceRequest, opts ...grpc.CallOption) (*RenameNamespaceResponse, error) - NamespaceExists(ctx context.Context, in *NamespaceExistsRequest, opts ...grpc.CallOption) (*NamespaceExistsResponse, error) +func (x *AddNamespaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_namespace_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type namespaceServiceClient struct { - cc *grpc.ClientConn +// Deprecated: Use AddNamespaceResponse.ProtoReflect.Descriptor instead. +func (*AddNamespaceResponse) Descriptor() ([]byte, []int) { + return file_namespace_proto_rawDescGZIP(), []int{5} } -func NewNamespaceServiceClient(cc *grpc.ClientConn) NamespaceServiceClient { - return &namespaceServiceClient{cc} +type RemoveNamespaceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (c *namespaceServiceClient) AddNamespace(ctx context.Context, in *AddNamespaceRequest, opts ...grpc.CallOption) (*AddNamespaceResponse, error) { - out := new(AddNamespaceResponse) - err := c.cc.Invoke(ctx, "/gitaly.NamespaceService/AddNamespace", in, out, opts...) - if err != nil { - return nil, err +func (x *RemoveNamespaceResponse) Reset() { + *x = RemoveNamespaceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_namespace_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil } -func (c *namespaceServiceClient) RemoveNamespace(ctx context.Context, in *RemoveNamespaceRequest, opts ...grpc.CallOption) (*RemoveNamespaceResponse, error) { - out := new(RemoveNamespaceResponse) - err := c.cc.Invoke(ctx, "/gitaly.NamespaceService/RemoveNamespace", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *RemoveNamespaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *namespaceServiceClient) RenameNamespace(ctx context.Context, in *RenameNamespaceRequest, opts ...grpc.CallOption) (*RenameNamespaceResponse, error) { - out := new(RenameNamespaceResponse) - err := c.cc.Invoke(ctx, "/gitaly.NamespaceService/RenameNamespace", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*RemoveNamespaceResponse) ProtoMessage() {} -func (c *namespaceServiceClient) NamespaceExists(ctx context.Context, in *NamespaceExistsRequest, opts ...grpc.CallOption) (*NamespaceExistsResponse, error) { - out := new(NamespaceExistsResponse) - err := c.cc.Invoke(ctx, "/gitaly.NamespaceService/NamespaceExists", in, out, opts...) - if err != nil { - return nil, err +func (x *RemoveNamespaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_namespace_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -// NamespaceServiceServer is the server API for NamespaceService service. -type NamespaceServiceServer interface { - AddNamespace(context.Context, *AddNamespaceRequest) (*AddNamespaceResponse, error) - RemoveNamespace(context.Context, *RemoveNamespaceRequest) (*RemoveNamespaceResponse, error) - RenameNamespace(context.Context, *RenameNamespaceRequest) (*RenameNamespaceResponse, error) - NamespaceExists(context.Context, *NamespaceExistsRequest) (*NamespaceExistsResponse, error) +// Deprecated: Use RemoveNamespaceResponse.ProtoReflect.Descriptor instead. +func (*RemoveNamespaceResponse) Descriptor() ([]byte, []int) { + return file_namespace_proto_rawDescGZIP(), []int{6} } -// UnimplementedNamespaceServiceServer can be embedded to have forward compatible implementations. -type UnimplementedNamespaceServiceServer struct { +type RenameNamespaceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (*UnimplementedNamespaceServiceServer) AddNamespace(ctx context.Context, req *AddNamespaceRequest) (*AddNamespaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddNamespace not implemented") -} -func (*UnimplementedNamespaceServiceServer) RemoveNamespace(ctx context.Context, req *RemoveNamespaceRequest) (*RemoveNamespaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveNamespace not implemented") -} -func (*UnimplementedNamespaceServiceServer) RenameNamespace(ctx context.Context, req *RenameNamespaceRequest) (*RenameNamespaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RenameNamespace not implemented") -} -func (*UnimplementedNamespaceServiceServer) NamespaceExists(ctx context.Context, req *NamespaceExistsRequest) (*NamespaceExistsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NamespaceExists not implemented") +func (x *RenameNamespaceResponse) Reset() { + *x = RenameNamespaceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_namespace_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func RegisterNamespaceServiceServer(s *grpc.Server, srv NamespaceServiceServer) { - s.RegisterService(&_NamespaceService_serviceDesc, srv) +func (x *RenameNamespaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func _NamespaceService_AddNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddNamespaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespaceServiceServer).AddNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.NamespaceService/AddNamespace", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespaceServiceServer).AddNamespace(ctx, req.(*AddNamespaceRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*RenameNamespaceResponse) ProtoMessage() {} -func _NamespaceService_RemoveNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveNamespaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespaceServiceServer).RemoveNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.NamespaceService/RemoveNamespace", +func (x *RenameNamespaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_namespace_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespaceServiceServer).RemoveNamespace(ctx, req.(*RemoveNamespaceRequest)) - } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _NamespaceService_RenameNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RenameNamespaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespaceServiceServer).RenameNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.NamespaceService/RenameNamespace", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespaceServiceServer).RenameNamespace(ctx, req.(*RenameNamespaceRequest)) - } - return interceptor(ctx, in, info, handler) -} +// Deprecated: Use RenameNamespaceResponse.ProtoReflect.Descriptor instead. +func (*RenameNamespaceResponse) Descriptor() ([]byte, []int) { + return file_namespace_proto_rawDescGZIP(), []int{7} +} + +var File_namespace_proto protoreflect.FileDescriptor + +var file_namespace_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x06, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x52, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x4e, 0x61, 0x6d, 0x65, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0c, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x55, 0x0a, 0x16, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, + 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0x65, 0x0a, 0x16, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x55, 0x0a, 0x16, 0x4e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x31, + 0x0a, 0x17, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x69, + 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x78, 0x69, 0x73, 0x74, + 0x73, 0x22, 0x16, 0x0a, 0x14, 0x41, 0x64, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x0a, 0x17, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x0a, 0x17, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, + 0x81, 0x03, 0x0a, 0x10, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x53, 0x0a, 0x0c, 0x41, 0x64, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x41, 0x64, + 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x41, 0x64, 0x64, 0x4e, 0x61, + 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x08, 0xfa, 0x97, 0x28, 0x04, 0x08, 0x01, 0x10, 0x02, 0x12, 0x5c, 0x0a, 0x0f, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, + 0x97, 0x28, 0x04, 0x08, 0x01, 0x10, 0x02, 0x12, 0x5c, 0x0a, 0x0f, 0x52, 0x65, 0x6e, 0x61, 0x6d, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, + 0x04, 0x08, 0x01, 0x10, 0x02, 0x12, 0x5c, 0x0a, 0x0f, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, 0x04, 0x08, + 0x02, 0x10, 0x02, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, + 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_namespace_proto_rawDescOnce sync.Once + file_namespace_proto_rawDescData = file_namespace_proto_rawDesc +) -func _NamespaceService_NamespaceExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(NamespaceExistsRequest) - if err := dec(in); err != nil { - return nil, err +func file_namespace_proto_rawDescGZIP() []byte { + file_namespace_proto_rawDescOnce.Do(func() { + file_namespace_proto_rawDescData = protoimpl.X.CompressGZIP(file_namespace_proto_rawDescData) + }) + return file_namespace_proto_rawDescData +} + +var file_namespace_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_namespace_proto_goTypes = []interface{}{ + (*AddNamespaceRequest)(nil), // 0: gitaly.AddNamespaceRequest + (*RemoveNamespaceRequest)(nil), // 1: gitaly.RemoveNamespaceRequest + (*RenameNamespaceRequest)(nil), // 2: gitaly.RenameNamespaceRequest + (*NamespaceExistsRequest)(nil), // 3: gitaly.NamespaceExistsRequest + (*NamespaceExistsResponse)(nil), // 4: gitaly.NamespaceExistsResponse + (*AddNamespaceResponse)(nil), // 5: gitaly.AddNamespaceResponse + (*RemoveNamespaceResponse)(nil), // 6: gitaly.RemoveNamespaceResponse + (*RenameNamespaceResponse)(nil), // 7: gitaly.RenameNamespaceResponse +} +var file_namespace_proto_depIdxs = []int32{ + 0, // 0: gitaly.NamespaceService.AddNamespace:input_type -> gitaly.AddNamespaceRequest + 1, // 1: gitaly.NamespaceService.RemoveNamespace:input_type -> gitaly.RemoveNamespaceRequest + 2, // 2: gitaly.NamespaceService.RenameNamespace:input_type -> gitaly.RenameNamespaceRequest + 3, // 3: gitaly.NamespaceService.NamespaceExists:input_type -> gitaly.NamespaceExistsRequest + 5, // 4: gitaly.NamespaceService.AddNamespace:output_type -> gitaly.AddNamespaceResponse + 6, // 5: gitaly.NamespaceService.RemoveNamespace:output_type -> gitaly.RemoveNamespaceResponse + 7, // 6: gitaly.NamespaceService.RenameNamespace:output_type -> gitaly.RenameNamespaceResponse + 4, // 7: gitaly.NamespaceService.NamespaceExists:output_type -> gitaly.NamespaceExistsResponse + 4, // [4:8] is the sub-list for method output_type + 0, // [0:4] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_namespace_proto_init() } +func file_namespace_proto_init() { + if File_namespace_proto != nil { + return } - if interceptor == nil { - return srv.(NamespaceServiceServer).NamespaceExists(ctx, in) + file_lint_proto_init() + if !protoimpl.UnsafeEnabled { + file_namespace_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddNamespaceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_namespace_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveNamespaceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_namespace_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RenameNamespaceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_namespace_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamespaceExistsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_namespace_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamespaceExistsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_namespace_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddNamespaceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_namespace_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveNamespaceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_namespace_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RenameNamespaceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.NamespaceService/NamespaceExists", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespaceServiceServer).NamespaceExists(ctx, req.(*NamespaceExistsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _NamespaceService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.NamespaceService", - HandlerType: (*NamespaceServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "AddNamespace", - Handler: _NamespaceService_AddNamespace_Handler, - }, - { - MethodName: "RemoveNamespace", - Handler: _NamespaceService_RemoveNamespace_Handler, - }, - { - MethodName: "RenameNamespace", - Handler: _NamespaceService_RenameNamespace_Handler, - }, - { - MethodName: "NamespaceExists", - Handler: _NamespaceService_NamespaceExists_Handler, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_namespace_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "namespace.proto", + GoTypes: file_namespace_proto_goTypes, + DependencyIndexes: file_namespace_proto_depIdxs, + MessageInfos: file_namespace_proto_msgTypes, + }.Build() + File_namespace_proto = out.File + file_namespace_proto_rawDesc = nil + file_namespace_proto_goTypes = nil + file_namespace_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/namespace_grpc.pb.go b/proto/go/gitalypb/namespace_grpc.pb.go new file mode 100644 index 000000000..33ff20ee3 --- /dev/null +++ b/proto/go/gitalypb/namespace_grpc.pb.go @@ -0,0 +1,209 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// NamespaceServiceClient is the client API for NamespaceService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type NamespaceServiceClient interface { + AddNamespace(ctx context.Context, in *AddNamespaceRequest, opts ...grpc.CallOption) (*AddNamespaceResponse, error) + RemoveNamespace(ctx context.Context, in *RemoveNamespaceRequest, opts ...grpc.CallOption) (*RemoveNamespaceResponse, error) + RenameNamespace(ctx context.Context, in *RenameNamespaceRequest, opts ...grpc.CallOption) (*RenameNamespaceResponse, error) + NamespaceExists(ctx context.Context, in *NamespaceExistsRequest, opts ...grpc.CallOption) (*NamespaceExistsResponse, error) +} + +type namespaceServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewNamespaceServiceClient(cc grpc.ClientConnInterface) NamespaceServiceClient { + return &namespaceServiceClient{cc} +} + +func (c *namespaceServiceClient) AddNamespace(ctx context.Context, in *AddNamespaceRequest, opts ...grpc.CallOption) (*AddNamespaceResponse, error) { + out := new(AddNamespaceResponse) + err := c.cc.Invoke(ctx, "/gitaly.NamespaceService/AddNamespace", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespaceServiceClient) RemoveNamespace(ctx context.Context, in *RemoveNamespaceRequest, opts ...grpc.CallOption) (*RemoveNamespaceResponse, error) { + out := new(RemoveNamespaceResponse) + err := c.cc.Invoke(ctx, "/gitaly.NamespaceService/RemoveNamespace", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespaceServiceClient) RenameNamespace(ctx context.Context, in *RenameNamespaceRequest, opts ...grpc.CallOption) (*RenameNamespaceResponse, error) { + out := new(RenameNamespaceResponse) + err := c.cc.Invoke(ctx, "/gitaly.NamespaceService/RenameNamespace", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespaceServiceClient) NamespaceExists(ctx context.Context, in *NamespaceExistsRequest, opts ...grpc.CallOption) (*NamespaceExistsResponse, error) { + out := new(NamespaceExistsResponse) + err := c.cc.Invoke(ctx, "/gitaly.NamespaceService/NamespaceExists", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// NamespaceServiceServer is the server API for NamespaceService service. +// All implementations must embed UnimplementedNamespaceServiceServer +// for forward compatibility +type NamespaceServiceServer interface { + AddNamespace(context.Context, *AddNamespaceRequest) (*AddNamespaceResponse, error) + RemoveNamespace(context.Context, *RemoveNamespaceRequest) (*RemoveNamespaceResponse, error) + RenameNamespace(context.Context, *RenameNamespaceRequest) (*RenameNamespaceResponse, error) + NamespaceExists(context.Context, *NamespaceExistsRequest) (*NamespaceExistsResponse, error) + mustEmbedUnimplementedNamespaceServiceServer() +} + +// UnimplementedNamespaceServiceServer must be embedded to have forward compatible implementations. +type UnimplementedNamespaceServiceServer struct { +} + +func (UnimplementedNamespaceServiceServer) AddNamespace(context.Context, *AddNamespaceRequest) (*AddNamespaceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddNamespace not implemented") +} +func (UnimplementedNamespaceServiceServer) RemoveNamespace(context.Context, *RemoveNamespaceRequest) (*RemoveNamespaceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveNamespace not implemented") +} +func (UnimplementedNamespaceServiceServer) RenameNamespace(context.Context, *RenameNamespaceRequest) (*RenameNamespaceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RenameNamespace not implemented") +} +func (UnimplementedNamespaceServiceServer) NamespaceExists(context.Context, *NamespaceExistsRequest) (*NamespaceExistsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NamespaceExists not implemented") +} +func (UnimplementedNamespaceServiceServer) mustEmbedUnimplementedNamespaceServiceServer() {} + +// UnsafeNamespaceServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to NamespaceServiceServer will +// result in compilation errors. +type UnsafeNamespaceServiceServer interface { + mustEmbedUnimplementedNamespaceServiceServer() +} + +func RegisterNamespaceServiceServer(s grpc.ServiceRegistrar, srv NamespaceServiceServer) { + s.RegisterService(&NamespaceService_ServiceDesc, srv) +} + +func _NamespaceService_AddNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddNamespaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespaceServiceServer).AddNamespace(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.NamespaceService/AddNamespace", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespaceServiceServer).AddNamespace(ctx, req.(*AddNamespaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespaceService_RemoveNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveNamespaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespaceServiceServer).RemoveNamespace(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.NamespaceService/RemoveNamespace", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespaceServiceServer).RemoveNamespace(ctx, req.(*RemoveNamespaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespaceService_RenameNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RenameNamespaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespaceServiceServer).RenameNamespace(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.NamespaceService/RenameNamespace", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespaceServiceServer).RenameNamespace(ctx, req.(*RenameNamespaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespaceService_NamespaceExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NamespaceExistsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespaceServiceServer).NamespaceExists(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.NamespaceService/NamespaceExists", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespaceServiceServer).NamespaceExists(ctx, req.(*NamespaceExistsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// NamespaceService_ServiceDesc is the grpc.ServiceDesc for NamespaceService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var NamespaceService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.NamespaceService", + HandlerType: (*NamespaceServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AddNamespace", + Handler: _NamespaceService_AddNamespace_Handler, + }, + { + MethodName: "RemoveNamespace", + Handler: _NamespaceService_RemoveNamespace_Handler, + }, + { + MethodName: "RenameNamespace", + Handler: _NamespaceService_RenameNamespace_Handler, + }, + { + MethodName: "NamespaceExists", + Handler: _NamespaceService_NamespaceExists_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "namespace.proto", +} diff --git a/proto/go/gitalypb/objectpool.pb.go b/proto/go/gitalypb/objectpool.pb.go index 972ea46e3..c769b9d61 100644 --- a/proto/go/gitalypb/objectpool.pb.go +++ b/proto/go/gitalypb/objectpool.pb.go @@ -1,1038 +1,1195 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: objectpool.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // Creates an object pool from the repository. The client is responsible for // joining this pool later with this repository. type CreateObjectPoolRequest struct { - ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` - Origin *Repository `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateObjectPoolRequest) Reset() { *m = CreateObjectPoolRequest{} } -func (m *CreateObjectPoolRequest) String() string { return proto.CompactTextString(m) } -func (*CreateObjectPoolRequest) ProtoMessage() {} -func (*CreateObjectPoolRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{0} + ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` + Origin *Repository `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` } -func (m *CreateObjectPoolRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateObjectPoolRequest.Unmarshal(m, b) -} -func (m *CreateObjectPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateObjectPoolRequest.Marshal(b, m, deterministic) -} -func (m *CreateObjectPoolRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateObjectPoolRequest.Merge(m, src) +func (x *CreateObjectPoolRequest) Reset() { + *x = CreateObjectPoolRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateObjectPoolRequest) XXX_Size() int { - return xxx_messageInfo_CreateObjectPoolRequest.Size(m) + +func (x *CreateObjectPoolRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateObjectPoolRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateObjectPoolRequest.DiscardUnknown(m) + +func (*CreateObjectPoolRequest) ProtoMessage() {} + +func (x *CreateObjectPoolRequest) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateObjectPoolRequest proto.InternalMessageInfo +// Deprecated: Use CreateObjectPoolRequest.ProtoReflect.Descriptor instead. +func (*CreateObjectPoolRequest) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{0} +} -func (m *CreateObjectPoolRequest) GetObjectPool() *ObjectPool { - if m != nil { - return m.ObjectPool +func (x *CreateObjectPoolRequest) GetObjectPool() *ObjectPool { + if x != nil { + return x.ObjectPool } return nil } -func (m *CreateObjectPoolRequest) GetOrigin() *Repository { - if m != nil { - return m.Origin +func (x *CreateObjectPoolRequest) GetOrigin() *Repository { + if x != nil { + return x.Origin } return nil } type CreateObjectPoolResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *CreateObjectPoolResponse) Reset() { *m = CreateObjectPoolResponse{} } -func (m *CreateObjectPoolResponse) String() string { return proto.CompactTextString(m) } -func (*CreateObjectPoolResponse) ProtoMessage() {} -func (*CreateObjectPoolResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{1} +func (x *CreateObjectPoolResponse) Reset() { + *x = CreateObjectPoolResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateObjectPoolResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateObjectPoolResponse.Unmarshal(m, b) +func (x *CreateObjectPoolResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateObjectPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateObjectPoolResponse.Marshal(b, m, deterministic) -} -func (m *CreateObjectPoolResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateObjectPoolResponse.Merge(m, src) -} -func (m *CreateObjectPoolResponse) XXX_Size() int { - return xxx_messageInfo_CreateObjectPoolResponse.Size(m) -} -func (m *CreateObjectPoolResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateObjectPoolResponse.DiscardUnknown(m) + +func (*CreateObjectPoolResponse) ProtoMessage() {} + +func (x *CreateObjectPoolResponse) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateObjectPoolResponse proto.InternalMessageInfo +// Deprecated: Use CreateObjectPoolResponse.ProtoReflect.Descriptor instead. +func (*CreateObjectPoolResponse) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{1} +} // Removes the directory from disk, caller is responsible for leaving the object // pool before calling this RPC type DeleteObjectPoolRequest struct { - ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DeleteObjectPoolRequest) Reset() { *m = DeleteObjectPoolRequest{} } -func (m *DeleteObjectPoolRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteObjectPoolRequest) ProtoMessage() {} -func (*DeleteObjectPoolRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{2} + ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` } -func (m *DeleteObjectPoolRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteObjectPoolRequest.Unmarshal(m, b) -} -func (m *DeleteObjectPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteObjectPoolRequest.Marshal(b, m, deterministic) -} -func (m *DeleteObjectPoolRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteObjectPoolRequest.Merge(m, src) +func (x *DeleteObjectPoolRequest) Reset() { + *x = DeleteObjectPoolRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeleteObjectPoolRequest) XXX_Size() int { - return xxx_messageInfo_DeleteObjectPoolRequest.Size(m) + +func (x *DeleteObjectPoolRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteObjectPoolRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteObjectPoolRequest.DiscardUnknown(m) + +func (*DeleteObjectPoolRequest) ProtoMessage() {} + +func (x *DeleteObjectPoolRequest) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DeleteObjectPoolRequest proto.InternalMessageInfo +// Deprecated: Use DeleteObjectPoolRequest.ProtoReflect.Descriptor instead. +func (*DeleteObjectPoolRequest) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{2} +} -func (m *DeleteObjectPoolRequest) GetObjectPool() *ObjectPool { - if m != nil { - return m.ObjectPool +func (x *DeleteObjectPoolRequest) GetObjectPool() *ObjectPool { + if x != nil { + return x.ObjectPool } return nil } type DeleteObjectPoolResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *DeleteObjectPoolResponse) Reset() { *m = DeleteObjectPoolResponse{} } -func (m *DeleteObjectPoolResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteObjectPoolResponse) ProtoMessage() {} -func (*DeleteObjectPoolResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{3} +func (x *DeleteObjectPoolResponse) Reset() { + *x = DeleteObjectPoolResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeleteObjectPoolResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteObjectPoolResponse.Unmarshal(m, b) -} -func (m *DeleteObjectPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteObjectPoolResponse.Marshal(b, m, deterministic) -} -func (m *DeleteObjectPoolResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteObjectPoolResponse.Merge(m, src) -} -func (m *DeleteObjectPoolResponse) XXX_Size() int { - return xxx_messageInfo_DeleteObjectPoolResponse.Size(m) -} -func (m *DeleteObjectPoolResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteObjectPoolResponse.DiscardUnknown(m) +func (x *DeleteObjectPoolResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_DeleteObjectPoolResponse proto.InternalMessageInfo +func (*DeleteObjectPoolResponse) ProtoMessage() {} -type LinkRepositoryToObjectPoolRequest struct { - ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` - Repository *Repository `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DeleteObjectPoolResponse) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *LinkRepositoryToObjectPoolRequest) Reset() { *m = LinkRepositoryToObjectPoolRequest{} } -func (m *LinkRepositoryToObjectPoolRequest) String() string { return proto.CompactTextString(m) } -func (*LinkRepositoryToObjectPoolRequest) ProtoMessage() {} -func (*LinkRepositoryToObjectPoolRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{4} +// Deprecated: Use DeleteObjectPoolResponse.ProtoReflect.Descriptor instead. +func (*DeleteObjectPoolResponse) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{3} } -func (m *LinkRepositoryToObjectPoolRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LinkRepositoryToObjectPoolRequest.Unmarshal(m, b) -} -func (m *LinkRepositoryToObjectPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LinkRepositoryToObjectPoolRequest.Marshal(b, m, deterministic) +type LinkRepositoryToObjectPoolRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` + Repository *Repository `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *LinkRepositoryToObjectPoolRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LinkRepositoryToObjectPoolRequest.Merge(m, src) + +func (x *LinkRepositoryToObjectPoolRequest) Reset() { + *x = LinkRepositoryToObjectPoolRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LinkRepositoryToObjectPoolRequest) XXX_Size() int { - return xxx_messageInfo_LinkRepositoryToObjectPoolRequest.Size(m) + +func (x *LinkRepositoryToObjectPoolRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LinkRepositoryToObjectPoolRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LinkRepositoryToObjectPoolRequest.DiscardUnknown(m) + +func (*LinkRepositoryToObjectPoolRequest) ProtoMessage() {} + +func (x *LinkRepositoryToObjectPoolRequest) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LinkRepositoryToObjectPoolRequest proto.InternalMessageInfo +// Deprecated: Use LinkRepositoryToObjectPoolRequest.ProtoReflect.Descriptor instead. +func (*LinkRepositoryToObjectPoolRequest) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{4} +} -func (m *LinkRepositoryToObjectPoolRequest) GetObjectPool() *ObjectPool { - if m != nil { - return m.ObjectPool +func (x *LinkRepositoryToObjectPoolRequest) GetObjectPool() *ObjectPool { + if x != nil { + return x.ObjectPool } return nil } -func (m *LinkRepositoryToObjectPoolRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *LinkRepositoryToObjectPoolRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type LinkRepositoryToObjectPoolResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *LinkRepositoryToObjectPoolResponse) Reset() { *m = LinkRepositoryToObjectPoolResponse{} } -func (m *LinkRepositoryToObjectPoolResponse) String() string { return proto.CompactTextString(m) } -func (*LinkRepositoryToObjectPoolResponse) ProtoMessage() {} -func (*LinkRepositoryToObjectPoolResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{5} +func (x *LinkRepositoryToObjectPoolResponse) Reset() { + *x = LinkRepositoryToObjectPoolResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LinkRepositoryToObjectPoolResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LinkRepositoryToObjectPoolResponse.Unmarshal(m, b) -} -func (m *LinkRepositoryToObjectPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LinkRepositoryToObjectPoolResponse.Marshal(b, m, deterministic) -} -func (m *LinkRepositoryToObjectPoolResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LinkRepositoryToObjectPoolResponse.Merge(m, src) +func (x *LinkRepositoryToObjectPoolResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LinkRepositoryToObjectPoolResponse) XXX_Size() int { - return xxx_messageInfo_LinkRepositoryToObjectPoolResponse.Size(m) -} -func (m *LinkRepositoryToObjectPoolResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LinkRepositoryToObjectPoolResponse.DiscardUnknown(m) + +func (*LinkRepositoryToObjectPoolResponse) ProtoMessage() {} + +func (x *LinkRepositoryToObjectPoolResponse) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LinkRepositoryToObjectPoolResponse proto.InternalMessageInfo +// Deprecated: Use LinkRepositoryToObjectPoolResponse.ProtoReflect.Descriptor instead. +func (*LinkRepositoryToObjectPoolResponse) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{5} +} // This RPC doesn't require the ObjectPool as it will remove the alternates file // from the pool participant. The caller is responsible no data loss occurs. type UnlinkRepositoryFromObjectPoolRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - ObjectPool *ObjectPool `protobuf:"bytes,2,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UnlinkRepositoryFromObjectPoolRequest) Reset() { *m = UnlinkRepositoryFromObjectPoolRequest{} } -func (m *UnlinkRepositoryFromObjectPoolRequest) String() string { return proto.CompactTextString(m) } -func (*UnlinkRepositoryFromObjectPoolRequest) ProtoMessage() {} -func (*UnlinkRepositoryFromObjectPoolRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{6} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // already specified as the target repo field + ObjectPool *ObjectPool `protobuf:"bytes,2,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` } -func (m *UnlinkRepositoryFromObjectPoolRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UnlinkRepositoryFromObjectPoolRequest.Unmarshal(m, b) -} -func (m *UnlinkRepositoryFromObjectPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UnlinkRepositoryFromObjectPoolRequest.Marshal(b, m, deterministic) -} -func (m *UnlinkRepositoryFromObjectPoolRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnlinkRepositoryFromObjectPoolRequest.Merge(m, src) +func (x *UnlinkRepositoryFromObjectPoolRequest) Reset() { + *x = UnlinkRepositoryFromObjectPoolRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UnlinkRepositoryFromObjectPoolRequest) XXX_Size() int { - return xxx_messageInfo_UnlinkRepositoryFromObjectPoolRequest.Size(m) + +func (x *UnlinkRepositoryFromObjectPoolRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UnlinkRepositoryFromObjectPoolRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UnlinkRepositoryFromObjectPoolRequest.DiscardUnknown(m) + +func (*UnlinkRepositoryFromObjectPoolRequest) ProtoMessage() {} + +func (x *UnlinkRepositoryFromObjectPoolRequest) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UnlinkRepositoryFromObjectPoolRequest proto.InternalMessageInfo +// Deprecated: Use UnlinkRepositoryFromObjectPoolRequest.ProtoReflect.Descriptor instead. +func (*UnlinkRepositoryFromObjectPoolRequest) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{6} +} -func (m *UnlinkRepositoryFromObjectPoolRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UnlinkRepositoryFromObjectPoolRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UnlinkRepositoryFromObjectPoolRequest) GetObjectPool() *ObjectPool { - if m != nil { - return m.ObjectPool +func (x *UnlinkRepositoryFromObjectPoolRequest) GetObjectPool() *ObjectPool { + if x != nil { + return x.ObjectPool } return nil } type UnlinkRepositoryFromObjectPoolResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *UnlinkRepositoryFromObjectPoolResponse) Reset() { - *m = UnlinkRepositoryFromObjectPoolResponse{} -} -func (m *UnlinkRepositoryFromObjectPoolResponse) String() string { return proto.CompactTextString(m) } -func (*UnlinkRepositoryFromObjectPoolResponse) ProtoMessage() {} -func (*UnlinkRepositoryFromObjectPoolResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{7} +func (x *UnlinkRepositoryFromObjectPoolResponse) Reset() { + *x = UnlinkRepositoryFromObjectPoolResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UnlinkRepositoryFromObjectPoolResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UnlinkRepositoryFromObjectPoolResponse.Unmarshal(m, b) -} -func (m *UnlinkRepositoryFromObjectPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UnlinkRepositoryFromObjectPoolResponse.Marshal(b, m, deterministic) -} -func (m *UnlinkRepositoryFromObjectPoolResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnlinkRepositoryFromObjectPoolResponse.Merge(m, src) -} -func (m *UnlinkRepositoryFromObjectPoolResponse) XXX_Size() int { - return xxx_messageInfo_UnlinkRepositoryFromObjectPoolResponse.Size(m) -} -func (m *UnlinkRepositoryFromObjectPoolResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UnlinkRepositoryFromObjectPoolResponse.DiscardUnknown(m) +func (x *UnlinkRepositoryFromObjectPoolResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_UnlinkRepositoryFromObjectPoolResponse proto.InternalMessageInfo +func (*UnlinkRepositoryFromObjectPoolResponse) ProtoMessage() {} -type ReduplicateRepositoryRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *UnlinkRepositoryFromObjectPoolResponse) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ReduplicateRepositoryRequest) Reset() { *m = ReduplicateRepositoryRequest{} } -func (m *ReduplicateRepositoryRequest) String() string { return proto.CompactTextString(m) } -func (*ReduplicateRepositoryRequest) ProtoMessage() {} -func (*ReduplicateRepositoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{8} +// Deprecated: Use UnlinkRepositoryFromObjectPoolResponse.ProtoReflect.Descriptor instead. +func (*UnlinkRepositoryFromObjectPoolResponse) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{7} } -func (m *ReduplicateRepositoryRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReduplicateRepositoryRequest.Unmarshal(m, b) -} -func (m *ReduplicateRepositoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReduplicateRepositoryRequest.Marshal(b, m, deterministic) -} -func (m *ReduplicateRepositoryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReduplicateRepositoryRequest.Merge(m, src) -} -func (m *ReduplicateRepositoryRequest) XXX_Size() int { - return xxx_messageInfo_ReduplicateRepositoryRequest.Size(m) -} -func (m *ReduplicateRepositoryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReduplicateRepositoryRequest.DiscardUnknown(m) -} +type ReduplicateRepositoryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var xxx_messageInfo_ReduplicateRepositoryRequest proto.InternalMessageInfo + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` +} -func (m *ReduplicateRepositoryRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ReduplicateRepositoryRequest) Reset() { + *x = ReduplicateRepositoryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ReduplicateRepositoryResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ReduplicateRepositoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReduplicateRepositoryResponse) Reset() { *m = ReduplicateRepositoryResponse{} } -func (m *ReduplicateRepositoryResponse) String() string { return proto.CompactTextString(m) } -func (*ReduplicateRepositoryResponse) ProtoMessage() {} -func (*ReduplicateRepositoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{9} -} +func (*ReduplicateRepositoryRequest) ProtoMessage() {} -func (m *ReduplicateRepositoryResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReduplicateRepositoryResponse.Unmarshal(m, b) -} -func (m *ReduplicateRepositoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReduplicateRepositoryResponse.Marshal(b, m, deterministic) -} -func (m *ReduplicateRepositoryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReduplicateRepositoryResponse.Merge(m, src) -} -func (m *ReduplicateRepositoryResponse) XXX_Size() int { - return xxx_messageInfo_ReduplicateRepositoryResponse.Size(m) -} -func (m *ReduplicateRepositoryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReduplicateRepositoryResponse.DiscardUnknown(m) +func (x *ReduplicateRepositoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReduplicateRepositoryResponse proto.InternalMessageInfo - -type DisconnectGitAlternatesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use ReduplicateRepositoryRequest.ProtoReflect.Descriptor instead. +func (*ReduplicateRepositoryRequest) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{8} } -func (m *DisconnectGitAlternatesRequest) Reset() { *m = DisconnectGitAlternatesRequest{} } -func (m *DisconnectGitAlternatesRequest) String() string { return proto.CompactTextString(m) } -func (*DisconnectGitAlternatesRequest) ProtoMessage() {} -func (*DisconnectGitAlternatesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{10} +func (x *ReduplicateRepositoryRequest) GetRepository() *Repository { + if x != nil { + return x.Repository + } + return nil } -func (m *DisconnectGitAlternatesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DisconnectGitAlternatesRequest.Unmarshal(m, b) -} -func (m *DisconnectGitAlternatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DisconnectGitAlternatesRequest.Marshal(b, m, deterministic) -} -func (m *DisconnectGitAlternatesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DisconnectGitAlternatesRequest.Merge(m, src) -} -func (m *DisconnectGitAlternatesRequest) XXX_Size() int { - return xxx_messageInfo_DisconnectGitAlternatesRequest.Size(m) -} -func (m *DisconnectGitAlternatesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DisconnectGitAlternatesRequest.DiscardUnknown(m) +type ReduplicateRepositoryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -var xxx_messageInfo_DisconnectGitAlternatesRequest proto.InternalMessageInfo - -func (m *DisconnectGitAlternatesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ReduplicateRepositoryResponse) Reset() { + *x = ReduplicateRepositoryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type DisconnectGitAlternatesResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ReduplicateRepositoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DisconnectGitAlternatesResponse) Reset() { *m = DisconnectGitAlternatesResponse{} } -func (m *DisconnectGitAlternatesResponse) String() string { return proto.CompactTextString(m) } -func (*DisconnectGitAlternatesResponse) ProtoMessage() {} -func (*DisconnectGitAlternatesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{11} -} +func (*ReduplicateRepositoryResponse) ProtoMessage() {} -func (m *DisconnectGitAlternatesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DisconnectGitAlternatesResponse.Unmarshal(m, b) -} -func (m *DisconnectGitAlternatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DisconnectGitAlternatesResponse.Marshal(b, m, deterministic) -} -func (m *DisconnectGitAlternatesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DisconnectGitAlternatesResponse.Merge(m, src) -} -func (m *DisconnectGitAlternatesResponse) XXX_Size() int { - return xxx_messageInfo_DisconnectGitAlternatesResponse.Size(m) +func (x *ReduplicateRepositoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *DisconnectGitAlternatesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DisconnectGitAlternatesResponse.DiscardUnknown(m) + +// Deprecated: Use ReduplicateRepositoryResponse.ProtoReflect.Descriptor instead. +func (*ReduplicateRepositoryResponse) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{9} } -var xxx_messageInfo_DisconnectGitAlternatesResponse proto.InternalMessageInfo +type DisconnectGitAlternatesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type FetchIntoObjectPoolRequest struct { - Origin *Repository `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"` - ObjectPool *ObjectPool `protobuf:"bytes,2,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` - Repack bool `protobuf:"varint,3,opt,name=repack,proto3" json:"repack,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *FetchIntoObjectPoolRequest) Reset() { *m = FetchIntoObjectPoolRequest{} } -func (m *FetchIntoObjectPoolRequest) String() string { return proto.CompactTextString(m) } -func (*FetchIntoObjectPoolRequest) ProtoMessage() {} -func (*FetchIntoObjectPoolRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{12} +func (x *DisconnectGitAlternatesRequest) Reset() { + *x = DisconnectGitAlternatesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FetchIntoObjectPoolRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FetchIntoObjectPoolRequest.Unmarshal(m, b) -} -func (m *FetchIntoObjectPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FetchIntoObjectPoolRequest.Marshal(b, m, deterministic) -} -func (m *FetchIntoObjectPoolRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FetchIntoObjectPoolRequest.Merge(m, src) -} -func (m *FetchIntoObjectPoolRequest) XXX_Size() int { - return xxx_messageInfo_FetchIntoObjectPoolRequest.Size(m) -} -func (m *FetchIntoObjectPoolRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FetchIntoObjectPoolRequest.DiscardUnknown(m) +func (x *DisconnectGitAlternatesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_FetchIntoObjectPoolRequest proto.InternalMessageInfo +func (*DisconnectGitAlternatesRequest) ProtoMessage() {} -func (m *FetchIntoObjectPoolRequest) GetOrigin() *Repository { - if m != nil { - return m.Origin +func (x *DisconnectGitAlternatesRequest) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *FetchIntoObjectPoolRequest) GetObjectPool() *ObjectPool { - if m != nil { - return m.ObjectPool - } - return nil +// Deprecated: Use DisconnectGitAlternatesRequest.ProtoReflect.Descriptor instead. +func (*DisconnectGitAlternatesRequest) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{10} } -func (m *FetchIntoObjectPoolRequest) GetRepack() bool { - if m != nil { - return m.Repack +func (x *DisconnectGitAlternatesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return false + return nil } -type FetchIntoObjectPoolResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type DisconnectGitAlternatesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *FetchIntoObjectPoolResponse) Reset() { *m = FetchIntoObjectPoolResponse{} } -func (m *FetchIntoObjectPoolResponse) String() string { return proto.CompactTextString(m) } -func (*FetchIntoObjectPoolResponse) ProtoMessage() {} -func (*FetchIntoObjectPoolResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{13} +func (x *DisconnectGitAlternatesResponse) Reset() { + *x = DisconnectGitAlternatesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FetchIntoObjectPoolResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FetchIntoObjectPoolResponse.Unmarshal(m, b) -} -func (m *FetchIntoObjectPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FetchIntoObjectPoolResponse.Marshal(b, m, deterministic) -} -func (m *FetchIntoObjectPoolResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FetchIntoObjectPoolResponse.Merge(m, src) -} -func (m *FetchIntoObjectPoolResponse) XXX_Size() int { - return xxx_messageInfo_FetchIntoObjectPoolResponse.Size(m) -} -func (m *FetchIntoObjectPoolResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FetchIntoObjectPoolResponse.DiscardUnknown(m) +func (x *DisconnectGitAlternatesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_FetchIntoObjectPoolResponse proto.InternalMessageInfo +func (*DisconnectGitAlternatesResponse) ProtoMessage() {} -type GetObjectPoolRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DisconnectGitAlternatesResponse) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *GetObjectPoolRequest) Reset() { *m = GetObjectPoolRequest{} } -func (m *GetObjectPoolRequest) String() string { return proto.CompactTextString(m) } -func (*GetObjectPoolRequest) ProtoMessage() {} -func (*GetObjectPoolRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{14} +// Deprecated: Use DisconnectGitAlternatesResponse.ProtoReflect.Descriptor instead. +func (*DisconnectGitAlternatesResponse) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{11} } -func (m *GetObjectPoolRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetObjectPoolRequest.Unmarshal(m, b) -} -func (m *GetObjectPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetObjectPoolRequest.Marshal(b, m, deterministic) -} -func (m *GetObjectPoolRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetObjectPoolRequest.Merge(m, src) -} -func (m *GetObjectPoolRequest) XXX_Size() int { - return xxx_messageInfo_GetObjectPoolRequest.Size(m) -} -func (m *GetObjectPoolRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetObjectPoolRequest.DiscardUnknown(m) -} +type FetchIntoObjectPoolRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var xxx_messageInfo_GetObjectPoolRequest proto.InternalMessageInfo + Origin *Repository `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"` + ObjectPool *ObjectPool `protobuf:"bytes,2,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` + Repack bool `protobuf:"varint,3,opt,name=repack,proto3" json:"repack,omitempty"` +} -func (m *GetObjectPoolRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FetchIntoObjectPoolRequest) Reset() { + *x = FetchIntoObjectPoolRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type GetObjectPoolResponse struct { - ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *FetchIntoObjectPoolRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetObjectPoolResponse) Reset() { *m = GetObjectPoolResponse{} } -func (m *GetObjectPoolResponse) String() string { return proto.CompactTextString(m) } -func (*GetObjectPoolResponse) ProtoMessage() {} -func (*GetObjectPoolResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_949871727a345eae, []int{15} -} +func (*FetchIntoObjectPoolRequest) ProtoMessage() {} -func (m *GetObjectPoolResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetObjectPoolResponse.Unmarshal(m, b) -} -func (m *GetObjectPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetObjectPoolResponse.Marshal(b, m, deterministic) -} -func (m *GetObjectPoolResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetObjectPoolResponse.Merge(m, src) -} -func (m *GetObjectPoolResponse) XXX_Size() int { - return xxx_messageInfo_GetObjectPoolResponse.Size(m) -} -func (m *GetObjectPoolResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetObjectPoolResponse.DiscardUnknown(m) +func (x *FetchIntoObjectPoolRequest) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetObjectPoolResponse proto.InternalMessageInfo +// Deprecated: Use FetchIntoObjectPoolRequest.ProtoReflect.Descriptor instead. +func (*FetchIntoObjectPoolRequest) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{12} +} -func (m *GetObjectPoolResponse) GetObjectPool() *ObjectPool { - if m != nil { - return m.ObjectPool +func (x *FetchIntoObjectPoolRequest) GetOrigin() *Repository { + if x != nil { + return x.Origin } return nil } -func init() { - proto.RegisterType((*CreateObjectPoolRequest)(nil), "gitaly.CreateObjectPoolRequest") - proto.RegisterType((*CreateObjectPoolResponse)(nil), "gitaly.CreateObjectPoolResponse") - proto.RegisterType((*DeleteObjectPoolRequest)(nil), "gitaly.DeleteObjectPoolRequest") - proto.RegisterType((*DeleteObjectPoolResponse)(nil), "gitaly.DeleteObjectPoolResponse") - proto.RegisterType((*LinkRepositoryToObjectPoolRequest)(nil), "gitaly.LinkRepositoryToObjectPoolRequest") - proto.RegisterType((*LinkRepositoryToObjectPoolResponse)(nil), "gitaly.LinkRepositoryToObjectPoolResponse") - proto.RegisterType((*UnlinkRepositoryFromObjectPoolRequest)(nil), "gitaly.UnlinkRepositoryFromObjectPoolRequest") - proto.RegisterType((*UnlinkRepositoryFromObjectPoolResponse)(nil), "gitaly.UnlinkRepositoryFromObjectPoolResponse") - proto.RegisterType((*ReduplicateRepositoryRequest)(nil), "gitaly.ReduplicateRepositoryRequest") - proto.RegisterType((*ReduplicateRepositoryResponse)(nil), "gitaly.ReduplicateRepositoryResponse") - proto.RegisterType((*DisconnectGitAlternatesRequest)(nil), "gitaly.DisconnectGitAlternatesRequest") - proto.RegisterType((*DisconnectGitAlternatesResponse)(nil), "gitaly.DisconnectGitAlternatesResponse") - proto.RegisterType((*FetchIntoObjectPoolRequest)(nil), "gitaly.FetchIntoObjectPoolRequest") - proto.RegisterType((*FetchIntoObjectPoolResponse)(nil), "gitaly.FetchIntoObjectPoolResponse") - proto.RegisterType((*GetObjectPoolRequest)(nil), "gitaly.GetObjectPoolRequest") - proto.RegisterType((*GetObjectPoolResponse)(nil), "gitaly.GetObjectPoolResponse") -} - -func init() { proto.RegisterFile("objectpool.proto", fileDescriptor_949871727a345eae) } - -var fileDescriptor_949871727a345eae = []byte{ - // 597 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xd1, 0x4e, 0x13, 0x4d, - 0x18, 0xcd, 0xf4, 0x27, 0x1b, 0xf2, 0xf1, 0x9b, 0xe0, 0x28, 0xb6, 0x19, 0x29, 0x2d, 0x2b, 0x60, - 0x35, 0xd2, 0x6a, 0xe1, 0x42, 0x2f, 0xad, 0x04, 0x62, 0x42, 0x22, 0xa9, 0x35, 0x31, 0x24, 0xc6, - 0x6c, 0x97, 0xcf, 0x32, 0xb2, 0xec, 0xac, 0xb3, 0x03, 0x09, 0xf1, 0x5e, 0x1f, 0x41, 0x2e, 0xbc, - 0xc0, 0x97, 0xf1, 0x99, 0x8c, 0x57, 0xa6, 0xdd, 0xdd, 0xae, 0x9d, 0x76, 0xb6, 0x6b, 0xca, 0x5d, - 0x77, 0xf6, 0xcc, 0x39, 0xe7, 0x9b, 0x9d, 0x73, 0x52, 0x58, 0x14, 0xdd, 0x8f, 0xe8, 0xaa, 0x40, - 0x08, 0xaf, 0x1e, 0x48, 0xa1, 0x04, 0xb5, 0x7a, 0x5c, 0x39, 0xde, 0x05, 0x03, 0x8f, 0xfb, 0x2a, - 0x5a, 0x63, 0xff, 0x87, 0xc7, 0x8e, 0xc4, 0xa3, 0xe8, 0xc9, 0xfe, 0x42, 0xa0, 0xf8, 0x42, 0xa2, - 0xa3, 0xf0, 0xd5, 0x60, 0xf3, 0x81, 0x10, 0x5e, 0x1b, 0x3f, 0x9d, 0x61, 0xa8, 0xe8, 0x33, 0x58, - 0x88, 0x18, 0xdf, 0xf7, 0x29, 0x4b, 0xa4, 0x4a, 0x6a, 0x0b, 0x4d, 0x5a, 0x8f, 0x38, 0xeb, 0x29, - 0xbe, 0x35, 0x77, 0xf9, 0xf3, 0x11, 0x69, 0x83, 0x18, 0xae, 0xd0, 0xc7, 0x60, 0x09, 0xc9, 0x7b, - 0xdc, 0x2f, 0x15, 0x46, 0x77, 0xb5, 0x31, 0x10, 0x21, 0x57, 0x42, 0x5e, 0xb4, 0xe6, 0xae, 0xfa, - 0xbb, 0x62, 0x9c, 0xcd, 0xa0, 0x34, 0xee, 0x23, 0x0c, 0x84, 0x1f, 0xa2, 0xdd, 0x81, 0xe2, 0x0e, - 0x7a, 0x78, 0xbd, 0x1e, 0xfb, 0x8a, 0xe3, 0xac, 0xb1, 0xe2, 0x25, 0x81, 0xd5, 0x7d, 0xee, 0x9f, - 0xa4, 0x76, 0x3b, 0x62, 0x16, 0xf1, 0x2b, 0xfd, 0x80, 0x9e, 0x02, 0xc8, 0x21, 0x77, 0xd6, 0x21, - 0x45, 0xb6, 0x53, 0xac, 0xbd, 0x06, 0x76, 0x96, 0xb3, 0x78, 0x80, 0xef, 0x04, 0xd6, 0xdf, 0xf8, - 0xde, 0x08, 0x70, 0x57, 0x8a, 0xd3, 0xf1, 0x21, 0x46, 0x9d, 0x90, 0xfc, 0x4e, 0xf4, 0xf1, 0x0b, - 0xf9, 0xc7, 0xb7, 0x6b, 0xb0, 0x31, 0xcd, 0x5d, 0x3c, 0xc8, 0x5b, 0x58, 0x6e, 0xe3, 0xd1, 0x59, - 0xe0, 0x71, 0xd7, 0x51, 0x98, 0xc2, 0x67, 0xb6, 0x6f, 0x57, 0xa0, 0x6c, 0x60, 0x8e, 0xa5, 0x0f, - 0x61, 0x65, 0x87, 0x87, 0xae, 0xf0, 0x7d, 0x74, 0xd5, 0x1e, 0x57, 0xcf, 0x3d, 0x85, 0xd2, 0x77, - 0x14, 0x86, 0xb3, 0x8b, 0xaf, 0x42, 0xc5, 0xc8, 0x1d, 0xcb, 0xff, 0x20, 0xc0, 0x76, 0x51, 0xb9, - 0xc7, 0x2f, 0x7d, 0x35, 0xe1, 0xf2, 0xa5, 0x11, 0x23, 0xf9, 0x22, 0xf6, 0x0f, 0xdf, 0x6b, 0x2c, - 0xcf, 0x77, 0xc0, 0x92, 0x18, 0x38, 0xee, 0x49, 0xe9, 0xbf, 0x2a, 0xa9, 0xcd, 0xb7, 0xe3, 0x27, - 0xbb, 0x0c, 0x77, 0x27, 0x5a, 0x8c, 0x47, 0x38, 0x80, 0xdb, 0x7b, 0xa8, 0xae, 0xf1, 0xce, 0xd9, - 0xfb, 0xb0, 0xa4, 0x31, 0x46, 0x52, 0x74, 0x2b, 0x67, 0x16, 0xff, 0x1e, 0xab, 0xf9, 0xcb, 0x82, - 0x9b, 0xe9, 0xab, 0xd7, 0x28, 0xcf, 0xb9, 0x8b, 0xf4, 0x1d, 0x2c, 0xea, 0x55, 0x44, 0x2b, 0x09, - 0x93, 0xa1, 0x2c, 0x59, 0xd5, 0x0c, 0x88, 0x0f, 0xc3, 0xfa, 0xfd, 0xad, 0x56, 0x98, 0x27, 0x7d, - 0x7a, 0xbd, 0x77, 0x52, 0x7a, 0x43, 0xcf, 0xa5, 0xf4, 0xc6, 0xca, 0x4a, 0xe8, 0x3f, 0x03, 0x33, - 0xf7, 0x03, 0x7d, 0x90, 0xf0, 0x4c, 0x6d, 0x37, 0xf6, 0x30, 0x0f, 0x54, 0x13, 0xff, 0x4a, 0x60, - 0x25, 0x3b, 0xd8, 0x74, 0x33, 0xa1, 0xcd, 0x55, 0x4f, 0xac, 0x9e, 0x17, 0xae, 0x39, 0xf1, 0x60, - 0x69, 0x62, 0xba, 0xe9, 0x5a, 0x7a, 0xcf, 0xcc, 0xb5, 0xc2, 0xd6, 0xa7, 0xa0, 0x34, 0x35, 0x09, - 0x45, 0x43, 0x9c, 0xe9, 0xc6, 0xf0, 0xcb, 0x65, 0x76, 0x09, 0xbb, 0x3f, 0x15, 0xa7, 0x69, 0x7e, - 0x80, 0x5b, 0x13, 0xb2, 0x47, 0xed, 0x84, 0xc7, 0xdc, 0x1d, 0xec, 0x5e, 0x26, 0x46, 0xd3, 0xe9, - 0xc0, 0x8d, 0x91, 0xc8, 0xd1, 0xe5, 0x64, 0xf7, 0xa4, 0x6c, 0xb3, 0xb2, 0xe1, 0xed, 0x08, 0x6b, - 0xa1, 0xb5, 0x7d, 0xd8, 0xec, 0x71, 0xe5, 0x39, 0xdd, 0xba, 0x2b, 0x4e, 0x1b, 0xd1, 0xcf, 0x4d, - 0x21, 0x7b, 0x8d, 0x68, 0x77, 0xe3, 0xfc, 0xc9, 0x76, 0x63, 0xf0, 0x17, 0xa5, 0xd1, 0x13, 0xf1, - 0x5a, 0xd0, 0xed, 0x5a, 0x83, 0xa5, 0xad, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x71, 0xf1, 0x8a, - 0xca, 0xeb, 0x08, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// ObjectPoolServiceClient is the client API for ObjectPoolService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ObjectPoolServiceClient interface { - CreateObjectPool(ctx context.Context, in *CreateObjectPoolRequest, opts ...grpc.CallOption) (*CreateObjectPoolResponse, error) - DeleteObjectPool(ctx context.Context, in *DeleteObjectPoolRequest, opts ...grpc.CallOption) (*DeleteObjectPoolResponse, error) - // Repositories are assumed to be stored on the same disk - LinkRepositoryToObjectPool(ctx context.Context, in *LinkRepositoryToObjectPoolRequest, opts ...grpc.CallOption) (*LinkRepositoryToObjectPoolResponse, error) - UnlinkRepositoryFromObjectPool(ctx context.Context, in *UnlinkRepositoryFromObjectPoolRequest, opts ...grpc.CallOption) (*UnlinkRepositoryFromObjectPoolResponse, error) - ReduplicateRepository(ctx context.Context, in *ReduplicateRepositoryRequest, opts ...grpc.CallOption) (*ReduplicateRepositoryResponse, error) - DisconnectGitAlternates(ctx context.Context, in *DisconnectGitAlternatesRequest, opts ...grpc.CallOption) (*DisconnectGitAlternatesResponse, error) - FetchIntoObjectPool(ctx context.Context, in *FetchIntoObjectPoolRequest, opts ...grpc.CallOption) (*FetchIntoObjectPoolResponse, error) - GetObjectPool(ctx context.Context, in *GetObjectPoolRequest, opts ...grpc.CallOption) (*GetObjectPoolResponse, error) -} - -type objectPoolServiceClient struct { - cc *grpc.ClientConn -} - -func NewObjectPoolServiceClient(cc *grpc.ClientConn) ObjectPoolServiceClient { - return &objectPoolServiceClient{cc} -} - -func (c *objectPoolServiceClient) CreateObjectPool(ctx context.Context, in *CreateObjectPoolRequest, opts ...grpc.CallOption) (*CreateObjectPoolResponse, error) { - out := new(CreateObjectPoolResponse) - err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/CreateObjectPool", in, out, opts...) - if err != nil { - return nil, err +func (x *FetchIntoObjectPoolRequest) GetObjectPool() *ObjectPool { + if x != nil { + return x.ObjectPool } - return out, nil + return nil } -func (c *objectPoolServiceClient) DeleteObjectPool(ctx context.Context, in *DeleteObjectPoolRequest, opts ...grpc.CallOption) (*DeleteObjectPoolResponse, error) { - out := new(DeleteObjectPoolResponse) - err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/DeleteObjectPool", in, out, opts...) - if err != nil { - return nil, err +func (x *FetchIntoObjectPoolRequest) GetRepack() bool { + if x != nil { + return x.Repack } - return out, nil + return false } -func (c *objectPoolServiceClient) LinkRepositoryToObjectPool(ctx context.Context, in *LinkRepositoryToObjectPoolRequest, opts ...grpc.CallOption) (*LinkRepositoryToObjectPoolResponse, error) { - out := new(LinkRepositoryToObjectPoolResponse) - err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/LinkRepositoryToObjectPool", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type FetchIntoObjectPoolResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (c *objectPoolServiceClient) UnlinkRepositoryFromObjectPool(ctx context.Context, in *UnlinkRepositoryFromObjectPoolRequest, opts ...grpc.CallOption) (*UnlinkRepositoryFromObjectPoolResponse, error) { - out := new(UnlinkRepositoryFromObjectPoolResponse) - err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/UnlinkRepositoryFromObjectPool", in, out, opts...) - if err != nil { - return nil, err +func (x *FetchIntoObjectPoolResponse) Reset() { + *x = FetchIntoObjectPoolResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil } -func (c *objectPoolServiceClient) ReduplicateRepository(ctx context.Context, in *ReduplicateRepositoryRequest, opts ...grpc.CallOption) (*ReduplicateRepositoryResponse, error) { - out := new(ReduplicateRepositoryResponse) - err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/ReduplicateRepository", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *FetchIntoObjectPoolResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *objectPoolServiceClient) DisconnectGitAlternates(ctx context.Context, in *DisconnectGitAlternatesRequest, opts ...grpc.CallOption) (*DisconnectGitAlternatesResponse, error) { - out := new(DisconnectGitAlternatesResponse) - err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/DisconnectGitAlternates", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*FetchIntoObjectPoolResponse) ProtoMessage() {} -func (c *objectPoolServiceClient) FetchIntoObjectPool(ctx context.Context, in *FetchIntoObjectPoolRequest, opts ...grpc.CallOption) (*FetchIntoObjectPoolResponse, error) { - out := new(FetchIntoObjectPoolResponse) - err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/FetchIntoObjectPool", in, out, opts...) - if err != nil { - return nil, err +func (x *FetchIntoObjectPoolResponse) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *objectPoolServiceClient) GetObjectPool(ctx context.Context, in *GetObjectPoolRequest, opts ...grpc.CallOption) (*GetObjectPoolResponse, error) { - out := new(GetObjectPoolResponse) - err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/GetObjectPool", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use FetchIntoObjectPoolResponse.ProtoReflect.Descriptor instead. +func (*FetchIntoObjectPoolResponse) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{13} } -// ObjectPoolServiceServer is the server API for ObjectPoolService service. -type ObjectPoolServiceServer interface { - CreateObjectPool(context.Context, *CreateObjectPoolRequest) (*CreateObjectPoolResponse, error) - DeleteObjectPool(context.Context, *DeleteObjectPoolRequest) (*DeleteObjectPoolResponse, error) - // Repositories are assumed to be stored on the same disk - LinkRepositoryToObjectPool(context.Context, *LinkRepositoryToObjectPoolRequest) (*LinkRepositoryToObjectPoolResponse, error) - UnlinkRepositoryFromObjectPool(context.Context, *UnlinkRepositoryFromObjectPoolRequest) (*UnlinkRepositoryFromObjectPoolResponse, error) - ReduplicateRepository(context.Context, *ReduplicateRepositoryRequest) (*ReduplicateRepositoryResponse, error) - DisconnectGitAlternates(context.Context, *DisconnectGitAlternatesRequest) (*DisconnectGitAlternatesResponse, error) - FetchIntoObjectPool(context.Context, *FetchIntoObjectPoolRequest) (*FetchIntoObjectPoolResponse, error) - GetObjectPool(context.Context, *GetObjectPoolRequest) (*GetObjectPoolResponse, error) -} +type GetObjectPoolRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// UnimplementedObjectPoolServiceServer can be embedded to have forward compatible implementations. -type UnimplementedObjectPoolServiceServer struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (*UnimplementedObjectPoolServiceServer) CreateObjectPool(ctx context.Context, req *CreateObjectPoolRequest) (*CreateObjectPoolResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateObjectPool not implemented") -} -func (*UnimplementedObjectPoolServiceServer) DeleteObjectPool(ctx context.Context, req *DeleteObjectPoolRequest) (*DeleteObjectPoolResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteObjectPool not implemented") -} -func (*UnimplementedObjectPoolServiceServer) LinkRepositoryToObjectPool(ctx context.Context, req *LinkRepositoryToObjectPoolRequest) (*LinkRepositoryToObjectPoolResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LinkRepositoryToObjectPool not implemented") -} -func (*UnimplementedObjectPoolServiceServer) UnlinkRepositoryFromObjectPool(ctx context.Context, req *UnlinkRepositoryFromObjectPoolRequest) (*UnlinkRepositoryFromObjectPoolResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UnlinkRepositoryFromObjectPool not implemented") -} -func (*UnimplementedObjectPoolServiceServer) ReduplicateRepository(ctx context.Context, req *ReduplicateRepositoryRequest) (*ReduplicateRepositoryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReduplicateRepository not implemented") -} -func (*UnimplementedObjectPoolServiceServer) DisconnectGitAlternates(ctx context.Context, req *DisconnectGitAlternatesRequest) (*DisconnectGitAlternatesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DisconnectGitAlternates not implemented") +func (x *GetObjectPoolRequest) Reset() { + *x = GetObjectPoolRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (*UnimplementedObjectPoolServiceServer) FetchIntoObjectPool(ctx context.Context, req *FetchIntoObjectPoolRequest) (*FetchIntoObjectPoolResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FetchIntoObjectPool not implemented") + +func (x *GetObjectPoolRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (*UnimplementedObjectPoolServiceServer) GetObjectPool(ctx context.Context, req *GetObjectPoolRequest) (*GetObjectPoolResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetObjectPool not implemented") + +func (*GetObjectPoolRequest) ProtoMessage() {} + +func (x *GetObjectPoolRequest) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func RegisterObjectPoolServiceServer(s *grpc.Server, srv ObjectPoolServiceServer) { - s.RegisterService(&_ObjectPoolService_serviceDesc, srv) +// Deprecated: Use GetObjectPoolRequest.ProtoReflect.Descriptor instead. +func (*GetObjectPoolRequest) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{14} } -func _ObjectPoolService_CreateObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateObjectPoolRequest) - if err := dec(in); err != nil { - return nil, err +func (x *GetObjectPoolRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - if interceptor == nil { - return srv.(ObjectPoolServiceServer).CreateObjectPool(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.ObjectPoolService/CreateObjectPool", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ObjectPoolServiceServer).CreateObjectPool(ctx, req.(*CreateObjectPoolRequest)) - } - return interceptor(ctx, in, info, handler) + return nil } -func _ObjectPoolService_DeleteObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteObjectPoolRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ObjectPoolServiceServer).DeleteObjectPool(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.ObjectPoolService/DeleteObjectPool", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ObjectPoolServiceServer).DeleteObjectPool(ctx, req.(*DeleteObjectPoolRequest)) - } - return interceptor(ctx, in, info, handler) +type GetObjectPoolResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` } -func _ObjectPoolService_LinkRepositoryToObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LinkRepositoryToObjectPoolRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ObjectPoolServiceServer).LinkRepositoryToObjectPool(ctx, in) +func (x *GetObjectPoolResponse) Reset() { + *x = GetObjectPoolResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_objectpool_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.ObjectPoolService/LinkRepositoryToObjectPool", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ObjectPoolServiceServer).LinkRepositoryToObjectPool(ctx, req.(*LinkRepositoryToObjectPoolRequest)) - } - return interceptor(ctx, in, info, handler) } -func _ObjectPoolService_UnlinkRepositoryFromObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UnlinkRepositoryFromObjectPoolRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ObjectPoolServiceServer).UnlinkRepositoryFromObjectPool(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.ObjectPoolService/UnlinkRepositoryFromObjectPool", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ObjectPoolServiceServer).UnlinkRepositoryFromObjectPool(ctx, req.(*UnlinkRepositoryFromObjectPoolRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *GetObjectPoolResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func _ObjectPoolService_ReduplicateRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReduplicateRepositoryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ObjectPoolServiceServer).ReduplicateRepository(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.ObjectPoolService/ReduplicateRepository", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ObjectPoolServiceServer).ReduplicateRepository(ctx, req.(*ReduplicateRepositoryRequest)) +func (*GetObjectPoolResponse) ProtoMessage() {} + +func (x *GetObjectPoolResponse) ProtoReflect() protoreflect.Message { + mi := &file_objectpool_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _ObjectPoolService_DisconnectGitAlternates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DisconnectGitAlternatesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ObjectPoolServiceServer).DisconnectGitAlternates(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.ObjectPoolService/DisconnectGitAlternates", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ObjectPoolServiceServer).DisconnectGitAlternates(ctx, req.(*DisconnectGitAlternatesRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use GetObjectPoolResponse.ProtoReflect.Descriptor instead. +func (*GetObjectPoolResponse) Descriptor() ([]byte, []int) { + return file_objectpool_proto_rawDescGZIP(), []int{15} } -func _ObjectPoolService_FetchIntoObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FetchIntoObjectPoolRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ObjectPoolServiceServer).FetchIntoObjectPool(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.ObjectPoolService/FetchIntoObjectPool", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ObjectPoolServiceServer).FetchIntoObjectPool(ctx, req.(*FetchIntoObjectPoolRequest)) +func (x *GetObjectPoolResponse) GetObjectPool() *ObjectPool { + if x != nil { + return x.ObjectPool } - return interceptor(ctx, in, info, handler) + return nil } -func _ObjectPoolService_GetObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetObjectPoolRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ObjectPoolServiceServer).GetObjectPool(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.ObjectPoolService/GetObjectPool", +var File_objectpool_proto protoreflect.FileDescriptor + +var file_objectpool_proto_rawDesc = []byte{ + 0x0a, 0x10, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x06, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x01, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x39, 0x0a, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x30, 0x0a, 0x06, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, + 0x04, 0xa0, 0xc6, 0x2c, 0x01, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x22, 0x1a, 0x0a, + 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x0a, 0x17, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, + 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x22, + 0x1a, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, + 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x21, + 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x6f, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x39, 0x0a, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x42, 0x04, 0xa0, 0xc6, 0x2c, 0x01, + 0x52, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x24, 0x0a, 0x22, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x6f, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9c, 0x01, 0x0a, + 0x25, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, + 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x39, 0x0a, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x42, 0x04, 0xa0, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x22, 0x28, 0x0a, 0x26, 0x55, + 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, + 0x72, 0x6f, 0x6d, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x0a, 0x1c, 0x52, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, + 0x1f, 0x0a, 0x1d, 0x52, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x5a, 0x0a, 0x1e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x47, 0x69, + 0x74, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x21, 0x0a, 0x1f, + 0x44, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x41, 0x6c, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0xa1, 0x01, 0x0a, 0x1a, 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x74, 0x6f, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, + 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x04, 0xa0, 0xc6, 0x2c, 0x01, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x12, 0x39, 0x0a, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x72, + 0x65, 0x70, 0x61, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x70, + 0x61, 0x63, 0x6b, 0x22, 0x1d, 0x0a, 0x1b, 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x74, 0x6f, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x50, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, + 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x22, 0x4c, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, + 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, + 0x6f, 0x6c, 0x32, 0xf8, 0x06, 0x0a, 0x11, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, + 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5d, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x1f, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5d, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x1f, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, + 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x7b, 0x0a, 0x1a, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x6f, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x29, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, + 0x6e, 0x6b, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x6f, 0x4f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x6f, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, + 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x01, 0x12, 0x87, 0x01, 0x0a, 0x1e, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x46, 0x72, 0x6f, 0x6d, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, + 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, + 0x72, 0x6f, 0x6d, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x6c, 0x0a, + 0x15, 0x52, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x72, 0x0a, 0x17, 0x44, + 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x41, 0x6c, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x12, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x44, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x41, 0x6c, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x47, 0x69, 0x74, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, + 0x66, 0x0a, 0x13, 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x74, 0x6f, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x74, 0x6f, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, + 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x74, 0x6f, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x54, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x42, 0x34, 0x5a, + 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, + 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, + 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_objectpool_proto_rawDescOnce sync.Once + file_objectpool_proto_rawDescData = file_objectpool_proto_rawDesc +) + +func file_objectpool_proto_rawDescGZIP() []byte { + file_objectpool_proto_rawDescOnce.Do(func() { + file_objectpool_proto_rawDescData = protoimpl.X.CompressGZIP(file_objectpool_proto_rawDescData) + }) + return file_objectpool_proto_rawDescData +} + +var file_objectpool_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_objectpool_proto_goTypes = []interface{}{ + (*CreateObjectPoolRequest)(nil), // 0: gitaly.CreateObjectPoolRequest + (*CreateObjectPoolResponse)(nil), // 1: gitaly.CreateObjectPoolResponse + (*DeleteObjectPoolRequest)(nil), // 2: gitaly.DeleteObjectPoolRequest + (*DeleteObjectPoolResponse)(nil), // 3: gitaly.DeleteObjectPoolResponse + (*LinkRepositoryToObjectPoolRequest)(nil), // 4: gitaly.LinkRepositoryToObjectPoolRequest + (*LinkRepositoryToObjectPoolResponse)(nil), // 5: gitaly.LinkRepositoryToObjectPoolResponse + (*UnlinkRepositoryFromObjectPoolRequest)(nil), // 6: gitaly.UnlinkRepositoryFromObjectPoolRequest + (*UnlinkRepositoryFromObjectPoolResponse)(nil), // 7: gitaly.UnlinkRepositoryFromObjectPoolResponse + (*ReduplicateRepositoryRequest)(nil), // 8: gitaly.ReduplicateRepositoryRequest + (*ReduplicateRepositoryResponse)(nil), // 9: gitaly.ReduplicateRepositoryResponse + (*DisconnectGitAlternatesRequest)(nil), // 10: gitaly.DisconnectGitAlternatesRequest + (*DisconnectGitAlternatesResponse)(nil), // 11: gitaly.DisconnectGitAlternatesResponse + (*FetchIntoObjectPoolRequest)(nil), // 12: gitaly.FetchIntoObjectPoolRequest + (*FetchIntoObjectPoolResponse)(nil), // 13: gitaly.FetchIntoObjectPoolResponse + (*GetObjectPoolRequest)(nil), // 14: gitaly.GetObjectPoolRequest + (*GetObjectPoolResponse)(nil), // 15: gitaly.GetObjectPoolResponse + (*ObjectPool)(nil), // 16: gitaly.ObjectPool + (*Repository)(nil), // 17: gitaly.Repository +} +var file_objectpool_proto_depIdxs = []int32{ + 16, // 0: gitaly.CreateObjectPoolRequest.object_pool:type_name -> gitaly.ObjectPool + 17, // 1: gitaly.CreateObjectPoolRequest.origin:type_name -> gitaly.Repository + 16, // 2: gitaly.DeleteObjectPoolRequest.object_pool:type_name -> gitaly.ObjectPool + 16, // 3: gitaly.LinkRepositoryToObjectPoolRequest.object_pool:type_name -> gitaly.ObjectPool + 17, // 4: gitaly.LinkRepositoryToObjectPoolRequest.repository:type_name -> gitaly.Repository + 17, // 5: gitaly.UnlinkRepositoryFromObjectPoolRequest.repository:type_name -> gitaly.Repository + 16, // 6: gitaly.UnlinkRepositoryFromObjectPoolRequest.object_pool:type_name -> gitaly.ObjectPool + 17, // 7: gitaly.ReduplicateRepositoryRequest.repository:type_name -> gitaly.Repository + 17, // 8: gitaly.DisconnectGitAlternatesRequest.repository:type_name -> gitaly.Repository + 17, // 9: gitaly.FetchIntoObjectPoolRequest.origin:type_name -> gitaly.Repository + 16, // 10: gitaly.FetchIntoObjectPoolRequest.object_pool:type_name -> gitaly.ObjectPool + 17, // 11: gitaly.GetObjectPoolRequest.repository:type_name -> gitaly.Repository + 16, // 12: gitaly.GetObjectPoolResponse.object_pool:type_name -> gitaly.ObjectPool + 0, // 13: gitaly.ObjectPoolService.CreateObjectPool:input_type -> gitaly.CreateObjectPoolRequest + 2, // 14: gitaly.ObjectPoolService.DeleteObjectPool:input_type -> gitaly.DeleteObjectPoolRequest + 4, // 15: gitaly.ObjectPoolService.LinkRepositoryToObjectPool:input_type -> gitaly.LinkRepositoryToObjectPoolRequest + 6, // 16: gitaly.ObjectPoolService.UnlinkRepositoryFromObjectPool:input_type -> gitaly.UnlinkRepositoryFromObjectPoolRequest + 8, // 17: gitaly.ObjectPoolService.ReduplicateRepository:input_type -> gitaly.ReduplicateRepositoryRequest + 10, // 18: gitaly.ObjectPoolService.DisconnectGitAlternates:input_type -> gitaly.DisconnectGitAlternatesRequest + 12, // 19: gitaly.ObjectPoolService.FetchIntoObjectPool:input_type -> gitaly.FetchIntoObjectPoolRequest + 14, // 20: gitaly.ObjectPoolService.GetObjectPool:input_type -> gitaly.GetObjectPoolRequest + 1, // 21: gitaly.ObjectPoolService.CreateObjectPool:output_type -> gitaly.CreateObjectPoolResponse + 3, // 22: gitaly.ObjectPoolService.DeleteObjectPool:output_type -> gitaly.DeleteObjectPoolResponse + 5, // 23: gitaly.ObjectPoolService.LinkRepositoryToObjectPool:output_type -> gitaly.LinkRepositoryToObjectPoolResponse + 7, // 24: gitaly.ObjectPoolService.UnlinkRepositoryFromObjectPool:output_type -> gitaly.UnlinkRepositoryFromObjectPoolResponse + 9, // 25: gitaly.ObjectPoolService.ReduplicateRepository:output_type -> gitaly.ReduplicateRepositoryResponse + 11, // 26: gitaly.ObjectPoolService.DisconnectGitAlternates:output_type -> gitaly.DisconnectGitAlternatesResponse + 13, // 27: gitaly.ObjectPoolService.FetchIntoObjectPool:output_type -> gitaly.FetchIntoObjectPoolResponse + 15, // 28: gitaly.ObjectPoolService.GetObjectPool:output_type -> gitaly.GetObjectPoolResponse + 21, // [21:29] is the sub-list for method output_type + 13, // [13:21] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name +} + +func init() { file_objectpool_proto_init() } +func file_objectpool_proto_init() { + if File_objectpool_proto != nil { + return } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ObjectPoolServiceServer).GetObjectPool(ctx, req.(*GetObjectPoolRequest)) + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_objectpool_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateObjectPoolRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateObjectPoolResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteObjectPoolRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteObjectPoolResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LinkRepositoryToObjectPoolRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LinkRepositoryToObjectPoolResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnlinkRepositoryFromObjectPoolRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnlinkRepositoryFromObjectPoolResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReduplicateRepositoryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReduplicateRepositoryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DisconnectGitAlternatesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DisconnectGitAlternatesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchIntoObjectPoolRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchIntoObjectPoolResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetObjectPoolRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_objectpool_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetObjectPoolResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return interceptor(ctx, in, info, handler) -} - -var _ObjectPoolService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.ObjectPoolService", - HandlerType: (*ObjectPoolServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateObjectPool", - Handler: _ObjectPoolService_CreateObjectPool_Handler, - }, - { - MethodName: "DeleteObjectPool", - Handler: _ObjectPoolService_DeleteObjectPool_Handler, - }, - { - MethodName: "LinkRepositoryToObjectPool", - Handler: _ObjectPoolService_LinkRepositoryToObjectPool_Handler, - }, - { - MethodName: "UnlinkRepositoryFromObjectPool", - Handler: _ObjectPoolService_UnlinkRepositoryFromObjectPool_Handler, - }, - { - MethodName: "ReduplicateRepository", - Handler: _ObjectPoolService_ReduplicateRepository_Handler, - }, - { - MethodName: "DisconnectGitAlternates", - Handler: _ObjectPoolService_DisconnectGitAlternates_Handler, - }, - { - MethodName: "FetchIntoObjectPool", - Handler: _ObjectPoolService_FetchIntoObjectPool_Handler, - }, - { - MethodName: "GetObjectPool", - Handler: _ObjectPoolService_GetObjectPool_Handler, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_objectpool_proto_rawDesc, + NumEnums: 0, + NumMessages: 16, + NumExtensions: 0, + NumServices: 1, }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "objectpool.proto", + GoTypes: file_objectpool_proto_goTypes, + DependencyIndexes: file_objectpool_proto_depIdxs, + MessageInfos: file_objectpool_proto_msgTypes, + }.Build() + File_objectpool_proto = out.File + file_objectpool_proto_rawDesc = nil + file_objectpool_proto_goTypes = nil + file_objectpool_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/objectpool_grpc.pb.go b/proto/go/gitalypb/objectpool_grpc.pb.go new file mode 100644 index 000000000..ad358e18f --- /dev/null +++ b/proto/go/gitalypb/objectpool_grpc.pb.go @@ -0,0 +1,355 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// ObjectPoolServiceClient is the client API for ObjectPoolService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ObjectPoolServiceClient interface { + CreateObjectPool(ctx context.Context, in *CreateObjectPoolRequest, opts ...grpc.CallOption) (*CreateObjectPoolResponse, error) + DeleteObjectPool(ctx context.Context, in *DeleteObjectPoolRequest, opts ...grpc.CallOption) (*DeleteObjectPoolResponse, error) + // Repositories are assumed to be stored on the same disk + LinkRepositoryToObjectPool(ctx context.Context, in *LinkRepositoryToObjectPoolRequest, opts ...grpc.CallOption) (*LinkRepositoryToObjectPoolResponse, error) + UnlinkRepositoryFromObjectPool(ctx context.Context, in *UnlinkRepositoryFromObjectPoolRequest, opts ...grpc.CallOption) (*UnlinkRepositoryFromObjectPoolResponse, error) + ReduplicateRepository(ctx context.Context, in *ReduplicateRepositoryRequest, opts ...grpc.CallOption) (*ReduplicateRepositoryResponse, error) + DisconnectGitAlternates(ctx context.Context, in *DisconnectGitAlternatesRequest, opts ...grpc.CallOption) (*DisconnectGitAlternatesResponse, error) + FetchIntoObjectPool(ctx context.Context, in *FetchIntoObjectPoolRequest, opts ...grpc.CallOption) (*FetchIntoObjectPoolResponse, error) + GetObjectPool(ctx context.Context, in *GetObjectPoolRequest, opts ...grpc.CallOption) (*GetObjectPoolResponse, error) +} + +type objectPoolServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewObjectPoolServiceClient(cc grpc.ClientConnInterface) ObjectPoolServiceClient { + return &objectPoolServiceClient{cc} +} + +func (c *objectPoolServiceClient) CreateObjectPool(ctx context.Context, in *CreateObjectPoolRequest, opts ...grpc.CallOption) (*CreateObjectPoolResponse, error) { + out := new(CreateObjectPoolResponse) + err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/CreateObjectPool", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *objectPoolServiceClient) DeleteObjectPool(ctx context.Context, in *DeleteObjectPoolRequest, opts ...grpc.CallOption) (*DeleteObjectPoolResponse, error) { + out := new(DeleteObjectPoolResponse) + err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/DeleteObjectPool", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *objectPoolServiceClient) LinkRepositoryToObjectPool(ctx context.Context, in *LinkRepositoryToObjectPoolRequest, opts ...grpc.CallOption) (*LinkRepositoryToObjectPoolResponse, error) { + out := new(LinkRepositoryToObjectPoolResponse) + err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/LinkRepositoryToObjectPool", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *objectPoolServiceClient) UnlinkRepositoryFromObjectPool(ctx context.Context, in *UnlinkRepositoryFromObjectPoolRequest, opts ...grpc.CallOption) (*UnlinkRepositoryFromObjectPoolResponse, error) { + out := new(UnlinkRepositoryFromObjectPoolResponse) + err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/UnlinkRepositoryFromObjectPool", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *objectPoolServiceClient) ReduplicateRepository(ctx context.Context, in *ReduplicateRepositoryRequest, opts ...grpc.CallOption) (*ReduplicateRepositoryResponse, error) { + out := new(ReduplicateRepositoryResponse) + err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/ReduplicateRepository", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *objectPoolServiceClient) DisconnectGitAlternates(ctx context.Context, in *DisconnectGitAlternatesRequest, opts ...grpc.CallOption) (*DisconnectGitAlternatesResponse, error) { + out := new(DisconnectGitAlternatesResponse) + err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/DisconnectGitAlternates", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *objectPoolServiceClient) FetchIntoObjectPool(ctx context.Context, in *FetchIntoObjectPoolRequest, opts ...grpc.CallOption) (*FetchIntoObjectPoolResponse, error) { + out := new(FetchIntoObjectPoolResponse) + err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/FetchIntoObjectPool", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *objectPoolServiceClient) GetObjectPool(ctx context.Context, in *GetObjectPoolRequest, opts ...grpc.CallOption) (*GetObjectPoolResponse, error) { + out := new(GetObjectPoolResponse) + err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/GetObjectPool", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ObjectPoolServiceServer is the server API for ObjectPoolService service. +// All implementations must embed UnimplementedObjectPoolServiceServer +// for forward compatibility +type ObjectPoolServiceServer interface { + CreateObjectPool(context.Context, *CreateObjectPoolRequest) (*CreateObjectPoolResponse, error) + DeleteObjectPool(context.Context, *DeleteObjectPoolRequest) (*DeleteObjectPoolResponse, error) + // Repositories are assumed to be stored on the same disk + LinkRepositoryToObjectPool(context.Context, *LinkRepositoryToObjectPoolRequest) (*LinkRepositoryToObjectPoolResponse, error) + UnlinkRepositoryFromObjectPool(context.Context, *UnlinkRepositoryFromObjectPoolRequest) (*UnlinkRepositoryFromObjectPoolResponse, error) + ReduplicateRepository(context.Context, *ReduplicateRepositoryRequest) (*ReduplicateRepositoryResponse, error) + DisconnectGitAlternates(context.Context, *DisconnectGitAlternatesRequest) (*DisconnectGitAlternatesResponse, error) + FetchIntoObjectPool(context.Context, *FetchIntoObjectPoolRequest) (*FetchIntoObjectPoolResponse, error) + GetObjectPool(context.Context, *GetObjectPoolRequest) (*GetObjectPoolResponse, error) + mustEmbedUnimplementedObjectPoolServiceServer() +} + +// UnimplementedObjectPoolServiceServer must be embedded to have forward compatible implementations. +type UnimplementedObjectPoolServiceServer struct { +} + +func (UnimplementedObjectPoolServiceServer) CreateObjectPool(context.Context, *CreateObjectPoolRequest) (*CreateObjectPoolResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateObjectPool not implemented") +} +func (UnimplementedObjectPoolServiceServer) DeleteObjectPool(context.Context, *DeleteObjectPoolRequest) (*DeleteObjectPoolResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteObjectPool not implemented") +} +func (UnimplementedObjectPoolServiceServer) LinkRepositoryToObjectPool(context.Context, *LinkRepositoryToObjectPoolRequest) (*LinkRepositoryToObjectPoolResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LinkRepositoryToObjectPool not implemented") +} +func (UnimplementedObjectPoolServiceServer) UnlinkRepositoryFromObjectPool(context.Context, *UnlinkRepositoryFromObjectPoolRequest) (*UnlinkRepositoryFromObjectPoolResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnlinkRepositoryFromObjectPool not implemented") +} +func (UnimplementedObjectPoolServiceServer) ReduplicateRepository(context.Context, *ReduplicateRepositoryRequest) (*ReduplicateRepositoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReduplicateRepository not implemented") +} +func (UnimplementedObjectPoolServiceServer) DisconnectGitAlternates(context.Context, *DisconnectGitAlternatesRequest) (*DisconnectGitAlternatesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DisconnectGitAlternates not implemented") +} +func (UnimplementedObjectPoolServiceServer) FetchIntoObjectPool(context.Context, *FetchIntoObjectPoolRequest) (*FetchIntoObjectPoolResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchIntoObjectPool not implemented") +} +func (UnimplementedObjectPoolServiceServer) GetObjectPool(context.Context, *GetObjectPoolRequest) (*GetObjectPoolResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetObjectPool not implemented") +} +func (UnimplementedObjectPoolServiceServer) mustEmbedUnimplementedObjectPoolServiceServer() {} + +// UnsafeObjectPoolServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ObjectPoolServiceServer will +// result in compilation errors. +type UnsafeObjectPoolServiceServer interface { + mustEmbedUnimplementedObjectPoolServiceServer() +} + +func RegisterObjectPoolServiceServer(s grpc.ServiceRegistrar, srv ObjectPoolServiceServer) { + s.RegisterService(&ObjectPoolService_ServiceDesc, srv) +} + +func _ObjectPoolService_CreateObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateObjectPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ObjectPoolServiceServer).CreateObjectPool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ObjectPoolService/CreateObjectPool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ObjectPoolServiceServer).CreateObjectPool(ctx, req.(*CreateObjectPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ObjectPoolService_DeleteObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteObjectPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ObjectPoolServiceServer).DeleteObjectPool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ObjectPoolService/DeleteObjectPool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ObjectPoolServiceServer).DeleteObjectPool(ctx, req.(*DeleteObjectPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ObjectPoolService_LinkRepositoryToObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LinkRepositoryToObjectPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ObjectPoolServiceServer).LinkRepositoryToObjectPool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ObjectPoolService/LinkRepositoryToObjectPool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ObjectPoolServiceServer).LinkRepositoryToObjectPool(ctx, req.(*LinkRepositoryToObjectPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ObjectPoolService_UnlinkRepositoryFromObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UnlinkRepositoryFromObjectPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ObjectPoolServiceServer).UnlinkRepositoryFromObjectPool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ObjectPoolService/UnlinkRepositoryFromObjectPool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ObjectPoolServiceServer).UnlinkRepositoryFromObjectPool(ctx, req.(*UnlinkRepositoryFromObjectPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ObjectPoolService_ReduplicateRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReduplicateRepositoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ObjectPoolServiceServer).ReduplicateRepository(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ObjectPoolService/ReduplicateRepository", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ObjectPoolServiceServer).ReduplicateRepository(ctx, req.(*ReduplicateRepositoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ObjectPoolService_DisconnectGitAlternates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DisconnectGitAlternatesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ObjectPoolServiceServer).DisconnectGitAlternates(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ObjectPoolService/DisconnectGitAlternates", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ObjectPoolServiceServer).DisconnectGitAlternates(ctx, req.(*DisconnectGitAlternatesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ObjectPoolService_FetchIntoObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FetchIntoObjectPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ObjectPoolServiceServer).FetchIntoObjectPool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ObjectPoolService/FetchIntoObjectPool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ObjectPoolServiceServer).FetchIntoObjectPool(ctx, req.(*FetchIntoObjectPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ObjectPoolService_GetObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetObjectPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ObjectPoolServiceServer).GetObjectPool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ObjectPoolService/GetObjectPool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ObjectPoolServiceServer).GetObjectPool(ctx, req.(*GetObjectPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ObjectPoolService_ServiceDesc is the grpc.ServiceDesc for ObjectPoolService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ObjectPoolService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.ObjectPoolService", + HandlerType: (*ObjectPoolServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateObjectPool", + Handler: _ObjectPoolService_CreateObjectPool_Handler, + }, + { + MethodName: "DeleteObjectPool", + Handler: _ObjectPoolService_DeleteObjectPool_Handler, + }, + { + MethodName: "LinkRepositoryToObjectPool", + Handler: _ObjectPoolService_LinkRepositoryToObjectPool_Handler, + }, + { + MethodName: "UnlinkRepositoryFromObjectPool", + Handler: _ObjectPoolService_UnlinkRepositoryFromObjectPool_Handler, + }, + { + MethodName: "ReduplicateRepository", + Handler: _ObjectPoolService_ReduplicateRepository_Handler, + }, + { + MethodName: "DisconnectGitAlternates", + Handler: _ObjectPoolService_DisconnectGitAlternates_Handler, + }, + { + MethodName: "FetchIntoObjectPool", + Handler: _ObjectPoolService_FetchIntoObjectPool_Handler, + }, + { + MethodName: "GetObjectPool", + Handler: _ObjectPoolService_GetObjectPool_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "objectpool.proto", +} diff --git a/proto/go/gitalypb/operations.pb.go b/proto/go/gitalypb/operations.pb.go index 5ef16f66e..a2b659f63 100644 --- a/proto/go/gitalypb/operations.pb.go +++ b/proto/go/gitalypb/operations.pb.go @@ -1,29 +1,25 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: operations.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // CreateTreeError represents an error which happened when computing the // cherry-pick. @@ -39,24 +35,45 @@ const ( UserCherryPickResponse_CONFLICT UserCherryPickResponse_CreateTreeError = 2 ) -var UserCherryPickResponse_CreateTreeError_name = map[int32]string{ - 0: "NONE", - 1: "EMPTY", - 2: "CONFLICT", -} +// Enum value maps for UserCherryPickResponse_CreateTreeError. +var ( + UserCherryPickResponse_CreateTreeError_name = map[int32]string{ + 0: "NONE", + 1: "EMPTY", + 2: "CONFLICT", + } + UserCherryPickResponse_CreateTreeError_value = map[string]int32{ + "NONE": 0, + "EMPTY": 1, + "CONFLICT": 2, + } +) -var UserCherryPickResponse_CreateTreeError_value = map[string]int32{ - "NONE": 0, - "EMPTY": 1, - "CONFLICT": 2, +func (x UserCherryPickResponse_CreateTreeError) Enum() *UserCherryPickResponse_CreateTreeError { + p := new(UserCherryPickResponse_CreateTreeError) + *p = x + return p } func (x UserCherryPickResponse_CreateTreeError) String() string { - return proto.EnumName(UserCherryPickResponse_CreateTreeError_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (UserCherryPickResponse_CreateTreeError) Descriptor() protoreflect.EnumDescriptor { + return file_operations_proto_enumTypes[0].Descriptor() +} + +func (UserCherryPickResponse_CreateTreeError) Type() protoreflect.EnumType { + return &file_operations_proto_enumTypes[0] +} + +func (x UserCherryPickResponse_CreateTreeError) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use UserCherryPickResponse_CreateTreeError.Descriptor instead. func (UserCherryPickResponse_CreateTreeError) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{18, 0} + return file_operations_proto_rawDescGZIP(), []int{18, 0} } // CreateTreeError represents an error which happened when computing the @@ -73,24 +90,45 @@ const ( UserRevertResponse_CONFLICT UserRevertResponse_CreateTreeError = 2 ) -var UserRevertResponse_CreateTreeError_name = map[int32]string{ - 0: "NONE", - 1: "EMPTY", - 2: "CONFLICT", -} +// Enum value maps for UserRevertResponse_CreateTreeError. +var ( + UserRevertResponse_CreateTreeError_name = map[int32]string{ + 0: "NONE", + 1: "EMPTY", + 2: "CONFLICT", + } + UserRevertResponse_CreateTreeError_value = map[string]int32{ + "NONE": 0, + "EMPTY": 1, + "CONFLICT": 2, + } +) -var UserRevertResponse_CreateTreeError_value = map[string]int32{ - "NONE": 0, - "EMPTY": 1, - "CONFLICT": 2, +func (x UserRevertResponse_CreateTreeError) Enum() *UserRevertResponse_CreateTreeError { + p := new(UserRevertResponse_CreateTreeError) + *p = x + return p } func (x UserRevertResponse_CreateTreeError) String() string { - return proto.EnumName(UserRevertResponse_CreateTreeError_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (UserRevertResponse_CreateTreeError) Descriptor() protoreflect.EnumDescriptor { + return file_operations_proto_enumTypes[1].Descriptor() +} + +func (UserRevertResponse_CreateTreeError) Type() protoreflect.EnumType { + return &file_operations_proto_enumTypes[1] +} + +func (x UserRevertResponse_CreateTreeError) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use UserRevertResponse_CreateTreeError.Descriptor instead. func (UserRevertResponse_CreateTreeError) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{20, 0} + return file_operations_proto_rawDescGZIP(), []int{20, 0} } type UserCommitFilesActionHeader_ActionType int32 @@ -110,443 +148,532 @@ const ( UserCommitFilesActionHeader_CHMOD UserCommitFilesActionHeader_ActionType = 5 ) -var UserCommitFilesActionHeader_ActionType_name = map[int32]string{ - 0: "CREATE", - 1: "CREATE_DIR", - 2: "UPDATE", - 3: "MOVE", - 4: "DELETE", - 5: "CHMOD", -} +// Enum value maps for UserCommitFilesActionHeader_ActionType. +var ( + UserCommitFilesActionHeader_ActionType_name = map[int32]string{ + 0: "CREATE", + 1: "CREATE_DIR", + 2: "UPDATE", + 3: "MOVE", + 4: "DELETE", + 5: "CHMOD", + } + UserCommitFilesActionHeader_ActionType_value = map[string]int32{ + "CREATE": 0, + "CREATE_DIR": 1, + "UPDATE": 2, + "MOVE": 3, + "DELETE": 4, + "CHMOD": 5, + } +) -var UserCommitFilesActionHeader_ActionType_value = map[string]int32{ - "CREATE": 0, - "CREATE_DIR": 1, - "UPDATE": 2, - "MOVE": 3, - "DELETE": 4, - "CHMOD": 5, +func (x UserCommitFilesActionHeader_ActionType) Enum() *UserCommitFilesActionHeader_ActionType { + p := new(UserCommitFilesActionHeader_ActionType) + *p = x + return p } func (x UserCommitFilesActionHeader_ActionType) String() string { - return proto.EnumName(UserCommitFilesActionHeader_ActionType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (UserCommitFilesActionHeader_ActionType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{21, 0} +func (UserCommitFilesActionHeader_ActionType) Descriptor() protoreflect.EnumDescriptor { + return file_operations_proto_enumTypes[2].Descriptor() } -type UserCreateBranchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` - StartPoint []byte `protobuf:"bytes,4,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserCreateBranchRequest) Reset() { *m = UserCreateBranchRequest{} } -func (m *UserCreateBranchRequest) String() string { return proto.CompactTextString(m) } -func (*UserCreateBranchRequest) ProtoMessage() {} -func (*UserCreateBranchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{0} +func (UserCommitFilesActionHeader_ActionType) Type() protoreflect.EnumType { + return &file_operations_proto_enumTypes[2] } -func (m *UserCreateBranchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserCreateBranchRequest.Unmarshal(m, b) +func (x UserCommitFilesActionHeader_ActionType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *UserCreateBranchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserCreateBranchRequest.Marshal(b, m, deterministic) + +// Deprecated: Use UserCommitFilesActionHeader_ActionType.Descriptor instead. +func (UserCommitFilesActionHeader_ActionType) EnumDescriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{21, 0} } -func (m *UserCreateBranchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserCreateBranchRequest.Merge(m, src) + +type UserCreateBranchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + StartPoint []byte `protobuf:"bytes,4,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"` } -func (m *UserCreateBranchRequest) XXX_Size() int { - return xxx_messageInfo_UserCreateBranchRequest.Size(m) + +func (x *UserCreateBranchRequest) Reset() { + *x = UserCreateBranchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserCreateBranchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserCreateBranchRequest.DiscardUnknown(m) + +func (x *UserCreateBranchRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_UserCreateBranchRequest proto.InternalMessageInfo +func (*UserCreateBranchRequest) ProtoMessage() {} -func (m *UserCreateBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UserCreateBranchRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserCreateBranchRequest.ProtoReflect.Descriptor instead. +func (*UserCreateBranchRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{0} +} + +func (x *UserCreateBranchRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UserCreateBranchRequest) GetBranchName() []byte { - if m != nil { - return m.BranchName +func (x *UserCreateBranchRequest) GetBranchName() []byte { + if x != nil { + return x.BranchName } return nil } -func (m *UserCreateBranchRequest) GetUser() *User { - if m != nil { - return m.User +func (x *UserCreateBranchRequest) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *UserCreateBranchRequest) GetStartPoint() []byte { - if m != nil { - return m.StartPoint +func (x *UserCreateBranchRequest) GetStartPoint() []byte { + if x != nil { + return x.StartPoint } return nil } type UserCreateBranchResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Branch *Branch `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"` // Error returned by the pre-receive hook. If no error was thrown, // it's the empty string ("") - PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` } -func (m *UserCreateBranchResponse) Reset() { *m = UserCreateBranchResponse{} } -func (m *UserCreateBranchResponse) String() string { return proto.CompactTextString(m) } -func (*UserCreateBranchResponse) ProtoMessage() {} -func (*UserCreateBranchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{1} +func (x *UserCreateBranchResponse) Reset() { + *x = UserCreateBranchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserCreateBranchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserCreateBranchResponse.Unmarshal(m, b) +func (x *UserCreateBranchResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserCreateBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserCreateBranchResponse.Marshal(b, m, deterministic) -} -func (m *UserCreateBranchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserCreateBranchResponse.Merge(m, src) -} -func (m *UserCreateBranchResponse) XXX_Size() int { - return xxx_messageInfo_UserCreateBranchResponse.Size(m) -} -func (m *UserCreateBranchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserCreateBranchResponse.DiscardUnknown(m) + +func (*UserCreateBranchResponse) ProtoMessage() {} + +func (x *UserCreateBranchResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserCreateBranchResponse proto.InternalMessageInfo +// Deprecated: Use UserCreateBranchResponse.ProtoReflect.Descriptor instead. +func (*UserCreateBranchResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{1} +} -func (m *UserCreateBranchResponse) GetBranch() *Branch { - if m != nil { - return m.Branch +func (x *UserCreateBranchResponse) GetBranch() *Branch { + if x != nil { + return x.Branch } return nil } -func (m *UserCreateBranchResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError +func (x *UserCreateBranchResponse) GetPreReceiveError() string { + if x != nil { + return x.PreReceiveError } return "" } type UserUpdateBranchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` - Newrev []byte `protobuf:"bytes,4,opt,name=newrev,proto3" json:"newrev,omitempty"` - Oldrev []byte `protobuf:"bytes,5,opt,name=oldrev,proto3" json:"oldrev,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserUpdateBranchRequest) Reset() { *m = UserUpdateBranchRequest{} } -func (m *UserUpdateBranchRequest) String() string { return proto.CompactTextString(m) } -func (*UserUpdateBranchRequest) ProtoMessage() {} -func (*UserUpdateBranchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{2} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UserUpdateBranchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserUpdateBranchRequest.Unmarshal(m, b) -} -func (m *UserUpdateBranchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserUpdateBranchRequest.Marshal(b, m, deterministic) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + Newrev []byte `protobuf:"bytes,4,opt,name=newrev,proto3" json:"newrev,omitempty"` + Oldrev []byte `protobuf:"bytes,5,opt,name=oldrev,proto3" json:"oldrev,omitempty"` } -func (m *UserUpdateBranchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserUpdateBranchRequest.Merge(m, src) + +func (x *UserUpdateBranchRequest) Reset() { + *x = UserUpdateBranchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserUpdateBranchRequest) XXX_Size() int { - return xxx_messageInfo_UserUpdateBranchRequest.Size(m) + +func (x *UserUpdateBranchRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserUpdateBranchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserUpdateBranchRequest.DiscardUnknown(m) + +func (*UserUpdateBranchRequest) ProtoMessage() {} + +func (x *UserUpdateBranchRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserUpdateBranchRequest proto.InternalMessageInfo +// Deprecated: Use UserUpdateBranchRequest.ProtoReflect.Descriptor instead. +func (*UserUpdateBranchRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{2} +} -func (m *UserUpdateBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UserUpdateBranchRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UserUpdateBranchRequest) GetBranchName() []byte { - if m != nil { - return m.BranchName +func (x *UserUpdateBranchRequest) GetBranchName() []byte { + if x != nil { + return x.BranchName } return nil } -func (m *UserUpdateBranchRequest) GetUser() *User { - if m != nil { - return m.User +func (x *UserUpdateBranchRequest) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *UserUpdateBranchRequest) GetNewrev() []byte { - if m != nil { - return m.Newrev +func (x *UserUpdateBranchRequest) GetNewrev() []byte { + if x != nil { + return x.Newrev } return nil } -func (m *UserUpdateBranchRequest) GetOldrev() []byte { - if m != nil { - return m.Oldrev +func (x *UserUpdateBranchRequest) GetOldrev() []byte { + if x != nil { + return x.Oldrev } return nil } type UserUpdateBranchResponse struct { - PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UserUpdateBranchResponse) Reset() { *m = UserUpdateBranchResponse{} } -func (m *UserUpdateBranchResponse) String() string { return proto.CompactTextString(m) } -func (*UserUpdateBranchResponse) ProtoMessage() {} -func (*UserUpdateBranchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{3} + PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` } -func (m *UserUpdateBranchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserUpdateBranchResponse.Unmarshal(m, b) -} -func (m *UserUpdateBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserUpdateBranchResponse.Marshal(b, m, deterministic) -} -func (m *UserUpdateBranchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserUpdateBranchResponse.Merge(m, src) +func (x *UserUpdateBranchResponse) Reset() { + *x = UserUpdateBranchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserUpdateBranchResponse) XXX_Size() int { - return xxx_messageInfo_UserUpdateBranchResponse.Size(m) + +func (x *UserUpdateBranchResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserUpdateBranchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserUpdateBranchResponse.DiscardUnknown(m) + +func (*UserUpdateBranchResponse) ProtoMessage() {} + +func (x *UserUpdateBranchResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserUpdateBranchResponse proto.InternalMessageInfo +// Deprecated: Use UserUpdateBranchResponse.ProtoReflect.Descriptor instead. +func (*UserUpdateBranchResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{3} +} -func (m *UserUpdateBranchResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError +func (x *UserUpdateBranchResponse) GetPreReceiveError() string { + if x != nil { + return x.PreReceiveError } return "" } type UserDeleteBranchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UserDeleteBranchRequest) Reset() { *m = UserDeleteBranchRequest{} } -func (m *UserDeleteBranchRequest) String() string { return proto.CompactTextString(m) } -func (*UserDeleteBranchRequest) ProtoMessage() {} -func (*UserDeleteBranchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{4} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` } -func (m *UserDeleteBranchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserDeleteBranchRequest.Unmarshal(m, b) -} -func (m *UserDeleteBranchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserDeleteBranchRequest.Marshal(b, m, deterministic) -} -func (m *UserDeleteBranchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserDeleteBranchRequest.Merge(m, src) +func (x *UserDeleteBranchRequest) Reset() { + *x = UserDeleteBranchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserDeleteBranchRequest) XXX_Size() int { - return xxx_messageInfo_UserDeleteBranchRequest.Size(m) + +func (x *UserDeleteBranchRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserDeleteBranchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserDeleteBranchRequest.DiscardUnknown(m) + +func (*UserDeleteBranchRequest) ProtoMessage() {} + +func (x *UserDeleteBranchRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserDeleteBranchRequest proto.InternalMessageInfo +// Deprecated: Use UserDeleteBranchRequest.ProtoReflect.Descriptor instead. +func (*UserDeleteBranchRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{4} +} -func (m *UserDeleteBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UserDeleteBranchRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UserDeleteBranchRequest) GetBranchName() []byte { - if m != nil { - return m.BranchName +func (x *UserDeleteBranchRequest) GetBranchName() []byte { + if x != nil { + return x.BranchName } return nil } -func (m *UserDeleteBranchRequest) GetUser() *User { - if m != nil { - return m.User +func (x *UserDeleteBranchRequest) GetUser() *User { + if x != nil { + return x.User } return nil } type UserDeleteBranchResponse struct { - PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UserDeleteBranchResponse) Reset() { *m = UserDeleteBranchResponse{} } -func (m *UserDeleteBranchResponse) String() string { return proto.CompactTextString(m) } -func (*UserDeleteBranchResponse) ProtoMessage() {} -func (*UserDeleteBranchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{5} + PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` } -func (m *UserDeleteBranchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserDeleteBranchResponse.Unmarshal(m, b) -} -func (m *UserDeleteBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserDeleteBranchResponse.Marshal(b, m, deterministic) -} -func (m *UserDeleteBranchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserDeleteBranchResponse.Merge(m, src) +func (x *UserDeleteBranchResponse) Reset() { + *x = UserDeleteBranchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserDeleteBranchResponse) XXX_Size() int { - return xxx_messageInfo_UserDeleteBranchResponse.Size(m) + +func (x *UserDeleteBranchResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserDeleteBranchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserDeleteBranchResponse.DiscardUnknown(m) + +func (*UserDeleteBranchResponse) ProtoMessage() {} + +func (x *UserDeleteBranchResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserDeleteBranchResponse proto.InternalMessageInfo +// Deprecated: Use UserDeleteBranchResponse.ProtoReflect.Descriptor instead. +func (*UserDeleteBranchResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{5} +} -func (m *UserDeleteBranchResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError +func (x *UserDeleteBranchResponse) GetPreReceiveError() string { + if x != nil { + return x.PreReceiveError } return "" } type UserDeleteTagRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - TagName []byte `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UserDeleteTagRequest) Reset() { *m = UserDeleteTagRequest{} } -func (m *UserDeleteTagRequest) String() string { return proto.CompactTextString(m) } -func (*UserDeleteTagRequest) ProtoMessage() {} -func (*UserDeleteTagRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{6} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + TagName []byte `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` } -func (m *UserDeleteTagRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserDeleteTagRequest.Unmarshal(m, b) -} -func (m *UserDeleteTagRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserDeleteTagRequest.Marshal(b, m, deterministic) -} -func (m *UserDeleteTagRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserDeleteTagRequest.Merge(m, src) +func (x *UserDeleteTagRequest) Reset() { + *x = UserDeleteTagRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserDeleteTagRequest) XXX_Size() int { - return xxx_messageInfo_UserDeleteTagRequest.Size(m) + +func (x *UserDeleteTagRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserDeleteTagRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserDeleteTagRequest.DiscardUnknown(m) + +func (*UserDeleteTagRequest) ProtoMessage() {} + +func (x *UserDeleteTagRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserDeleteTagRequest proto.InternalMessageInfo +// Deprecated: Use UserDeleteTagRequest.ProtoReflect.Descriptor instead. +func (*UserDeleteTagRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{6} +} -func (m *UserDeleteTagRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UserDeleteTagRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UserDeleteTagRequest) GetTagName() []byte { - if m != nil { - return m.TagName +func (x *UserDeleteTagRequest) GetTagName() []byte { + if x != nil { + return x.TagName } return nil } -func (m *UserDeleteTagRequest) GetUser() *User { - if m != nil { - return m.User +func (x *UserDeleteTagRequest) GetUser() *User { + if x != nil { + return x.User } return nil } type UserDeleteTagResponse struct { - PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UserDeleteTagResponse) Reset() { *m = UserDeleteTagResponse{} } -func (m *UserDeleteTagResponse) String() string { return proto.CompactTextString(m) } -func (*UserDeleteTagResponse) ProtoMessage() {} -func (*UserDeleteTagResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{7} + PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` } -func (m *UserDeleteTagResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserDeleteTagResponse.Unmarshal(m, b) -} -func (m *UserDeleteTagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserDeleteTagResponse.Marshal(b, m, deterministic) -} -func (m *UserDeleteTagResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserDeleteTagResponse.Merge(m, src) +func (x *UserDeleteTagResponse) Reset() { + *x = UserDeleteTagResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserDeleteTagResponse) XXX_Size() int { - return xxx_messageInfo_UserDeleteTagResponse.Size(m) + +func (x *UserDeleteTagResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserDeleteTagResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserDeleteTagResponse.DiscardUnknown(m) + +func (*UserDeleteTagResponse) ProtoMessage() {} + +func (x *UserDeleteTagResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserDeleteTagResponse proto.InternalMessageInfo +// Deprecated: Use UserDeleteTagResponse.ProtoReflect.Descriptor instead. +func (*UserDeleteTagResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{7} +} -func (m *UserDeleteTagResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError +func (x *UserDeleteTagResponse) GetPreReceiveError() string { + if x != nil { + return x.PreReceiveError } return "" } type UserCreateTagRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // repository is the repository in which the tag shall be created. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // tag_name is the name of the tag that shall be created. @@ -561,139 +688,155 @@ type UserCreateTagRequest struct { // timestamp is the optional timestamp to use for the created tag tags. If // it's not set, the current time will be used. It's only used if an // annotated tag is being created. - Timestamp *timestamp.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (m *UserCreateTagRequest) Reset() { *m = UserCreateTagRequest{} } -func (m *UserCreateTagRequest) String() string { return proto.CompactTextString(m) } -func (*UserCreateTagRequest) ProtoMessage() {} -func (*UserCreateTagRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{8} +func (x *UserCreateTagRequest) Reset() { + *x = UserCreateTagRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserCreateTagRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserCreateTagRequest.Unmarshal(m, b) -} -func (m *UserCreateTagRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserCreateTagRequest.Marshal(b, m, deterministic) +func (x *UserCreateTagRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserCreateTagRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserCreateTagRequest.Merge(m, src) -} -func (m *UserCreateTagRequest) XXX_Size() int { - return xxx_messageInfo_UserCreateTagRequest.Size(m) -} -func (m *UserCreateTagRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserCreateTagRequest.DiscardUnknown(m) + +func (*UserCreateTagRequest) ProtoMessage() {} + +func (x *UserCreateTagRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserCreateTagRequest proto.InternalMessageInfo +// Deprecated: Use UserCreateTagRequest.ProtoReflect.Descriptor instead. +func (*UserCreateTagRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{8} +} -func (m *UserCreateTagRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UserCreateTagRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UserCreateTagRequest) GetTagName() []byte { - if m != nil { - return m.TagName +func (x *UserCreateTagRequest) GetTagName() []byte { + if x != nil { + return x.TagName } return nil } -func (m *UserCreateTagRequest) GetUser() *User { - if m != nil { - return m.User +func (x *UserCreateTagRequest) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *UserCreateTagRequest) GetTargetRevision() []byte { - if m != nil { - return m.TargetRevision +func (x *UserCreateTagRequest) GetTargetRevision() []byte { + if x != nil { + return x.TargetRevision } return nil } -func (m *UserCreateTagRequest) GetMessage() []byte { - if m != nil { - return m.Message +func (x *UserCreateTagRequest) GetMessage() []byte { + if x != nil { + return x.Message } return nil } -func (m *UserCreateTagRequest) GetTimestamp() *timestamp.Timestamp { - if m != nil { - return m.Timestamp +func (x *UserCreateTagRequest) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } return nil } type UserCreateTagResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // tag is the newly created tag. Tag *Tag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` // exists denotes whether the tag has existed already. Exists bool `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"` // pre_receive_error contains an error message if updating the tag failed // because of a pre-receive error. - PreReceiveError string `protobuf:"bytes,3,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PreReceiveError string `protobuf:"bytes,3,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` } -func (m *UserCreateTagResponse) Reset() { *m = UserCreateTagResponse{} } -func (m *UserCreateTagResponse) String() string { return proto.CompactTextString(m) } -func (*UserCreateTagResponse) ProtoMessage() {} -func (*UserCreateTagResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{9} +func (x *UserCreateTagResponse) Reset() { + *x = UserCreateTagResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserCreateTagResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserCreateTagResponse.Unmarshal(m, b) -} -func (m *UserCreateTagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserCreateTagResponse.Marshal(b, m, deterministic) -} -func (m *UserCreateTagResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserCreateTagResponse.Merge(m, src) -} -func (m *UserCreateTagResponse) XXX_Size() int { - return xxx_messageInfo_UserCreateTagResponse.Size(m) +func (x *UserCreateTagResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserCreateTagResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserCreateTagResponse.DiscardUnknown(m) + +func (*UserCreateTagResponse) ProtoMessage() {} + +func (x *UserCreateTagResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserCreateTagResponse proto.InternalMessageInfo +// Deprecated: Use UserCreateTagResponse.ProtoReflect.Descriptor instead. +func (*UserCreateTagResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{9} +} -func (m *UserCreateTagResponse) GetTag() *Tag { - if m != nil { - return m.Tag +func (x *UserCreateTagResponse) GetTag() *Tag { + if x != nil { + return x.Tag } return nil } -func (m *UserCreateTagResponse) GetExists() bool { - if m != nil { - return m.Exists +func (x *UserCreateTagResponse) GetExists() bool { + if x != nil { + return x.Exists } return false } -func (m *UserCreateTagResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError +func (x *UserCreateTagResponse) GetPreReceiveError() string { + if x != nil { + return x.PreReceiveError } return "" } type UserMergeBranchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // repository is the repository to compute the merge for. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // user is the user to compute the merge as. Its name and mail address are @@ -709,150 +852,166 @@ type UserMergeBranchRequest struct { Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` // timestamp is the optional timestamp to use for the merge commit. If it's // not set, the current time will be used. - Timestamp *timestamp.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // apply must only be set in the second message. Only if this second message // is sent and if apply is set to true will the branch be updated to point to // the merge commit. - Apply bool `protobuf:"varint,6,opt,name=apply,proto3" json:"apply,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Apply bool `protobuf:"varint,6,opt,name=apply,proto3" json:"apply,omitempty"` } -func (m *UserMergeBranchRequest) Reset() { *m = UserMergeBranchRequest{} } -func (m *UserMergeBranchRequest) String() string { return proto.CompactTextString(m) } -func (*UserMergeBranchRequest) ProtoMessage() {} -func (*UserMergeBranchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{10} +func (x *UserMergeBranchRequest) Reset() { + *x = UserMergeBranchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserMergeBranchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserMergeBranchRequest.Unmarshal(m, b) -} -func (m *UserMergeBranchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserMergeBranchRequest.Marshal(b, m, deterministic) +func (x *UserMergeBranchRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserMergeBranchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserMergeBranchRequest.Merge(m, src) -} -func (m *UserMergeBranchRequest) XXX_Size() int { - return xxx_messageInfo_UserMergeBranchRequest.Size(m) -} -func (m *UserMergeBranchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserMergeBranchRequest.DiscardUnknown(m) + +func (*UserMergeBranchRequest) ProtoMessage() {} + +func (x *UserMergeBranchRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserMergeBranchRequest proto.InternalMessageInfo +// Deprecated: Use UserMergeBranchRequest.ProtoReflect.Descriptor instead. +func (*UserMergeBranchRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{10} +} -func (m *UserMergeBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UserMergeBranchRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UserMergeBranchRequest) GetUser() *User { - if m != nil { - return m.User +func (x *UserMergeBranchRequest) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *UserMergeBranchRequest) GetCommitId() string { - if m != nil { - return m.CommitId +func (x *UserMergeBranchRequest) GetCommitId() string { + if x != nil { + return x.CommitId } return "" } -func (m *UserMergeBranchRequest) GetBranch() []byte { - if m != nil { - return m.Branch +func (x *UserMergeBranchRequest) GetBranch() []byte { + if x != nil { + return x.Branch } return nil } -func (m *UserMergeBranchRequest) GetMessage() []byte { - if m != nil { - return m.Message +func (x *UserMergeBranchRequest) GetMessage() []byte { + if x != nil { + return x.Message } return nil } -func (m *UserMergeBranchRequest) GetTimestamp() *timestamp.Timestamp { - if m != nil { - return m.Timestamp +func (x *UserMergeBranchRequest) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } return nil } -func (m *UserMergeBranchRequest) GetApply() bool { - if m != nil { - return m.Apply +func (x *UserMergeBranchRequest) GetApply() bool { + if x != nil { + return x.Apply } return false } type UserMergeBranchResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // First message // The merge commit the branch will be updated to. The caller can still abort the merge. CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // Second message // If set, the merge has been applied to the branch. - BranchUpdate *OperationBranchUpdate `protobuf:"bytes,3,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"` - PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + BranchUpdate *OperationBranchUpdate `protobuf:"bytes,3,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"` + PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` } -func (m *UserMergeBranchResponse) Reset() { *m = UserMergeBranchResponse{} } -func (m *UserMergeBranchResponse) String() string { return proto.CompactTextString(m) } -func (*UserMergeBranchResponse) ProtoMessage() {} -func (*UserMergeBranchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{11} +func (x *UserMergeBranchResponse) Reset() { + *x = UserMergeBranchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserMergeBranchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserMergeBranchResponse.Unmarshal(m, b) -} -func (m *UserMergeBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserMergeBranchResponse.Marshal(b, m, deterministic) +func (x *UserMergeBranchResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserMergeBranchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserMergeBranchResponse.Merge(m, src) -} -func (m *UserMergeBranchResponse) XXX_Size() int { - return xxx_messageInfo_UserMergeBranchResponse.Size(m) -} -func (m *UserMergeBranchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserMergeBranchResponse.DiscardUnknown(m) + +func (*UserMergeBranchResponse) ProtoMessage() {} + +func (x *UserMergeBranchResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserMergeBranchResponse proto.InternalMessageInfo +// Deprecated: Use UserMergeBranchResponse.ProtoReflect.Descriptor instead. +func (*UserMergeBranchResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{11} +} -func (m *UserMergeBranchResponse) GetCommitId() string { - if m != nil { - return m.CommitId +func (x *UserMergeBranchResponse) GetCommitId() string { + if x != nil { + return x.CommitId } return "" } -func (m *UserMergeBranchResponse) GetBranchUpdate() *OperationBranchUpdate { - if m != nil { - return m.BranchUpdate +func (x *UserMergeBranchResponse) GetBranchUpdate() *OperationBranchUpdate { + if x != nil { + return x.BranchUpdate } return nil } -func (m *UserMergeBranchResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError +func (x *UserMergeBranchResponse) GetPreReceiveError() string { + if x != nil { + return x.PreReceiveError } return "" } type UserMergeToRefRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // repository is the repository in which the merge shall be computed. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // user is the user as which the merge commit shall be created. @@ -878,151 +1037,167 @@ type UserMergeToRefRequest struct { AllowConflicts bool `protobuf:"varint,8,opt,name=allow_conflicts,json=allowConflicts,proto3" json:"allow_conflicts,omitempty"` // timestamp is the optional timestamp to use for the merge commit. If it's // not set, the current time will be used. - Timestamp *timestamp.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (m *UserMergeToRefRequest) Reset() { *m = UserMergeToRefRequest{} } -func (m *UserMergeToRefRequest) String() string { return proto.CompactTextString(m) } -func (*UserMergeToRefRequest) ProtoMessage() {} -func (*UserMergeToRefRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{12} +func (x *UserMergeToRefRequest) Reset() { + *x = UserMergeToRefRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserMergeToRefRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserMergeToRefRequest.Unmarshal(m, b) -} -func (m *UserMergeToRefRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserMergeToRefRequest.Marshal(b, m, deterministic) -} -func (m *UserMergeToRefRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserMergeToRefRequest.Merge(m, src) -} -func (m *UserMergeToRefRequest) XXX_Size() int { - return xxx_messageInfo_UserMergeToRefRequest.Size(m) +func (x *UserMergeToRefRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserMergeToRefRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserMergeToRefRequest.DiscardUnknown(m) + +func (*UserMergeToRefRequest) ProtoMessage() {} + +func (x *UserMergeToRefRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserMergeToRefRequest proto.InternalMessageInfo +// Deprecated: Use UserMergeToRefRequest.ProtoReflect.Descriptor instead. +func (*UserMergeToRefRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{12} +} -func (m *UserMergeToRefRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UserMergeToRefRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UserMergeToRefRequest) GetUser() *User { - if m != nil { - return m.User +func (x *UserMergeToRefRequest) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *UserMergeToRefRequest) GetSourceSha() string { - if m != nil { - return m.SourceSha +func (x *UserMergeToRefRequest) GetSourceSha() string { + if x != nil { + return x.SourceSha } return "" } -func (m *UserMergeToRefRequest) GetBranch() []byte { - if m != nil { - return m.Branch +func (x *UserMergeToRefRequest) GetBranch() []byte { + if x != nil { + return x.Branch } return nil } -func (m *UserMergeToRefRequest) GetTargetRef() []byte { - if m != nil { - return m.TargetRef +func (x *UserMergeToRefRequest) GetTargetRef() []byte { + if x != nil { + return x.TargetRef } return nil } -func (m *UserMergeToRefRequest) GetMessage() []byte { - if m != nil { - return m.Message +func (x *UserMergeToRefRequest) GetMessage() []byte { + if x != nil { + return x.Message } return nil } -func (m *UserMergeToRefRequest) GetFirstParentRef() []byte { - if m != nil { - return m.FirstParentRef +func (x *UserMergeToRefRequest) GetFirstParentRef() []byte { + if x != nil { + return x.FirstParentRef } return nil } -func (m *UserMergeToRefRequest) GetAllowConflicts() bool { - if m != nil { - return m.AllowConflicts +func (x *UserMergeToRefRequest) GetAllowConflicts() bool { + if x != nil { + return x.AllowConflicts } return false } -func (m *UserMergeToRefRequest) GetTimestamp() *timestamp.Timestamp { - if m != nil { - return m.Timestamp +func (x *UserMergeToRefRequest) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } return nil } type UserMergeToRefResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // commit_id is the object ID of the computed merge commit. CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // pre_receive_error contains an error message if the merge failed. - PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` } -func (m *UserMergeToRefResponse) Reset() { *m = UserMergeToRefResponse{} } -func (m *UserMergeToRefResponse) String() string { return proto.CompactTextString(m) } -func (*UserMergeToRefResponse) ProtoMessage() {} -func (*UserMergeToRefResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{13} +func (x *UserMergeToRefResponse) Reset() { + *x = UserMergeToRefResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserMergeToRefResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserMergeToRefResponse.Unmarshal(m, b) -} -func (m *UserMergeToRefResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserMergeToRefResponse.Marshal(b, m, deterministic) +func (x *UserMergeToRefResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserMergeToRefResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserMergeToRefResponse.Merge(m, src) -} -func (m *UserMergeToRefResponse) XXX_Size() int { - return xxx_messageInfo_UserMergeToRefResponse.Size(m) -} -func (m *UserMergeToRefResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserMergeToRefResponse.DiscardUnknown(m) + +func (*UserMergeToRefResponse) ProtoMessage() {} + +func (x *UserMergeToRefResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserMergeToRefResponse proto.InternalMessageInfo +// Deprecated: Use UserMergeToRefResponse.ProtoReflect.Descriptor instead. +func (*UserMergeToRefResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{13} +} -func (m *UserMergeToRefResponse) GetCommitId() string { - if m != nil { - return m.CommitId +func (x *UserMergeToRefResponse) GetCommitId() string { + if x != nil { + return x.CommitId } return "" } -func (m *UserMergeToRefResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError +func (x *UserMergeToRefResponse) GetPreReceiveError() string { + if x != nil { + return x.PreReceiveError } return "" } // OperationBranchUpdate contains the details of a branch update. type OperationBranchUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // commit_id is set to the OID of the created commit if a branch was created or updated. CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // repo_created indicates whether the branch created was the first one in the repository. @@ -1030,60 +1205,68 @@ type OperationBranchUpdate struct { RepoCreated bool `protobuf:"varint,2,opt,name=repo_created,json=repoCreated,proto3" json:"repo_created,omitempty"` // branch_created indicates whether the branch already existed in the repository // and was updated or whether it was created. Used for cache invalidation in GitLab. - BranchCreated bool `protobuf:"varint,3,opt,name=branch_created,json=branchCreated,proto3" json:"branch_created,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + BranchCreated bool `protobuf:"varint,3,opt,name=branch_created,json=branchCreated,proto3" json:"branch_created,omitempty"` } -func (m *OperationBranchUpdate) Reset() { *m = OperationBranchUpdate{} } -func (m *OperationBranchUpdate) String() string { return proto.CompactTextString(m) } -func (*OperationBranchUpdate) ProtoMessage() {} -func (*OperationBranchUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{14} +func (x *OperationBranchUpdate) Reset() { + *x = OperationBranchUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *OperationBranchUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OperationBranchUpdate.Unmarshal(m, b) -} -func (m *OperationBranchUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OperationBranchUpdate.Marshal(b, m, deterministic) -} -func (m *OperationBranchUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_OperationBranchUpdate.Merge(m, src) -} -func (m *OperationBranchUpdate) XXX_Size() int { - return xxx_messageInfo_OperationBranchUpdate.Size(m) +func (x *OperationBranchUpdate) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OperationBranchUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_OperationBranchUpdate.DiscardUnknown(m) + +func (*OperationBranchUpdate) ProtoMessage() {} + +func (x *OperationBranchUpdate) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_OperationBranchUpdate proto.InternalMessageInfo +// Deprecated: Use OperationBranchUpdate.ProtoReflect.Descriptor instead. +func (*OperationBranchUpdate) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{14} +} -func (m *OperationBranchUpdate) GetCommitId() string { - if m != nil { - return m.CommitId +func (x *OperationBranchUpdate) GetCommitId() string { + if x != nil { + return x.CommitId } return "" } -func (m *OperationBranchUpdate) GetRepoCreated() bool { - if m != nil { - return m.RepoCreated +func (x *OperationBranchUpdate) GetRepoCreated() bool { + if x != nil { + return x.RepoCreated } return false } -func (m *OperationBranchUpdate) GetBranchCreated() bool { - if m != nil { - return m.BranchCreated +func (x *OperationBranchUpdate) GetBranchCreated() bool { + if x != nil { + return x.BranchCreated } return false } // UserFFBranchRequest contains parameters for the UserFFBranch RPC. type UserFFBranchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // repository is the repository for which to perform the fast-forward merge. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // user is the user which to perform the fast-forward merge as. This is used @@ -1094,113 +1277,129 @@ type UserFFBranchRequest struct { // branch is the name of the branch that shall be update. This must be the // branch name only and not a fully qualified reference, e.g. "master" // instead of "refs/heads/master". - Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` } -func (m *UserFFBranchRequest) Reset() { *m = UserFFBranchRequest{} } -func (m *UserFFBranchRequest) String() string { return proto.CompactTextString(m) } -func (*UserFFBranchRequest) ProtoMessage() {} -func (*UserFFBranchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{15} +func (x *UserFFBranchRequest) Reset() { + *x = UserFFBranchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserFFBranchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserFFBranchRequest.Unmarshal(m, b) +func (x *UserFFBranchRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserFFBranchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserFFBranchRequest.Marshal(b, m, deterministic) -} -func (m *UserFFBranchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserFFBranchRequest.Merge(m, src) -} -func (m *UserFFBranchRequest) XXX_Size() int { - return xxx_messageInfo_UserFFBranchRequest.Size(m) -} -func (m *UserFFBranchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserFFBranchRequest.DiscardUnknown(m) + +func (*UserFFBranchRequest) ProtoMessage() {} + +func (x *UserFFBranchRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserFFBranchRequest proto.InternalMessageInfo +// Deprecated: Use UserFFBranchRequest.ProtoReflect.Descriptor instead. +func (*UserFFBranchRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{15} +} -func (m *UserFFBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UserFFBranchRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UserFFBranchRequest) GetUser() *User { - if m != nil { - return m.User +func (x *UserFFBranchRequest) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *UserFFBranchRequest) GetCommitId() string { - if m != nil { - return m.CommitId +func (x *UserFFBranchRequest) GetCommitId() string { + if x != nil { + return x.CommitId } return "" } -func (m *UserFFBranchRequest) GetBranch() []byte { - if m != nil { - return m.Branch +func (x *UserFFBranchRequest) GetBranch() []byte { + if x != nil { + return x.Branch } return nil } type UserFFBranchResponse struct { - BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"` - PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UserFFBranchResponse) Reset() { *m = UserFFBranchResponse{} } -func (m *UserFFBranchResponse) String() string { return proto.CompactTextString(m) } -func (*UserFFBranchResponse) ProtoMessage() {} -func (*UserFFBranchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{16} + BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"` + PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` } -func (m *UserFFBranchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserFFBranchResponse.Unmarshal(m, b) -} -func (m *UserFFBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserFFBranchResponse.Marshal(b, m, deterministic) -} -func (m *UserFFBranchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserFFBranchResponse.Merge(m, src) +func (x *UserFFBranchResponse) Reset() { + *x = UserFFBranchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserFFBranchResponse) XXX_Size() int { - return xxx_messageInfo_UserFFBranchResponse.Size(m) + +func (x *UserFFBranchResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserFFBranchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserFFBranchResponse.DiscardUnknown(m) + +func (*UserFFBranchResponse) ProtoMessage() {} + +func (x *UserFFBranchResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserFFBranchResponse proto.InternalMessageInfo +// Deprecated: Use UserFFBranchResponse.ProtoReflect.Descriptor instead. +func (*UserFFBranchResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{16} +} -func (m *UserFFBranchResponse) GetBranchUpdate() *OperationBranchUpdate { - if m != nil { - return m.BranchUpdate +func (x *UserFFBranchResponse) GetBranchUpdate() *OperationBranchUpdate { + if x != nil { + return x.BranchUpdate } return nil } -func (m *UserFFBranchResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError +func (x *UserFFBranchResponse) GetPreReceiveError() string { + if x != nil { + return x.PreReceiveError } return "" } type UserCherryPickRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // repository is the repository into which the cherry-pick shall be // performed. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` @@ -1225,101 +1424,109 @@ type UserCherryPickRequest struct { DryRun bool `protobuf:"varint,8,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"` // timestamp is the optional timestamp to use for the created cherry-picked // commit's committer date. If it's not set, the current time will be used. - Timestamp *timestamp.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (m *UserCherryPickRequest) Reset() { *m = UserCherryPickRequest{} } -func (m *UserCherryPickRequest) String() string { return proto.CompactTextString(m) } -func (*UserCherryPickRequest) ProtoMessage() {} -func (*UserCherryPickRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{17} +func (x *UserCherryPickRequest) Reset() { + *x = UserCherryPickRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserCherryPickRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserCherryPickRequest.Unmarshal(m, b) +func (x *UserCherryPickRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserCherryPickRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserCherryPickRequest.Marshal(b, m, deterministic) -} -func (m *UserCherryPickRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserCherryPickRequest.Merge(m, src) -} -func (m *UserCherryPickRequest) XXX_Size() int { - return xxx_messageInfo_UserCherryPickRequest.Size(m) -} -func (m *UserCherryPickRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserCherryPickRequest.DiscardUnknown(m) + +func (*UserCherryPickRequest) ProtoMessage() {} + +func (x *UserCherryPickRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserCherryPickRequest proto.InternalMessageInfo +// Deprecated: Use UserCherryPickRequest.ProtoReflect.Descriptor instead. +func (*UserCherryPickRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{17} +} -func (m *UserCherryPickRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UserCherryPickRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UserCherryPickRequest) GetUser() *User { - if m != nil { - return m.User +func (x *UserCherryPickRequest) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *UserCherryPickRequest) GetCommit() *GitCommit { - if m != nil { - return m.Commit +func (x *UserCherryPickRequest) GetCommit() *GitCommit { + if x != nil { + return x.Commit } return nil } -func (m *UserCherryPickRequest) GetBranchName() []byte { - if m != nil { - return m.BranchName +func (x *UserCherryPickRequest) GetBranchName() []byte { + if x != nil { + return x.BranchName } return nil } -func (m *UserCherryPickRequest) GetMessage() []byte { - if m != nil { - return m.Message +func (x *UserCherryPickRequest) GetMessage() []byte { + if x != nil { + return x.Message } return nil } -func (m *UserCherryPickRequest) GetStartBranchName() []byte { - if m != nil { - return m.StartBranchName +func (x *UserCherryPickRequest) GetStartBranchName() []byte { + if x != nil { + return x.StartBranchName } return nil } -func (m *UserCherryPickRequest) GetStartRepository() *Repository { - if m != nil { - return m.StartRepository +func (x *UserCherryPickRequest) GetStartRepository() *Repository { + if x != nil { + return x.StartRepository } return nil } -func (m *UserCherryPickRequest) GetDryRun() bool { - if m != nil { - return m.DryRun +func (x *UserCherryPickRequest) GetDryRun() bool { + if x != nil { + return x.DryRun } return false } -func (m *UserCherryPickRequest) GetTimestamp() *timestamp.Timestamp { - if m != nil { - return m.Timestamp +func (x *UserCherryPickRequest) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } return nil } type UserCherryPickResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // branch_update represents details about the updated branch. BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"` // create_tree_error contains the error message if creation of the tree @@ -1332,73 +1539,81 @@ type UserCherryPickResponse struct { PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` // create_tree_error_code contains the error code if creation of the tree // failed. - CreateTreeErrorCode UserCherryPickResponse_CreateTreeError `protobuf:"varint,5,opt,name=create_tree_error_code,json=createTreeErrorCode,proto3,enum=gitaly.UserCherryPickResponse_CreateTreeError" json:"create_tree_error_code,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CreateTreeErrorCode UserCherryPickResponse_CreateTreeError `protobuf:"varint,5,opt,name=create_tree_error_code,json=createTreeErrorCode,proto3,enum=gitaly.UserCherryPickResponse_CreateTreeError" json:"create_tree_error_code,omitempty"` } -func (m *UserCherryPickResponse) Reset() { *m = UserCherryPickResponse{} } -func (m *UserCherryPickResponse) String() string { return proto.CompactTextString(m) } -func (*UserCherryPickResponse) ProtoMessage() {} -func (*UserCherryPickResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{18} +func (x *UserCherryPickResponse) Reset() { + *x = UserCherryPickResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserCherryPickResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserCherryPickResponse.Unmarshal(m, b) -} -func (m *UserCherryPickResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserCherryPickResponse.Marshal(b, m, deterministic) -} -func (m *UserCherryPickResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserCherryPickResponse.Merge(m, src) -} -func (m *UserCherryPickResponse) XXX_Size() int { - return xxx_messageInfo_UserCherryPickResponse.Size(m) +func (x *UserCherryPickResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserCherryPickResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserCherryPickResponse.DiscardUnknown(m) + +func (*UserCherryPickResponse) ProtoMessage() {} + +func (x *UserCherryPickResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserCherryPickResponse proto.InternalMessageInfo +// Deprecated: Use UserCherryPickResponse.ProtoReflect.Descriptor instead. +func (*UserCherryPickResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{18} +} -func (m *UserCherryPickResponse) GetBranchUpdate() *OperationBranchUpdate { - if m != nil { - return m.BranchUpdate +func (x *UserCherryPickResponse) GetBranchUpdate() *OperationBranchUpdate { + if x != nil { + return x.BranchUpdate } return nil } -func (m *UserCherryPickResponse) GetCreateTreeError() string { - if m != nil { - return m.CreateTreeError +func (x *UserCherryPickResponse) GetCreateTreeError() string { + if x != nil { + return x.CreateTreeError } return "" } -func (m *UserCherryPickResponse) GetCommitError() string { - if m != nil { - return m.CommitError +func (x *UserCherryPickResponse) GetCommitError() string { + if x != nil { + return x.CommitError } return "" } -func (m *UserCherryPickResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError +func (x *UserCherryPickResponse) GetPreReceiveError() string { + if x != nil { + return x.PreReceiveError } return "" } -func (m *UserCherryPickResponse) GetCreateTreeErrorCode() UserCherryPickResponse_CreateTreeError { - if m != nil { - return m.CreateTreeErrorCode +func (x *UserCherryPickResponse) GetCreateTreeErrorCode() UserCherryPickResponse_CreateTreeError { + if x != nil { + return x.CreateTreeErrorCode } return UserCherryPickResponse_NONE } type UserRevertRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // repository is the repository in which the revert shall be applied. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // user is the user to perform the revert as. This is used both for @@ -1422,101 +1637,109 @@ type UserRevertRequest struct { DryRun bool `protobuf:"varint,8,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"` // timestamp is the optional timestamp to use for the created cherry-picked // commit's committer date. If it's not set, the current time will be used. - Timestamp *timestamp.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (m *UserRevertRequest) Reset() { *m = UserRevertRequest{} } -func (m *UserRevertRequest) String() string { return proto.CompactTextString(m) } -func (*UserRevertRequest) ProtoMessage() {} -func (*UserRevertRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{19} +func (x *UserRevertRequest) Reset() { + *x = UserRevertRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserRevertRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserRevertRequest.Unmarshal(m, b) -} -func (m *UserRevertRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserRevertRequest.Marshal(b, m, deterministic) -} -func (m *UserRevertRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserRevertRequest.Merge(m, src) -} -func (m *UserRevertRequest) XXX_Size() int { - return xxx_messageInfo_UserRevertRequest.Size(m) +func (x *UserRevertRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserRevertRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserRevertRequest.DiscardUnknown(m) + +func (*UserRevertRequest) ProtoMessage() {} + +func (x *UserRevertRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserRevertRequest proto.InternalMessageInfo +// Deprecated: Use UserRevertRequest.ProtoReflect.Descriptor instead. +func (*UserRevertRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{19} +} -func (m *UserRevertRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UserRevertRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UserRevertRequest) GetUser() *User { - if m != nil { - return m.User +func (x *UserRevertRequest) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *UserRevertRequest) GetCommit() *GitCommit { - if m != nil { - return m.Commit +func (x *UserRevertRequest) GetCommit() *GitCommit { + if x != nil { + return x.Commit } return nil } -func (m *UserRevertRequest) GetBranchName() []byte { - if m != nil { - return m.BranchName +func (x *UserRevertRequest) GetBranchName() []byte { + if x != nil { + return x.BranchName } return nil } -func (m *UserRevertRequest) GetMessage() []byte { - if m != nil { - return m.Message +func (x *UserRevertRequest) GetMessage() []byte { + if x != nil { + return x.Message } return nil } -func (m *UserRevertRequest) GetStartBranchName() []byte { - if m != nil { - return m.StartBranchName +func (x *UserRevertRequest) GetStartBranchName() []byte { + if x != nil { + return x.StartBranchName } return nil } -func (m *UserRevertRequest) GetStartRepository() *Repository { - if m != nil { - return m.StartRepository +func (x *UserRevertRequest) GetStartRepository() *Repository { + if x != nil { + return x.StartRepository } return nil } -func (m *UserRevertRequest) GetDryRun() bool { - if m != nil { - return m.DryRun +func (x *UserRevertRequest) GetDryRun() bool { + if x != nil { + return x.DryRun } return false } -func (m *UserRevertRequest) GetTimestamp() *timestamp.Timestamp { - if m != nil { - return m.Timestamp +func (x *UserRevertRequest) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } return nil } type UserRevertResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // branch_update represents details about the updated branch. BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"` // create_tree_error contains the error message if creation of the tree @@ -1529,74 +1752,82 @@ type UserRevertResponse struct { PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` // create_tree_error_code contains the error code if creation of the tree // failed. - CreateTreeErrorCode UserRevertResponse_CreateTreeError `protobuf:"varint,5,opt,name=create_tree_error_code,json=createTreeErrorCode,proto3,enum=gitaly.UserRevertResponse_CreateTreeError" json:"create_tree_error_code,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CreateTreeErrorCode UserRevertResponse_CreateTreeError `protobuf:"varint,5,opt,name=create_tree_error_code,json=createTreeErrorCode,proto3,enum=gitaly.UserRevertResponse_CreateTreeError" json:"create_tree_error_code,omitempty"` } -func (m *UserRevertResponse) Reset() { *m = UserRevertResponse{} } -func (m *UserRevertResponse) String() string { return proto.CompactTextString(m) } -func (*UserRevertResponse) ProtoMessage() {} -func (*UserRevertResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{20} +func (x *UserRevertResponse) Reset() { + *x = UserRevertResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserRevertResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserRevertResponse.Unmarshal(m, b) -} -func (m *UserRevertResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserRevertResponse.Marshal(b, m, deterministic) -} -func (m *UserRevertResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserRevertResponse.Merge(m, src) +func (x *UserRevertResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserRevertResponse) XXX_Size() int { - return xxx_messageInfo_UserRevertResponse.Size(m) -} -func (m *UserRevertResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserRevertResponse.DiscardUnknown(m) + +func (*UserRevertResponse) ProtoMessage() {} + +func (x *UserRevertResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserRevertResponse proto.InternalMessageInfo +// Deprecated: Use UserRevertResponse.ProtoReflect.Descriptor instead. +func (*UserRevertResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{20} +} -func (m *UserRevertResponse) GetBranchUpdate() *OperationBranchUpdate { - if m != nil { - return m.BranchUpdate +func (x *UserRevertResponse) GetBranchUpdate() *OperationBranchUpdate { + if x != nil { + return x.BranchUpdate } return nil } -func (m *UserRevertResponse) GetCreateTreeError() string { - if m != nil { - return m.CreateTreeError +func (x *UserRevertResponse) GetCreateTreeError() string { + if x != nil { + return x.CreateTreeError } return "" } -func (m *UserRevertResponse) GetCommitError() string { - if m != nil { - return m.CommitError +func (x *UserRevertResponse) GetCommitError() string { + if x != nil { + return x.CommitError } return "" } -func (m *UserRevertResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError +func (x *UserRevertResponse) GetPreReceiveError() string { + if x != nil { + return x.PreReceiveError } return "" } -func (m *UserRevertResponse) GetCreateTreeErrorCode() UserRevertResponse_CreateTreeError { - if m != nil { - return m.CreateTreeErrorCode +func (x *UserRevertResponse) GetCreateTreeErrorCode() UserRevertResponse_CreateTreeError { + if x != nil { + return x.CreateTreeErrorCode } return UserRevertResponse_NONE } // UserCommitFilesActionHeader contains the details of the action to be performed. type UserCommitFilesActionHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // action is the type of the action taken to build a commit. Not all fields are // used for all of the actions. Action UserCommitFilesActionHeader_ActionType `protobuf:"varint,1,opt,name=action,proto3,enum=gitaly.UserCommitFilesActionHeader_ActionType" json:"action,omitempty"` @@ -1621,131 +1852,127 @@ type UserCommitFilesActionHeader struct { // Move actions that change the file path, but not its content, should set // infer_content to true instead of populating the content field. Ignored for // other action types. - InferContent bool `protobuf:"varint,6,opt,name=infer_content,json=inferContent,proto3" json:"infer_content,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + InferContent bool `protobuf:"varint,6,opt,name=infer_content,json=inferContent,proto3" json:"infer_content,omitempty"` } -func (m *UserCommitFilesActionHeader) Reset() { *m = UserCommitFilesActionHeader{} } -func (m *UserCommitFilesActionHeader) String() string { return proto.CompactTextString(m) } -func (*UserCommitFilesActionHeader) ProtoMessage() {} -func (*UserCommitFilesActionHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{21} +func (x *UserCommitFilesActionHeader) Reset() { + *x = UserCommitFilesActionHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserCommitFilesActionHeader) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserCommitFilesActionHeader.Unmarshal(m, b) -} -func (m *UserCommitFilesActionHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserCommitFilesActionHeader.Marshal(b, m, deterministic) -} -func (m *UserCommitFilesActionHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserCommitFilesActionHeader.Merge(m, src) +func (x *UserCommitFilesActionHeader) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserCommitFilesActionHeader) XXX_Size() int { - return xxx_messageInfo_UserCommitFilesActionHeader.Size(m) -} -func (m *UserCommitFilesActionHeader) XXX_DiscardUnknown() { - xxx_messageInfo_UserCommitFilesActionHeader.DiscardUnknown(m) + +func (*UserCommitFilesActionHeader) ProtoMessage() {} + +func (x *UserCommitFilesActionHeader) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserCommitFilesActionHeader proto.InternalMessageInfo +// Deprecated: Use UserCommitFilesActionHeader.ProtoReflect.Descriptor instead. +func (*UserCommitFilesActionHeader) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{21} +} -func (m *UserCommitFilesActionHeader) GetAction() UserCommitFilesActionHeader_ActionType { - if m != nil { - return m.Action +func (x *UserCommitFilesActionHeader) GetAction() UserCommitFilesActionHeader_ActionType { + if x != nil { + return x.Action } return UserCommitFilesActionHeader_CREATE } -func (m *UserCommitFilesActionHeader) GetFilePath() []byte { - if m != nil { - return m.FilePath +func (x *UserCommitFilesActionHeader) GetFilePath() []byte { + if x != nil { + return x.FilePath } return nil } -func (m *UserCommitFilesActionHeader) GetPreviousPath() []byte { - if m != nil { - return m.PreviousPath +func (x *UserCommitFilesActionHeader) GetPreviousPath() []byte { + if x != nil { + return x.PreviousPath } return nil } -func (m *UserCommitFilesActionHeader) GetBase64Content() bool { - if m != nil { - return m.Base64Content +func (x *UserCommitFilesActionHeader) GetBase64Content() bool { + if x != nil { + return x.Base64Content } return false } -func (m *UserCommitFilesActionHeader) GetExecuteFilemode() bool { - if m != nil { - return m.ExecuteFilemode +func (x *UserCommitFilesActionHeader) GetExecuteFilemode() bool { + if x != nil { + return x.ExecuteFilemode } return false } -func (m *UserCommitFilesActionHeader) GetInferContent() bool { - if m != nil { - return m.InferContent +func (x *UserCommitFilesActionHeader) GetInferContent() bool { + if x != nil { + return x.InferContent } return false } // UserCommitFilesAction is the request message used to stream in the actions to build a commit. type UserCommitFilesAction struct { - // Types that are valid to be assigned to UserCommitFilesActionPayload: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to UserCommitFilesActionPayload: // *UserCommitFilesAction_Header // *UserCommitFilesAction_Content UserCommitFilesActionPayload isUserCommitFilesAction_UserCommitFilesActionPayload `protobuf_oneof:"user_commit_files_action_payload"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *UserCommitFilesAction) Reset() { *m = UserCommitFilesAction{} } -func (m *UserCommitFilesAction) String() string { return proto.CompactTextString(m) } -func (*UserCommitFilesAction) ProtoMessage() {} -func (*UserCommitFilesAction) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{22} +func (x *UserCommitFilesAction) Reset() { + *x = UserCommitFilesAction{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserCommitFilesAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserCommitFilesAction.Unmarshal(m, b) -} -func (m *UserCommitFilesAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserCommitFilesAction.Marshal(b, m, deterministic) -} -func (m *UserCommitFilesAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserCommitFilesAction.Merge(m, src) -} -func (m *UserCommitFilesAction) XXX_Size() int { - return xxx_messageInfo_UserCommitFilesAction.Size(m) +func (x *UserCommitFilesAction) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserCommitFilesAction) XXX_DiscardUnknown() { - xxx_messageInfo_UserCommitFilesAction.DiscardUnknown(m) -} - -var xxx_messageInfo_UserCommitFilesAction proto.InternalMessageInfo -type isUserCommitFilesAction_UserCommitFilesActionPayload interface { - isUserCommitFilesAction_UserCommitFilesActionPayload() -} +func (*UserCommitFilesAction) ProtoMessage() {} -type UserCommitFilesAction_Header struct { - Header *UserCommitFilesActionHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` +func (x *UserCommitFilesAction) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type UserCommitFilesAction_Content struct { - Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"` +// Deprecated: Use UserCommitFilesAction.ProtoReflect.Descriptor instead. +func (*UserCommitFilesAction) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{22} } -func (*UserCommitFilesAction_Header) isUserCommitFilesAction_UserCommitFilesActionPayload() {} - -func (*UserCommitFilesAction_Content) isUserCommitFilesAction_UserCommitFilesActionPayload() {} - func (m *UserCommitFilesAction) GetUserCommitFilesActionPayload() isUserCommitFilesAction_UserCommitFilesActionPayload { if m != nil { return m.UserCommitFilesActionPayload @@ -1753,31 +1980,47 @@ func (m *UserCommitFilesAction) GetUserCommitFilesActionPayload() isUserCommitFi return nil } -func (m *UserCommitFilesAction) GetHeader() *UserCommitFilesActionHeader { - if x, ok := m.GetUserCommitFilesActionPayload().(*UserCommitFilesAction_Header); ok { +func (x *UserCommitFilesAction) GetHeader() *UserCommitFilesActionHeader { + if x, ok := x.GetUserCommitFilesActionPayload().(*UserCommitFilesAction_Header); ok { return x.Header } return nil } -func (m *UserCommitFilesAction) GetContent() []byte { - if x, ok := m.GetUserCommitFilesActionPayload().(*UserCommitFilesAction_Content); ok { +func (x *UserCommitFilesAction) GetContent() []byte { + if x, ok := x.GetUserCommitFilesActionPayload().(*UserCommitFilesAction_Content); ok { return x.Content } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*UserCommitFilesAction) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*UserCommitFilesAction_Header)(nil), - (*UserCommitFilesAction_Content)(nil), - } +type isUserCommitFilesAction_UserCommitFilesActionPayload interface { + isUserCommitFilesAction_UserCommitFilesActionPayload() +} + +type UserCommitFilesAction_Header struct { + // header contains the details of action being performed. Header must be sent before the + // content if content is used by the action. + Header *UserCommitFilesActionHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` } +type UserCommitFilesAction_Content struct { + // content is the content of the file streamed in one or more messages. Only used with CREATE + // and UPDATE actions. + Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"` +} + +func (*UserCommitFilesAction_Header) isUserCommitFilesAction_UserCommitFilesActionPayload() {} + +func (*UserCommitFilesAction_Content) isUserCommitFilesAction_UserCommitFilesActionPayload() {} + // UserCommitFilesRequestHeader is the header of the UserCommitFiles that defines the commit details, // parent and other information related to the call. type UserCommitFilesRequestHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // repository is the target repository where to apply the commit. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // user is the user peforming the call. @@ -1807,166 +2050,162 @@ type UserCommitFilesRequestHeader struct { StartSha string `protobuf:"bytes,10,opt,name=start_sha,json=startSha,proto3" json:"start_sha,omitempty"` // timestamp is the optional timestamp to use for the commits as author and // committer date. If it's not set, the current time will be used. - Timestamp *timestamp.Timestamp `protobuf:"bytes,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (m *UserCommitFilesRequestHeader) Reset() { *m = UserCommitFilesRequestHeader{} } -func (m *UserCommitFilesRequestHeader) String() string { return proto.CompactTextString(m) } -func (*UserCommitFilesRequestHeader) ProtoMessage() {} -func (*UserCommitFilesRequestHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{23} +func (x *UserCommitFilesRequestHeader) Reset() { + *x = UserCommitFilesRequestHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserCommitFilesRequestHeader) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserCommitFilesRequestHeader.Unmarshal(m, b) -} -func (m *UserCommitFilesRequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserCommitFilesRequestHeader.Marshal(b, m, deterministic) +func (x *UserCommitFilesRequestHeader) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserCommitFilesRequestHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserCommitFilesRequestHeader.Merge(m, src) -} -func (m *UserCommitFilesRequestHeader) XXX_Size() int { - return xxx_messageInfo_UserCommitFilesRequestHeader.Size(m) -} -func (m *UserCommitFilesRequestHeader) XXX_DiscardUnknown() { - xxx_messageInfo_UserCommitFilesRequestHeader.DiscardUnknown(m) + +func (*UserCommitFilesRequestHeader) ProtoMessage() {} + +func (x *UserCommitFilesRequestHeader) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserCommitFilesRequestHeader proto.InternalMessageInfo +// Deprecated: Use UserCommitFilesRequestHeader.ProtoReflect.Descriptor instead. +func (*UserCommitFilesRequestHeader) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{23} +} -func (m *UserCommitFilesRequestHeader) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UserCommitFilesRequestHeader) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UserCommitFilesRequestHeader) GetUser() *User { - if m != nil { - return m.User +func (x *UserCommitFilesRequestHeader) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *UserCommitFilesRequestHeader) GetBranchName() []byte { - if m != nil { - return m.BranchName +func (x *UserCommitFilesRequestHeader) GetBranchName() []byte { + if x != nil { + return x.BranchName } return nil } -func (m *UserCommitFilesRequestHeader) GetCommitMessage() []byte { - if m != nil { - return m.CommitMessage +func (x *UserCommitFilesRequestHeader) GetCommitMessage() []byte { + if x != nil { + return x.CommitMessage } return nil } -func (m *UserCommitFilesRequestHeader) GetCommitAuthorName() []byte { - if m != nil { - return m.CommitAuthorName +func (x *UserCommitFilesRequestHeader) GetCommitAuthorName() []byte { + if x != nil { + return x.CommitAuthorName } return nil } -func (m *UserCommitFilesRequestHeader) GetCommitAuthorEmail() []byte { - if m != nil { - return m.CommitAuthorEmail +func (x *UserCommitFilesRequestHeader) GetCommitAuthorEmail() []byte { + if x != nil { + return x.CommitAuthorEmail } return nil } -func (m *UserCommitFilesRequestHeader) GetStartBranchName() []byte { - if m != nil { - return m.StartBranchName +func (x *UserCommitFilesRequestHeader) GetStartBranchName() []byte { + if x != nil { + return x.StartBranchName } return nil } -func (m *UserCommitFilesRequestHeader) GetStartRepository() *Repository { - if m != nil { - return m.StartRepository +func (x *UserCommitFilesRequestHeader) GetStartRepository() *Repository { + if x != nil { + return x.StartRepository } return nil } -func (m *UserCommitFilesRequestHeader) GetForce() bool { - if m != nil { - return m.Force +func (x *UserCommitFilesRequestHeader) GetForce() bool { + if x != nil { + return x.Force } return false } -func (m *UserCommitFilesRequestHeader) GetStartSha() string { - if m != nil { - return m.StartSha +func (x *UserCommitFilesRequestHeader) GetStartSha() string { + if x != nil { + return x.StartSha } return "" } -func (m *UserCommitFilesRequestHeader) GetTimestamp() *timestamp.Timestamp { - if m != nil { - return m.Timestamp +func (x *UserCommitFilesRequestHeader) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } return nil } // UserCommitFiles is the request of UserCommitFiles. type UserCommitFilesRequest struct { - // Types that are valid to be assigned to UserCommitFilesRequestPayload: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to UserCommitFilesRequestPayload: // *UserCommitFilesRequest_Header // *UserCommitFilesRequest_Action UserCommitFilesRequestPayload isUserCommitFilesRequest_UserCommitFilesRequestPayload `protobuf_oneof:"user_commit_files_request_payload"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *UserCommitFilesRequest) Reset() { *m = UserCommitFilesRequest{} } -func (m *UserCommitFilesRequest) String() string { return proto.CompactTextString(m) } -func (*UserCommitFilesRequest) ProtoMessage() {} -func (*UserCommitFilesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{24} +func (x *UserCommitFilesRequest) Reset() { + *x = UserCommitFilesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserCommitFilesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserCommitFilesRequest.Unmarshal(m, b) -} -func (m *UserCommitFilesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserCommitFilesRequest.Marshal(b, m, deterministic) -} -func (m *UserCommitFilesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserCommitFilesRequest.Merge(m, src) -} -func (m *UserCommitFilesRequest) XXX_Size() int { - return xxx_messageInfo_UserCommitFilesRequest.Size(m) -} -func (m *UserCommitFilesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserCommitFilesRequest.DiscardUnknown(m) +func (x *UserCommitFilesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_UserCommitFilesRequest proto.InternalMessageInfo - -type isUserCommitFilesRequest_UserCommitFilesRequestPayload interface { - isUserCommitFilesRequest_UserCommitFilesRequestPayload() -} +func (*UserCommitFilesRequest) ProtoMessage() {} -type UserCommitFilesRequest_Header struct { - Header *UserCommitFilesRequestHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` +func (x *UserCommitFilesRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type UserCommitFilesRequest_Action struct { - Action *UserCommitFilesAction `protobuf:"bytes,2,opt,name=action,proto3,oneof"` +// Deprecated: Use UserCommitFilesRequest.ProtoReflect.Descriptor instead. +func (*UserCommitFilesRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{24} } -func (*UserCommitFilesRequest_Header) isUserCommitFilesRequest_UserCommitFilesRequestPayload() {} - -func (*UserCommitFilesRequest_Action) isUserCommitFilesRequest_UserCommitFilesRequestPayload() {} - func (m *UserCommitFilesRequest) GetUserCommitFilesRequestPayload() isUserCommitFilesRequest_UserCommitFilesRequestPayload { if m != nil { return m.UserCommitFilesRequestPayload @@ -1974,139 +2213,148 @@ func (m *UserCommitFilesRequest) GetUserCommitFilesRequestPayload() isUserCommit return nil } -func (m *UserCommitFilesRequest) GetHeader() *UserCommitFilesRequestHeader { - if x, ok := m.GetUserCommitFilesRequestPayload().(*UserCommitFilesRequest_Header); ok { +func (x *UserCommitFilesRequest) GetHeader() *UserCommitFilesRequestHeader { + if x, ok := x.GetUserCommitFilesRequestPayload().(*UserCommitFilesRequest_Header); ok { return x.Header } return nil } -func (m *UserCommitFilesRequest) GetAction() *UserCommitFilesAction { - if x, ok := m.GetUserCommitFilesRequestPayload().(*UserCommitFilesRequest_Action); ok { +func (x *UserCommitFilesRequest) GetAction() *UserCommitFilesAction { + if x, ok := x.GetUserCommitFilesRequestPayload().(*UserCommitFilesRequest_Action); ok { return x.Action } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*UserCommitFilesRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*UserCommitFilesRequest_Header)(nil), - (*UserCommitFilesRequest_Action)(nil), - } +type isUserCommitFilesRequest_UserCommitFilesRequestPayload interface { + isUserCommitFilesRequest_UserCommitFilesRequestPayload() +} + +type UserCommitFilesRequest_Header struct { + // header defines the details of where to comnit, the details and which commit to use as the parent. + // header must always be sent as the first request of the stream. + Header *UserCommitFilesRequestHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` +} + +type UserCommitFilesRequest_Action struct { + // action contains an action to build a commit. There can be multiple actions per stream. + Action *UserCommitFilesAction `protobuf:"bytes,2,opt,name=action,proto3,oneof"` } +func (*UserCommitFilesRequest_Header) isUserCommitFilesRequest_UserCommitFilesRequestPayload() {} + +func (*UserCommitFilesRequest_Action) isUserCommitFilesRequest_UserCommitFilesRequestPayload() {} + // UserCommitFilesResponse is the response object of UserCommitFiles. type UserCommitFilesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // branch_update contains the details of the commit and the branch update. BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"` // index_error is set to the error message when an invalid action was attempted, such as // trying to create a file that already existed. IndexError string `protobuf:"bytes,2,opt,name=index_error,json=indexError,proto3" json:"index_error,omitempty"` // pre_receive_error is set when the pre-receive hook errored. - PreReceiveError string `protobuf:"bytes,3,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PreReceiveError string `protobuf:"bytes,3,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` } -func (m *UserCommitFilesResponse) Reset() { *m = UserCommitFilesResponse{} } -func (m *UserCommitFilesResponse) String() string { return proto.CompactTextString(m) } -func (*UserCommitFilesResponse) ProtoMessage() {} -func (*UserCommitFilesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{25} +func (x *UserCommitFilesResponse) Reset() { + *x = UserCommitFilesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserCommitFilesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserCommitFilesResponse.Unmarshal(m, b) -} -func (m *UserCommitFilesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserCommitFilesResponse.Marshal(b, m, deterministic) -} -func (m *UserCommitFilesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserCommitFilesResponse.Merge(m, src) +func (x *UserCommitFilesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserCommitFilesResponse) XXX_Size() int { - return xxx_messageInfo_UserCommitFilesResponse.Size(m) -} -func (m *UserCommitFilesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserCommitFilesResponse.DiscardUnknown(m) + +func (*UserCommitFilesResponse) ProtoMessage() {} + +func (x *UserCommitFilesResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserCommitFilesResponse proto.InternalMessageInfo +// Deprecated: Use UserCommitFilesResponse.ProtoReflect.Descriptor instead. +func (*UserCommitFilesResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{25} +} -func (m *UserCommitFilesResponse) GetBranchUpdate() *OperationBranchUpdate { - if m != nil { - return m.BranchUpdate +func (x *UserCommitFilesResponse) GetBranchUpdate() *OperationBranchUpdate { + if x != nil { + return x.BranchUpdate } return nil } -func (m *UserCommitFilesResponse) GetIndexError() string { - if m != nil { - return m.IndexError +func (x *UserCommitFilesResponse) GetIndexError() string { + if x != nil { + return x.IndexError } return "" } -func (m *UserCommitFilesResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError +func (x *UserCommitFilesResponse) GetPreReceiveError() string { + if x != nil { + return x.PreReceiveError } return "" } type UserRebaseConfirmableRequest struct { - // Types that are valid to be assigned to UserRebaseConfirmableRequestPayload: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to UserRebaseConfirmableRequestPayload: // *UserRebaseConfirmableRequest_Header_ // *UserRebaseConfirmableRequest_Apply UserRebaseConfirmableRequestPayload isUserRebaseConfirmableRequest_UserRebaseConfirmableRequestPayload `protobuf_oneof:"user_rebase_confirmable_request_payload"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserRebaseConfirmableRequest) Reset() { *m = UserRebaseConfirmableRequest{} } -func (m *UserRebaseConfirmableRequest) String() string { return proto.CompactTextString(m) } -func (*UserRebaseConfirmableRequest) ProtoMessage() {} -func (*UserRebaseConfirmableRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{26} -} - -func (m *UserRebaseConfirmableRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserRebaseConfirmableRequest.Unmarshal(m, b) -} -func (m *UserRebaseConfirmableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserRebaseConfirmableRequest.Marshal(b, m, deterministic) -} -func (m *UserRebaseConfirmableRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserRebaseConfirmableRequest.Merge(m, src) -} -func (m *UserRebaseConfirmableRequest) XXX_Size() int { - return xxx_messageInfo_UserRebaseConfirmableRequest.Size(m) -} -func (m *UserRebaseConfirmableRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserRebaseConfirmableRequest.DiscardUnknown(m) } -var xxx_messageInfo_UserRebaseConfirmableRequest proto.InternalMessageInfo - -type isUserRebaseConfirmableRequest_UserRebaseConfirmableRequestPayload interface { - isUserRebaseConfirmableRequest_UserRebaseConfirmableRequestPayload() +func (x *UserRebaseConfirmableRequest) Reset() { + *x = UserRebaseConfirmableRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type UserRebaseConfirmableRequest_Header_ struct { - Header *UserRebaseConfirmableRequest_Header `protobuf:"bytes,1,opt,name=header,proto3,oneof"` +func (x *UserRebaseConfirmableRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type UserRebaseConfirmableRequest_Apply struct { - Apply bool `protobuf:"varint,2,opt,name=apply,proto3,oneof"` -} +func (*UserRebaseConfirmableRequest) ProtoMessage() {} -func (*UserRebaseConfirmableRequest_Header_) isUserRebaseConfirmableRequest_UserRebaseConfirmableRequestPayload() { +func (x *UserRebaseConfirmableRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (*UserRebaseConfirmableRequest_Apply) isUserRebaseConfirmableRequest_UserRebaseConfirmableRequestPayload() { +// Deprecated: Use UserRebaseConfirmableRequest.ProtoReflect.Descriptor instead. +func (*UserRebaseConfirmableRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{26} } func (m *UserRebaseConfirmableRequest) GetUserRebaseConfirmableRequestPayload() isUserRebaseConfirmableRequest_UserRebaseConfirmableRequestPayload { @@ -2116,154 +2364,48 @@ func (m *UserRebaseConfirmableRequest) GetUserRebaseConfirmableRequestPayload() return nil } -func (m *UserRebaseConfirmableRequest) GetHeader() *UserRebaseConfirmableRequest_Header { - if x, ok := m.GetUserRebaseConfirmableRequestPayload().(*UserRebaseConfirmableRequest_Header_); ok { +func (x *UserRebaseConfirmableRequest) GetHeader() *UserRebaseConfirmableRequest_Header { + if x, ok := x.GetUserRebaseConfirmableRequestPayload().(*UserRebaseConfirmableRequest_Header_); ok { return x.Header } return nil } -func (m *UserRebaseConfirmableRequest) GetApply() bool { - if x, ok := m.GetUserRebaseConfirmableRequestPayload().(*UserRebaseConfirmableRequest_Apply); ok { +func (x *UserRebaseConfirmableRequest) GetApply() bool { + if x, ok := x.GetUserRebaseConfirmableRequestPayload().(*UserRebaseConfirmableRequest_Apply); ok { return x.Apply } return false } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*UserRebaseConfirmableRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*UserRebaseConfirmableRequest_Header_)(nil), - (*UserRebaseConfirmableRequest_Apply)(nil), - } -} - -// Header contains information to compute the rebase and must be sent as -// first message. -type UserRebaseConfirmableRequest_Header struct { - // repository is the repository in which the rebase will be computed and - // applied. - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - // user is the user to compute the rebase as. It will be used as - // "committer" of rebased commits. - User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` - // rebase_id is an ID which uniquely identifies the rebase. Internally, it - // is used to identify the worktree in which the rebase shall be computed. - // There cannot be two concurrent calls using the same rebase_id. - RebaseId string `protobuf:"bytes,3,opt,name=rebase_id,json=rebaseId,proto3" json:"rebase_id,omitempty"` - // branch is the branch onto which the rebase shall happen. - Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` - // branch_sha is the expected object ID which branch currently points to. - // This is used as a safety guard to avoid races when branch has been - // updated meanwhile. - BranchSha string `protobuf:"bytes,5,opt,name=branch_sha,json=branchSha,proto3" json:"branch_sha,omitempty"` - // remote_repository is the repository which contains the branch which - // shall be rebased onto the local branch. - RemoteRepository *Repository `protobuf:"bytes,6,opt,name=remote_repository,json=remoteRepository,proto3" json:"remote_repository,omitempty"` - // remote_branch contains the branch name which shall re rebased onto the - // local branch. - RemoteBranch []byte `protobuf:"bytes,7,opt,name=remote_branch,json=remoteBranch,proto3" json:"remote_branch,omitempty"` - // git_push_options contain options which shall be passed to the git hooks - // when the local branch gets updated. - GitPushOptions []string `protobuf:"bytes,8,rep,name=git_push_options,json=gitPushOptions,proto3" json:"git_push_options,omitempty"` - // timestamp is the optional timestamp to use for the rebased commits as - // committer date. If it's not set, the current time will be used. - Timestamp *timestamp.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserRebaseConfirmableRequest_Header) Reset() { *m = UserRebaseConfirmableRequest_Header{} } -func (m *UserRebaseConfirmableRequest_Header) String() string { return proto.CompactTextString(m) } -func (*UserRebaseConfirmableRequest_Header) ProtoMessage() {} -func (*UserRebaseConfirmableRequest_Header) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{26, 0} -} - -func (m *UserRebaseConfirmableRequest_Header) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserRebaseConfirmableRequest_Header.Unmarshal(m, b) -} -func (m *UserRebaseConfirmableRequest_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserRebaseConfirmableRequest_Header.Marshal(b, m, deterministic) -} -func (m *UserRebaseConfirmableRequest_Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserRebaseConfirmableRequest_Header.Merge(m, src) -} -func (m *UserRebaseConfirmableRequest_Header) XXX_Size() int { - return xxx_messageInfo_UserRebaseConfirmableRequest_Header.Size(m) -} -func (m *UserRebaseConfirmableRequest_Header) XXX_DiscardUnknown() { - xxx_messageInfo_UserRebaseConfirmableRequest_Header.DiscardUnknown(m) -} - -var xxx_messageInfo_UserRebaseConfirmableRequest_Header proto.InternalMessageInfo - -func (m *UserRebaseConfirmableRequest_Header) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UserRebaseConfirmableRequest_Header) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -func (m *UserRebaseConfirmableRequest_Header) GetRebaseId() string { - if m != nil { - return m.RebaseId - } - return "" -} - -func (m *UserRebaseConfirmableRequest_Header) GetBranch() []byte { - if m != nil { - return m.Branch - } - return nil -} - -func (m *UserRebaseConfirmableRequest_Header) GetBranchSha() string { - if m != nil { - return m.BranchSha - } - return "" +type isUserRebaseConfirmableRequest_UserRebaseConfirmableRequestPayload interface { + isUserRebaseConfirmableRequest_UserRebaseConfirmableRequestPayload() } -func (m *UserRebaseConfirmableRequest_Header) GetRemoteRepository() *Repository { - if m != nil { - return m.RemoteRepository - } - return nil +type UserRebaseConfirmableRequest_Header_ struct { + // For each request stream there must be first a request with a header + // containing details about the rebase to perform. + Header *UserRebaseConfirmableRequest_Header `protobuf:"bytes,1,opt,name=header,proto3,oneof"` } -func (m *UserRebaseConfirmableRequest_Header) GetRemoteBranch() []byte { - if m != nil { - return m.RemoteBranch - } - return nil +type UserRebaseConfirmableRequest_Apply struct { + // A second request must be made to confirm that the rebase should + // be applied to the branch. + Apply bool `protobuf:"varint,2,opt,name=apply,proto3,oneof"` } -func (m *UserRebaseConfirmableRequest_Header) GetGitPushOptions() []string { - if m != nil { - return m.GitPushOptions - } - return nil +func (*UserRebaseConfirmableRequest_Header_) isUserRebaseConfirmableRequest_UserRebaseConfirmableRequestPayload() { } -func (m *UserRebaseConfirmableRequest_Header) GetTimestamp() *timestamp.Timestamp { - if m != nil { - return m.Timestamp - } - return nil +func (*UserRebaseConfirmableRequest_Apply) isUserRebaseConfirmableRequest_UserRebaseConfirmableRequestPayload() { } type UserRebaseConfirmableResponse struct { - // Types that are valid to be assigned to UserRebaseConfirmableResponsePayload: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to UserRebaseConfirmableResponsePayload: // *UserRebaseConfirmableResponse_RebaseSha // *UserRebaseConfirmableResponse_RebaseApplied UserRebaseConfirmableResponsePayload isUserRebaseConfirmableResponse_UserRebaseConfirmableResponsePayload `protobuf_oneof:"user_rebase_confirmable_response_payload"` @@ -2271,53 +2413,39 @@ type UserRebaseConfirmableResponse struct { // of an error raised by hooks. PreReceiveError string `protobuf:"bytes,3,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` // git_error contains an error message if git operations have failed. - GitError string `protobuf:"bytes,4,opt,name=git_error,json=gitError,proto3" json:"git_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserRebaseConfirmableResponse) Reset() { *m = UserRebaseConfirmableResponse{} } -func (m *UserRebaseConfirmableResponse) String() string { return proto.CompactTextString(m) } -func (*UserRebaseConfirmableResponse) ProtoMessage() {} -func (*UserRebaseConfirmableResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{27} + GitError string `protobuf:"bytes,4,opt,name=git_error,json=gitError,proto3" json:"git_error,omitempty"` } -func (m *UserRebaseConfirmableResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserRebaseConfirmableResponse.Unmarshal(m, b) -} -func (m *UserRebaseConfirmableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserRebaseConfirmableResponse.Marshal(b, m, deterministic) -} -func (m *UserRebaseConfirmableResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserRebaseConfirmableResponse.Merge(m, src) -} -func (m *UserRebaseConfirmableResponse) XXX_Size() int { - return xxx_messageInfo_UserRebaseConfirmableResponse.Size(m) -} -func (m *UserRebaseConfirmableResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserRebaseConfirmableResponse.DiscardUnknown(m) +func (x *UserRebaseConfirmableResponse) Reset() { + *x = UserRebaseConfirmableResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var xxx_messageInfo_UserRebaseConfirmableResponse proto.InternalMessageInfo - -type isUserRebaseConfirmableResponse_UserRebaseConfirmableResponsePayload interface { - isUserRebaseConfirmableResponse_UserRebaseConfirmableResponsePayload() +func (x *UserRebaseConfirmableResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type UserRebaseConfirmableResponse_RebaseSha struct { - RebaseSha string `protobuf:"bytes,1,opt,name=rebase_sha,json=rebaseSha,proto3,oneof"` -} +func (*UserRebaseConfirmableResponse) ProtoMessage() {} -type UserRebaseConfirmableResponse_RebaseApplied struct { - RebaseApplied bool `protobuf:"varint,2,opt,name=rebase_applied,json=rebaseApplied,proto3,oneof"` -} - -func (*UserRebaseConfirmableResponse_RebaseSha) isUserRebaseConfirmableResponse_UserRebaseConfirmableResponsePayload() { +func (x *UserRebaseConfirmableResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (*UserRebaseConfirmableResponse_RebaseApplied) isUserRebaseConfirmableResponse_UserRebaseConfirmableResponsePayload() { +// Deprecated: Use UserRebaseConfirmableResponse.ProtoReflect.Descriptor instead. +func (*UserRebaseConfirmableResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{27} } func (m *UserRebaseConfirmableResponse) GetUserRebaseConfirmableResponsePayload() isUserRebaseConfirmableResponse_UserRebaseConfirmableResponsePayload { @@ -2327,43 +2455,61 @@ func (m *UserRebaseConfirmableResponse) GetUserRebaseConfirmableResponsePayload( return nil } -func (m *UserRebaseConfirmableResponse) GetRebaseSha() string { - if x, ok := m.GetUserRebaseConfirmableResponsePayload().(*UserRebaseConfirmableResponse_RebaseSha); ok { +func (x *UserRebaseConfirmableResponse) GetRebaseSha() string { + if x, ok := x.GetUserRebaseConfirmableResponsePayload().(*UserRebaseConfirmableResponse_RebaseSha); ok { return x.RebaseSha } return "" } -func (m *UserRebaseConfirmableResponse) GetRebaseApplied() bool { - if x, ok := m.GetUserRebaseConfirmableResponsePayload().(*UserRebaseConfirmableResponse_RebaseApplied); ok { +func (x *UserRebaseConfirmableResponse) GetRebaseApplied() bool { + if x, ok := x.GetUserRebaseConfirmableResponsePayload().(*UserRebaseConfirmableResponse_RebaseApplied); ok { return x.RebaseApplied } return false } -func (m *UserRebaseConfirmableResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError +func (x *UserRebaseConfirmableResponse) GetPreReceiveError() string { + if x != nil { + return x.PreReceiveError } return "" } -func (m *UserRebaseConfirmableResponse) GetGitError() string { - if m != nil { - return m.GitError +func (x *UserRebaseConfirmableResponse) GetGitError() string { + if x != nil { + return x.GitError } return "" } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*UserRebaseConfirmableResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*UserRebaseConfirmableResponse_RebaseSha)(nil), - (*UserRebaseConfirmableResponse_RebaseApplied)(nil), - } +type isUserRebaseConfirmableResponse_UserRebaseConfirmableResponsePayload interface { + isUserRebaseConfirmableResponse_UserRebaseConfirmableResponsePayload() +} + +type UserRebaseConfirmableResponse_RebaseSha struct { + // The first response will contain the rebase commit the branch will + // be updated to. The caller can still abort the rebase. + RebaseSha string `protobuf:"bytes,1,opt,name=rebase_sha,json=rebaseSha,proto3,oneof"` +} + +type UserRebaseConfirmableResponse_RebaseApplied struct { + // The second response confirms that the rebase has been applied to + // the branch. + RebaseApplied bool `protobuf:"varint,2,opt,name=rebase_applied,json=rebaseApplied,proto3,oneof"` +} + +func (*UserRebaseConfirmableResponse_RebaseSha) isUserRebaseConfirmableResponse_UserRebaseConfirmableResponsePayload() { +} + +func (*UserRebaseConfirmableResponse_RebaseApplied) isUserRebaseConfirmableResponse_UserRebaseConfirmableResponsePayload() { } type UserSquashRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // repository is the repository into which the squashed commit shall be // written. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` @@ -2385,192 +2531,196 @@ type UserSquashRequest struct { CommitMessage []byte `protobuf:"bytes,8,opt,name=commit_message,json=commitMessage,proto3" json:"commit_message,omitempty"` // timestamp is the optional timestamp to use for the squashed commit as // committer date. If it's not set, the current time will be used. - Timestamp *timestamp.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (m *UserSquashRequest) Reset() { *m = UserSquashRequest{} } -func (m *UserSquashRequest) String() string { return proto.CompactTextString(m) } -func (*UserSquashRequest) ProtoMessage() {} -func (*UserSquashRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{28} +func (x *UserSquashRequest) Reset() { + *x = UserSquashRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserSquashRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserSquashRequest.Unmarshal(m, b) -} -func (m *UserSquashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserSquashRequest.Marshal(b, m, deterministic) -} -func (m *UserSquashRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserSquashRequest.Merge(m, src) -} -func (m *UserSquashRequest) XXX_Size() int { - return xxx_messageInfo_UserSquashRequest.Size(m) +func (x *UserSquashRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserSquashRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserSquashRequest.DiscardUnknown(m) + +func (*UserSquashRequest) ProtoMessage() {} + +func (x *UserSquashRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserSquashRequest proto.InternalMessageInfo +// Deprecated: Use UserSquashRequest.ProtoReflect.Descriptor instead. +func (*UserSquashRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{28} +} -func (m *UserSquashRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UserSquashRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UserSquashRequest) GetUser() *User { - if m != nil { - return m.User +func (x *UserSquashRequest) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *UserSquashRequest) GetSquashId() string { - if m != nil { - return m.SquashId +func (x *UserSquashRequest) GetSquashId() string { + if x != nil { + return x.SquashId } return "" } -func (m *UserSquashRequest) GetStartSha() string { - if m != nil { - return m.StartSha +func (x *UserSquashRequest) GetStartSha() string { + if x != nil { + return x.StartSha } return "" } -func (m *UserSquashRequest) GetEndSha() string { - if m != nil { - return m.EndSha +func (x *UserSquashRequest) GetEndSha() string { + if x != nil { + return x.EndSha } return "" } -func (m *UserSquashRequest) GetAuthor() *User { - if m != nil { - return m.Author +func (x *UserSquashRequest) GetAuthor() *User { + if x != nil { + return x.Author } return nil } -func (m *UserSquashRequest) GetCommitMessage() []byte { - if m != nil { - return m.CommitMessage +func (x *UserSquashRequest) GetCommitMessage() []byte { + if x != nil { + return x.CommitMessage } return nil } -func (m *UserSquashRequest) GetTimestamp() *timestamp.Timestamp { - if m != nil { - return m.Timestamp +func (x *UserSquashRequest) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } return nil } type UserSquashResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // squash_sha is the object ID of the squashed commit. - SquashSha string `protobuf:"bytes,1,opt,name=squash_sha,json=squashSha,proto3" json:"squash_sha,omitempty"` - GitError string `protobuf:"bytes,3,opt,name=git_error,json=gitError,proto3" json:"git_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + SquashSha string `protobuf:"bytes,1,opt,name=squash_sha,json=squashSha,proto3" json:"squash_sha,omitempty"` + GitError string `protobuf:"bytes,3,opt,name=git_error,json=gitError,proto3" json:"git_error,omitempty"` } -func (m *UserSquashResponse) Reset() { *m = UserSquashResponse{} } -func (m *UserSquashResponse) String() string { return proto.CompactTextString(m) } -func (*UserSquashResponse) ProtoMessage() {} -func (*UserSquashResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{29} +func (x *UserSquashResponse) Reset() { + *x = UserSquashResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserSquashResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserSquashResponse.Unmarshal(m, b) +func (x *UserSquashResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserSquashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserSquashResponse.Marshal(b, m, deterministic) -} -func (m *UserSquashResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserSquashResponse.Merge(m, src) -} -func (m *UserSquashResponse) XXX_Size() int { - return xxx_messageInfo_UserSquashResponse.Size(m) -} -func (m *UserSquashResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserSquashResponse.DiscardUnknown(m) + +func (*UserSquashResponse) ProtoMessage() {} + +func (x *UserSquashResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserSquashResponse proto.InternalMessageInfo +// Deprecated: Use UserSquashResponse.ProtoReflect.Descriptor instead. +func (*UserSquashResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{29} +} -func (m *UserSquashResponse) GetSquashSha() string { - if m != nil { - return m.SquashSha +func (x *UserSquashResponse) GetSquashSha() string { + if x != nil { + return x.SquashSha } return "" } -func (m *UserSquashResponse) GetGitError() string { - if m != nil { - return m.GitError +func (x *UserSquashResponse) GetGitError() string { + if x != nil { + return x.GitError } return "" } type UserApplyPatchRequest struct { - // Types that are valid to be assigned to UserApplyPatchRequestPayload: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to UserApplyPatchRequestPayload: // *UserApplyPatchRequest_Header_ // *UserApplyPatchRequest_Patches UserApplyPatchRequestPayload isUserApplyPatchRequest_UserApplyPatchRequestPayload `protobuf_oneof:"user_apply_patch_request_payload"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *UserApplyPatchRequest) Reset() { *m = UserApplyPatchRequest{} } -func (m *UserApplyPatchRequest) String() string { return proto.CompactTextString(m) } -func (*UserApplyPatchRequest) ProtoMessage() {} -func (*UserApplyPatchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{30} +func (x *UserApplyPatchRequest) Reset() { + *x = UserApplyPatchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserApplyPatchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserApplyPatchRequest.Unmarshal(m, b) -} -func (m *UserApplyPatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserApplyPatchRequest.Marshal(b, m, deterministic) -} -func (m *UserApplyPatchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserApplyPatchRequest.Merge(m, src) -} -func (m *UserApplyPatchRequest) XXX_Size() int { - return xxx_messageInfo_UserApplyPatchRequest.Size(m) -} -func (m *UserApplyPatchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserApplyPatchRequest.DiscardUnknown(m) +func (x *UserApplyPatchRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_UserApplyPatchRequest proto.InternalMessageInfo +func (*UserApplyPatchRequest) ProtoMessage() {} -type isUserApplyPatchRequest_UserApplyPatchRequestPayload interface { - isUserApplyPatchRequest_UserApplyPatchRequestPayload() -} - -type UserApplyPatchRequest_Header_ struct { - Header *UserApplyPatchRequest_Header `protobuf:"bytes,1,opt,name=header,proto3,oneof"` +func (x *UserApplyPatchRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type UserApplyPatchRequest_Patches struct { - Patches []byte `protobuf:"bytes,2,opt,name=patches,proto3,oneof"` +// Deprecated: Use UserApplyPatchRequest.ProtoReflect.Descriptor instead. +func (*UserApplyPatchRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{30} } -func (*UserApplyPatchRequest_Header_) isUserApplyPatchRequest_UserApplyPatchRequestPayload() {} - -func (*UserApplyPatchRequest_Patches) isUserApplyPatchRequest_UserApplyPatchRequestPayload() {} - func (m *UserApplyPatchRequest) GetUserApplyPatchRequestPayload() isUserApplyPatchRequest_UserApplyPatchRequestPayload { if m != nil { return m.UserApplyPatchRequestPayload @@ -2578,138 +2728,92 @@ func (m *UserApplyPatchRequest) GetUserApplyPatchRequestPayload() isUserApplyPat return nil } -func (m *UserApplyPatchRequest) GetHeader() *UserApplyPatchRequest_Header { - if x, ok := m.GetUserApplyPatchRequestPayload().(*UserApplyPatchRequest_Header_); ok { +func (x *UserApplyPatchRequest) GetHeader() *UserApplyPatchRequest_Header { + if x, ok := x.GetUserApplyPatchRequestPayload().(*UserApplyPatchRequest_Header_); ok { return x.Header } return nil } -func (m *UserApplyPatchRequest) GetPatches() []byte { - if x, ok := m.GetUserApplyPatchRequestPayload().(*UserApplyPatchRequest_Patches); ok { +func (x *UserApplyPatchRequest) GetPatches() []byte { + if x, ok := x.GetUserApplyPatchRequestPayload().(*UserApplyPatchRequest_Patches); ok { return x.Patches } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*UserApplyPatchRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*UserApplyPatchRequest_Header_)(nil), - (*UserApplyPatchRequest_Patches)(nil), - } +type isUserApplyPatchRequest_UserApplyPatchRequestPayload interface { + isUserApplyPatchRequest_UserApplyPatchRequestPayload() } -// Header contains information about how to apply the patches. -type UserApplyPatchRequest_Header struct { - // repository is the repository to which the patches shall be applied to. - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - // user is used for authentication. - User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` - // target_branch is the branch onto which the patches shall be applied. - TargetBranch []byte `protobuf:"bytes,3,opt,name=target_branch,json=targetBranch,proto3" json:"target_branch,omitempty"` - // timestamp is the optional timestamp to use for the squashed commit as - // committer date. If it's not set, the current time will be used. - Timestamp *timestamp.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type UserApplyPatchRequest_Header_ struct { + // header must be sent as the first message and contains information about + // how to apply the patches. + Header *UserApplyPatchRequest_Header `protobuf:"bytes,1,opt,name=header,proto3,oneof"` } -func (m *UserApplyPatchRequest_Header) Reset() { *m = UserApplyPatchRequest_Header{} } -func (m *UserApplyPatchRequest_Header) String() string { return proto.CompactTextString(m) } -func (*UserApplyPatchRequest_Header) ProtoMessage() {} -func (*UserApplyPatchRequest_Header) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{30, 0} +type UserApplyPatchRequest_Patches struct { + // patches contains the patch data. + Patches []byte `protobuf:"bytes,2,opt,name=patches,proto3,oneof"` } -func (m *UserApplyPatchRequest_Header) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserApplyPatchRequest_Header.Unmarshal(m, b) -} -func (m *UserApplyPatchRequest_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserApplyPatchRequest_Header.Marshal(b, m, deterministic) -} -func (m *UserApplyPatchRequest_Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserApplyPatchRequest_Header.Merge(m, src) -} -func (m *UserApplyPatchRequest_Header) XXX_Size() int { - return xxx_messageInfo_UserApplyPatchRequest_Header.Size(m) -} -func (m *UserApplyPatchRequest_Header) XXX_DiscardUnknown() { - xxx_messageInfo_UserApplyPatchRequest_Header.DiscardUnknown(m) -} +func (*UserApplyPatchRequest_Header_) isUserApplyPatchRequest_UserApplyPatchRequestPayload() {} -var xxx_messageInfo_UserApplyPatchRequest_Header proto.InternalMessageInfo +func (*UserApplyPatchRequest_Patches) isUserApplyPatchRequest_UserApplyPatchRequestPayload() {} -func (m *UserApplyPatchRequest_Header) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} +type UserApplyPatchResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UserApplyPatchRequest_Header) GetUser() *User { - if m != nil { - return m.User - } - return nil + // branch_update contains information about the updated branch. + BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"` } -func (m *UserApplyPatchRequest_Header) GetTargetBranch() []byte { - if m != nil { - return m.TargetBranch +func (x *UserApplyPatchResponse) Reset() { + *x = UserApplyPatchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *UserApplyPatchRequest_Header) GetTimestamp() *timestamp.Timestamp { - if m != nil { - return m.Timestamp - } - return nil +func (x *UserApplyPatchResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type UserApplyPatchResponse struct { - // branch_update contains information about the updated branch. - BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*UserApplyPatchResponse) ProtoMessage() {} -func (m *UserApplyPatchResponse) Reset() { *m = UserApplyPatchResponse{} } -func (m *UserApplyPatchResponse) String() string { return proto.CompactTextString(m) } -func (*UserApplyPatchResponse) ProtoMessage() {} -func (*UserApplyPatchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{31} +func (x *UserApplyPatchResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *UserApplyPatchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserApplyPatchResponse.Unmarshal(m, b) -} -func (m *UserApplyPatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserApplyPatchResponse.Marshal(b, m, deterministic) -} -func (m *UserApplyPatchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserApplyPatchResponse.Merge(m, src) -} -func (m *UserApplyPatchResponse) XXX_Size() int { - return xxx_messageInfo_UserApplyPatchResponse.Size(m) -} -func (m *UserApplyPatchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserApplyPatchResponse.DiscardUnknown(m) +// Deprecated: Use UserApplyPatchResponse.ProtoReflect.Descriptor instead. +func (*UserApplyPatchResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{31} } -var xxx_messageInfo_UserApplyPatchResponse proto.InternalMessageInfo - -func (m *UserApplyPatchResponse) GetBranchUpdate() *OperationBranchUpdate { - if m != nil { - return m.BranchUpdate +func (x *UserApplyPatchResponse) GetBranchUpdate() *OperationBranchUpdate { + if x != nil { + return x.BranchUpdate } return nil } type UserUpdateSubmoduleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // repository is the repository in which the submodule shall be updated. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // user is used both for authorization and as author/committer of the @@ -2727,1119 +2831,1602 @@ type UserUpdateSubmoduleRequest struct { // timestamp is the optional timestamp to use for the commit updating the // submodule as committer date. If it's not set, the current time will be // used. - Timestamp *timestamp.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (m *UserUpdateSubmoduleRequest) Reset() { *m = UserUpdateSubmoduleRequest{} } -func (m *UserUpdateSubmoduleRequest) String() string { return proto.CompactTextString(m) } -func (*UserUpdateSubmoduleRequest) ProtoMessage() {} -func (*UserUpdateSubmoduleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{32} +func (x *UserUpdateSubmoduleRequest) Reset() { + *x = UserUpdateSubmoduleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UserUpdateSubmoduleRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserUpdateSubmoduleRequest.Unmarshal(m, b) -} -func (m *UserUpdateSubmoduleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserUpdateSubmoduleRequest.Marshal(b, m, deterministic) +func (x *UserUpdateSubmoduleRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UserUpdateSubmoduleRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserUpdateSubmoduleRequest.Merge(m, src) -} -func (m *UserUpdateSubmoduleRequest) XXX_Size() int { - return xxx_messageInfo_UserUpdateSubmoduleRequest.Size(m) -} -func (m *UserUpdateSubmoduleRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserUpdateSubmoduleRequest.DiscardUnknown(m) + +func (*UserUpdateSubmoduleRequest) ProtoMessage() {} + +func (x *UserUpdateSubmoduleRequest) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UserUpdateSubmoduleRequest proto.InternalMessageInfo +// Deprecated: Use UserUpdateSubmoduleRequest.ProtoReflect.Descriptor instead. +func (*UserUpdateSubmoduleRequest) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{32} +} -func (m *UserUpdateSubmoduleRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UserUpdateSubmoduleRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UserUpdateSubmoduleRequest) GetUser() *User { - if m != nil { - return m.User +func (x *UserUpdateSubmoduleRequest) GetUser() *User { + if x != nil { + return x.User } return nil } -func (m *UserUpdateSubmoduleRequest) GetCommitSha() string { - if m != nil { - return m.CommitSha +func (x *UserUpdateSubmoduleRequest) GetCommitSha() string { + if x != nil { + return x.CommitSha } return "" } -func (m *UserUpdateSubmoduleRequest) GetBranch() []byte { - if m != nil { - return m.Branch +func (x *UserUpdateSubmoduleRequest) GetBranch() []byte { + if x != nil { + return x.Branch } return nil } -func (m *UserUpdateSubmoduleRequest) GetSubmodule() []byte { - if m != nil { - return m.Submodule +func (x *UserUpdateSubmoduleRequest) GetSubmodule() []byte { + if x != nil { + return x.Submodule } return nil } -func (m *UserUpdateSubmoduleRequest) GetCommitMessage() []byte { - if m != nil { - return m.CommitMessage +func (x *UserUpdateSubmoduleRequest) GetCommitMessage() []byte { + if x != nil { + return x.CommitMessage } return nil } -func (m *UserUpdateSubmoduleRequest) GetTimestamp() *timestamp.Timestamp { - if m != nil { - return m.Timestamp +func (x *UserUpdateSubmoduleRequest) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } return nil } type UserUpdateSubmoduleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // branch_update contains information about the updated branch. BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"` // pre_receive_error contains an error message if the pre-receive hook // rejects the update. PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` // commit_error contains an error message if committing the update fails. - CommitError string `protobuf:"bytes,4,opt,name=commit_error,json=commitError,proto3" json:"commit_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserUpdateSubmoduleResponse) Reset() { *m = UserUpdateSubmoduleResponse{} } -func (m *UserUpdateSubmoduleResponse) String() string { return proto.CompactTextString(m) } -func (*UserUpdateSubmoduleResponse) ProtoMessage() {} -func (*UserUpdateSubmoduleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1b4a5877375e491e, []int{33} -} - -func (m *UserUpdateSubmoduleResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserUpdateSubmoduleResponse.Unmarshal(m, b) -} -func (m *UserUpdateSubmoduleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserUpdateSubmoduleResponse.Marshal(b, m, deterministic) -} -func (m *UserUpdateSubmoduleResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserUpdateSubmoduleResponse.Merge(m, src) -} -func (m *UserUpdateSubmoduleResponse) XXX_Size() int { - return xxx_messageInfo_UserUpdateSubmoduleResponse.Size(m) -} -func (m *UserUpdateSubmoduleResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserUpdateSubmoduleResponse.DiscardUnknown(m) + CommitError string `protobuf:"bytes,4,opt,name=commit_error,json=commitError,proto3" json:"commit_error,omitempty"` } -var xxx_messageInfo_UserUpdateSubmoduleResponse proto.InternalMessageInfo - -func (m *UserUpdateSubmoduleResponse) GetBranchUpdate() *OperationBranchUpdate { - if m != nil { - return m.BranchUpdate - } - return nil -} - -func (m *UserUpdateSubmoduleResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError - } - return "" -} - -func (m *UserUpdateSubmoduleResponse) GetCommitError() string { - if m != nil { - return m.CommitError +func (x *UserUpdateSubmoduleResponse) Reset() { + *x = UserUpdateSubmoduleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func init() { - proto.RegisterEnum("gitaly.UserCherryPickResponse_CreateTreeError", UserCherryPickResponse_CreateTreeError_name, UserCherryPickResponse_CreateTreeError_value) - proto.RegisterEnum("gitaly.UserRevertResponse_CreateTreeError", UserRevertResponse_CreateTreeError_name, UserRevertResponse_CreateTreeError_value) - proto.RegisterEnum("gitaly.UserCommitFilesActionHeader_ActionType", UserCommitFilesActionHeader_ActionType_name, UserCommitFilesActionHeader_ActionType_value) - proto.RegisterType((*UserCreateBranchRequest)(nil), "gitaly.UserCreateBranchRequest") - proto.RegisterType((*UserCreateBranchResponse)(nil), "gitaly.UserCreateBranchResponse") - proto.RegisterType((*UserUpdateBranchRequest)(nil), "gitaly.UserUpdateBranchRequest") - proto.RegisterType((*UserUpdateBranchResponse)(nil), "gitaly.UserUpdateBranchResponse") - proto.RegisterType((*UserDeleteBranchRequest)(nil), "gitaly.UserDeleteBranchRequest") - proto.RegisterType((*UserDeleteBranchResponse)(nil), "gitaly.UserDeleteBranchResponse") - proto.RegisterType((*UserDeleteTagRequest)(nil), "gitaly.UserDeleteTagRequest") - proto.RegisterType((*UserDeleteTagResponse)(nil), "gitaly.UserDeleteTagResponse") - proto.RegisterType((*UserCreateTagRequest)(nil), "gitaly.UserCreateTagRequest") - proto.RegisterType((*UserCreateTagResponse)(nil), "gitaly.UserCreateTagResponse") - proto.RegisterType((*UserMergeBranchRequest)(nil), "gitaly.UserMergeBranchRequest") - proto.RegisterType((*UserMergeBranchResponse)(nil), "gitaly.UserMergeBranchResponse") - proto.RegisterType((*UserMergeToRefRequest)(nil), "gitaly.UserMergeToRefRequest") - proto.RegisterType((*UserMergeToRefResponse)(nil), "gitaly.UserMergeToRefResponse") - proto.RegisterType((*OperationBranchUpdate)(nil), "gitaly.OperationBranchUpdate") - proto.RegisterType((*UserFFBranchRequest)(nil), "gitaly.UserFFBranchRequest") - proto.RegisterType((*UserFFBranchResponse)(nil), "gitaly.UserFFBranchResponse") - proto.RegisterType((*UserCherryPickRequest)(nil), "gitaly.UserCherryPickRequest") - proto.RegisterType((*UserCherryPickResponse)(nil), "gitaly.UserCherryPickResponse") - proto.RegisterType((*UserRevertRequest)(nil), "gitaly.UserRevertRequest") - proto.RegisterType((*UserRevertResponse)(nil), "gitaly.UserRevertResponse") - proto.RegisterType((*UserCommitFilesActionHeader)(nil), "gitaly.UserCommitFilesActionHeader") - proto.RegisterType((*UserCommitFilesAction)(nil), "gitaly.UserCommitFilesAction") - proto.RegisterType((*UserCommitFilesRequestHeader)(nil), "gitaly.UserCommitFilesRequestHeader") - proto.RegisterType((*UserCommitFilesRequest)(nil), "gitaly.UserCommitFilesRequest") - proto.RegisterType((*UserCommitFilesResponse)(nil), "gitaly.UserCommitFilesResponse") - proto.RegisterType((*UserRebaseConfirmableRequest)(nil), "gitaly.UserRebaseConfirmableRequest") - proto.RegisterType((*UserRebaseConfirmableRequest_Header)(nil), "gitaly.UserRebaseConfirmableRequest.Header") - proto.RegisterType((*UserRebaseConfirmableResponse)(nil), "gitaly.UserRebaseConfirmableResponse") - proto.RegisterType((*UserSquashRequest)(nil), "gitaly.UserSquashRequest") - proto.RegisterType((*UserSquashResponse)(nil), "gitaly.UserSquashResponse") - proto.RegisterType((*UserApplyPatchRequest)(nil), "gitaly.UserApplyPatchRequest") - proto.RegisterType((*UserApplyPatchRequest_Header)(nil), "gitaly.UserApplyPatchRequest.Header") - proto.RegisterType((*UserApplyPatchResponse)(nil), "gitaly.UserApplyPatchResponse") - proto.RegisterType((*UserUpdateSubmoduleRequest)(nil), "gitaly.UserUpdateSubmoduleRequest") - proto.RegisterType((*UserUpdateSubmoduleResponse)(nil), "gitaly.UserUpdateSubmoduleResponse") -} - -func init() { proto.RegisterFile("operations.proto", fileDescriptor_1b4a5877375e491e) } - -var fileDescriptor_1b4a5877375e491e = []byte{ - // 2242 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0x5f, 0x6f, 0x1b, 0x59, - 0x15, 0xcf, 0xd8, 0x8e, 0x63, 0x9f, 0x38, 0x8e, 0x33, 0xed, 0xb6, 0x5e, 0xb7, 0x21, 0xd9, 0x49, - 0x4b, 0xd3, 0xb2, 0x38, 0x50, 0x2a, 0xd8, 0x97, 0x05, 0x35, 0xae, 0x43, 0x5a, 0x36, 0x4d, 0x98, - 0xba, 0xa0, 0x45, 0x0b, 0xa3, 0x89, 0x7d, 0x6d, 0x8f, 0xb0, 0x3d, 0xb3, 0x77, 0xc6, 0xd9, 0x86, - 0x07, 0x1e, 0x78, 0xe0, 0x01, 0x89, 0xa7, 0x95, 0x76, 0xf9, 0x04, 0x3c, 0x20, 0xe0, 0x11, 0x3e, - 0x00, 0xd2, 0x4a, 0x3c, 0xf1, 0x09, 0xe0, 0x03, 0x20, 0x21, 0x21, 0x24, 0x24, 0xc4, 0x13, 0xba, - 0xf7, 0x9c, 0xb1, 0xe7, 0xce, 0x8c, 0xd3, 0xa4, 0x9b, 0x66, 0x2b, 0xb4, 0x6f, 0x99, 0x73, 0x8f, - 0xcf, 0xbd, 0xe7, 0x77, 0xfe, 0xde, 0x73, 0x03, 0x15, 0xd7, 0x63, 0xdc, 0x0e, 0x1c, 0x77, 0xe4, - 0xd7, 0x3d, 0xee, 0x06, 0xae, 0x9e, 0xef, 0x39, 0x81, 0x3d, 0x38, 0xae, 0xc1, 0xc0, 0x19, 0x05, - 0x48, 0xab, 0x95, 0xfc, 0xbe, 0xcd, 0x59, 0x87, 0xbe, 0xd6, 0x7a, 0xae, 0xdb, 0x1b, 0xb0, 0x2d, - 0xf9, 0x75, 0x38, 0xee, 0x6e, 0x05, 0xce, 0x90, 0xf9, 0x81, 0x3d, 0xf4, 0x90, 0xc1, 0xf8, 0xa3, - 0x06, 0x57, 0x9f, 0xfa, 0x8c, 0x37, 0x38, 0xb3, 0x03, 0xb6, 0xcd, 0xed, 0x51, 0xbb, 0x6f, 0xb2, - 0xf7, 0xc7, 0xcc, 0x0f, 0xf4, 0xb7, 0x00, 0x38, 0xf3, 0x5c, 0xdf, 0x09, 0x5c, 0x7e, 0x5c, 0xd5, - 0xd6, 0xb5, 0xcd, 0xc5, 0xbb, 0x7a, 0x1d, 0xf7, 0xac, 0x9b, 0x93, 0x95, 0xed, 0xdc, 0xaf, 0x3e, - 0x79, 0x53, 0x33, 0x23, 0xbc, 0xfa, 0x1a, 0x2c, 0x1e, 0x4a, 0x51, 0xd6, 0xc8, 0x1e, 0xb2, 0x6a, - 0x66, 0x5d, 0xdb, 0x2c, 0x99, 0x80, 0xa4, 0xc7, 0xf6, 0x90, 0xe9, 0xeb, 0x90, 0x1b, 0xfb, 0x8c, - 0x57, 0xb3, 0x52, 0x68, 0x29, 0x14, 0x2a, 0x4e, 0x62, 0xca, 0x15, 0x21, 0xc2, 0x0f, 0x6c, 0x1e, - 0x58, 0x9e, 0xeb, 0x8c, 0x82, 0x6a, 0x0e, 0x45, 0x48, 0xd2, 0x81, 0xa0, 0x18, 0x23, 0xa8, 0x26, - 0x0f, 0xee, 0x7b, 0xee, 0xc8, 0x67, 0xfa, 0x17, 0x21, 0x8f, 0x9b, 0xd1, 0xa9, 0xcb, 0xe1, 0x06, - 0xc4, 0x47, 0xab, 0xfa, 0x1d, 0x58, 0xf1, 0x38, 0xb3, 0x38, 0x6b, 0x33, 0xe7, 0x88, 0x59, 0x8c, - 0x73, 0x97, 0xcb, 0xd3, 0x16, 0xcd, 0x65, 0x8f, 0x33, 0x13, 0xe9, 0x4d, 0x41, 0x36, 0x3e, 0x21, - 0xa4, 0x9e, 0x7a, 0x9d, 0x57, 0x0b, 0xa9, 0x2b, 0x90, 0x1f, 0xb1, 0x0f, 0x38, 0x3b, 0x22, 0x90, - 0xe8, 0x4b, 0xd0, 0xdd, 0x41, 0x47, 0xd0, 0xe7, 0x91, 0x8e, 0x5f, 0xc6, 0x0e, 0x02, 0xa7, 0xea, - 0x41, 0xc0, 0xa5, 0x02, 0xa2, 0xa5, 0x03, 0xf2, 0x11, 0x01, 0xf2, 0x80, 0x0d, 0xd8, 0xab, 0x04, - 0x48, 0xa8, 0xa0, 0x7a, 0xae, 0x17, 0x50, 0xf0, 0x97, 0x1a, 0x5c, 0x9e, 0x0a, 0x6a, 0xd9, 0xbd, - 0x4f, 0xaf, 0xdd, 0xeb, 0x50, 0x08, 0xec, 0x5e, 0x54, 0xb5, 0x85, 0xc0, 0xee, 0x9d, 0x52, 0xaf, - 0x06, 0xbc, 0x16, 0x3b, 0xce, 0x0b, 0x28, 0xf5, 0x8b, 0x0c, 0x2a, 0x85, 0x71, 0xf3, 0x99, 0x2b, - 0xa5, 0xdf, 0x82, 0xe5, 0xc0, 0xe6, 0x3d, 0x16, 0x58, 0x9c, 0x1d, 0x39, 0xbe, 0xe3, 0x8e, 0xc8, - 0x8d, 0xcb, 0x48, 0x36, 0x89, 0xaa, 0x57, 0x61, 0x61, 0xc8, 0x7c, 0xdf, 0xee, 0x31, 0xf2, 0xe7, - 0xf0, 0x53, 0x7f, 0x0b, 0x8a, 0x93, 0xb4, 0x56, 0x5d, 0x90, 0x3b, 0xd5, 0xea, 0x98, 0xf8, 0xea, - 0x61, 0xe2, 0xab, 0xb7, 0x42, 0x0e, 0x73, 0xca, 0x6c, 0xfc, 0x04, 0x11, 0x8d, 0x60, 0x41, 0x88, - 0xae, 0x42, 0x36, 0xb0, 0x7b, 0x84, 0xc2, 0x62, 0x78, 0x6c, 0xc1, 0x21, 0xe8, 0x22, 0xb4, 0xd8, - 0x33, 0xc7, 0x0f, 0x7c, 0xa9, 0x6f, 0xc1, 0xa4, 0xaf, 0x74, 0x43, 0x64, 0xd3, 0x0d, 0xf1, 0x61, - 0x06, 0xae, 0x88, 0xcd, 0xf7, 0x18, 0xef, 0x9d, 0x5b, 0xf4, 0x84, 0x78, 0x67, 0x66, 0xe2, 0x7d, - 0x0d, 0x8a, 0x6d, 0x77, 0x38, 0x74, 0x02, 0xcb, 0xe9, 0xd0, 0xd1, 0x0a, 0x48, 0x78, 0xd8, 0x11, - 0x7a, 0x51, 0xde, 0xa4, 0x54, 0x42, 0x79, 0xf2, 0x25, 0x60, 0xaf, 0x5f, 0x86, 0x79, 0xdb, 0xf3, - 0x06, 0xc7, 0xd5, 0xbc, 0x84, 0x10, 0x3f, 0x8c, 0xdf, 0x52, 0x52, 0x51, 0x50, 0x21, 0xa3, 0x28, - 0x47, 0xd7, 0x62, 0x47, 0xdf, 0x86, 0x25, 0xca, 0x1b, 0x63, 0x99, 0xd8, 0xc8, 0xe5, 0x56, 0x43, - 0x08, 0xf6, 0xc3, 0xe2, 0x89, 0x42, 0x31, 0xfb, 0x99, 0xa5, 0xc3, 0xc8, 0x57, 0xba, 0xf9, 0x72, - 0xa9, 0xe6, 0x7b, 0x94, 0x2b, 0x64, 0x2a, 0x59, 0xe3, 0x9f, 0x19, 0xf4, 0x20, 0x79, 0xdc, 0x96, - 0x6b, 0xb2, 0xee, 0x45, 0xd8, 0x70, 0x15, 0xc0, 0x77, 0xc7, 0xbc, 0xcd, 0x2c, 0xbf, 0x6f, 0x93, - 0x11, 0x8b, 0x48, 0x79, 0xd2, 0xb7, 0x67, 0x5a, 0x71, 0x15, 0x60, 0x12, 0x6a, 0x5d, 0x32, 0x64, - 0x31, 0x8c, 0xb2, 0x6e, 0xd4, 0xc8, 0x79, 0xd5, 0xc8, 0x9b, 0x50, 0xe9, 0x3a, 0xdc, 0x0f, 0x2c, - 0xcf, 0xe6, 0x6c, 0x84, 0x3f, 0x5f, 0xc0, 0x20, 0x95, 0xf4, 0x03, 0x49, 0x16, 0x32, 0x6e, 0xc1, - 0xb2, 0x3d, 0x18, 0xb8, 0x1f, 0x58, 0x6d, 0x77, 0xd4, 0x1d, 0x38, 0xed, 0xc0, 0xaf, 0x16, 0xa4, - 0x79, 0xcb, 0x92, 0xdc, 0x08, 0xa9, 0xaa, 0xdf, 0x14, 0xcf, 0x12, 0xb3, 0x76, 0x24, 0x6c, 0x08, - 0xf1, 0xd3, 0xf8, 0xc7, 0x59, 0x4a, 0xfd, 0x4f, 0xe1, 0xb5, 0x54, 0x77, 0x39, 0x79, 0x87, 0x37, - 0xa0, 0x24, 0xac, 0x68, 0xb5, 0x65, 0x36, 0xe9, 0x50, 0x6a, 0x58, 0x14, 0x34, 0x4c, 0x30, 0x1d, - 0xfd, 0x26, 0x94, 0xc9, 0x49, 0x43, 0xa6, 0xac, 0x64, 0x22, 0xd7, 0x25, 0x36, 0xe3, 0xd7, 0x1a, - 0x5c, 0x12, 0x3a, 0xee, 0xec, 0xbc, 0xda, 0x79, 0xc1, 0xf8, 0x39, 0x55, 0xc8, 0xe9, 0x41, 0xc9, - 0x14, 0x89, 0x68, 0xd4, 0xce, 0x29, 0x1a, 0x67, 0x58, 0xec, 0xe3, 0x2c, 0x65, 0xf2, 0x3e, 0xe3, - 0xfc, 0xf8, 0xc0, 0x69, 0xff, 0xf8, 0x22, 0x30, 0xbb, 0x0d, 0x79, 0x84, 0x88, 0x92, 0xcd, 0x4a, - 0xc8, 0xf3, 0x6d, 0x27, 0x68, 0xc8, 0x05, 0x93, 0x18, 0xe2, 0x6d, 0x4d, 0x2e, 0xd1, 0xd6, 0xcc, - 0x4e, 0xb1, 0x77, 0x60, 0x05, 0x3b, 0xe1, 0xa8, 0x00, 0x8c, 0xd0, 0x65, 0xb9, 0xb0, 0x3d, 0x95, - 0xf2, 0x36, 0x54, 0x90, 0x37, 0xa2, 0xf3, 0xc2, 0x2c, 0x9d, 0xe9, 0xe7, 0x53, 0x82, 0x7e, 0x15, - 0x16, 0x3a, 0xfc, 0xd8, 0xe2, 0xe3, 0x11, 0x85, 0x6d, 0xbe, 0xc3, 0x8f, 0xcd, 0xf1, 0xe8, 0x53, - 0x84, 0xeb, 0xbf, 0xa8, 0xcc, 0x45, 0x2d, 0x73, 0xbe, 0x4e, 0x82, 0xa1, 0x64, 0x05, 0x9c, 0xc5, - 0x9c, 0x04, 0x17, 0x5a, 0x9c, 0xa1, 0x93, 0x88, 0x00, 0x25, 0x17, 0x8f, 0x16, 0xe6, 0x45, 0xa4, - 0x21, 0xcb, 0x19, 0x2a, 0x80, 0xde, 0x86, 0x2b, 0x89, 0xad, 0xad, 0xb6, 0xdb, 0x41, 0x03, 0x96, - 0xef, 0xd6, 0xa3, 0x1e, 0x93, 0x54, 0xbf, 0xde, 0x50, 0x8f, 0x67, 0x5e, 0x8a, 0x9d, 0xb7, 0xe1, - 0x76, 0x98, 0x71, 0x0f, 0x96, 0x63, 0x7c, 0x7a, 0x01, 0x72, 0x8f, 0xf7, 0x1f, 0x37, 0x2b, 0x73, - 0x7a, 0x11, 0xe6, 0x9b, 0x7b, 0x07, 0xad, 0x77, 0x2b, 0x9a, 0x5e, 0x82, 0x42, 0x63, 0xff, 0xf1, - 0xce, 0x3b, 0x0f, 0x1b, 0xad, 0x4a, 0xc6, 0xf8, 0x30, 0x0b, 0x2b, 0xd2, 0x4f, 0xd9, 0x11, 0x13, - 0x06, 0xfe, 0x3c, 0x14, 0x5e, 0x85, 0x50, 0xf8, 0x7b, 0x06, 0xf4, 0xa8, 0x55, 0xfe, 0x3f, 0xc2, - 0xc0, 0x7a, 0x4e, 0x18, 0xdc, 0x51, 0xbc, 0x45, 0x51, 0xfd, 0x65, 0x86, 0xc0, 0xbf, 0x33, 0x70, - 0x4d, 0x06, 0x9e, 0x54, 0x6b, 0xc7, 0x19, 0x30, 0xff, 0x7e, 0x5b, 0xa0, 0xb8, 0xcb, 0xec, 0x0e, - 0xe3, 0xfa, 0x0e, 0xe4, 0x6d, 0xf9, 0x2d, 0xe1, 0x8e, 0x47, 0x6b, 0xfa, 0x8f, 0xea, 0xf8, 0xd1, - 0x3a, 0xf6, 0x98, 0x49, 0xbf, 0x16, 0x75, 0xb3, 0xeb, 0x0c, 0x98, 0xe5, 0xd9, 0x41, 0x9f, 0x6e, - 0x3f, 0x05, 0x41, 0x38, 0xb0, 0x83, 0xbe, 0xbe, 0x01, 0x4b, 0x9e, 0xb8, 0xd6, 0xb8, 0x63, 0x1f, - 0x19, 0xb2, 0x92, 0xa1, 0x14, 0x12, 0x25, 0x93, 0x68, 0x0a, 0x6c, 0x9f, 0x7d, 0xfd, 0x9e, 0x68, - 0x9a, 0x02, 0x46, 0xc3, 0x0e, 0xd1, 0x14, 0x48, 0x6a, 0x03, 0x89, 0xfa, 0x6d, 0xa8, 0xb0, 0x67, - 0xac, 0x3d, 0x0e, 0x98, 0x25, 0xe4, 0x0f, 0x43, 0x84, 0x0b, 0xe6, 0x32, 0xd1, 0x77, 0x88, 0x2c, - 0xb6, 0x75, 0x46, 0x5d, 0xc6, 0x27, 0x02, 0xb1, 0xc5, 0x2e, 0x49, 0x22, 0xc9, 0x33, 0x9e, 0x02, - 0x4c, 0xd5, 0xd1, 0x01, 0xf2, 0x0d, 0xb3, 0x79, 0xbf, 0x25, 0x30, 0x2d, 0x03, 0xe0, 0xdf, 0xd6, - 0x83, 0x87, 0x66, 0x45, 0x13, 0x6b, 0x4f, 0x0f, 0x1e, 0x88, 0xb5, 0x8c, 0x40, 0x7e, 0x6f, 0xff, - 0x7b, 0xcd, 0x4a, 0x56, 0x50, 0x1f, 0x34, 0xdf, 0x69, 0xb6, 0x9a, 0x95, 0x9c, 0xb0, 0x42, 0x63, - 0x77, 0x6f, 0xff, 0x41, 0x65, 0xde, 0xf8, 0x48, 0xa3, 0x4a, 0x1c, 0x87, 0x50, 0x7f, 0x1b, 0xf2, - 0x7d, 0x09, 0x23, 0x39, 0xf8, 0xc6, 0x29, 0x10, 0xdf, 0x9d, 0x33, 0xe9, 0x47, 0x7a, 0x0d, 0x16, - 0x42, 0x75, 0x24, 0xcc, 0xbb, 0x73, 0x66, 0x48, 0xd8, 0x36, 0x60, 0x5d, 0x64, 0x21, 0x8b, 0xfc, - 0x5a, 0xe0, 0xe3, 0x5b, 0x68, 0x20, 0xcb, 0xb3, 0x8f, 0x07, 0xae, 0xdd, 0x31, 0xfe, 0x93, 0x85, - 0xeb, 0xb1, 0x9d, 0x28, 0x31, 0x92, 0x47, 0xbc, 0xcc, 0xf4, 0x18, 0xcb, 0x79, 0xd9, 0x44, 0xce, - 0xbb, 0x09, 0x65, 0x3a, 0x7c, 0x98, 0xfa, 0x30, 0x2f, 0x2e, 0x21, 0x75, 0x8f, 0x12, 0xe0, 0x9b, - 0xa0, 0x13, 0x9b, 0x3d, 0x0e, 0xfa, 0x2e, 0x47, 0x71, 0x98, 0x25, 0x2b, 0xb8, 0x72, 0x5f, 0x2e, - 0x48, 0xa1, 0x75, 0xb8, 0xa4, 0x72, 0xb3, 0xa1, 0xed, 0x0c, 0x28, 0x61, 0xae, 0x44, 0xd9, 0x9b, - 0x62, 0x21, 0x3d, 0xbd, 0x2e, 0x9c, 0x3e, 0xbd, 0x16, 0x4e, 0x9f, 0x5e, 0x2f, 0xc3, 0x7c, 0xd7, - 0xe5, 0x6d, 0x26, 0x33, 0x68, 0xc1, 0xc4, 0x0f, 0x11, 0x4c, 0x28, 0x54, 0xdc, 0x6b, 0x00, 0x9b, - 0x50, 0x49, 0x10, 0xd7, 0x1a, 0x25, 0xf1, 0x2e, 0x9e, 0x25, 0xf1, 0xfe, 0x41, 0xa3, 0x1e, 0x24, - 0x61, 0x7a, 0xfd, 0x9b, 0x31, 0xa7, 0xbc, 0x31, 0xc3, 0x29, 0x15, 0x57, 0x89, 0x78, 0xe5, 0x37, - 0x26, 0x69, 0x24, 0xa3, 0x66, 0xed, 0x74, 0xa7, 0x9e, 0x0b, 0xf3, 0xc6, 0xf6, 0x06, 0xbc, 0x91, - 0x74, 0x59, 0x8e, 0xbb, 0x4c, 0x7c, 0xf6, 0x37, 0xe1, 0x74, 0x36, 0x7a, 0x90, 0x73, 0x2c, 0x1b, - 0x6b, 0xb0, 0xe8, 0x8c, 0x3a, 0xec, 0x99, 0x52, 0x30, 0x40, 0x92, 0x4e, 0x28, 0x04, 0x33, 0x06, - 0x1a, 0xbf, 0xcb, 0x61, 0x80, 0x99, 0x4c, 0x24, 0x2e, 0x71, 0xd5, 0x73, 0xf8, 0xd0, 0x3e, 0x1c, - 0xb0, 0x10, 0xeb, 0x66, 0x0c, 0xeb, 0x2f, 0xa9, 0x95, 0x21, 0xfd, 0x57, 0xf5, 0x04, 0xe4, 0x57, - 0xc2, 0xc1, 0x81, 0xbc, 0x60, 0xed, 0xce, 0xd1, 0xe8, 0xa0, 0xf6, 0xb3, 0x2c, 0xe4, 0x2f, 0x20, - 0x94, 0xaf, 0x41, 0x91, 0xcb, 0xb3, 0x46, 0x2e, 0x4a, 0x48, 0x38, 0x61, 0x80, 0xb2, 0x0a, 0x14, - 0xec, 0xd2, 0xb3, 0xe7, 0xf1, 0xc6, 0x8e, 0x14, 0xe1, 0xda, 0xdf, 0x82, 0x15, 0xce, 0x86, 0x6e, - 0xc0, 0xa2, 0xd1, 0x94, 0x9f, 0x19, 0x4d, 0x15, 0x64, 0x8e, 0x84, 0xd3, 0x06, 0x2c, 0x91, 0x00, - 0xda, 0x1e, 0xa3, 0xb6, 0x84, 0x44, 0xf4, 0x00, 0x71, 0x8d, 0xef, 0x39, 0x81, 0xe5, 0x8d, 0xfd, - 0xbe, 0xe5, 0x7a, 0xf2, 0x21, 0xa1, 0x5a, 0x58, 0xcf, 0x6e, 0x16, 0xcd, 0x72, 0xcf, 0x09, 0x0e, - 0xc6, 0x7e, 0x7f, 0x1f, 0xa9, 0x2f, 0xde, 0xe3, 0x6c, 0xdf, 0x86, 0x5b, 0xd2, 0xad, 0x09, 0xa2, - 0xf6, 0xd4, 0x9e, 0x09, 0xe7, 0xfe, 0x9b, 0x06, 0xab, 0x33, 0x2c, 0x4f, 0x2e, 0xbe, 0x26, 0xcc, - 0x28, 0xe5, 0x08, 0xd4, 0xe4, 0x7d, 0x7b, 0x77, 0xce, 0x24, 0xf8, 0x05, 0x6e, 0xb7, 0xa0, 0x4c, - 0x0c, 0xc2, 0x05, 0x9c, 0xf0, 0xd2, 0xbd, 0x3b, 0x67, 0x2e, 0x21, 0xfd, 0x3e, 0x92, 0xcf, 0xe2, - 0xc7, 0xc2, 0xc0, 0xbd, 0x49, 0x73, 0x84, 0x4d, 0x4f, 0xa1, 0x47, 0x9d, 0xd1, 0xf6, 0x1d, 0xd8, - 0x9c, 0xad, 0x1f, 0x1e, 0x7b, 0xa2, 0xe0, 0x5f, 0x32, 0xd8, 0x85, 0x3f, 0x79, 0x7f, 0x6c, 0xfb, - 0x17, 0x75, 0x89, 0xf7, 0xe5, 0x66, 0x11, 0xdf, 0x44, 0xc2, 0xc3, 0x8e, 0x9a, 0x5c, 0xe7, 0x63, - 0xc9, 0xf5, 0x2a, 0x2c, 0xb0, 0x51, 0x47, 0x2e, 0xe5, 0xe5, 0x52, 0x9e, 0x8d, 0x3a, 0x62, 0xe1, - 0x06, 0xe4, 0xb1, 0x78, 0x50, 0xf3, 0xac, 0x6e, 0x4b, 0x6b, 0x29, 0xe5, 0xab, 0x90, 0x56, 0xbe, - 0x5e, 0xd8, 0xaf, 0x1e, 0xe5, 0x0a, 0xb9, 0xca, 0xbc, 0xe1, 0x60, 0x03, 0x1d, 0x02, 0x3a, 0x19, - 0xd6, 0x02, 0x69, 0x3d, 0x71, 0x13, 0x93, 0x70, 0x10, 0x1a, 0x28, 0xf6, 0xcc, 0xaa, 0xf6, 0xc4, - 0x31, 0x9e, 0x99, 0x74, 0x0e, 0xe3, 0xaf, 0x34, 0xd9, 0x13, 0x1e, 0x74, 0x7c, 0x60, 0x07, 0xd3, - 0x29, 0xcc, 0x89, 0x25, 0x23, 0xc1, 0x5e, 0x4f, 0x6b, 0x64, 0x3c, 0xc1, 0xc0, 0xfc, 0x69, 0x23, - 0x43, 0x84, 0xda, 0x9f, 0xb4, 0x0b, 0xc9, 0x61, 0x1b, 0xb0, 0x44, 0x93, 0x40, 0x4a, 0x17, 0xd4, - 0x97, 0x22, 0x91, 0xd2, 0x85, 0x62, 0xac, 0xdc, 0x59, 0x92, 0x40, 0xd8, 0x8e, 0xc9, 0xbc, 0x6c, - 0x49, 0xdd, 0x12, 0xd1, 0xff, 0x1e, 0x96, 0xe4, 0x28, 0x5e, 0xe7, 0x57, 0xd8, 0x8c, 0xdf, 0x67, - 0xa0, 0x36, 0x7d, 0xe4, 0x7a, 0x32, 0x3e, 0x1c, 0xba, 0x9d, 0xf1, 0xb4, 0x12, 0xbd, 0xe4, 0xe1, - 0x2c, 0x85, 0x42, 0x64, 0x38, 0x8b, 0x94, 0x93, 0x86, 0xb3, 0xd7, 0xa1, 0xe8, 0x87, 0xc7, 0x0c, - 0x67, 0xb3, 0x13, 0x42, 0x4a, 0x7c, 0xe5, 0x9f, 0x1b, 0x5f, 0x67, 0x7a, 0x09, 0xf9, 0xb3, 0x86, - 0xd7, 0xa5, 0x04, 0x60, 0x9f, 0xcd, 0x40, 0x2f, 0x71, 0x49, 0xcd, 0x25, 0x2e, 0xa9, 0x8f, 0x72, - 0x85, 0x6c, 0x25, 0x67, 0x26, 0xef, 0xbd, 0x77, 0xff, 0x01, 0x50, 0x99, 0x9c, 0xe7, 0x09, 0xe3, - 0x47, 0x4e, 0x9b, 0xe9, 0x3f, 0x84, 0x4a, 0xfc, 0xb9, 0x58, 0x5f, 0x53, 0x9a, 0xb5, 0xe4, 0x0b, - 0x78, 0x6d, 0x7d, 0x36, 0x03, 0xe2, 0x62, 0xe4, 0xff, 0xfb, 0xf1, 0x66, 0xa6, 0xa0, 0x85, 0xe2, - 0xa3, 0x8f, 0xaa, 0xaa, 0xf8, 0x94, 0x67, 0x63, 0x55, 0x7c, 0xda, 0x7b, 0x6c, 0x5c, 0x7c, 0xf4, - 0x49, 0x53, 0x15, 0x9f, 0xf2, 0x08, 0xab, 0x8a, 0x4f, 0x7b, 0x0d, 0x9d, 0x88, 0x6f, 0xc1, 0x92, - 0xf2, 0x0e, 0xa6, 0x5f, 0x4f, 0x2a, 0x3e, 0x7d, 0x2a, 0xac, 0xad, 0xce, 0x58, 0x4d, 0x97, 0x3a, - 0x79, 0xaf, 0x54, 0xa5, 0xc6, 0x5f, 0x55, 0x55, 0xa9, 0x89, 0x47, 0xce, 0x89, 0xd4, 0xef, 0x43, - 0x59, 0x9d, 0xff, 0xeb, 0xca, 0x0f, 0x13, 0x2f, 0x31, 0xb5, 0x2f, 0xcc, 0x5a, 0x8e, 0x09, 0xfe, - 0x11, 0x2c, 0xc7, 0x5e, 0x9e, 0xf4, 0xe4, 0x4f, 0x55, 0x84, 0xd7, 0x66, 0xae, 0xab, 0xb2, 0x37, - 0xb5, 0xaf, 0x68, 0xfa, 0x77, 0xa1, 0x14, 0x9d, 0x95, 0xeb, 0xd7, 0xa2, 0x3f, 0x8e, 0x8d, 0xfa, - 0x6b, 0xd7, 0xd3, 0x17, 0xd3, 0xb1, 0x98, 0x0e, 0x17, 0x55, 0x2c, 0x12, 0xd3, 0x70, 0x15, 0x8b, - 0xe4, 0x4c, 0x72, 0x22, 0xf8, 0x3d, 0xc4, 0x22, 0x72, 0xef, 0x50, 0xb1, 0x48, 0xde, 0x8c, 0x54, - 0x2c, 0x52, 0x2e, 0x2c, 0x53, 0x2c, 0x74, 0x0f, 0x4b, 0x6b, 0xa2, 0xf1, 0xd3, 0x6f, 0x9c, 0xe6, - 0x46, 0x50, 0xbb, 0xf9, 0x1c, 0xae, 0x14, 0xec, 0xbf, 0x03, 0x30, 0x1d, 0x3f, 0xe9, 0xaf, 0xa7, - 0x8d, 0xa4, 0x50, 0x76, 0x6d, 0xf6, 0xb4, 0x6a, 0x02, 0x0e, 0x09, 0xc3, 0x2e, 0x44, 0x15, 0xa6, - 0xb4, 0x7a, 0xaa, 0x30, 0xb5, 0x69, 0x99, 0x08, 0x7b, 0x17, 0x4d, 0x38, 0xad, 0x83, 0xaa, 0x09, - 0x13, 0xfd, 0x84, 0x6a, 0xc2, 0x64, 0xf9, 0x8c, 0xc0, 0xdc, 0xc5, 0x57, 0xa4, 0x58, 0x4a, 0xd7, - 0x8d, 0x64, 0xd6, 0x89, 0x17, 0xc8, 0xda, 0xc6, 0x89, 0x3c, 0xea, 0x4e, 0xdb, 0xf7, 0x7e, 0x70, - 0xb7, 0xe7, 0x04, 0x03, 0xfb, 0xb0, 0xde, 0x76, 0x87, 0x5b, 0xf8, 0xe7, 0x97, 0x5d, 0xde, 0xdb, - 0x42, 0x19, 0x5b, 0x47, 0x5f, 0xbd, 0x87, 0xff, 0x80, 0xb4, 0xd5, 0x73, 0x89, 0xe6, 0x1d, 0x1e, - 0xe6, 0x25, 0xe9, 0x6b, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xb6, 0xe5, 0x28, 0x36, 0xd7, 0x24, - 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// OperationServiceClient is the client API for OperationService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type OperationServiceClient interface { - UserCreateBranch(ctx context.Context, in *UserCreateBranchRequest, opts ...grpc.CallOption) (*UserCreateBranchResponse, error) - UserUpdateBranch(ctx context.Context, in *UserUpdateBranchRequest, opts ...grpc.CallOption) (*UserUpdateBranchResponse, error) - UserDeleteBranch(ctx context.Context, in *UserDeleteBranchRequest, opts ...grpc.CallOption) (*UserDeleteBranchResponse, error) - // UserCreateTag creates a new tag. - UserCreateTag(ctx context.Context, in *UserCreateTagRequest, opts ...grpc.CallOption) (*UserCreateTagResponse, error) - UserDeleteTag(ctx context.Context, in *UserDeleteTagRequest, opts ...grpc.CallOption) (*UserDeleteTagResponse, error) - // UserMergeRef creates a merge commit and updates target_ref to point to that - // new commit. The first parent of the merge commit (the main line) is taken - // from first_parent_ref. The second parent is specified by its commit ID in source_sha. - // If target_ref already exists it will be overwritten. - UserMergeToRef(ctx context.Context, in *UserMergeToRefRequest, opts ...grpc.CallOption) (*UserMergeToRefResponse, error) - // UserMergeBranch tries to merge the given commit into the target branch. - // The merge commit is created with the given user as author/committer and - // the given message. - // - // This RPC requires confirmation to make any user-visible changes to the - // repository. The first request sent shall contain details about the - // requested merge, which will result in a response with the created merge - // commit ID. Only if a second message with `apply = true` is sent will the - // merge be applied. - UserMergeBranch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserMergeBranchClient, error) - // UserFFBranch tries to perform a fast-forward merge of the given branch to - // the given commit. If the merge is not a fast-forward merge, the request - // will fail. The RPC will return an empty response in case updating the - // reference fails e.g. because of a race. - UserFFBranch(ctx context.Context, in *UserFFBranchRequest, opts ...grpc.CallOption) (*UserFFBranchResponse, error) - // UserCherryPick tries to perform a cherry-pick of a given commit onto a - // branch. - UserCherryPick(ctx context.Context, in *UserCherryPickRequest, opts ...grpc.CallOption) (*UserCherryPickResponse, error) - // UserCommitFiles builds a commit from a stream of actions and updates the target branch to point to it. - // UserCommitFilesRequest with a UserCommitFilesRequestHeader must be sent as the first message of the stream. - // Following that, a variable number of actions can be sent to build a new commit. Each action consists of - // a header followed by content if used by the action. - UserCommitFiles(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserCommitFilesClient, error) - // UserRebaseConfirmable rebases the given remote branch onto a target - // branch. The remote branch may be part of another repository. - // - // This RPC requires confirmation to make any user-visible changes to the - // repository. The first request sent shall contains details about the - // requested rebase, which will result in a response with the created rebase - // commit ID. Only if a second message with `apply = true` is sent will the - // rebase be applied. - UserRebaseConfirmable(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserRebaseConfirmableClient, error) - // UserRevert tries to perform a revert of a given commit onto a branch. - UserRevert(ctx context.Context, in *UserRevertRequest, opts ...grpc.CallOption) (*UserRevertResponse, error) - // UserSquash squashes a range of commits into a single commit. - UserSquash(ctx context.Context, in *UserSquashRequest, opts ...grpc.CallOption) (*UserSquashResponse, error) - // UserApplyPatch applies patches to a given branch. - UserApplyPatch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserApplyPatchClient, error) - // UserUpdateSubmodule updates a submodule to point to a new commit. - UserUpdateSubmodule(ctx context.Context, in *UserUpdateSubmoduleRequest, opts ...grpc.CallOption) (*UserUpdateSubmoduleResponse, error) -} - -type operationServiceClient struct { - cc *grpc.ClientConn -} - -func NewOperationServiceClient(cc *grpc.ClientConn) OperationServiceClient { - return &operationServiceClient{cc} -} - -func (c *operationServiceClient) UserCreateBranch(ctx context.Context, in *UserCreateBranchRequest, opts ...grpc.CallOption) (*UserCreateBranchResponse, error) { - out := new(UserCreateBranchResponse) - err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserCreateBranch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *operationServiceClient) UserUpdateBranch(ctx context.Context, in *UserUpdateBranchRequest, opts ...grpc.CallOption) (*UserUpdateBranchResponse, error) { - out := new(UserUpdateBranchResponse) - err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserUpdateBranch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *UserUpdateSubmoduleResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *operationServiceClient) UserDeleteBranch(ctx context.Context, in *UserDeleteBranchRequest, opts ...grpc.CallOption) (*UserDeleteBranchResponse, error) { - out := new(UserDeleteBranchResponse) - err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserDeleteBranch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*UserUpdateSubmoduleResponse) ProtoMessage() {} -func (c *operationServiceClient) UserCreateTag(ctx context.Context, in *UserCreateTagRequest, opts ...grpc.CallOption) (*UserCreateTagResponse, error) { - out := new(UserCreateTagResponse) - err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserCreateTag", in, out, opts...) - if err != nil { - return nil, err +func (x *UserUpdateSubmoduleResponse) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *operationServiceClient) UserDeleteTag(ctx context.Context, in *UserDeleteTagRequest, opts ...grpc.CallOption) (*UserDeleteTagResponse, error) { - out := new(UserDeleteTagResponse) - err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserDeleteTag", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use UserUpdateSubmoduleResponse.ProtoReflect.Descriptor instead. +func (*UserUpdateSubmoduleResponse) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{33} } -func (c *operationServiceClient) UserMergeToRef(ctx context.Context, in *UserMergeToRefRequest, opts ...grpc.CallOption) (*UserMergeToRefResponse, error) { - out := new(UserMergeToRefResponse) - err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserMergeToRef", in, out, opts...) - if err != nil { - return nil, err +func (x *UserUpdateSubmoduleResponse) GetBranchUpdate() *OperationBranchUpdate { + if x != nil { + return x.BranchUpdate } - return out, nil + return nil } -func (c *operationServiceClient) UserMergeBranch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserMergeBranchClient, error) { - stream, err := c.cc.NewStream(ctx, &_OperationService_serviceDesc.Streams[0], "/gitaly.OperationService/UserMergeBranch", opts...) - if err != nil { - return nil, err +func (x *UserUpdateSubmoduleResponse) GetPreReceiveError() string { + if x != nil { + return x.PreReceiveError } - x := &operationServiceUserMergeBranchClient{stream} - return x, nil -} - -type OperationService_UserMergeBranchClient interface { - Send(*UserMergeBranchRequest) error - Recv() (*UserMergeBranchResponse, error) - grpc.ClientStream -} - -type operationServiceUserMergeBranchClient struct { - grpc.ClientStream -} - -func (x *operationServiceUserMergeBranchClient) Send(m *UserMergeBranchRequest) error { - return x.ClientStream.SendMsg(m) + return "" } -func (x *operationServiceUserMergeBranchClient) Recv() (*UserMergeBranchResponse, error) { - m := new(UserMergeBranchResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *UserUpdateSubmoduleResponse) GetCommitError() string { + if x != nil { + return x.CommitError } - return m, nil + return "" } -func (c *operationServiceClient) UserFFBranch(ctx context.Context, in *UserFFBranchRequest, opts ...grpc.CallOption) (*UserFFBranchResponse, error) { - out := new(UserFFBranchResponse) - err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserFFBranch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +// Header contains information to compute the rebase and must be sent as +// first message. +type UserRebaseConfirmableRequest_Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (c *operationServiceClient) UserCherryPick(ctx context.Context, in *UserCherryPickRequest, opts ...grpc.CallOption) (*UserCherryPickResponse, error) { - out := new(UserCherryPickResponse) - err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserCherryPick", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil + // repository is the repository in which the rebase will be computed and + // applied. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // user is the user to compute the rebase as. It will be used as + // "committer" of rebased commits. + User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + // rebase_id is an ID which uniquely identifies the rebase. Internally, it + // is used to identify the worktree in which the rebase shall be computed. + // There cannot be two concurrent calls using the same rebase_id. + RebaseId string `protobuf:"bytes,3,opt,name=rebase_id,json=rebaseId,proto3" json:"rebase_id,omitempty"` + // branch is the branch onto which the rebase shall happen. + Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` + // branch_sha is the expected object ID which branch currently points to. + // This is used as a safety guard to avoid races when branch has been + // updated meanwhile. + BranchSha string `protobuf:"bytes,5,opt,name=branch_sha,json=branchSha,proto3" json:"branch_sha,omitempty"` + // remote_repository is the repository which contains the branch which + // shall be rebased onto the local branch. + RemoteRepository *Repository `protobuf:"bytes,6,opt,name=remote_repository,json=remoteRepository,proto3" json:"remote_repository,omitempty"` + // remote_branch contains the branch name which shall re rebased onto the + // local branch. + RemoteBranch []byte `protobuf:"bytes,7,opt,name=remote_branch,json=remoteBranch,proto3" json:"remote_branch,omitempty"` + // git_push_options contain options which shall be passed to the git hooks + // when the local branch gets updated. + GitPushOptions []string `protobuf:"bytes,8,rep,name=git_push_options,json=gitPushOptions,proto3" json:"git_push_options,omitempty"` + // timestamp is the optional timestamp to use for the rebased commits as + // committer date. If it's not set, the current time will be used. + Timestamp *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (c *operationServiceClient) UserCommitFiles(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserCommitFilesClient, error) { - stream, err := c.cc.NewStream(ctx, &_OperationService_serviceDesc.Streams[1], "/gitaly.OperationService/UserCommitFiles", opts...) - if err != nil { - return nil, err +func (x *UserRebaseConfirmableRequest_Header) Reset() { + *x = UserRebaseConfirmableRequest_Header{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - x := &operationServiceUserCommitFilesClient{stream} - return x, nil -} - -type OperationService_UserCommitFilesClient interface { - Send(*UserCommitFilesRequest) error - CloseAndRecv() (*UserCommitFilesResponse, error) - grpc.ClientStream -} - -type operationServiceUserCommitFilesClient struct { - grpc.ClientStream } -func (x *operationServiceUserCommitFilesClient) Send(m *UserCommitFilesRequest) error { - return x.ClientStream.SendMsg(m) +func (x *UserRebaseConfirmableRequest_Header) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *operationServiceUserCommitFilesClient) CloseAndRecv() (*UserCommitFilesResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(UserCommitFilesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +func (*UserRebaseConfirmableRequest_Header) ProtoMessage() {} -func (c *operationServiceClient) UserRebaseConfirmable(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserRebaseConfirmableClient, error) { - stream, err := c.cc.NewStream(ctx, &_OperationService_serviceDesc.Streams[2], "/gitaly.OperationService/UserRebaseConfirmable", opts...) - if err != nil { - return nil, err +func (x *UserRebaseConfirmableRequest_Header) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - x := &operationServiceUserRebaseConfirmableClient{stream} - return x, nil -} - -type OperationService_UserRebaseConfirmableClient interface { - Send(*UserRebaseConfirmableRequest) error - Recv() (*UserRebaseConfirmableResponse, error) - grpc.ClientStream -} - -type operationServiceUserRebaseConfirmableClient struct { - grpc.ClientStream + return mi.MessageOf(x) } -func (x *operationServiceUserRebaseConfirmableClient) Send(m *UserRebaseConfirmableRequest) error { - return x.ClientStream.SendMsg(m) +// Deprecated: Use UserRebaseConfirmableRequest_Header.ProtoReflect.Descriptor instead. +func (*UserRebaseConfirmableRequest_Header) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{26, 0} } -func (x *operationServiceUserRebaseConfirmableClient) Recv() (*UserRebaseConfirmableResponse, error) { - m := new(UserRebaseConfirmableResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *UserRebaseConfirmableRequest_Header) GetRepository() *Repository { + if x != nil { + return x.Repository } - return m, nil + return nil } -func (c *operationServiceClient) UserRevert(ctx context.Context, in *UserRevertRequest, opts ...grpc.CallOption) (*UserRevertResponse, error) { - out := new(UserRevertResponse) - err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserRevert", in, out, opts...) - if err != nil { - return nil, err +func (x *UserRebaseConfirmableRequest_Header) GetUser() *User { + if x != nil { + return x.User } - return out, nil + return nil } -func (c *operationServiceClient) UserSquash(ctx context.Context, in *UserSquashRequest, opts ...grpc.CallOption) (*UserSquashResponse, error) { - out := new(UserSquashResponse) - err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserSquash", in, out, opts...) - if err != nil { - return nil, err +func (x *UserRebaseConfirmableRequest_Header) GetRebaseId() string { + if x != nil { + return x.RebaseId } - return out, nil + return "" } -func (c *operationServiceClient) UserApplyPatch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserApplyPatchClient, error) { - stream, err := c.cc.NewStream(ctx, &_OperationService_serviceDesc.Streams[3], "/gitaly.OperationService/UserApplyPatch", opts...) - if err != nil { - return nil, err +func (x *UserRebaseConfirmableRequest_Header) GetBranch() []byte { + if x != nil { + return x.Branch } - x := &operationServiceUserApplyPatchClient{stream} - return x, nil -} - -type OperationService_UserApplyPatchClient interface { - Send(*UserApplyPatchRequest) error - CloseAndRecv() (*UserApplyPatchResponse, error) - grpc.ClientStream -} - -type operationServiceUserApplyPatchClient struct { - grpc.ClientStream -} - -func (x *operationServiceUserApplyPatchClient) Send(m *UserApplyPatchRequest) error { - return x.ClientStream.SendMsg(m) + return nil } -func (x *operationServiceUserApplyPatchClient) CloseAndRecv() (*UserApplyPatchResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(UserApplyPatchResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *UserRebaseConfirmableRequest_Header) GetBranchSha() string { + if x != nil { + return x.BranchSha } - return m, nil + return "" } -func (c *operationServiceClient) UserUpdateSubmodule(ctx context.Context, in *UserUpdateSubmoduleRequest, opts ...grpc.CallOption) (*UserUpdateSubmoduleResponse, error) { - out := new(UserUpdateSubmoduleResponse) - err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserUpdateSubmodule", in, out, opts...) - if err != nil { - return nil, err +func (x *UserRebaseConfirmableRequest_Header) GetRemoteRepository() *Repository { + if x != nil { + return x.RemoteRepository } - return out, nil -} - -// OperationServiceServer is the server API for OperationService service. -type OperationServiceServer interface { - UserCreateBranch(context.Context, *UserCreateBranchRequest) (*UserCreateBranchResponse, error) - UserUpdateBranch(context.Context, *UserUpdateBranchRequest) (*UserUpdateBranchResponse, error) - UserDeleteBranch(context.Context, *UserDeleteBranchRequest) (*UserDeleteBranchResponse, error) - // UserCreateTag creates a new tag. - UserCreateTag(context.Context, *UserCreateTagRequest) (*UserCreateTagResponse, error) - UserDeleteTag(context.Context, *UserDeleteTagRequest) (*UserDeleteTagResponse, error) - // UserMergeRef creates a merge commit and updates target_ref to point to that - // new commit. The first parent of the merge commit (the main line) is taken - // from first_parent_ref. The second parent is specified by its commit ID in source_sha. - // If target_ref already exists it will be overwritten. - UserMergeToRef(context.Context, *UserMergeToRefRequest) (*UserMergeToRefResponse, error) - // UserMergeBranch tries to merge the given commit into the target branch. - // The merge commit is created with the given user as author/committer and - // the given message. - // - // This RPC requires confirmation to make any user-visible changes to the - // repository. The first request sent shall contain details about the - // requested merge, which will result in a response with the created merge - // commit ID. Only if a second message with `apply = true` is sent will the - // merge be applied. - UserMergeBranch(OperationService_UserMergeBranchServer) error - // UserFFBranch tries to perform a fast-forward merge of the given branch to - // the given commit. If the merge is not a fast-forward merge, the request - // will fail. The RPC will return an empty response in case updating the - // reference fails e.g. because of a race. - UserFFBranch(context.Context, *UserFFBranchRequest) (*UserFFBranchResponse, error) - // UserCherryPick tries to perform a cherry-pick of a given commit onto a - // branch. - UserCherryPick(context.Context, *UserCherryPickRequest) (*UserCherryPickResponse, error) - // UserCommitFiles builds a commit from a stream of actions and updates the target branch to point to it. - // UserCommitFilesRequest with a UserCommitFilesRequestHeader must be sent as the first message of the stream. - // Following that, a variable number of actions can be sent to build a new commit. Each action consists of - // a header followed by content if used by the action. - UserCommitFiles(OperationService_UserCommitFilesServer) error - // UserRebaseConfirmable rebases the given remote branch onto a target - // branch. The remote branch may be part of another repository. - // - // This RPC requires confirmation to make any user-visible changes to the - // repository. The first request sent shall contains details about the - // requested rebase, which will result in a response with the created rebase - // commit ID. Only if a second message with `apply = true` is sent will the - // rebase be applied. - UserRebaseConfirmable(OperationService_UserRebaseConfirmableServer) error - // UserRevert tries to perform a revert of a given commit onto a branch. - UserRevert(context.Context, *UserRevertRequest) (*UserRevertResponse, error) - // UserSquash squashes a range of commits into a single commit. - UserSquash(context.Context, *UserSquashRequest) (*UserSquashResponse, error) - // UserApplyPatch applies patches to a given branch. - UserApplyPatch(OperationService_UserApplyPatchServer) error - // UserUpdateSubmodule updates a submodule to point to a new commit. - UserUpdateSubmodule(context.Context, *UserUpdateSubmoduleRequest) (*UserUpdateSubmoduleResponse, error) -} - -// UnimplementedOperationServiceServer can be embedded to have forward compatible implementations. -type UnimplementedOperationServiceServer struct { -} - -func (*UnimplementedOperationServiceServer) UserCreateBranch(ctx context.Context, req *UserCreateBranchRequest) (*UserCreateBranchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserCreateBranch not implemented") -} -func (*UnimplementedOperationServiceServer) UserUpdateBranch(ctx context.Context, req *UserUpdateBranchRequest) (*UserUpdateBranchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserUpdateBranch not implemented") -} -func (*UnimplementedOperationServiceServer) UserDeleteBranch(ctx context.Context, req *UserDeleteBranchRequest) (*UserDeleteBranchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserDeleteBranch not implemented") -} -func (*UnimplementedOperationServiceServer) UserCreateTag(ctx context.Context, req *UserCreateTagRequest) (*UserCreateTagResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserCreateTag not implemented") -} -func (*UnimplementedOperationServiceServer) UserDeleteTag(ctx context.Context, req *UserDeleteTagRequest) (*UserDeleteTagResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserDeleteTag not implemented") -} -func (*UnimplementedOperationServiceServer) UserMergeToRef(ctx context.Context, req *UserMergeToRefRequest) (*UserMergeToRefResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserMergeToRef not implemented") -} -func (*UnimplementedOperationServiceServer) UserMergeBranch(srv OperationService_UserMergeBranchServer) error { - return status.Errorf(codes.Unimplemented, "method UserMergeBranch not implemented") -} -func (*UnimplementedOperationServiceServer) UserFFBranch(ctx context.Context, req *UserFFBranchRequest) (*UserFFBranchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserFFBranch not implemented") -} -func (*UnimplementedOperationServiceServer) UserCherryPick(ctx context.Context, req *UserCherryPickRequest) (*UserCherryPickResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserCherryPick not implemented") -} -func (*UnimplementedOperationServiceServer) UserCommitFiles(srv OperationService_UserCommitFilesServer) error { - return status.Errorf(codes.Unimplemented, "method UserCommitFiles not implemented") -} -func (*UnimplementedOperationServiceServer) UserRebaseConfirmable(srv OperationService_UserRebaseConfirmableServer) error { - return status.Errorf(codes.Unimplemented, "method UserRebaseConfirmable not implemented") -} -func (*UnimplementedOperationServiceServer) UserRevert(ctx context.Context, req *UserRevertRequest) (*UserRevertResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserRevert not implemented") -} -func (*UnimplementedOperationServiceServer) UserSquash(ctx context.Context, req *UserSquashRequest) (*UserSquashResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserSquash not implemented") -} -func (*UnimplementedOperationServiceServer) UserApplyPatch(srv OperationService_UserApplyPatchServer) error { - return status.Errorf(codes.Unimplemented, "method UserApplyPatch not implemented") -} -func (*UnimplementedOperationServiceServer) UserUpdateSubmodule(ctx context.Context, req *UserUpdateSubmoduleRequest) (*UserUpdateSubmoduleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserUpdateSubmodule not implemented") -} - -func RegisterOperationServiceServer(s *grpc.Server, srv OperationServiceServer) { - s.RegisterService(&_OperationService_serviceDesc, srv) + return nil } -func _OperationService_UserCreateBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserCreateBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserCreateBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserCreateBranch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserCreateBranch(ctx, req.(*UserCreateBranchRequest)) +func (x *UserRebaseConfirmableRequest_Header) GetRemoteBranch() []byte { + if x != nil { + return x.RemoteBranch } - return interceptor(ctx, in, info, handler) + return nil } -func _OperationService_UserUpdateBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserUpdateBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserUpdateBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserUpdateBranch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserUpdateBranch(ctx, req.(*UserUpdateBranchRequest)) +func (x *UserRebaseConfirmableRequest_Header) GetGitPushOptions() []string { + if x != nil { + return x.GitPushOptions } - return interceptor(ctx, in, info, handler) + return nil } -func _OperationService_UserDeleteBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserDeleteBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserDeleteBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserDeleteBranch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserDeleteBranch(ctx, req.(*UserDeleteBranchRequest)) +func (x *UserRebaseConfirmableRequest_Header) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } - return interceptor(ctx, in, info, handler) + return nil } -func _OperationService_UserCreateTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserCreateTagRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserCreateTag(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserCreateTag", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserCreateTag(ctx, req.(*UserCreateTagRequest)) - } - return interceptor(ctx, in, info, handler) -} +// Header contains information about how to apply the patches. +type UserApplyPatchRequest_Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func _OperationService_UserDeleteTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserDeleteTagRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserDeleteTag(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserDeleteTag", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserDeleteTag(ctx, req.(*UserDeleteTagRequest)) - } - return interceptor(ctx, in, info, handler) + // repository is the repository to which the patches shall be applied to. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // user is used for authentication. + User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + // target_branch is the branch onto which the patches shall be applied. + TargetBranch []byte `protobuf:"bytes,3,opt,name=target_branch,json=targetBranch,proto3" json:"target_branch,omitempty"` + // timestamp is the optional timestamp to use for the squashed commit as + // committer date. If it's not set, the current time will be used. + Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func _OperationService_UserMergeToRef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserMergeToRefRequest) - if err := dec(in); err != nil { - return nil, err +func (x *UserApplyPatchRequest_Header) Reset() { + *x = UserApplyPatchRequest_Header{} + if protoimpl.UnsafeEnabled { + mi := &file_operations_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if interceptor == nil { - return srv.(OperationServiceServer).UserMergeToRef(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserMergeToRef", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserMergeToRef(ctx, req.(*UserMergeToRefRequest)) - } - return interceptor(ctx, in, info, handler) } -func _OperationService_UserMergeBranch_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(OperationServiceServer).UserMergeBranch(&operationServiceUserMergeBranchServer{stream}) +func (x *UserApplyPatchRequest_Header) String() string { + return protoimpl.X.MessageStringOf(x) } -type OperationService_UserMergeBranchServer interface { - Send(*UserMergeBranchResponse) error - Recv() (*UserMergeBranchRequest, error) - grpc.ServerStream -} +func (*UserApplyPatchRequest_Header) ProtoMessage() {} -type operationServiceUserMergeBranchServer struct { - grpc.ServerStream -} - -func (x *operationServiceUserMergeBranchServer) Send(m *UserMergeBranchResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *operationServiceUserMergeBranchServer) Recv() (*UserMergeBranchRequest, error) { - m := new(UserMergeBranchRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func (x *UserApplyPatchRequest_Header) ProtoReflect() protoreflect.Message { + mi := &file_operations_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -func _OperationService_UserFFBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserFFBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserFFBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserFFBranch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserFFBranch(ctx, req.(*UserFFBranchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OperationService_UserCherryPick_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserCherryPickRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserCherryPick(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserCherryPick", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserCherryPick(ctx, req.(*UserCherryPickRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OperationService_UserCommitFiles_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(OperationServiceServer).UserCommitFiles(&operationServiceUserCommitFilesServer{stream}) -} - -type OperationService_UserCommitFilesServer interface { - SendAndClose(*UserCommitFilesResponse) error - Recv() (*UserCommitFilesRequest, error) - grpc.ServerStream -} - -type operationServiceUserCommitFilesServer struct { - grpc.ServerStream -} - -func (x *operationServiceUserCommitFilesServer) SendAndClose(m *UserCommitFilesResponse) error { - return x.ServerStream.SendMsg(m) +// Deprecated: Use UserApplyPatchRequest_Header.ProtoReflect.Descriptor instead. +func (*UserApplyPatchRequest_Header) Descriptor() ([]byte, []int) { + return file_operations_proto_rawDescGZIP(), []int{30, 0} } -func (x *operationServiceUserCommitFilesServer) Recv() (*UserCommitFilesRequest, error) { - m := new(UserCommitFilesRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func (x *UserApplyPatchRequest_Header) GetRepository() *Repository { + if x != nil { + return x.Repository } - return m, nil -} - -func _OperationService_UserRebaseConfirmable_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(OperationServiceServer).UserRebaseConfirmable(&operationServiceUserRebaseConfirmableServer{stream}) -} - -type OperationService_UserRebaseConfirmableServer interface { - Send(*UserRebaseConfirmableResponse) error - Recv() (*UserRebaseConfirmableRequest, error) - grpc.ServerStream -} - -type operationServiceUserRebaseConfirmableServer struct { - grpc.ServerStream -} - -func (x *operationServiceUserRebaseConfirmableServer) Send(m *UserRebaseConfirmableResponse) error { - return x.ServerStream.SendMsg(m) + return nil } -func (x *operationServiceUserRebaseConfirmableServer) Recv() (*UserRebaseConfirmableRequest, error) { - m := new(UserRebaseConfirmableRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func (x *UserApplyPatchRequest_Header) GetUser() *User { + if x != nil { + return x.User } - return m, nil + return nil } -func _OperationService_UserRevert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserRevertRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserRevert(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserRevert", +func (x *UserApplyPatchRequest_Header) GetTargetBranch() []byte { + if x != nil { + return x.TargetBranch } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserRevert(ctx, req.(*UserRevertRequest)) - } - return interceptor(ctx, in, info, handler) + return nil } -func _OperationService_UserSquash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserSquashRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserSquash(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserSquash", +func (x *UserApplyPatchRequest_Header) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserSquash(ctx, req.(*UserSquashRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OperationService_UserApplyPatch_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(OperationServiceServer).UserApplyPatch(&operationServiceUserApplyPatchServer{stream}) -} - -type OperationService_UserApplyPatchServer interface { - SendAndClose(*UserApplyPatchResponse) error - Recv() (*UserApplyPatchRequest, error) - grpc.ServerStream -} - -type operationServiceUserApplyPatchServer struct { - grpc.ServerStream + return nil } -func (x *operationServiceUserApplyPatchServer) SendAndClose(m *UserApplyPatchResponse) error { - return x.ServerStream.SendMsg(m) -} +var File_operations_proto protoreflect.FileDescriptor + +var file_operations_proto_rawDesc = []byte{ + 0x0a, 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x06, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb7, 0x01, 0x0a, 0x17, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x62, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x0a, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1f, + 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x22, + 0x6e, 0x0a, 0x18, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x62, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x06, 0x62, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, + 0x70, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, + 0xc6, 0x01, 0x0a, 0x17, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x62, 0x72, 0x61, 0x6e, + 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x65, 0x77, 0x72, + 0x65, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x65, 0x77, 0x72, 0x65, 0x76, + 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x6c, 0x64, 0x72, 0x65, 0x76, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x06, 0x6f, 0x6c, 0x64, 0x72, 0x65, 0x76, 0x22, 0x46, 0x0a, 0x18, 0x55, 0x73, 0x65, 0x72, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x70, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x22, 0x96, 0x01, 0x0a, 0x17, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x62, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x46, 0x0a, 0x18, 0x55, 0x73, 0x65, + 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0f, 0x70, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x22, 0x8d, 0x01, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, + 0x72, 0x22, 0x43, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, + 0x61, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, + 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x8a, 0x02, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, 0x67, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x61, 0x67, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x5f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x22, 0x7a, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x54, 0x61, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x03, + 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x65, + 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x78, 0x69, + 0x73, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, + 0x70, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, + 0x93, 0x02, 0x0a, 0x16, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, + 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, + 0x61, 0x70, 0x70, 0x6c, 0x79, 0x22, 0xac, 0x01, 0x0a, 0x17, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x65, + 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x42, + 0x0a, 0x0d, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, + 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4a, 0x04, + 0x08, 0x02, 0x10, 0x03, 0x22, 0xf0, 0x02, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x65, 0x72, + 0x67, 0x65, 0x54, 0x6f, 0x52, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, + 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x66, + 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x66, 0x69, + 0x72, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x66, 0x69, 0x72, 0x73, 0x74, 0x50, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x66, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, + 0x6c, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x12, 0x38, 0x0a, + 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x61, 0x0a, 0x16, 0x55, 0x73, 0x65, 0x72, 0x4d, + 0x65, 0x72, 0x67, 0x65, 0x54, 0x6f, 0x52, 0x65, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x2a, + 0x0a, 0x11, 0x70, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x7e, 0x0a, 0x15, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, + 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x72, 0x65, 0x70, 0x6f, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x62, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x22, 0xa6, 0x01, 0x0a, 0x13, 0x55, + 0x73, 0x65, 0x72, 0x46, 0x46, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1b, + 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x62, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x22, 0x86, 0x01, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x46, 0x46, 0x42, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, + 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x52, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x65, + 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x97, 0x03, 0x0a, + 0x15, 0x55, 0x73, 0x65, 0x72, 0x43, 0x68, 0x65, 0x72, 0x72, 0x79, 0x50, 0x69, 0x63, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, + 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x12, 0x29, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x1f, 0x0a, + 0x0b, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0a, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x52, 0x0f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x72, 0x79, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64, 0x72, 0x79, 0x52, 0x75, 0x6e, 0x12, 0x38, 0x0a, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xf2, 0x02, 0x0a, 0x16, 0x55, 0x73, 0x65, 0x72, 0x43, + 0x68, 0x65, 0x72, 0x72, 0x79, 0x50, 0x69, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x72, 0x61, 0x6e, 0x63, + 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, + 0x74, 0x72, 0x65, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x65, 0x65, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x70, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x12, 0x63, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x5f, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x2e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x68, + 0x65, 0x72, 0x72, 0x79, 0x50, 0x69, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x65, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x52, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x65, 0x65, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x34, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, + 0x72, 0x65, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, + 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x4d, 0x50, 0x54, 0x59, 0x10, 0x01, 0x12, 0x0c, 0x0a, + 0x08, 0x43, 0x4f, 0x4e, 0x46, 0x4c, 0x49, 0x43, 0x54, 0x10, 0x02, 0x22, 0x93, 0x03, 0x0a, 0x11, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x76, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x04, 0x75, + 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x29, 0x0a, + 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x72, 0x61, 0x6e, + 0x63, 0x68, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x62, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x62, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x3d, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0f, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x17, + 0x0a, 0x07, 0x64, 0x72, 0x79, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x06, 0x64, 0x72, 0x79, 0x52, 0x75, 0x6e, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x22, 0xea, 0x02, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x76, 0x65, 0x72, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x62, 0x72, 0x61, 0x6e, + 0x63, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0c, + 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x11, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, + 0x72, 0x65, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x70, + 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x5f, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x76, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x65, 0x65, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x52, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x65, 0x65, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x34, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x54, 0x72, 0x65, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x08, 0x0a, 0x04, 0x4e, + 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x4d, 0x50, 0x54, 0x59, 0x10, 0x01, + 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x4e, 0x46, 0x4c, 0x49, 0x43, 0x54, 0x10, 0x02, 0x22, 0xf5, + 0x02, 0x0a, 0x1b, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x69, 0x6c, + 0x65, 0x73, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x46, + 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, + 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, + 0x61, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x76, + 0x69, 0x6f, 0x75, 0x73, 0x50, 0x61, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x61, 0x73, 0x65, + 0x36, 0x34, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0d, 0x62, 0x61, 0x73, 0x65, 0x36, 0x34, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, + 0x29, 0x0a, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x6d, + 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, + 0x66, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, + 0x55, 0x0a, 0x0a, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, + 0x06, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x52, 0x45, + 0x41, 0x54, 0x45, 0x5f, 0x44, 0x49, 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x50, 0x44, + 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x4f, 0x56, 0x45, 0x10, 0x03, 0x12, + 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x43, + 0x48, 0x4d, 0x4f, 0x44, 0x10, 0x05, 0x22, 0x96, 0x01, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x3d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x23, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, + 0x1a, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x48, 0x00, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x22, 0x0a, 0x20, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, + 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, + 0xf8, 0x03, 0x0a, 0x1c, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x69, + 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, + 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0a, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, + 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x45, 0x6d, 0x61, + 0x69, 0x6c, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, + 0x63, 0x68, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, + 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0f, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, + 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x68, 0x61, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x53, 0x68, 0x61, + 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xb6, 0x01, 0x0a, 0x16, 0x55, + 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x23, + 0x0a, 0x21, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x66, 0x69, + 0x6c, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x22, 0xaa, 0x01, 0x0a, 0x17, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x42, 0x0a, 0x0d, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x70, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x22, 0xad, 0x04, 0x0a, 0x1c, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x45, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x65, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x62, 0x6c, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, + 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x6c, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x05, 0x61, 0x70, 0x70, 0x6c, 0x79, + 0x1a, 0x82, 0x03, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x62, 0x61, 0x73, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x62, 0x61, + 0x73, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x1d, 0x0a, 0x0a, + 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x68, 0x61, 0x12, 0x3f, 0x0a, 0x11, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x10, 0x72, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x0a, 0x0d, + 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, + 0x68, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x69, 0x74, 0x5f, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x67, 0x69, 0x74, + 0x50, 0x75, 0x73, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38, 0x0a, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x29, 0x0a, 0x27, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x72, 0x65, + 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x22, 0xde, 0x01, 0x0a, 0x1d, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x72, 0x65, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x61, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x62, 0x61, 0x73, 0x65, + 0x53, 0x68, 0x61, 0x12, 0x27, 0x0a, 0x0e, 0x72, 0x65, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0d, 0x72, + 0x65, 0x62, 0x61, 0x73, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x12, 0x2a, 0x0a, 0x11, + 0x70, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x69, 0x74, 0x5f, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x69, 0x74, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x2a, 0x0a, 0x28, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x72, 0x65, + 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x22, 0xcf, 0x02, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x53, 0x71, 0x75, 0x61, 0x73, 0x68, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, + 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, + 0x73, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x71, 0x75, 0x61, 0x73, 0x68, 0x5f, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x71, 0x75, 0x61, 0x73, 0x68, 0x49, 0x64, + 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x53, 0x68, 0x61, 0x12, 0x17, 0x0a, + 0x07, 0x65, 0x6e, 0x64, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x65, 0x6e, 0x64, 0x53, 0x68, 0x61, 0x12, 0x24, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4a, 0x04, 0x08, + 0x04, 0x10, 0x05, 0x22, 0x69, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x53, 0x71, 0x75, 0x61, 0x73, + 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x71, 0x75, + 0x61, 0x73, 0x68, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, + 0x71, 0x75, 0x61, 0x73, 0x68, 0x53, 0x68, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x69, 0x74, 0x5f, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x69, 0x74, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x52, 0x11, 0x70, 0x72, 0x65, + 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xdd, + 0x02, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x50, 0x61, 0x74, 0x63, + 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x50, 0x61, 0x74, 0x63, 0x68, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, + 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x63, + 0x68, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x70, 0x61, 0x74, + 0x63, 0x68, 0x65, 0x73, 0x1a, 0xc3, 0x01, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, + 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x22, 0x0a, 0x20, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x70, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x5c, + 0x0a, 0x16, 0x55, 0x73, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x50, 0x61, 0x74, 0x63, 0x68, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x62, 0x72, 0x61, 0x6e, + 0x63, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0c, + 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x22, 0xae, 0x02, 0x0a, + 0x1a, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x53, 0x68, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x1c, + 0x0a, 0x09, 0x73, 0x75, 0x62, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x73, 0x75, 0x62, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0e, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xc9, 0x01, + 0x0a, 0x1b, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, + 0x0d, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x52, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, + 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x21, 0x0a, + 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, + 0x72, 0x65, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32, 0xed, 0x0a, 0x0a, 0x10, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5d, + 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, + 0x63, 0x68, 0x12, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5d, 0x0a, + 0x10, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, + 0x68, 0x12, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5d, 0x0a, 0x10, + 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x12, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x54, 0x0a, 0x0d, 0x55, + 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x12, 0x1c, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, + 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, + 0x01, 0x12, 0x54, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, + 0x61, 0x67, 0x12, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x57, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x4d, + 0x65, 0x72, 0x67, 0x65, 0x54, 0x6f, 0x52, 0x65, 0x66, 0x12, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x54, 0x6f, 0x52, 0x65, + 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x54, 0x6f, 0x52, 0x65, 0x66, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, + 0x12, 0x5e, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x12, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x28, 0x01, 0x30, 0x01, + 0x12, 0x51, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x46, 0x46, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x12, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x46, 0x46, + 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x46, 0x46, 0x42, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x01, 0x12, 0x57, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x68, 0x65, 0x72, 0x72, + 0x79, 0x50, 0x69, 0x63, 0x6b, 0x12, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x43, 0x68, 0x65, 0x72, 0x72, 0x79, 0x50, 0x69, 0x63, 0x6b, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x43, 0x68, 0x65, 0x72, 0x72, 0x79, 0x50, 0x69, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5c, 0x0a, 0x0f, + 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, + 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x28, 0x01, 0x12, 0x70, 0x0a, 0x15, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, + 0x62, 0x6c, 0x65, 0x12, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x62, + 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x72, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x28, 0x01, 0x30, 0x01, 0x12, 0x4b, 0x0a, 0x0a, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x76, 0x65, 0x72, 0x74, 0x12, 0x19, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x76, 0x65, 0x72, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x76, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x4b, 0x0a, 0x0a, 0x55, 0x73, 0x65, + 0x72, 0x53, 0x71, 0x75, 0x61, 0x73, 0x68, 0x12, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x71, 0x75, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x53, 0x71, 0x75, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, + 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x59, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x70, + 0x70, 0x6c, 0x79, 0x50, 0x61, 0x74, 0x63, 0x68, 0x12, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x50, 0x61, 0x74, 0x63, 0x68, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x50, 0x61, 0x74, 0x63, 0x68, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x28, + 0x01, 0x12, 0x66, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, + 0x75, 0x62, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x53, 0x75, 0x62, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, + 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, + 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_operations_proto_rawDescOnce sync.Once + file_operations_proto_rawDescData = file_operations_proto_rawDesc +) -func (x *operationServiceUserApplyPatchServer) Recv() (*UserApplyPatchRequest, error) { - m := new(UserApplyPatchRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func file_operations_proto_rawDescGZIP() []byte { + file_operations_proto_rawDescOnce.Do(func() { + file_operations_proto_rawDescData = protoimpl.X.CompressGZIP(file_operations_proto_rawDescData) + }) + return file_operations_proto_rawDescData +} + +var file_operations_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_operations_proto_msgTypes = make([]protoimpl.MessageInfo, 36) +var file_operations_proto_goTypes = []interface{}{ + (UserCherryPickResponse_CreateTreeError)(0), // 0: gitaly.UserCherryPickResponse.CreateTreeError + (UserRevertResponse_CreateTreeError)(0), // 1: gitaly.UserRevertResponse.CreateTreeError + (UserCommitFilesActionHeader_ActionType)(0), // 2: gitaly.UserCommitFilesActionHeader.ActionType + (*UserCreateBranchRequest)(nil), // 3: gitaly.UserCreateBranchRequest + (*UserCreateBranchResponse)(nil), // 4: gitaly.UserCreateBranchResponse + (*UserUpdateBranchRequest)(nil), // 5: gitaly.UserUpdateBranchRequest + (*UserUpdateBranchResponse)(nil), // 6: gitaly.UserUpdateBranchResponse + (*UserDeleteBranchRequest)(nil), // 7: gitaly.UserDeleteBranchRequest + (*UserDeleteBranchResponse)(nil), // 8: gitaly.UserDeleteBranchResponse + (*UserDeleteTagRequest)(nil), // 9: gitaly.UserDeleteTagRequest + (*UserDeleteTagResponse)(nil), // 10: gitaly.UserDeleteTagResponse + (*UserCreateTagRequest)(nil), // 11: gitaly.UserCreateTagRequest + (*UserCreateTagResponse)(nil), // 12: gitaly.UserCreateTagResponse + (*UserMergeBranchRequest)(nil), // 13: gitaly.UserMergeBranchRequest + (*UserMergeBranchResponse)(nil), // 14: gitaly.UserMergeBranchResponse + (*UserMergeToRefRequest)(nil), // 15: gitaly.UserMergeToRefRequest + (*UserMergeToRefResponse)(nil), // 16: gitaly.UserMergeToRefResponse + (*OperationBranchUpdate)(nil), // 17: gitaly.OperationBranchUpdate + (*UserFFBranchRequest)(nil), // 18: gitaly.UserFFBranchRequest + (*UserFFBranchResponse)(nil), // 19: gitaly.UserFFBranchResponse + (*UserCherryPickRequest)(nil), // 20: gitaly.UserCherryPickRequest + (*UserCherryPickResponse)(nil), // 21: gitaly.UserCherryPickResponse + (*UserRevertRequest)(nil), // 22: gitaly.UserRevertRequest + (*UserRevertResponse)(nil), // 23: gitaly.UserRevertResponse + (*UserCommitFilesActionHeader)(nil), // 24: gitaly.UserCommitFilesActionHeader + (*UserCommitFilesAction)(nil), // 25: gitaly.UserCommitFilesAction + (*UserCommitFilesRequestHeader)(nil), // 26: gitaly.UserCommitFilesRequestHeader + (*UserCommitFilesRequest)(nil), // 27: gitaly.UserCommitFilesRequest + (*UserCommitFilesResponse)(nil), // 28: gitaly.UserCommitFilesResponse + (*UserRebaseConfirmableRequest)(nil), // 29: gitaly.UserRebaseConfirmableRequest + (*UserRebaseConfirmableResponse)(nil), // 30: gitaly.UserRebaseConfirmableResponse + (*UserSquashRequest)(nil), // 31: gitaly.UserSquashRequest + (*UserSquashResponse)(nil), // 32: gitaly.UserSquashResponse + (*UserApplyPatchRequest)(nil), // 33: gitaly.UserApplyPatchRequest + (*UserApplyPatchResponse)(nil), // 34: gitaly.UserApplyPatchResponse + (*UserUpdateSubmoduleRequest)(nil), // 35: gitaly.UserUpdateSubmoduleRequest + (*UserUpdateSubmoduleResponse)(nil), // 36: gitaly.UserUpdateSubmoduleResponse + (*UserRebaseConfirmableRequest_Header)(nil), // 37: gitaly.UserRebaseConfirmableRequest.Header + (*UserApplyPatchRequest_Header)(nil), // 38: gitaly.UserApplyPatchRequest.Header + (*Repository)(nil), // 39: gitaly.Repository + (*User)(nil), // 40: gitaly.User + (*Branch)(nil), // 41: gitaly.Branch + (*timestamppb.Timestamp)(nil), // 42: google.protobuf.Timestamp + (*Tag)(nil), // 43: gitaly.Tag + (*GitCommit)(nil), // 44: gitaly.GitCommit +} +var file_operations_proto_depIdxs = []int32{ + 39, // 0: gitaly.UserCreateBranchRequest.repository:type_name -> gitaly.Repository + 40, // 1: gitaly.UserCreateBranchRequest.user:type_name -> gitaly.User + 41, // 2: gitaly.UserCreateBranchResponse.branch:type_name -> gitaly.Branch + 39, // 3: gitaly.UserUpdateBranchRequest.repository:type_name -> gitaly.Repository + 40, // 4: gitaly.UserUpdateBranchRequest.user:type_name -> gitaly.User + 39, // 5: gitaly.UserDeleteBranchRequest.repository:type_name -> gitaly.Repository + 40, // 6: gitaly.UserDeleteBranchRequest.user:type_name -> gitaly.User + 39, // 7: gitaly.UserDeleteTagRequest.repository:type_name -> gitaly.Repository + 40, // 8: gitaly.UserDeleteTagRequest.user:type_name -> gitaly.User + 39, // 9: gitaly.UserCreateTagRequest.repository:type_name -> gitaly.Repository + 40, // 10: gitaly.UserCreateTagRequest.user:type_name -> gitaly.User + 42, // 11: gitaly.UserCreateTagRequest.timestamp:type_name -> google.protobuf.Timestamp + 43, // 12: gitaly.UserCreateTagResponse.tag:type_name -> gitaly.Tag + 39, // 13: gitaly.UserMergeBranchRequest.repository:type_name -> gitaly.Repository + 40, // 14: gitaly.UserMergeBranchRequest.user:type_name -> gitaly.User + 42, // 15: gitaly.UserMergeBranchRequest.timestamp:type_name -> google.protobuf.Timestamp + 17, // 16: gitaly.UserMergeBranchResponse.branch_update:type_name -> gitaly.OperationBranchUpdate + 39, // 17: gitaly.UserMergeToRefRequest.repository:type_name -> gitaly.Repository + 40, // 18: gitaly.UserMergeToRefRequest.user:type_name -> gitaly.User + 42, // 19: gitaly.UserMergeToRefRequest.timestamp:type_name -> google.protobuf.Timestamp + 39, // 20: gitaly.UserFFBranchRequest.repository:type_name -> gitaly.Repository + 40, // 21: gitaly.UserFFBranchRequest.user:type_name -> gitaly.User + 17, // 22: gitaly.UserFFBranchResponse.branch_update:type_name -> gitaly.OperationBranchUpdate + 39, // 23: gitaly.UserCherryPickRequest.repository:type_name -> gitaly.Repository + 40, // 24: gitaly.UserCherryPickRequest.user:type_name -> gitaly.User + 44, // 25: gitaly.UserCherryPickRequest.commit:type_name -> gitaly.GitCommit + 39, // 26: gitaly.UserCherryPickRequest.start_repository:type_name -> gitaly.Repository + 42, // 27: gitaly.UserCherryPickRequest.timestamp:type_name -> google.protobuf.Timestamp + 17, // 28: gitaly.UserCherryPickResponse.branch_update:type_name -> gitaly.OperationBranchUpdate + 0, // 29: gitaly.UserCherryPickResponse.create_tree_error_code:type_name -> gitaly.UserCherryPickResponse.CreateTreeError + 39, // 30: gitaly.UserRevertRequest.repository:type_name -> gitaly.Repository + 40, // 31: gitaly.UserRevertRequest.user:type_name -> gitaly.User + 44, // 32: gitaly.UserRevertRequest.commit:type_name -> gitaly.GitCommit + 39, // 33: gitaly.UserRevertRequest.start_repository:type_name -> gitaly.Repository + 42, // 34: gitaly.UserRevertRequest.timestamp:type_name -> google.protobuf.Timestamp + 17, // 35: gitaly.UserRevertResponse.branch_update:type_name -> gitaly.OperationBranchUpdate + 1, // 36: gitaly.UserRevertResponse.create_tree_error_code:type_name -> gitaly.UserRevertResponse.CreateTreeError + 2, // 37: gitaly.UserCommitFilesActionHeader.action:type_name -> gitaly.UserCommitFilesActionHeader.ActionType + 24, // 38: gitaly.UserCommitFilesAction.header:type_name -> gitaly.UserCommitFilesActionHeader + 39, // 39: gitaly.UserCommitFilesRequestHeader.repository:type_name -> gitaly.Repository + 40, // 40: gitaly.UserCommitFilesRequestHeader.user:type_name -> gitaly.User + 39, // 41: gitaly.UserCommitFilesRequestHeader.start_repository:type_name -> gitaly.Repository + 42, // 42: gitaly.UserCommitFilesRequestHeader.timestamp:type_name -> google.protobuf.Timestamp + 26, // 43: gitaly.UserCommitFilesRequest.header:type_name -> gitaly.UserCommitFilesRequestHeader + 25, // 44: gitaly.UserCommitFilesRequest.action:type_name -> gitaly.UserCommitFilesAction + 17, // 45: gitaly.UserCommitFilesResponse.branch_update:type_name -> gitaly.OperationBranchUpdate + 37, // 46: gitaly.UserRebaseConfirmableRequest.header:type_name -> gitaly.UserRebaseConfirmableRequest.Header + 39, // 47: gitaly.UserSquashRequest.repository:type_name -> gitaly.Repository + 40, // 48: gitaly.UserSquashRequest.user:type_name -> gitaly.User + 40, // 49: gitaly.UserSquashRequest.author:type_name -> gitaly.User + 42, // 50: gitaly.UserSquashRequest.timestamp:type_name -> google.protobuf.Timestamp + 38, // 51: gitaly.UserApplyPatchRequest.header:type_name -> gitaly.UserApplyPatchRequest.Header + 17, // 52: gitaly.UserApplyPatchResponse.branch_update:type_name -> gitaly.OperationBranchUpdate + 39, // 53: gitaly.UserUpdateSubmoduleRequest.repository:type_name -> gitaly.Repository + 40, // 54: gitaly.UserUpdateSubmoduleRequest.user:type_name -> gitaly.User + 42, // 55: gitaly.UserUpdateSubmoduleRequest.timestamp:type_name -> google.protobuf.Timestamp + 17, // 56: gitaly.UserUpdateSubmoduleResponse.branch_update:type_name -> gitaly.OperationBranchUpdate + 39, // 57: gitaly.UserRebaseConfirmableRequest.Header.repository:type_name -> gitaly.Repository + 40, // 58: gitaly.UserRebaseConfirmableRequest.Header.user:type_name -> gitaly.User + 39, // 59: gitaly.UserRebaseConfirmableRequest.Header.remote_repository:type_name -> gitaly.Repository + 42, // 60: gitaly.UserRebaseConfirmableRequest.Header.timestamp:type_name -> google.protobuf.Timestamp + 39, // 61: gitaly.UserApplyPatchRequest.Header.repository:type_name -> gitaly.Repository + 40, // 62: gitaly.UserApplyPatchRequest.Header.user:type_name -> gitaly.User + 42, // 63: gitaly.UserApplyPatchRequest.Header.timestamp:type_name -> google.protobuf.Timestamp + 3, // 64: gitaly.OperationService.UserCreateBranch:input_type -> gitaly.UserCreateBranchRequest + 5, // 65: gitaly.OperationService.UserUpdateBranch:input_type -> gitaly.UserUpdateBranchRequest + 7, // 66: gitaly.OperationService.UserDeleteBranch:input_type -> gitaly.UserDeleteBranchRequest + 11, // 67: gitaly.OperationService.UserCreateTag:input_type -> gitaly.UserCreateTagRequest + 9, // 68: gitaly.OperationService.UserDeleteTag:input_type -> gitaly.UserDeleteTagRequest + 15, // 69: gitaly.OperationService.UserMergeToRef:input_type -> gitaly.UserMergeToRefRequest + 13, // 70: gitaly.OperationService.UserMergeBranch:input_type -> gitaly.UserMergeBranchRequest + 18, // 71: gitaly.OperationService.UserFFBranch:input_type -> gitaly.UserFFBranchRequest + 20, // 72: gitaly.OperationService.UserCherryPick:input_type -> gitaly.UserCherryPickRequest + 27, // 73: gitaly.OperationService.UserCommitFiles:input_type -> gitaly.UserCommitFilesRequest + 29, // 74: gitaly.OperationService.UserRebaseConfirmable:input_type -> gitaly.UserRebaseConfirmableRequest + 22, // 75: gitaly.OperationService.UserRevert:input_type -> gitaly.UserRevertRequest + 31, // 76: gitaly.OperationService.UserSquash:input_type -> gitaly.UserSquashRequest + 33, // 77: gitaly.OperationService.UserApplyPatch:input_type -> gitaly.UserApplyPatchRequest + 35, // 78: gitaly.OperationService.UserUpdateSubmodule:input_type -> gitaly.UserUpdateSubmoduleRequest + 4, // 79: gitaly.OperationService.UserCreateBranch:output_type -> gitaly.UserCreateBranchResponse + 6, // 80: gitaly.OperationService.UserUpdateBranch:output_type -> gitaly.UserUpdateBranchResponse + 8, // 81: gitaly.OperationService.UserDeleteBranch:output_type -> gitaly.UserDeleteBranchResponse + 12, // 82: gitaly.OperationService.UserCreateTag:output_type -> gitaly.UserCreateTagResponse + 10, // 83: gitaly.OperationService.UserDeleteTag:output_type -> gitaly.UserDeleteTagResponse + 16, // 84: gitaly.OperationService.UserMergeToRef:output_type -> gitaly.UserMergeToRefResponse + 14, // 85: gitaly.OperationService.UserMergeBranch:output_type -> gitaly.UserMergeBranchResponse + 19, // 86: gitaly.OperationService.UserFFBranch:output_type -> gitaly.UserFFBranchResponse + 21, // 87: gitaly.OperationService.UserCherryPick:output_type -> gitaly.UserCherryPickResponse + 28, // 88: gitaly.OperationService.UserCommitFiles:output_type -> gitaly.UserCommitFilesResponse + 30, // 89: gitaly.OperationService.UserRebaseConfirmable:output_type -> gitaly.UserRebaseConfirmableResponse + 23, // 90: gitaly.OperationService.UserRevert:output_type -> gitaly.UserRevertResponse + 32, // 91: gitaly.OperationService.UserSquash:output_type -> gitaly.UserSquashResponse + 34, // 92: gitaly.OperationService.UserApplyPatch:output_type -> gitaly.UserApplyPatchResponse + 36, // 93: gitaly.OperationService.UserUpdateSubmodule:output_type -> gitaly.UserUpdateSubmoduleResponse + 79, // [79:94] is the sub-list for method output_type + 64, // [64:79] is the sub-list for method input_type + 64, // [64:64] is the sub-list for extension type_name + 64, // [64:64] is the sub-list for extension extendee + 0, // [0:64] is the sub-list for field type_name +} + +func init() { file_operations_proto_init() } +func file_operations_proto_init() { + if File_operations_proto != nil { + return + } + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_operations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserCreateBranchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserCreateBranchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserUpdateBranchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserUpdateBranchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserDeleteBranchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserDeleteBranchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserDeleteTagRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserDeleteTagResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserCreateTagRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserCreateTagResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserMergeBranchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserMergeBranchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserMergeToRefRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserMergeToRefResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OperationBranchUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserFFBranchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserFFBranchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserCherryPickRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserCherryPickResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserRevertRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserRevertResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserCommitFilesActionHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserCommitFilesAction); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserCommitFilesRequestHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserCommitFilesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserCommitFilesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserRebaseConfirmableRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserRebaseConfirmableResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserSquashRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserSquashResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserApplyPatchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserApplyPatchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserUpdateSubmoduleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserUpdateSubmoduleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserRebaseConfirmableRequest_Header); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operations_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserApplyPatchRequest_Header); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_operations_proto_msgTypes[22].OneofWrappers = []interface{}{ + (*UserCommitFilesAction_Header)(nil), + (*UserCommitFilesAction_Content)(nil), } - return m, nil -} - -func _OperationService_UserUpdateSubmodule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserUpdateSubmoduleRequest) - if err := dec(in); err != nil { - return nil, err + file_operations_proto_msgTypes[24].OneofWrappers = []interface{}{ + (*UserCommitFilesRequest_Header)(nil), + (*UserCommitFilesRequest_Action)(nil), } - if interceptor == nil { - return srv.(OperationServiceServer).UserUpdateSubmodule(ctx, in) + file_operations_proto_msgTypes[26].OneofWrappers = []interface{}{ + (*UserRebaseConfirmableRequest_Header_)(nil), + (*UserRebaseConfirmableRequest_Apply)(nil), } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserUpdateSubmodule", + file_operations_proto_msgTypes[27].OneofWrappers = []interface{}{ + (*UserRebaseConfirmableResponse_RebaseSha)(nil), + (*UserRebaseConfirmableResponse_RebaseApplied)(nil), } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserUpdateSubmodule(ctx, req.(*UserUpdateSubmoduleRequest)) + file_operations_proto_msgTypes[30].OneofWrappers = []interface{}{ + (*UserApplyPatchRequest_Header_)(nil), + (*UserApplyPatchRequest_Patches)(nil), } - return interceptor(ctx, in, info, handler) -} - -var _OperationService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.OperationService", - HandlerType: (*OperationServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UserCreateBranch", - Handler: _OperationService_UserCreateBranch_Handler, - }, - { - MethodName: "UserUpdateBranch", - Handler: _OperationService_UserUpdateBranch_Handler, - }, - { - MethodName: "UserDeleteBranch", - Handler: _OperationService_UserDeleteBranch_Handler, - }, - { - MethodName: "UserCreateTag", - Handler: _OperationService_UserCreateTag_Handler, - }, - { - MethodName: "UserDeleteTag", - Handler: _OperationService_UserDeleteTag_Handler, - }, - { - MethodName: "UserMergeToRef", - Handler: _OperationService_UserMergeToRef_Handler, - }, - { - MethodName: "UserFFBranch", - Handler: _OperationService_UserFFBranch_Handler, - }, - { - MethodName: "UserCherryPick", - Handler: _OperationService_UserCherryPick_Handler, - }, - { - MethodName: "UserRevert", - Handler: _OperationService_UserRevert_Handler, - }, - { - MethodName: "UserSquash", - Handler: _OperationService_UserSquash_Handler, - }, - { - MethodName: "UserUpdateSubmodule", - Handler: _OperationService_UserUpdateSubmodule_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "UserMergeBranch", - Handler: _OperationService_UserMergeBranch_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "UserCommitFiles", - Handler: _OperationService_UserCommitFiles_Handler, - ClientStreams: true, - }, - { - StreamName: "UserRebaseConfirmable", - Handler: _OperationService_UserRebaseConfirmable_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "UserApplyPatch", - Handler: _OperationService_UserApplyPatch_Handler, - ClientStreams: true, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_operations_proto_rawDesc, + NumEnums: 3, + NumMessages: 36, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "operations.proto", + GoTypes: file_operations_proto_goTypes, + DependencyIndexes: file_operations_proto_depIdxs, + EnumInfos: file_operations_proto_enumTypes, + MessageInfos: file_operations_proto_msgTypes, + }.Build() + File_operations_proto = out.File + file_operations_proto_rawDesc = nil + file_operations_proto_goTypes = nil + file_operations_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/operations_grpc.pb.go b/proto/go/gitalypb/operations_grpc.pb.go new file mode 100644 index 000000000..4be478c25 --- /dev/null +++ b/proto/go/gitalypb/operations_grpc.pb.go @@ -0,0 +1,810 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// OperationServiceClient is the client API for OperationService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type OperationServiceClient interface { + UserCreateBranch(ctx context.Context, in *UserCreateBranchRequest, opts ...grpc.CallOption) (*UserCreateBranchResponse, error) + UserUpdateBranch(ctx context.Context, in *UserUpdateBranchRequest, opts ...grpc.CallOption) (*UserUpdateBranchResponse, error) + UserDeleteBranch(ctx context.Context, in *UserDeleteBranchRequest, opts ...grpc.CallOption) (*UserDeleteBranchResponse, error) + // UserCreateTag creates a new tag. + UserCreateTag(ctx context.Context, in *UserCreateTagRequest, opts ...grpc.CallOption) (*UserCreateTagResponse, error) + UserDeleteTag(ctx context.Context, in *UserDeleteTagRequest, opts ...grpc.CallOption) (*UserDeleteTagResponse, error) + // UserMergeRef creates a merge commit and updates target_ref to point to that + // new commit. The first parent of the merge commit (the main line) is taken + // from first_parent_ref. The second parent is specified by its commit ID in source_sha. + // If target_ref already exists it will be overwritten. + UserMergeToRef(ctx context.Context, in *UserMergeToRefRequest, opts ...grpc.CallOption) (*UserMergeToRefResponse, error) + // UserMergeBranch tries to merge the given commit into the target branch. + // The merge commit is created with the given user as author/committer and + // the given message. + // + // This RPC requires confirmation to make any user-visible changes to the + // repository. The first request sent shall contain details about the + // requested merge, which will result in a response with the created merge + // commit ID. Only if a second message with `apply = true` is sent will the + // merge be applied. + UserMergeBranch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserMergeBranchClient, error) + // UserFFBranch tries to perform a fast-forward merge of the given branch to + // the given commit. If the merge is not a fast-forward merge, the request + // will fail. The RPC will return an empty response in case updating the + // reference fails e.g. because of a race. + UserFFBranch(ctx context.Context, in *UserFFBranchRequest, opts ...grpc.CallOption) (*UserFFBranchResponse, error) + // UserCherryPick tries to perform a cherry-pick of a given commit onto a + // branch. + UserCherryPick(ctx context.Context, in *UserCherryPickRequest, opts ...grpc.CallOption) (*UserCherryPickResponse, error) + // UserCommitFiles builds a commit from a stream of actions and updates the target branch to point to it. + // UserCommitFilesRequest with a UserCommitFilesRequestHeader must be sent as the first message of the stream. + // Following that, a variable number of actions can be sent to build a new commit. Each action consists of + // a header followed by content if used by the action. + UserCommitFiles(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserCommitFilesClient, error) + // UserRebaseConfirmable rebases the given remote branch onto a target + // branch. The remote branch may be part of another repository. + // + // This RPC requires confirmation to make any user-visible changes to the + // repository. The first request sent shall contains details about the + // requested rebase, which will result in a response with the created rebase + // commit ID. Only if a second message with `apply = true` is sent will the + // rebase be applied. + UserRebaseConfirmable(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserRebaseConfirmableClient, error) + // UserRevert tries to perform a revert of a given commit onto a branch. + UserRevert(ctx context.Context, in *UserRevertRequest, opts ...grpc.CallOption) (*UserRevertResponse, error) + // UserSquash squashes a range of commits into a single commit. + UserSquash(ctx context.Context, in *UserSquashRequest, opts ...grpc.CallOption) (*UserSquashResponse, error) + // UserApplyPatch applies patches to a given branch. + UserApplyPatch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserApplyPatchClient, error) + // UserUpdateSubmodule updates a submodule to point to a new commit. + UserUpdateSubmodule(ctx context.Context, in *UserUpdateSubmoduleRequest, opts ...grpc.CallOption) (*UserUpdateSubmoduleResponse, error) +} + +type operationServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewOperationServiceClient(cc grpc.ClientConnInterface) OperationServiceClient { + return &operationServiceClient{cc} +} + +func (c *operationServiceClient) UserCreateBranch(ctx context.Context, in *UserCreateBranchRequest, opts ...grpc.CallOption) (*UserCreateBranchResponse, error) { + out := new(UserCreateBranchResponse) + err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserCreateBranch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserUpdateBranch(ctx context.Context, in *UserUpdateBranchRequest, opts ...grpc.CallOption) (*UserUpdateBranchResponse, error) { + out := new(UserUpdateBranchResponse) + err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserUpdateBranch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserDeleteBranch(ctx context.Context, in *UserDeleteBranchRequest, opts ...grpc.CallOption) (*UserDeleteBranchResponse, error) { + out := new(UserDeleteBranchResponse) + err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserDeleteBranch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserCreateTag(ctx context.Context, in *UserCreateTagRequest, opts ...grpc.CallOption) (*UserCreateTagResponse, error) { + out := new(UserCreateTagResponse) + err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserCreateTag", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserDeleteTag(ctx context.Context, in *UserDeleteTagRequest, opts ...grpc.CallOption) (*UserDeleteTagResponse, error) { + out := new(UserDeleteTagResponse) + err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserDeleteTag", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserMergeToRef(ctx context.Context, in *UserMergeToRefRequest, opts ...grpc.CallOption) (*UserMergeToRefResponse, error) { + out := new(UserMergeToRefResponse) + err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserMergeToRef", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserMergeBranch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserMergeBranchClient, error) { + stream, err := c.cc.NewStream(ctx, &OperationService_ServiceDesc.Streams[0], "/gitaly.OperationService/UserMergeBranch", opts...) + if err != nil { + return nil, err + } + x := &operationServiceUserMergeBranchClient{stream} + return x, nil +} + +type OperationService_UserMergeBranchClient interface { + Send(*UserMergeBranchRequest) error + Recv() (*UserMergeBranchResponse, error) + grpc.ClientStream +} + +type operationServiceUserMergeBranchClient struct { + grpc.ClientStream +} + +func (x *operationServiceUserMergeBranchClient) Send(m *UserMergeBranchRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *operationServiceUserMergeBranchClient) Recv() (*UserMergeBranchResponse, error) { + m := new(UserMergeBranchResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *operationServiceClient) UserFFBranch(ctx context.Context, in *UserFFBranchRequest, opts ...grpc.CallOption) (*UserFFBranchResponse, error) { + out := new(UserFFBranchResponse) + err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserFFBranch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserCherryPick(ctx context.Context, in *UserCherryPickRequest, opts ...grpc.CallOption) (*UserCherryPickResponse, error) { + out := new(UserCherryPickResponse) + err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserCherryPick", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserCommitFiles(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserCommitFilesClient, error) { + stream, err := c.cc.NewStream(ctx, &OperationService_ServiceDesc.Streams[1], "/gitaly.OperationService/UserCommitFiles", opts...) + if err != nil { + return nil, err + } + x := &operationServiceUserCommitFilesClient{stream} + return x, nil +} + +type OperationService_UserCommitFilesClient interface { + Send(*UserCommitFilesRequest) error + CloseAndRecv() (*UserCommitFilesResponse, error) + grpc.ClientStream +} + +type operationServiceUserCommitFilesClient struct { + grpc.ClientStream +} + +func (x *operationServiceUserCommitFilesClient) Send(m *UserCommitFilesRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *operationServiceUserCommitFilesClient) CloseAndRecv() (*UserCommitFilesResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(UserCommitFilesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *operationServiceClient) UserRebaseConfirmable(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserRebaseConfirmableClient, error) { + stream, err := c.cc.NewStream(ctx, &OperationService_ServiceDesc.Streams[2], "/gitaly.OperationService/UserRebaseConfirmable", opts...) + if err != nil { + return nil, err + } + x := &operationServiceUserRebaseConfirmableClient{stream} + return x, nil +} + +type OperationService_UserRebaseConfirmableClient interface { + Send(*UserRebaseConfirmableRequest) error + Recv() (*UserRebaseConfirmableResponse, error) + grpc.ClientStream +} + +type operationServiceUserRebaseConfirmableClient struct { + grpc.ClientStream +} + +func (x *operationServiceUserRebaseConfirmableClient) Send(m *UserRebaseConfirmableRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *operationServiceUserRebaseConfirmableClient) Recv() (*UserRebaseConfirmableResponse, error) { + m := new(UserRebaseConfirmableResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *operationServiceClient) UserRevert(ctx context.Context, in *UserRevertRequest, opts ...grpc.CallOption) (*UserRevertResponse, error) { + out := new(UserRevertResponse) + err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserRevert", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserSquash(ctx context.Context, in *UserSquashRequest, opts ...grpc.CallOption) (*UserSquashResponse, error) { + out := new(UserSquashResponse) + err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserSquash", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserApplyPatch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserApplyPatchClient, error) { + stream, err := c.cc.NewStream(ctx, &OperationService_ServiceDesc.Streams[3], "/gitaly.OperationService/UserApplyPatch", opts...) + if err != nil { + return nil, err + } + x := &operationServiceUserApplyPatchClient{stream} + return x, nil +} + +type OperationService_UserApplyPatchClient interface { + Send(*UserApplyPatchRequest) error + CloseAndRecv() (*UserApplyPatchResponse, error) + grpc.ClientStream +} + +type operationServiceUserApplyPatchClient struct { + grpc.ClientStream +} + +func (x *operationServiceUserApplyPatchClient) Send(m *UserApplyPatchRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *operationServiceUserApplyPatchClient) CloseAndRecv() (*UserApplyPatchResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(UserApplyPatchResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *operationServiceClient) UserUpdateSubmodule(ctx context.Context, in *UserUpdateSubmoduleRequest, opts ...grpc.CallOption) (*UserUpdateSubmoduleResponse, error) { + out := new(UserUpdateSubmoduleResponse) + err := c.cc.Invoke(ctx, "/gitaly.OperationService/UserUpdateSubmodule", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// OperationServiceServer is the server API for OperationService service. +// All implementations must embed UnimplementedOperationServiceServer +// for forward compatibility +type OperationServiceServer interface { + UserCreateBranch(context.Context, *UserCreateBranchRequest) (*UserCreateBranchResponse, error) + UserUpdateBranch(context.Context, *UserUpdateBranchRequest) (*UserUpdateBranchResponse, error) + UserDeleteBranch(context.Context, *UserDeleteBranchRequest) (*UserDeleteBranchResponse, error) + // UserCreateTag creates a new tag. + UserCreateTag(context.Context, *UserCreateTagRequest) (*UserCreateTagResponse, error) + UserDeleteTag(context.Context, *UserDeleteTagRequest) (*UserDeleteTagResponse, error) + // UserMergeRef creates a merge commit and updates target_ref to point to that + // new commit. The first parent of the merge commit (the main line) is taken + // from first_parent_ref. The second parent is specified by its commit ID in source_sha. + // If target_ref already exists it will be overwritten. + UserMergeToRef(context.Context, *UserMergeToRefRequest) (*UserMergeToRefResponse, error) + // UserMergeBranch tries to merge the given commit into the target branch. + // The merge commit is created with the given user as author/committer and + // the given message. + // + // This RPC requires confirmation to make any user-visible changes to the + // repository. The first request sent shall contain details about the + // requested merge, which will result in a response with the created merge + // commit ID. Only if a second message with `apply = true` is sent will the + // merge be applied. + UserMergeBranch(OperationService_UserMergeBranchServer) error + // UserFFBranch tries to perform a fast-forward merge of the given branch to + // the given commit. If the merge is not a fast-forward merge, the request + // will fail. The RPC will return an empty response in case updating the + // reference fails e.g. because of a race. + UserFFBranch(context.Context, *UserFFBranchRequest) (*UserFFBranchResponse, error) + // UserCherryPick tries to perform a cherry-pick of a given commit onto a + // branch. + UserCherryPick(context.Context, *UserCherryPickRequest) (*UserCherryPickResponse, error) + // UserCommitFiles builds a commit from a stream of actions and updates the target branch to point to it. + // UserCommitFilesRequest with a UserCommitFilesRequestHeader must be sent as the first message of the stream. + // Following that, a variable number of actions can be sent to build a new commit. Each action consists of + // a header followed by content if used by the action. + UserCommitFiles(OperationService_UserCommitFilesServer) error + // UserRebaseConfirmable rebases the given remote branch onto a target + // branch. The remote branch may be part of another repository. + // + // This RPC requires confirmation to make any user-visible changes to the + // repository. The first request sent shall contains details about the + // requested rebase, which will result in a response with the created rebase + // commit ID. Only if a second message with `apply = true` is sent will the + // rebase be applied. + UserRebaseConfirmable(OperationService_UserRebaseConfirmableServer) error + // UserRevert tries to perform a revert of a given commit onto a branch. + UserRevert(context.Context, *UserRevertRequest) (*UserRevertResponse, error) + // UserSquash squashes a range of commits into a single commit. + UserSquash(context.Context, *UserSquashRequest) (*UserSquashResponse, error) + // UserApplyPatch applies patches to a given branch. + UserApplyPatch(OperationService_UserApplyPatchServer) error + // UserUpdateSubmodule updates a submodule to point to a new commit. + UserUpdateSubmodule(context.Context, *UserUpdateSubmoduleRequest) (*UserUpdateSubmoduleResponse, error) + mustEmbedUnimplementedOperationServiceServer() +} + +// UnimplementedOperationServiceServer must be embedded to have forward compatible implementations. +type UnimplementedOperationServiceServer struct { +} + +func (UnimplementedOperationServiceServer) UserCreateBranch(context.Context, *UserCreateBranchRequest) (*UserCreateBranchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserCreateBranch not implemented") +} +func (UnimplementedOperationServiceServer) UserUpdateBranch(context.Context, *UserUpdateBranchRequest) (*UserUpdateBranchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserUpdateBranch not implemented") +} +func (UnimplementedOperationServiceServer) UserDeleteBranch(context.Context, *UserDeleteBranchRequest) (*UserDeleteBranchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserDeleteBranch not implemented") +} +func (UnimplementedOperationServiceServer) UserCreateTag(context.Context, *UserCreateTagRequest) (*UserCreateTagResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserCreateTag not implemented") +} +func (UnimplementedOperationServiceServer) UserDeleteTag(context.Context, *UserDeleteTagRequest) (*UserDeleteTagResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserDeleteTag not implemented") +} +func (UnimplementedOperationServiceServer) UserMergeToRef(context.Context, *UserMergeToRefRequest) (*UserMergeToRefResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserMergeToRef not implemented") +} +func (UnimplementedOperationServiceServer) UserMergeBranch(OperationService_UserMergeBranchServer) error { + return status.Errorf(codes.Unimplemented, "method UserMergeBranch not implemented") +} +func (UnimplementedOperationServiceServer) UserFFBranch(context.Context, *UserFFBranchRequest) (*UserFFBranchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserFFBranch not implemented") +} +func (UnimplementedOperationServiceServer) UserCherryPick(context.Context, *UserCherryPickRequest) (*UserCherryPickResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserCherryPick not implemented") +} +func (UnimplementedOperationServiceServer) UserCommitFiles(OperationService_UserCommitFilesServer) error { + return status.Errorf(codes.Unimplemented, "method UserCommitFiles not implemented") +} +func (UnimplementedOperationServiceServer) UserRebaseConfirmable(OperationService_UserRebaseConfirmableServer) error { + return status.Errorf(codes.Unimplemented, "method UserRebaseConfirmable not implemented") +} +func (UnimplementedOperationServiceServer) UserRevert(context.Context, *UserRevertRequest) (*UserRevertResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserRevert not implemented") +} +func (UnimplementedOperationServiceServer) UserSquash(context.Context, *UserSquashRequest) (*UserSquashResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserSquash not implemented") +} +func (UnimplementedOperationServiceServer) UserApplyPatch(OperationService_UserApplyPatchServer) error { + return status.Errorf(codes.Unimplemented, "method UserApplyPatch not implemented") +} +func (UnimplementedOperationServiceServer) UserUpdateSubmodule(context.Context, *UserUpdateSubmoduleRequest) (*UserUpdateSubmoduleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserUpdateSubmodule not implemented") +} +func (UnimplementedOperationServiceServer) mustEmbedUnimplementedOperationServiceServer() {} + +// UnsafeOperationServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to OperationServiceServer will +// result in compilation errors. +type UnsafeOperationServiceServer interface { + mustEmbedUnimplementedOperationServiceServer() +} + +func RegisterOperationServiceServer(s grpc.ServiceRegistrar, srv OperationServiceServer) { + s.RegisterService(&OperationService_ServiceDesc, srv) +} + +func _OperationService_UserCreateBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserCreateBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserCreateBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserCreateBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserCreateBranch(ctx, req.(*UserCreateBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserUpdateBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserUpdateBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserUpdateBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserUpdateBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserUpdateBranch(ctx, req.(*UserUpdateBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserDeleteBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserDeleteBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserDeleteBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserDeleteBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserDeleteBranch(ctx, req.(*UserDeleteBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserCreateTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserCreateTagRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserCreateTag(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserCreateTag", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserCreateTag(ctx, req.(*UserCreateTagRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserDeleteTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserDeleteTagRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserDeleteTag(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserDeleteTag", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserDeleteTag(ctx, req.(*UserDeleteTagRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserMergeToRef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserMergeToRefRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserMergeToRef(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserMergeToRef", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserMergeToRef(ctx, req.(*UserMergeToRefRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserMergeBranch_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(OperationServiceServer).UserMergeBranch(&operationServiceUserMergeBranchServer{stream}) +} + +type OperationService_UserMergeBranchServer interface { + Send(*UserMergeBranchResponse) error + Recv() (*UserMergeBranchRequest, error) + grpc.ServerStream +} + +type operationServiceUserMergeBranchServer struct { + grpc.ServerStream +} + +func (x *operationServiceUserMergeBranchServer) Send(m *UserMergeBranchResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *operationServiceUserMergeBranchServer) Recv() (*UserMergeBranchRequest, error) { + m := new(UserMergeBranchRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _OperationService_UserFFBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserFFBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserFFBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserFFBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserFFBranch(ctx, req.(*UserFFBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserCherryPick_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserCherryPickRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserCherryPick(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserCherryPick", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserCherryPick(ctx, req.(*UserCherryPickRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserCommitFiles_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(OperationServiceServer).UserCommitFiles(&operationServiceUserCommitFilesServer{stream}) +} + +type OperationService_UserCommitFilesServer interface { + SendAndClose(*UserCommitFilesResponse) error + Recv() (*UserCommitFilesRequest, error) + grpc.ServerStream +} + +type operationServiceUserCommitFilesServer struct { + grpc.ServerStream +} + +func (x *operationServiceUserCommitFilesServer) SendAndClose(m *UserCommitFilesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *operationServiceUserCommitFilesServer) Recv() (*UserCommitFilesRequest, error) { + m := new(UserCommitFilesRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _OperationService_UserRebaseConfirmable_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(OperationServiceServer).UserRebaseConfirmable(&operationServiceUserRebaseConfirmableServer{stream}) +} + +type OperationService_UserRebaseConfirmableServer interface { + Send(*UserRebaseConfirmableResponse) error + Recv() (*UserRebaseConfirmableRequest, error) + grpc.ServerStream +} + +type operationServiceUserRebaseConfirmableServer struct { + grpc.ServerStream +} + +func (x *operationServiceUserRebaseConfirmableServer) Send(m *UserRebaseConfirmableResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *operationServiceUserRebaseConfirmableServer) Recv() (*UserRebaseConfirmableRequest, error) { + m := new(UserRebaseConfirmableRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _OperationService_UserRevert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserRevertRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserRevert(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserRevert", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserRevert(ctx, req.(*UserRevertRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserSquash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserSquashRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserSquash(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserSquash", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserSquash(ctx, req.(*UserSquashRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserApplyPatch_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(OperationServiceServer).UserApplyPatch(&operationServiceUserApplyPatchServer{stream}) +} + +type OperationService_UserApplyPatchServer interface { + SendAndClose(*UserApplyPatchResponse) error + Recv() (*UserApplyPatchRequest, error) + grpc.ServerStream +} + +type operationServiceUserApplyPatchServer struct { + grpc.ServerStream +} + +func (x *operationServiceUserApplyPatchServer) SendAndClose(m *UserApplyPatchResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *operationServiceUserApplyPatchServer) Recv() (*UserApplyPatchRequest, error) { + m := new(UserApplyPatchRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _OperationService_UserUpdateSubmodule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserUpdateSubmoduleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserUpdateSubmodule(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserUpdateSubmodule", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserUpdateSubmodule(ctx, req.(*UserUpdateSubmoduleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// OperationService_ServiceDesc is the grpc.ServiceDesc for OperationService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var OperationService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.OperationService", + HandlerType: (*OperationServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UserCreateBranch", + Handler: _OperationService_UserCreateBranch_Handler, + }, + { + MethodName: "UserUpdateBranch", + Handler: _OperationService_UserUpdateBranch_Handler, + }, + { + MethodName: "UserDeleteBranch", + Handler: _OperationService_UserDeleteBranch_Handler, + }, + { + MethodName: "UserCreateTag", + Handler: _OperationService_UserCreateTag_Handler, + }, + { + MethodName: "UserDeleteTag", + Handler: _OperationService_UserDeleteTag_Handler, + }, + { + MethodName: "UserMergeToRef", + Handler: _OperationService_UserMergeToRef_Handler, + }, + { + MethodName: "UserFFBranch", + Handler: _OperationService_UserFFBranch_Handler, + }, + { + MethodName: "UserCherryPick", + Handler: _OperationService_UserCherryPick_Handler, + }, + { + MethodName: "UserRevert", + Handler: _OperationService_UserRevert_Handler, + }, + { + MethodName: "UserSquash", + Handler: _OperationService_UserSquash_Handler, + }, + { + MethodName: "UserUpdateSubmodule", + Handler: _OperationService_UserUpdateSubmodule_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "UserMergeBranch", + Handler: _OperationService_UserMergeBranch_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "UserCommitFiles", + Handler: _OperationService_UserCommitFiles_Handler, + ClientStreams: true, + }, + { + StreamName: "UserRebaseConfirmable", + Handler: _OperationService_UserRebaseConfirmable_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "UserApplyPatch", + Handler: _OperationService_UserApplyPatch_Handler, + ClientStreams: true, + }, + }, + Metadata: "operations.proto", +} diff --git a/proto/go/gitalypb/praefect.pb.go b/proto/go/gitalypb/praefect.pb.go index d2dcfdceb..b1ee17d2a 100644 --- a/proto/go/gitalypb/praefect.pb.go +++ b/proto/go/gitalypb/praefect.pb.go @@ -1,571 +1,456 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: praefect.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // SetReplicationFactorRequest sets the desired replication factor for a repository. type SetReplicationFactorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // virtual_storage is the virtual storage the repository is located in VirtualStorage string `protobuf:"bytes,1,opt,name=virtual_storage,json=virtualStorage,proto3" json:"virtual_storage,omitempty"` // relative_path is the relative path of the repository RelativePath string `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` // replication_factor is the desired replication factor. Replication must be equal or greater than 1. - ReplicationFactor int32 `protobuf:"varint,3,opt,name=replication_factor,json=replicationFactor,proto3" json:"replication_factor,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ReplicationFactor int32 `protobuf:"varint,3,opt,name=replication_factor,json=replicationFactor,proto3" json:"replication_factor,omitempty"` } -func (m *SetReplicationFactorRequest) Reset() { *m = SetReplicationFactorRequest{} } -func (m *SetReplicationFactorRequest) String() string { return proto.CompactTextString(m) } -func (*SetReplicationFactorRequest) ProtoMessage() {} -func (*SetReplicationFactorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d32bf44842ead735, []int{0} +func (x *SetReplicationFactorRequest) Reset() { + *x = SetReplicationFactorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetReplicationFactorRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetReplicationFactorRequest.Unmarshal(m, b) -} -func (m *SetReplicationFactorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetReplicationFactorRequest.Marshal(b, m, deterministic) -} -func (m *SetReplicationFactorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetReplicationFactorRequest.Merge(m, src) -} -func (m *SetReplicationFactorRequest) XXX_Size() int { - return xxx_messageInfo_SetReplicationFactorRequest.Size(m) +func (x *SetReplicationFactorRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SetReplicationFactorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetReplicationFactorRequest.DiscardUnknown(m) + +func (*SetReplicationFactorRequest) ProtoMessage() {} + +func (x *SetReplicationFactorRequest) ProtoReflect() protoreflect.Message { + mi := &file_praefect_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SetReplicationFactorRequest proto.InternalMessageInfo +// Deprecated: Use SetReplicationFactorRequest.ProtoReflect.Descriptor instead. +func (*SetReplicationFactorRequest) Descriptor() ([]byte, []int) { + return file_praefect_proto_rawDescGZIP(), []int{0} +} -func (m *SetReplicationFactorRequest) GetVirtualStorage() string { - if m != nil { - return m.VirtualStorage +func (x *SetReplicationFactorRequest) GetVirtualStorage() string { + if x != nil { + return x.VirtualStorage } return "" } -func (m *SetReplicationFactorRequest) GetRelativePath() string { - if m != nil { - return m.RelativePath +func (x *SetReplicationFactorRequest) GetRelativePath() string { + if x != nil { + return x.RelativePath } return "" } -func (m *SetReplicationFactorRequest) GetReplicationFactor() int32 { - if m != nil { - return m.ReplicationFactor +func (x *SetReplicationFactorRequest) GetReplicationFactor() int32 { + if x != nil { + return x.ReplicationFactor } return 0 } // SetReplicationFactorResponse returns the assigned hosts after setting the desired replication factor. type SetReplicationFactorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // storages are the storages assigned to host the repository. - Storages []string `protobuf:"bytes,1,rep,name=storages,proto3" json:"storages,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Storages []string `protobuf:"bytes,1,rep,name=storages,proto3" json:"storages,omitempty"` } -func (m *SetReplicationFactorResponse) Reset() { *m = SetReplicationFactorResponse{} } -func (m *SetReplicationFactorResponse) String() string { return proto.CompactTextString(m) } -func (*SetReplicationFactorResponse) ProtoMessage() {} -func (*SetReplicationFactorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d32bf44842ead735, []int{1} +func (x *SetReplicationFactorResponse) Reset() { + *x = SetReplicationFactorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetReplicationFactorResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetReplicationFactorResponse.Unmarshal(m, b) +func (x *SetReplicationFactorResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SetReplicationFactorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetReplicationFactorResponse.Marshal(b, m, deterministic) -} -func (m *SetReplicationFactorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetReplicationFactorResponse.Merge(m, src) -} -func (m *SetReplicationFactorResponse) XXX_Size() int { - return xxx_messageInfo_SetReplicationFactorResponse.Size(m) -} -func (m *SetReplicationFactorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SetReplicationFactorResponse.DiscardUnknown(m) + +func (*SetReplicationFactorResponse) ProtoMessage() {} + +func (x *SetReplicationFactorResponse) ProtoReflect() protoreflect.Message { + mi := &file_praefect_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SetReplicationFactorResponse proto.InternalMessageInfo +// Deprecated: Use SetReplicationFactorResponse.ProtoReflect.Descriptor instead. +func (*SetReplicationFactorResponse) Descriptor() ([]byte, []int) { + return file_praefect_proto_rawDescGZIP(), []int{1} +} -func (m *SetReplicationFactorResponse) GetStorages() []string { - if m != nil { - return m.Storages +func (x *SetReplicationFactorResponse) GetStorages() []string { + if x != nil { + return x.Storages } return nil } type SetAuthoritativeStorageRequest struct { - VirtualStorage string `protobuf:"bytes,1,opt,name=virtual_storage,json=virtualStorage,proto3" json:"virtual_storage,omitempty"` - RelativePath string `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` - AuthoritativeStorage string `protobuf:"bytes,3,opt,name=authoritative_storage,json=authoritativeStorage,proto3" json:"authoritative_storage,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SetAuthoritativeStorageRequest) Reset() { *m = SetAuthoritativeStorageRequest{} } -func (m *SetAuthoritativeStorageRequest) String() string { return proto.CompactTextString(m) } -func (*SetAuthoritativeStorageRequest) ProtoMessage() {} -func (*SetAuthoritativeStorageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d32bf44842ead735, []int{2} + VirtualStorage string `protobuf:"bytes,1,opt,name=virtual_storage,json=virtualStorage,proto3" json:"virtual_storage,omitempty"` + RelativePath string `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` + AuthoritativeStorage string `protobuf:"bytes,3,opt,name=authoritative_storage,json=authoritativeStorage,proto3" json:"authoritative_storage,omitempty"` } -func (m *SetAuthoritativeStorageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetAuthoritativeStorageRequest.Unmarshal(m, b) -} -func (m *SetAuthoritativeStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetAuthoritativeStorageRequest.Marshal(b, m, deterministic) -} -func (m *SetAuthoritativeStorageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetAuthoritativeStorageRequest.Merge(m, src) +func (x *SetAuthoritativeStorageRequest) Reset() { + *x = SetAuthoritativeStorageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetAuthoritativeStorageRequest) XXX_Size() int { - return xxx_messageInfo_SetAuthoritativeStorageRequest.Size(m) + +func (x *SetAuthoritativeStorageRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SetAuthoritativeStorageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetAuthoritativeStorageRequest.DiscardUnknown(m) + +func (*SetAuthoritativeStorageRequest) ProtoMessage() {} + +func (x *SetAuthoritativeStorageRequest) ProtoReflect() protoreflect.Message { + mi := &file_praefect_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SetAuthoritativeStorageRequest proto.InternalMessageInfo +// Deprecated: Use SetAuthoritativeStorageRequest.ProtoReflect.Descriptor instead. +func (*SetAuthoritativeStorageRequest) Descriptor() ([]byte, []int) { + return file_praefect_proto_rawDescGZIP(), []int{2} +} -func (m *SetAuthoritativeStorageRequest) GetVirtualStorage() string { - if m != nil { - return m.VirtualStorage +func (x *SetAuthoritativeStorageRequest) GetVirtualStorage() string { + if x != nil { + return x.VirtualStorage } return "" } -func (m *SetAuthoritativeStorageRequest) GetRelativePath() string { - if m != nil { - return m.RelativePath +func (x *SetAuthoritativeStorageRequest) GetRelativePath() string { + if x != nil { + return x.RelativePath } return "" } -func (m *SetAuthoritativeStorageRequest) GetAuthoritativeStorage() string { - if m != nil { - return m.AuthoritativeStorage +func (x *SetAuthoritativeStorageRequest) GetAuthoritativeStorage() string { + if x != nil { + return x.AuthoritativeStorage } return "" } type SetAuthoritativeStorageResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *SetAuthoritativeStorageResponse) Reset() { *m = SetAuthoritativeStorageResponse{} } -func (m *SetAuthoritativeStorageResponse) String() string { return proto.CompactTextString(m) } -func (*SetAuthoritativeStorageResponse) ProtoMessage() {} -func (*SetAuthoritativeStorageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d32bf44842ead735, []int{3} +func (x *SetAuthoritativeStorageResponse) Reset() { + *x = SetAuthoritativeStorageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetAuthoritativeStorageResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetAuthoritativeStorageResponse.Unmarshal(m, b) -} -func (m *SetAuthoritativeStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetAuthoritativeStorageResponse.Marshal(b, m, deterministic) -} -func (m *SetAuthoritativeStorageResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetAuthoritativeStorageResponse.Merge(m, src) +func (x *SetAuthoritativeStorageResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SetAuthoritativeStorageResponse) XXX_Size() int { - return xxx_messageInfo_SetAuthoritativeStorageResponse.Size(m) -} -func (m *SetAuthoritativeStorageResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SetAuthoritativeStorageResponse.DiscardUnknown(m) + +func (*SetAuthoritativeStorageResponse) ProtoMessage() {} + +func (x *SetAuthoritativeStorageResponse) ProtoReflect() protoreflect.Message { + mi := &file_praefect_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SetAuthoritativeStorageResponse proto.InternalMessageInfo +// Deprecated: Use SetAuthoritativeStorageResponse.ProtoReflect.Descriptor instead. +func (*SetAuthoritativeStorageResponse) Descriptor() ([]byte, []int) { + return file_praefect_proto_rawDescGZIP(), []int{3} +} type DatalossCheckRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + VirtualStorage string `protobuf:"bytes,1,opt,name=virtual_storage,json=virtualStorage,proto3" json:"virtual_storage,omitempty"` // include_partially_replicated decides whether to include repositories which are fully up to date // on the primary but are outdated on some secondaries. Such repositories are still writable and do // not suffer from data loss. The data on the primary is not fully replicated which increases the // chances of data loss following a failover. - IncludePartiallyReplicated bool `protobuf:"varint,2,opt,name=include_partially_replicated,json=includePartiallyReplicated,proto3" json:"include_partially_replicated,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + IncludePartiallyReplicated bool `protobuf:"varint,2,opt,name=include_partially_replicated,json=includePartiallyReplicated,proto3" json:"include_partially_replicated,omitempty"` } -func (m *DatalossCheckRequest) Reset() { *m = DatalossCheckRequest{} } -func (m *DatalossCheckRequest) String() string { return proto.CompactTextString(m) } -func (*DatalossCheckRequest) ProtoMessage() {} -func (*DatalossCheckRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d32bf44842ead735, []int{4} +func (x *DatalossCheckRequest) Reset() { + *x = DatalossCheckRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DatalossCheckRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DatalossCheckRequest.Unmarshal(m, b) -} -func (m *DatalossCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DatalossCheckRequest.Marshal(b, m, deterministic) -} -func (m *DatalossCheckRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DatalossCheckRequest.Merge(m, src) -} -func (m *DatalossCheckRequest) XXX_Size() int { - return xxx_messageInfo_DatalossCheckRequest.Size(m) +func (x *DatalossCheckRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DatalossCheckRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DatalossCheckRequest.DiscardUnknown(m) + +func (*DatalossCheckRequest) ProtoMessage() {} + +func (x *DatalossCheckRequest) ProtoReflect() protoreflect.Message { + mi := &file_praefect_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DatalossCheckRequest proto.InternalMessageInfo +// Deprecated: Use DatalossCheckRequest.ProtoReflect.Descriptor instead. +func (*DatalossCheckRequest) Descriptor() ([]byte, []int) { + return file_praefect_proto_rawDescGZIP(), []int{4} +} -func (m *DatalossCheckRequest) GetVirtualStorage() string { - if m != nil { - return m.VirtualStorage +func (x *DatalossCheckRequest) GetVirtualStorage() string { + if x != nil { + return x.VirtualStorage } return "" } -func (m *DatalossCheckRequest) GetIncludePartiallyReplicated() bool { - if m != nil { - return m.IncludePartiallyReplicated +func (x *DatalossCheckRequest) GetIncludePartiallyReplicated() bool { + if x != nil { + return x.IncludePartiallyReplicated } return false } type DatalossCheckResponse struct { - // repositories with data loss - Repositories []*DatalossCheckResponse_Repository `protobuf:"bytes,2,rep,name=repositories,proto3" json:"repositories,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DatalossCheckResponse) Reset() { *m = DatalossCheckResponse{} } -func (m *DatalossCheckResponse) String() string { return proto.CompactTextString(m) } -func (*DatalossCheckResponse) ProtoMessage() {} -func (*DatalossCheckResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d32bf44842ead735, []int{5} -} - -func (m *DatalossCheckResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DatalossCheckResponse.Unmarshal(m, b) -} -func (m *DatalossCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DatalossCheckResponse.Marshal(b, m, deterministic) -} -func (m *DatalossCheckResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DatalossCheckResponse.Merge(m, src) -} -func (m *DatalossCheckResponse) XXX_Size() int { - return xxx_messageInfo_DatalossCheckResponse.Size(m) -} -func (m *DatalossCheckResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DatalossCheckResponse.DiscardUnknown(m) + // repositories with data loss + Repositories []*DatalossCheckResponse_Repository `protobuf:"bytes,2,rep,name=repositories,proto3" json:"repositories,omitempty"` } -var xxx_messageInfo_DatalossCheckResponse proto.InternalMessageInfo - -func (m *DatalossCheckResponse) GetRepositories() []*DatalossCheckResponse_Repository { - if m != nil { - return m.Repositories +func (x *DatalossCheckResponse) Reset() { + *x = DatalossCheckResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type DatalossCheckResponse_Repository struct { - // relative path of the repository with outdated replicas - RelativePath string `protobuf:"bytes,1,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` - // storages on which the repository is outdated - Storages []*DatalossCheckResponse_Repository_Storage `protobuf:"bytes,2,rep,name=storages,proto3" json:"storages,omitempty"` - // read_only indicates whether the repository is in read-only mode. - ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` - // current primary storage of the repository - Primary string `protobuf:"bytes,4,opt,name=primary,proto3" json:"primary,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DatalossCheckResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DatalossCheckResponse_Repository) Reset() { *m = DatalossCheckResponse_Repository{} } -func (m *DatalossCheckResponse_Repository) String() string { return proto.CompactTextString(m) } -func (*DatalossCheckResponse_Repository) ProtoMessage() {} -func (*DatalossCheckResponse_Repository) Descriptor() ([]byte, []int) { - return fileDescriptor_d32bf44842ead735, []int{5, 0} -} +func (*DatalossCheckResponse) ProtoMessage() {} -func (m *DatalossCheckResponse_Repository) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DatalossCheckResponse_Repository.Unmarshal(m, b) -} -func (m *DatalossCheckResponse_Repository) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DatalossCheckResponse_Repository.Marshal(b, m, deterministic) -} -func (m *DatalossCheckResponse_Repository) XXX_Merge(src proto.Message) { - xxx_messageInfo_DatalossCheckResponse_Repository.Merge(m, src) -} -func (m *DatalossCheckResponse_Repository) XXX_Size() int { - return xxx_messageInfo_DatalossCheckResponse_Repository.Size(m) -} -func (m *DatalossCheckResponse_Repository) XXX_DiscardUnknown() { - xxx_messageInfo_DatalossCheckResponse_Repository.DiscardUnknown(m) -} - -var xxx_messageInfo_DatalossCheckResponse_Repository proto.InternalMessageInfo - -func (m *DatalossCheckResponse_Repository) GetRelativePath() string { - if m != nil { - return m.RelativePath +func (x *DatalossCheckResponse) ProtoReflect() protoreflect.Message { + mi := &file_praefect_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *DatalossCheckResponse_Repository) GetStorages() []*DatalossCheckResponse_Repository_Storage { - if m != nil { - return m.Storages - } - return nil -} - -func (m *DatalossCheckResponse_Repository) GetReadOnly() bool { - if m != nil { - return m.ReadOnly - } - return false +// Deprecated: Use DatalossCheckResponse.ProtoReflect.Descriptor instead. +func (*DatalossCheckResponse) Descriptor() ([]byte, []int) { + return file_praefect_proto_rawDescGZIP(), []int{5} } -func (m *DatalossCheckResponse_Repository) GetPrimary() string { - if m != nil { - return m.Primary +func (x *DatalossCheckResponse) GetRepositories() []*DatalossCheckResponse_Repository { + if x != nil { + return x.Repositories } - return "" -} - -type DatalossCheckResponse_Repository_Storage struct { - // name of the storage - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // behind_by indicates how many generations this storage is behind. - BehindBy int64 `protobuf:"varint,2,opt,name=behind_by,json=behindBy,proto3" json:"behind_by,omitempty"` - // assigned indicates whether the storage is assigned to host the repository. - Assigned bool `protobuf:"varint,3,opt,name=assigned,proto3" json:"assigned,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return nil } -func (m *DatalossCheckResponse_Repository_Storage) Reset() { - *m = DatalossCheckResponse_Repository_Storage{} -} -func (m *DatalossCheckResponse_Repository_Storage) String() string { return proto.CompactTextString(m) } -func (*DatalossCheckResponse_Repository_Storage) ProtoMessage() {} -func (*DatalossCheckResponse_Repository_Storage) Descriptor() ([]byte, []int) { - return fileDescriptor_d32bf44842ead735, []int{5, 0, 0} -} +type RepositoryReplicasRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DatalossCheckResponse_Repository_Storage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DatalossCheckResponse_Repository_Storage.Unmarshal(m, b) -} -func (m *DatalossCheckResponse_Repository_Storage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DatalossCheckResponse_Repository_Storage.Marshal(b, m, deterministic) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *DatalossCheckResponse_Repository_Storage) XXX_Merge(src proto.Message) { - xxx_messageInfo_DatalossCheckResponse_Repository_Storage.Merge(m, src) -} -func (m *DatalossCheckResponse_Repository_Storage) XXX_Size() int { - return xxx_messageInfo_DatalossCheckResponse_Repository_Storage.Size(m) -} -func (m *DatalossCheckResponse_Repository_Storage) XXX_DiscardUnknown() { - xxx_messageInfo_DatalossCheckResponse_Repository_Storage.DiscardUnknown(m) -} - -var xxx_messageInfo_DatalossCheckResponse_Repository_Storage proto.InternalMessageInfo -func (m *DatalossCheckResponse_Repository_Storage) GetName() string { - if m != nil { - return m.Name +func (x *RepositoryReplicasRequest) Reset() { + *x = RepositoryReplicasRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *DatalossCheckResponse_Repository_Storage) GetBehindBy() int64 { - if m != nil { - return m.BehindBy - } - return 0 +func (x *RepositoryReplicasRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DatalossCheckResponse_Repository_Storage) GetAssigned() bool { - if m != nil { - return m.Assigned - } - return false -} +func (*RepositoryReplicasRequest) ProtoMessage() {} -type RepositoryReplicasRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *RepositoryReplicasRequest) ProtoReflect() protoreflect.Message { + mi := &file_praefect_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *RepositoryReplicasRequest) Reset() { *m = RepositoryReplicasRequest{} } -func (m *RepositoryReplicasRequest) String() string { return proto.CompactTextString(m) } -func (*RepositoryReplicasRequest) ProtoMessage() {} +// Deprecated: Use RepositoryReplicasRequest.ProtoReflect.Descriptor instead. func (*RepositoryReplicasRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d32bf44842ead735, []int{6} -} - -func (m *RepositoryReplicasRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RepositoryReplicasRequest.Unmarshal(m, b) -} -func (m *RepositoryReplicasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RepositoryReplicasRequest.Marshal(b, m, deterministic) + return file_praefect_proto_rawDescGZIP(), []int{6} } -func (m *RepositoryReplicasRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepositoryReplicasRequest.Merge(m, src) -} -func (m *RepositoryReplicasRequest) XXX_Size() int { - return xxx_messageInfo_RepositoryReplicasRequest.Size(m) -} -func (m *RepositoryReplicasRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RepositoryReplicasRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RepositoryReplicasRequest proto.InternalMessageInfo -func (m *RepositoryReplicasRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *RepositoryReplicasRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type RepositoryReplicasResponse struct { - Primary *RepositoryReplicasResponse_RepositoryDetails `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"` - Replicas []*RepositoryReplicasResponse_RepositoryDetails `protobuf:"bytes,2,rep,name=replicas,proto3" json:"replicas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RepositoryReplicasResponse) Reset() { *m = RepositoryReplicasResponse{} } -func (m *RepositoryReplicasResponse) String() string { return proto.CompactTextString(m) } -func (*RepositoryReplicasResponse) ProtoMessage() {} -func (*RepositoryReplicasResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d32bf44842ead735, []int{7} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RepositoryReplicasResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RepositoryReplicasResponse.Unmarshal(m, b) -} -func (m *RepositoryReplicasResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RepositoryReplicasResponse.Marshal(b, m, deterministic) -} -func (m *RepositoryReplicasResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepositoryReplicasResponse.Merge(m, src) -} -func (m *RepositoryReplicasResponse) XXX_Size() int { - return xxx_messageInfo_RepositoryReplicasResponse.Size(m) -} -func (m *RepositoryReplicasResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RepositoryReplicasResponse.DiscardUnknown(m) + Primary *RepositoryReplicasResponse_RepositoryDetails `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"` + Replicas []*RepositoryReplicasResponse_RepositoryDetails `protobuf:"bytes,2,rep,name=replicas,proto3" json:"replicas,omitempty"` } -var xxx_messageInfo_RepositoryReplicasResponse proto.InternalMessageInfo - -func (m *RepositoryReplicasResponse) GetPrimary() *RepositoryReplicasResponse_RepositoryDetails { - if m != nil { - return m.Primary +func (x *RepositoryReplicasResponse) Reset() { + *x = RepositoryReplicasResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *RepositoryReplicasResponse) GetReplicas() []*RepositoryReplicasResponse_RepositoryDetails { - if m != nil { - return m.Replicas - } - return nil +func (x *RepositoryReplicasResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type RepositoryReplicasResponse_RepositoryDetails struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Checksum string `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*RepositoryReplicasResponse) ProtoMessage() {} -func (m *RepositoryReplicasResponse_RepositoryDetails) Reset() { - *m = RepositoryReplicasResponse_RepositoryDetails{} -} -func (m *RepositoryReplicasResponse_RepositoryDetails) String() string { - return proto.CompactTextString(m) -} -func (*RepositoryReplicasResponse_RepositoryDetails) ProtoMessage() {} -func (*RepositoryReplicasResponse_RepositoryDetails) Descriptor() ([]byte, []int) { - return fileDescriptor_d32bf44842ead735, []int{7, 0} +func (x *RepositoryReplicasResponse) ProtoReflect() protoreflect.Message { + mi := &file_praefect_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *RepositoryReplicasResponse_RepositoryDetails) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RepositoryReplicasResponse_RepositoryDetails.Unmarshal(m, b) -} -func (m *RepositoryReplicasResponse_RepositoryDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RepositoryReplicasResponse_RepositoryDetails.Marshal(b, m, deterministic) -} -func (m *RepositoryReplicasResponse_RepositoryDetails) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepositoryReplicasResponse_RepositoryDetails.Merge(m, src) -} -func (m *RepositoryReplicasResponse_RepositoryDetails) XXX_Size() int { - return xxx_messageInfo_RepositoryReplicasResponse_RepositoryDetails.Size(m) -} -func (m *RepositoryReplicasResponse_RepositoryDetails) XXX_DiscardUnknown() { - xxx_messageInfo_RepositoryReplicasResponse_RepositoryDetails.DiscardUnknown(m) +// Deprecated: Use RepositoryReplicasResponse.ProtoReflect.Descriptor instead. +func (*RepositoryReplicasResponse) Descriptor() ([]byte, []int) { + return file_praefect_proto_rawDescGZIP(), []int{7} } -var xxx_messageInfo_RepositoryReplicasResponse_RepositoryDetails proto.InternalMessageInfo - -func (m *RepositoryReplicasResponse_RepositoryDetails) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *RepositoryReplicasResponse) GetPrimary() *RepositoryReplicasResponse_RepositoryDetails { + if x != nil { + return x.Primary } return nil } -func (m *RepositoryReplicasResponse_RepositoryDetails) GetChecksum() string { - if m != nil { - return m.Checksum +func (x *RepositoryReplicasResponse) GetReplicas() []*RepositoryReplicasResponse_RepositoryDetails { + if x != nil { + return x.Replicas } - return "" + return nil } type ConsistencyCheckRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + VirtualStorage string `protobuf:"bytes,1,opt,name=virtual_storage,json=virtualStorage,proto3" json:"virtual_storage,omitempty"` // The target storage is the storage you wish to check for inconsistencies // against a reference storage (typically the current primary). @@ -576,66 +461,74 @@ type ConsistencyCheckRequest struct { ReferenceStorage string `protobuf:"bytes,3,opt,name=reference_storage,json=referenceStorage,proto3" json:"reference_storage,omitempty"` // Be default, reconcilliation is enabled. Disabling reconcilliation will // make the request side-effect free. - DisableReconcilliation bool `protobuf:"varint,4,opt,name=disable_reconcilliation,json=disableReconcilliation,proto3" json:"disable_reconcilliation,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + DisableReconcilliation bool `protobuf:"varint,4,opt,name=disable_reconcilliation,json=disableReconcilliation,proto3" json:"disable_reconcilliation,omitempty"` } -func (m *ConsistencyCheckRequest) Reset() { *m = ConsistencyCheckRequest{} } -func (m *ConsistencyCheckRequest) String() string { return proto.CompactTextString(m) } -func (*ConsistencyCheckRequest) ProtoMessage() {} -func (*ConsistencyCheckRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d32bf44842ead735, []int{8} +func (x *ConsistencyCheckRequest) Reset() { + *x = ConsistencyCheckRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ConsistencyCheckRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConsistencyCheckRequest.Unmarshal(m, b) -} -func (m *ConsistencyCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConsistencyCheckRequest.Marshal(b, m, deterministic) +func (x *ConsistencyCheckRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConsistencyCheckRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConsistencyCheckRequest.Merge(m, src) -} -func (m *ConsistencyCheckRequest) XXX_Size() int { - return xxx_messageInfo_ConsistencyCheckRequest.Size(m) -} -func (m *ConsistencyCheckRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ConsistencyCheckRequest.DiscardUnknown(m) + +func (*ConsistencyCheckRequest) ProtoMessage() {} + +func (x *ConsistencyCheckRequest) ProtoReflect() protoreflect.Message { + mi := &file_praefect_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ConsistencyCheckRequest proto.InternalMessageInfo +// Deprecated: Use ConsistencyCheckRequest.ProtoReflect.Descriptor instead. +func (*ConsistencyCheckRequest) Descriptor() ([]byte, []int) { + return file_praefect_proto_rawDescGZIP(), []int{8} +} -func (m *ConsistencyCheckRequest) GetVirtualStorage() string { - if m != nil { - return m.VirtualStorage +func (x *ConsistencyCheckRequest) GetVirtualStorage() string { + if x != nil { + return x.VirtualStorage } return "" } -func (m *ConsistencyCheckRequest) GetTargetStorage() string { - if m != nil { - return m.TargetStorage +func (x *ConsistencyCheckRequest) GetTargetStorage() string { + if x != nil { + return x.TargetStorage } return "" } -func (m *ConsistencyCheckRequest) GetReferenceStorage() string { - if m != nil { - return m.ReferenceStorage +func (x *ConsistencyCheckRequest) GetReferenceStorage() string { + if x != nil { + return x.ReferenceStorage } return "" } -func (m *ConsistencyCheckRequest) GetDisableReconcilliation() bool { - if m != nil { - return m.DisableReconcilliation +func (x *ConsistencyCheckRequest) GetDisableReconcilliation() bool { + if x != nil { + return x.DisableReconcilliation } return false } type ConsistencyCheckResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + RepoRelativePath string `protobuf:"bytes,1,opt,name=repo_relative_path,json=repoRelativePath,proto3" json:"repo_relative_path,omitempty"` TargetChecksum string `protobuf:"bytes,2,opt,name=target_checksum,json=targetChecksum,proto3" json:"target_checksum,omitempty"` ReferenceChecksum string `protobuf:"bytes,3,opt,name=reference_checksum,json=referenceChecksum,proto3" json:"reference_checksum,omitempty"` @@ -645,435 +538,668 @@ type ConsistencyCheckResponse struct { // If the reference storage was not specified, reply with the reference used ReferenceStorage string `protobuf:"bytes,5,opt,name=reference_storage,json=referenceStorage,proto3" json:"reference_storage,omitempty"` // The list of errors that appeared during the operation execution for the current repository. - Errors []string `protobuf:"bytes,6,rep,name=errors,proto3" json:"errors,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Errors []string `protobuf:"bytes,6,rep,name=errors,proto3" json:"errors,omitempty"` } -func (m *ConsistencyCheckResponse) Reset() { *m = ConsistencyCheckResponse{} } -func (m *ConsistencyCheckResponse) String() string { return proto.CompactTextString(m) } -func (*ConsistencyCheckResponse) ProtoMessage() {} -func (*ConsistencyCheckResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d32bf44842ead735, []int{9} +func (x *ConsistencyCheckResponse) Reset() { + *x = ConsistencyCheckResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ConsistencyCheckResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConsistencyCheckResponse.Unmarshal(m, b) -} -func (m *ConsistencyCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConsistencyCheckResponse.Marshal(b, m, deterministic) -} -func (m *ConsistencyCheckResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConsistencyCheckResponse.Merge(m, src) +func (x *ConsistencyCheckResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConsistencyCheckResponse) XXX_Size() int { - return xxx_messageInfo_ConsistencyCheckResponse.Size(m) -} -func (m *ConsistencyCheckResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ConsistencyCheckResponse.DiscardUnknown(m) + +func (*ConsistencyCheckResponse) ProtoMessage() {} + +func (x *ConsistencyCheckResponse) ProtoReflect() protoreflect.Message { + mi := &file_praefect_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ConsistencyCheckResponse proto.InternalMessageInfo +// Deprecated: Use ConsistencyCheckResponse.ProtoReflect.Descriptor instead. +func (*ConsistencyCheckResponse) Descriptor() ([]byte, []int) { + return file_praefect_proto_rawDescGZIP(), []int{9} +} -func (m *ConsistencyCheckResponse) GetRepoRelativePath() string { - if m != nil { - return m.RepoRelativePath +func (x *ConsistencyCheckResponse) GetRepoRelativePath() string { + if x != nil { + return x.RepoRelativePath } return "" } -func (m *ConsistencyCheckResponse) GetTargetChecksum() string { - if m != nil { - return m.TargetChecksum +func (x *ConsistencyCheckResponse) GetTargetChecksum() string { + if x != nil { + return x.TargetChecksum } return "" } -func (m *ConsistencyCheckResponse) GetReferenceChecksum() string { - if m != nil { - return m.ReferenceChecksum +func (x *ConsistencyCheckResponse) GetReferenceChecksum() string { + if x != nil { + return x.ReferenceChecksum } return "" } -func (m *ConsistencyCheckResponse) GetReplJobId() uint64 { - if m != nil { - return m.ReplJobId +func (x *ConsistencyCheckResponse) GetReplJobId() uint64 { + if x != nil { + return x.ReplJobId } return 0 } -func (m *ConsistencyCheckResponse) GetReferenceStorage() string { - if m != nil { - return m.ReferenceStorage +func (x *ConsistencyCheckResponse) GetReferenceStorage() string { + if x != nil { + return x.ReferenceStorage } return "" } -func (m *ConsistencyCheckResponse) GetErrors() []string { - if m != nil { - return m.Errors +func (x *ConsistencyCheckResponse) GetErrors() []string { + if x != nil { + return x.Errors } return nil } -func init() { - proto.RegisterType((*SetReplicationFactorRequest)(nil), "gitaly.SetReplicationFactorRequest") - proto.RegisterType((*SetReplicationFactorResponse)(nil), "gitaly.SetReplicationFactorResponse") - proto.RegisterType((*SetAuthoritativeStorageRequest)(nil), "gitaly.SetAuthoritativeStorageRequest") - proto.RegisterType((*SetAuthoritativeStorageResponse)(nil), "gitaly.SetAuthoritativeStorageResponse") - proto.RegisterType((*DatalossCheckRequest)(nil), "gitaly.DatalossCheckRequest") - proto.RegisterType((*DatalossCheckResponse)(nil), "gitaly.DatalossCheckResponse") - proto.RegisterType((*DatalossCheckResponse_Repository)(nil), "gitaly.DatalossCheckResponse.Repository") - proto.RegisterType((*DatalossCheckResponse_Repository_Storage)(nil), "gitaly.DatalossCheckResponse.Repository.Storage") - proto.RegisterType((*RepositoryReplicasRequest)(nil), "gitaly.RepositoryReplicasRequest") - proto.RegisterType((*RepositoryReplicasResponse)(nil), "gitaly.RepositoryReplicasResponse") - proto.RegisterType((*RepositoryReplicasResponse_RepositoryDetails)(nil), "gitaly.RepositoryReplicasResponse.RepositoryDetails") - proto.RegisterType((*ConsistencyCheckRequest)(nil), "gitaly.ConsistencyCheckRequest") - proto.RegisterType((*ConsistencyCheckResponse)(nil), "gitaly.ConsistencyCheckResponse") -} - -func init() { proto.RegisterFile("praefect.proto", fileDescriptor_d32bf44842ead735) } - -var fileDescriptor_d32bf44842ead735 = []byte{ - // 853 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x6f, 0xdc, 0x44, - 0x14, 0x97, 0x77, 0xd3, 0x74, 0xf3, 0xf2, 0xd1, 0x64, 0x48, 0x1b, 0xe3, 0x86, 0x76, 0xeb, 0x02, - 0x59, 0x09, 0xba, 0x5b, 0xb6, 0x91, 0x90, 0x38, 0x41, 0x53, 0x21, 0x15, 0x45, 0x34, 0x72, 0x24, - 0x90, 0xe0, 0x60, 0x8d, 0xed, 0xc9, 0xee, 0x94, 0x89, 0xc7, 0xcc, 0xcc, 0x46, 0xf2, 0x91, 0x03, - 0x57, 0xae, 0x48, 0x5c, 0xfb, 0x07, 0xf1, 0x9f, 0x20, 0x4e, 0x9c, 0x91, 0xe7, 0xc3, 0x71, 0x36, - 0xde, 0x2d, 0x44, 0xea, 0xcd, 0xf3, 0xde, 0xef, 0x7d, 0xfd, 0xde, 0x9b, 0x37, 0x86, 0xad, 0x42, - 0x60, 0x72, 0x46, 0x52, 0x35, 0x2c, 0x04, 0x57, 0x1c, 0xad, 0x4e, 0xa8, 0xc2, 0xac, 0x0c, 0x80, - 0xd1, 0xdc, 0xca, 0x82, 0x0d, 0x39, 0xc5, 0x82, 0x64, 0xe6, 0x14, 0xfe, 0xe1, 0xc1, 0xfd, 0x53, - 0xa2, 0x22, 0x52, 0x30, 0x9a, 0x62, 0x45, 0x79, 0xfe, 0x35, 0x4e, 0x15, 0x17, 0x11, 0xf9, 0x79, - 0x46, 0xa4, 0x42, 0x07, 0x70, 0xe7, 0x82, 0x0a, 0x35, 0xc3, 0x2c, 0x96, 0x8a, 0x0b, 0x3c, 0x21, - 0xbe, 0xd7, 0xf7, 0x06, 0x6b, 0xd1, 0x96, 0x15, 0x9f, 0x1a, 0x29, 0x7a, 0x0c, 0x9b, 0x82, 0x30, - 0xac, 0xe8, 0x05, 0x89, 0x0b, 0xac, 0xa6, 0x7e, 0x47, 0xc3, 0x36, 0x9c, 0xf0, 0x04, 0xab, 0x29, - 0x7a, 0x02, 0x48, 0x5c, 0x46, 0x8a, 0xcf, 0x74, 0x28, 0xbf, 0xdb, 0xf7, 0x06, 0xb7, 0xa2, 0x1d, - 0x31, 0x9f, 0x43, 0xf8, 0x05, 0xec, 0xb7, 0xe7, 0x26, 0x0b, 0x9e, 0x4b, 0x82, 0x02, 0xe8, 0xd9, - 0xa4, 0xa4, 0xef, 0xf5, 0xbb, 0x83, 0xb5, 0xa8, 0x3e, 0x87, 0x6f, 0x3c, 0x78, 0x70, 0x4a, 0xd4, - 0x57, 0x33, 0x35, 0xe5, 0x82, 0x2a, 0x9d, 0x83, 0xcd, 0xf5, 0xdd, 0xd4, 0xf6, 0x0c, 0xee, 0xe2, - 0x66, 0xb0, 0xda, 0x67, 0x57, 0x83, 0x77, 0x71, 0x4b, 0x26, 0xe1, 0x23, 0x78, 0xb8, 0x30, 0x49, - 0x53, 0x64, 0xf8, 0x8b, 0x07, 0xbb, 0x2f, 0xb0, 0xc2, 0x8c, 0x4b, 0x79, 0x34, 0x25, 0xe9, 0x4f, - 0xff, 0x3b, 0xfd, 0x2f, 0x61, 0x9f, 0xe6, 0x29, 0x9b, 0x65, 0x55, 0xf6, 0x42, 0x51, 0xcc, 0x58, - 0x19, 0x3b, 0xb6, 0x49, 0xa6, 0xab, 0xe9, 0x45, 0x81, 0xc5, 0x9c, 0x38, 0x48, 0x54, 0x23, 0xc2, - 0x7f, 0x3a, 0x70, 0x77, 0x2e, 0x07, 0xdb, 0x82, 0x63, 0xd8, 0x10, 0xa4, 0xe0, 0x92, 0x2a, 0x2e, - 0x28, 0x91, 0x7e, 0xa7, 0xdf, 0x1d, 0xac, 0x8f, 0x07, 0x43, 0x33, 0x78, 0xc3, 0x56, 0xa3, 0x61, - 0xe4, 0x2c, 0xca, 0xe8, 0x8a, 0x75, 0xf0, 0x5b, 0x07, 0xe0, 0x52, 0x79, 0x9d, 0x77, 0xaf, 0x85, - 0xf7, 0xe3, 0xc6, 0x10, 0x98, 0xe8, 0x4f, 0xff, 0x6b, 0xf4, 0xa1, 0xe3, 0xba, 0xf6, 0x80, 0xee, - 0xc3, 0x9a, 0x20, 0x38, 0x8b, 0x79, 0xce, 0x4a, 0xdd, 0xb9, 0x5e, 0xd4, 0xab, 0x04, 0xaf, 0x72, - 0x56, 0x22, 0x1f, 0x6e, 0x17, 0x82, 0x9e, 0x63, 0x51, 0xfa, 0x2b, 0x3a, 0x13, 0x77, 0x0c, 0xbe, - 0x83, 0xdb, 0x8e, 0x6d, 0x04, 0x2b, 0x39, 0x3e, 0x77, 0xbd, 0xd0, 0xdf, 0x95, 0xd7, 0x84, 0x4c, - 0x69, 0x9e, 0xc5, 0x49, 0xa9, 0xe9, 0xee, 0x46, 0x3d, 0x23, 0x78, 0x5e, 0x56, 0x53, 0x8c, 0xa5, - 0xa4, 0x93, 0x9c, 0x64, 0x2e, 0xa2, 0x3b, 0x87, 0xaf, 0xe0, 0xfd, 0x06, 0x59, 0xa6, 0x21, 0xd2, - 0x0d, 0xc0, 0x18, 0xa0, 0x66, 0xaf, 0xd4, 0xf1, 0xd6, 0xc7, 0xc8, 0xd5, 0xde, 0x30, 0x6b, 0xa0, - 0xc2, 0x37, 0x1d, 0x08, 0xda, 0x3c, 0xda, 0x76, 0x7e, 0x7b, 0x59, 0xa1, 0xf1, 0x77, 0xd8, 0xe2, - 0x6f, 0xce, 0xa8, 0xa1, 0x7a, 0x41, 0x14, 0xa6, 0x4c, 0xd6, 0xbc, 0xa0, 0x13, 0xe8, 0xd9, 0x41, - 0x73, 0xcd, 0xb9, 0x99, 0xc3, 0xda, 0x4b, 0x90, 0xc2, 0xce, 0x35, 0xf5, 0x4d, 0x98, 0xa8, 0x68, - 0x4f, 0xab, 0xb9, 0x90, 0xb3, 0x73, 0x7b, 0x9f, 0xeb, 0x73, 0xf8, 0xa7, 0x07, 0x7b, 0x47, 0x3c, - 0x97, 0x54, 0x2a, 0x92, 0xa7, 0xe5, 0xcd, 0xae, 0xdd, 0x47, 0xb0, 0xa5, 0xb0, 0x98, 0x10, 0x55, - 0xe3, 0x4c, 0x98, 0x4d, 0x23, 0x75, 0xb0, 0x4f, 0x60, 0x47, 0x90, 0x33, 0x22, 0x48, 0x9e, 0xce, - 0xef, 0x8c, 0xed, 0x5a, 0xe1, 0xc0, 0x9f, 0xc3, 0x5e, 0x46, 0x25, 0x4e, 0x18, 0x89, 0x05, 0x49, - 0x79, 0x9e, 0x52, 0xc6, 0xa8, 0x5e, 0x8d, 0x7a, 0x22, 0x7b, 0xd1, 0x3d, 0xab, 0x8e, 0xae, 0x6a, - 0xc3, 0x5f, 0x3b, 0xe0, 0x5f, 0xaf, 0xc8, 0x76, 0xfd, 0x53, 0xbd, 0x96, 0x79, 0xdc, 0x76, 0xd9, - 0xb6, 0x2b, 0x4d, 0xd4, 0xbc, 0x70, 0x07, 0x70, 0xc7, 0xd6, 0x35, 0xc7, 0x9f, 0x2d, 0xf7, 0xc8, - 0x4a, 0xcd, 0xb6, 0x77, 0x95, 0xd5, 0x58, 0x53, 0xda, 0x65, 0xcd, 0x35, 0xfc, 0x01, 0xac, 0x57, - 0x5d, 0x8e, 0x5f, 0xf3, 0x24, 0xa6, 0x99, 0xae, 0x67, 0x25, 0x5a, 0xab, 0x44, 0xdf, 0xf0, 0xe4, - 0x65, 0xd6, 0x4e, 0xd4, 0xad, 0x05, 0x44, 0xdd, 0x83, 0x55, 0x22, 0x04, 0x17, 0xd2, 0x5f, 0xd5, - 0x0f, 0x83, 0x3d, 0x8d, 0xff, 0xea, 0xc2, 0x7b, 0x27, 0xf6, 0x91, 0x7c, 0x99, 0x9f, 0xf1, 0x53, - 0x22, 0x2e, 0x68, 0x4a, 0xd0, 0x8f, 0x80, 0xae, 0x0f, 0x24, 0x7a, 0xb4, 0x6c, 0x58, 0xf5, 0x38, - 0x04, 0xe1, 0xdb, 0xe7, 0x19, 0x7d, 0x0f, 0xdb, 0xf3, 0xdc, 0xa3, 0x87, 0xce, 0x6e, 0xc1, 0x9c, - 0x05, 0xfd, 0xc5, 0x00, 0xe3, 0xf6, 0xa9, 0x87, 0x8e, 0x61, 0xf3, 0xca, 0x8e, 0x43, 0xfb, 0x0b, - 0x56, 0x9f, 0x71, 0xf9, 0xc1, 0xd2, 0xc5, 0x88, 0x5e, 0xc3, 0xde, 0x82, 0xc7, 0x08, 0x7d, 0xec, - 0x2c, 0x97, 0x3f, 0xa9, 0xc1, 0xc1, 0x5b, 0x71, 0x36, 0x16, 0x86, 0xdd, 0xb6, 0xa7, 0x1d, 0x3d, - 0x6e, 0x38, 0x58, 0xf4, 0x53, 0x12, 0x7c, 0xb8, 0x1c, 0x64, 0x42, 0x04, 0x2b, 0x7f, 0xff, 0x3e, - 0xf0, 0x9e, 0x1f, 0xfe, 0x30, 0x9e, 0x50, 0xc5, 0x70, 0x32, 0x4c, 0xf9, 0xf9, 0xc8, 0x7c, 0x3e, - 0xe1, 0x62, 0x32, 0x32, 0x2e, 0x46, 0x17, 0x9f, 0x1d, 0x8e, 0xf4, 0xaf, 0xd0, 0x68, 0xc2, 0xad, - 0xac, 0x48, 0x92, 0x55, 0x2d, 0x7a, 0xf6, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8f, 0xbf, 0xcc, - 0x78, 0x51, 0x09, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// PraefectInfoServiceClient is the client API for PraefectInfoService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type PraefectInfoServiceClient interface { - RepositoryReplicas(ctx context.Context, in *RepositoryReplicasRequest, opts ...grpc.CallOption) (*RepositoryReplicasResponse, error) - // ConsistencyCheck will perform a consistency check on the requested - // virtual storage backend. A stream of repository statuses will be sent - // back indicating which repos are consistent with the primary and which ones - // need repair. - ConsistencyCheck(ctx context.Context, in *ConsistencyCheckRequest, opts ...grpc.CallOption) (PraefectInfoService_ConsistencyCheckClient, error) - // DatalossCheck checks for outdated repository replicas. - DatalossCheck(ctx context.Context, in *DatalossCheckRequest, opts ...grpc.CallOption) (*DatalossCheckResponse, error) - // SetAuthoritativeStorage sets the authoritative storage for a repository on a given virtual storage. - // This causes the current version of the repository on the authoritative storage to be considered the - // latest and overwrite any other version on the virtual storage. - SetAuthoritativeStorage(ctx context.Context, in *SetAuthoritativeStorageRequest, opts ...grpc.CallOption) (*SetAuthoritativeStorageResponse, error) - // SetReplicationFactor assigns or unassigns host nodes from the repository to meet the desired replication factor. - // SetReplicationFactor returns an error when trying to set a replication factor that exceeds the storage node count - // in the virtual storage. An error is also returned when trying to set a replication factor below one. The primary node - // won't be unassigned as it needs a copy of the repository to accept writes. Likewise, the primary is the first storage - // that gets assigned when setting a replication factor for a repository. Assignments of unconfigured storages are ignored. - // This might cause the actual replication factor to be higher than desired if the replication factor is set during an upgrade - // from a Praefect node that does not yet know about a new node. As assignments of unconfigured storages are ignored, replication - // factor of repositories assigned to a storage node removed from the cluster is effectively decreased. - SetReplicationFactor(ctx context.Context, in *SetReplicationFactorRequest, opts ...grpc.CallOption) (*SetReplicationFactorResponse, error) -} - -type praefectInfoServiceClient struct { - cc *grpc.ClientConn -} - -func NewPraefectInfoServiceClient(cc *grpc.ClientConn) PraefectInfoServiceClient { - return &praefectInfoServiceClient{cc} -} - -func (c *praefectInfoServiceClient) RepositoryReplicas(ctx context.Context, in *RepositoryReplicasRequest, opts ...grpc.CallOption) (*RepositoryReplicasResponse, error) { - out := new(RepositoryReplicasResponse) - err := c.cc.Invoke(ctx, "/gitaly.PraefectInfoService/RepositoryReplicas", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type DatalossCheckResponse_Repository struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // relative path of the repository with outdated replicas + RelativePath string `protobuf:"bytes,1,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` + // storages on which the repository is outdated + Storages []*DatalossCheckResponse_Repository_Storage `protobuf:"bytes,2,rep,name=storages,proto3" json:"storages,omitempty"` + // read_only indicates whether the repository is in read-only mode. + ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` + // current primary storage of the repository + Primary string `protobuf:"bytes,4,opt,name=primary,proto3" json:"primary,omitempty"` } -func (c *praefectInfoServiceClient) ConsistencyCheck(ctx context.Context, in *ConsistencyCheckRequest, opts ...grpc.CallOption) (PraefectInfoService_ConsistencyCheckClient, error) { - stream, err := c.cc.NewStream(ctx, &_PraefectInfoService_serviceDesc.Streams[0], "/gitaly.PraefectInfoService/ConsistencyCheck", opts...) - if err != nil { - return nil, err - } - x := &praefectInfoServiceConsistencyCheckClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *DatalossCheckResponse_Repository) Reset() { + *x = DatalossCheckResponse_Repository{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil } -type PraefectInfoService_ConsistencyCheckClient interface { - Recv() (*ConsistencyCheckResponse, error) - grpc.ClientStream +func (x *DatalossCheckResponse_Repository) String() string { + return protoimpl.X.MessageStringOf(x) } -type praefectInfoServiceConsistencyCheckClient struct { - grpc.ClientStream -} +func (*DatalossCheckResponse_Repository) ProtoMessage() {} -func (x *praefectInfoServiceConsistencyCheckClient) Recv() (*ConsistencyCheckResponse, error) { - m := new(ConsistencyCheckResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *DatalossCheckResponse_Repository) ProtoReflect() protoreflect.Message { + mi := &file_praefect_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -func (c *praefectInfoServiceClient) DatalossCheck(ctx context.Context, in *DatalossCheckRequest, opts ...grpc.CallOption) (*DatalossCheckResponse, error) { - out := new(DatalossCheckResponse) - err := c.cc.Invoke(ctx, "/gitaly.PraefectInfoService/DatalossCheck", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use DatalossCheckResponse_Repository.ProtoReflect.Descriptor instead. +func (*DatalossCheckResponse_Repository) Descriptor() ([]byte, []int) { + return file_praefect_proto_rawDescGZIP(), []int{5, 0} } -func (c *praefectInfoServiceClient) SetAuthoritativeStorage(ctx context.Context, in *SetAuthoritativeStorageRequest, opts ...grpc.CallOption) (*SetAuthoritativeStorageResponse, error) { - out := new(SetAuthoritativeStorageResponse) - err := c.cc.Invoke(ctx, "/gitaly.PraefectInfoService/SetAuthoritativeStorage", in, out, opts...) - if err != nil { - return nil, err +func (x *DatalossCheckResponse_Repository) GetRelativePath() string { + if x != nil { + return x.RelativePath } - return out, nil + return "" } -func (c *praefectInfoServiceClient) SetReplicationFactor(ctx context.Context, in *SetReplicationFactorRequest, opts ...grpc.CallOption) (*SetReplicationFactorResponse, error) { - out := new(SetReplicationFactorResponse) - err := c.cc.Invoke(ctx, "/gitaly.PraefectInfoService/SetReplicationFactor", in, out, opts...) - if err != nil { - return nil, err +func (x *DatalossCheckResponse_Repository) GetStorages() []*DatalossCheckResponse_Repository_Storage { + if x != nil { + return x.Storages } - return out, nil + return nil } -// PraefectInfoServiceServer is the server API for PraefectInfoService service. -type PraefectInfoServiceServer interface { - RepositoryReplicas(context.Context, *RepositoryReplicasRequest) (*RepositoryReplicasResponse, error) - // ConsistencyCheck will perform a consistency check on the requested - // virtual storage backend. A stream of repository statuses will be sent - // back indicating which repos are consistent with the primary and which ones - // need repair. - ConsistencyCheck(*ConsistencyCheckRequest, PraefectInfoService_ConsistencyCheckServer) error - // DatalossCheck checks for outdated repository replicas. - DatalossCheck(context.Context, *DatalossCheckRequest) (*DatalossCheckResponse, error) - // SetAuthoritativeStorage sets the authoritative storage for a repository on a given virtual storage. - // This causes the current version of the repository on the authoritative storage to be considered the - // latest and overwrite any other version on the virtual storage. - SetAuthoritativeStorage(context.Context, *SetAuthoritativeStorageRequest) (*SetAuthoritativeStorageResponse, error) - // SetReplicationFactor assigns or unassigns host nodes from the repository to meet the desired replication factor. - // SetReplicationFactor returns an error when trying to set a replication factor that exceeds the storage node count - // in the virtual storage. An error is also returned when trying to set a replication factor below one. The primary node - // won't be unassigned as it needs a copy of the repository to accept writes. Likewise, the primary is the first storage - // that gets assigned when setting a replication factor for a repository. Assignments of unconfigured storages are ignored. - // This might cause the actual replication factor to be higher than desired if the replication factor is set during an upgrade - // from a Praefect node that does not yet know about a new node. As assignments of unconfigured storages are ignored, replication - // factor of repositories assigned to a storage node removed from the cluster is effectively decreased. - SetReplicationFactor(context.Context, *SetReplicationFactorRequest) (*SetReplicationFactorResponse, error) +func (x *DatalossCheckResponse_Repository) GetReadOnly() bool { + if x != nil { + return x.ReadOnly + } + return false } -// UnimplementedPraefectInfoServiceServer can be embedded to have forward compatible implementations. -type UnimplementedPraefectInfoServiceServer struct { +func (x *DatalossCheckResponse_Repository) GetPrimary() string { + if x != nil { + return x.Primary + } + return "" } -func (*UnimplementedPraefectInfoServiceServer) RepositoryReplicas(ctx context.Context, req *RepositoryReplicasRequest) (*RepositoryReplicasResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RepositoryReplicas not implemented") -} -func (*UnimplementedPraefectInfoServiceServer) ConsistencyCheck(req *ConsistencyCheckRequest, srv PraefectInfoService_ConsistencyCheckServer) error { - return status.Errorf(codes.Unimplemented, "method ConsistencyCheck not implemented") +type DatalossCheckResponse_Repository_Storage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // name of the storage + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // behind_by indicates how many generations this storage is behind. + BehindBy int64 `protobuf:"varint,2,opt,name=behind_by,json=behindBy,proto3" json:"behind_by,omitempty"` + // assigned indicates whether the storage is assigned to host the repository. + Assigned bool `protobuf:"varint,3,opt,name=assigned,proto3" json:"assigned,omitempty"` } -func (*UnimplementedPraefectInfoServiceServer) DatalossCheck(ctx context.Context, req *DatalossCheckRequest) (*DatalossCheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DatalossCheck not implemented") + +func (x *DatalossCheckResponse_Repository_Storage) Reset() { + *x = DatalossCheckResponse_Repository_Storage{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (*UnimplementedPraefectInfoServiceServer) SetAuthoritativeStorage(ctx context.Context, req *SetAuthoritativeStorageRequest) (*SetAuthoritativeStorageResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetAuthoritativeStorage not implemented") + +func (x *DatalossCheckResponse_Repository_Storage) String() string { + return protoimpl.X.MessageStringOf(x) } -func (*UnimplementedPraefectInfoServiceServer) SetReplicationFactor(ctx context.Context, req *SetReplicationFactorRequest) (*SetReplicationFactorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetReplicationFactor not implemented") + +func (*DatalossCheckResponse_Repository_Storage) ProtoMessage() {} + +func (x *DatalossCheckResponse_Repository_Storage) ProtoReflect() protoreflect.Message { + mi := &file_praefect_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func RegisterPraefectInfoServiceServer(s *grpc.Server, srv PraefectInfoServiceServer) { - s.RegisterService(&_PraefectInfoService_serviceDesc, srv) +// Deprecated: Use DatalossCheckResponse_Repository_Storage.ProtoReflect.Descriptor instead. +func (*DatalossCheckResponse_Repository_Storage) Descriptor() ([]byte, []int) { + return file_praefect_proto_rawDescGZIP(), []int{5, 0, 0} } -func _PraefectInfoService_RepositoryReplicas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RepositoryReplicasRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PraefectInfoServiceServer).RepositoryReplicas(ctx, in) +func (x *DatalossCheckResponse_Repository_Storage) GetName() string { + if x != nil { + return x.Name } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.PraefectInfoService/RepositoryReplicas", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PraefectInfoServiceServer).RepositoryReplicas(ctx, req.(*RepositoryReplicasRequest)) + return "" +} + +func (x *DatalossCheckResponse_Repository_Storage) GetBehindBy() int64 { + if x != nil { + return x.BehindBy } - return interceptor(ctx, in, info, handler) + return 0 } -func _PraefectInfoService_ConsistencyCheck_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ConsistencyCheckRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *DatalossCheckResponse_Repository_Storage) GetAssigned() bool { + if x != nil { + return x.Assigned } - return srv.(PraefectInfoServiceServer).ConsistencyCheck(m, &praefectInfoServiceConsistencyCheckServer{stream}) + return false } -type PraefectInfoService_ConsistencyCheckServer interface { - Send(*ConsistencyCheckResponse) error - grpc.ServerStream +type RepositoryReplicasResponse_RepositoryDetails struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Checksum string `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"` } -type praefectInfoServiceConsistencyCheckServer struct { - grpc.ServerStream +func (x *RepositoryReplicasResponse_RepositoryDetails) Reset() { + *x = RepositoryReplicasResponse_RepositoryDetails{} + if protoimpl.UnsafeEnabled { + mi := &file_praefect_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (x *praefectInfoServiceConsistencyCheckServer) Send(m *ConsistencyCheckResponse) error { - return x.ServerStream.SendMsg(m) +func (x *RepositoryReplicasResponse_RepositoryDetails) String() string { + return protoimpl.X.MessageStringOf(x) } -func _PraefectInfoService_DatalossCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DatalossCheckRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PraefectInfoServiceServer).DatalossCheck(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.PraefectInfoService/DatalossCheck", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PraefectInfoServiceServer).DatalossCheck(ctx, req.(*DatalossCheckRequest)) +func (*RepositoryReplicasResponse_RepositoryDetails) ProtoMessage() {} + +func (x *RepositoryReplicasResponse_RepositoryDetails) ProtoReflect() protoreflect.Message { + mi := &file_praefect_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _PraefectInfoService_SetAuthoritativeStorage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetAuthoritativeStorageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PraefectInfoServiceServer).SetAuthoritativeStorage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.PraefectInfoService/SetAuthoritativeStorage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PraefectInfoServiceServer).SetAuthoritativeStorage(ctx, req.(*SetAuthoritativeStorageRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use RepositoryReplicasResponse_RepositoryDetails.ProtoReflect.Descriptor instead. +func (*RepositoryReplicasResponse_RepositoryDetails) Descriptor() ([]byte, []int) { + return file_praefect_proto_rawDescGZIP(), []int{7, 0} } -func _PraefectInfoService_SetReplicationFactor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetReplicationFactorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PraefectInfoServiceServer).SetReplicationFactor(ctx, in) +func (x *RepositoryReplicasResponse_RepositoryDetails) GetRepository() *Repository { + if x != nil { + return x.Repository } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.PraefectInfoService/SetReplicationFactor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PraefectInfoServiceServer).SetReplicationFactor(ctx, req.(*SetReplicationFactorRequest)) + return nil +} + +func (x *RepositoryReplicasResponse_RepositoryDetails) GetChecksum() string { + if x != nil { + return x.Checksum } - return interceptor(ctx, in, info, handler) + return "" } -var _PraefectInfoService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.PraefectInfoService", - HandlerType: (*PraefectInfoServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "RepositoryReplicas", - Handler: _PraefectInfoService_RepositoryReplicas_Handler, - }, - { - MethodName: "DatalossCheck", - Handler: _PraefectInfoService_DatalossCheck_Handler, - }, - { - MethodName: "SetAuthoritativeStorage", - Handler: _PraefectInfoService_SetAuthoritativeStorage_Handler, - }, - { - MethodName: "SetReplicationFactor", - Handler: _PraefectInfoService_SetReplicationFactor_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "ConsistencyCheck", - Handler: _PraefectInfoService_ConsistencyCheck_Handler, - ServerStreams: true, +var File_praefect_proto protoreflect.FileDescriptor + +var file_praefect_proto_rawDesc = []byte{ + 0x0a, 0x0e, 0x70, 0x72, 0x61, 0x65, 0x66, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x06, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x9a, 0x01, 0x0a, 0x1b, 0x53, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x5f, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x76, 0x69, 0x72, + 0x74, 0x75, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, + 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x72, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x22, + 0x3a, 0x0a, 0x1c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x08, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x73, 0x22, 0xa3, 0x01, 0x0a, 0x1e, + 0x53, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, 0x76, 0x65, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, + 0x0a, 0x0f, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x74, + 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x33, 0x0a, 0x15, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, 0x76, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x22, 0x21, 0x0a, 0x1f, 0x53, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x61, 0x74, 0x69, 0x76, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x81, 0x01, 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x73, + 0x73, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, + 0x0f, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x40, 0x0a, 0x1c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x6c, 0x79, 0x5f, 0x72, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x69, 0x6e, + 0x63, 0x6c, 0x75, 0x64, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x22, 0xf6, 0x02, 0x0a, 0x15, 0x44, 0x61, 0x74, + 0x61, 0x6c, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, + 0x1a, 0x8e, 0x02, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, + 0x50, 0x61, 0x74, 0x68, 0x12, 0x4c, 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x44, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x08, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x12, + 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x1a, 0x56, 0x0a, 0x07, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x65, 0x68, 0x69, + 0x6e, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x62, 0x65, 0x68, + 0x69, 0x6e, 0x64, 0x42, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x22, 0x4f, 0x0a, 0x19, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x22, 0xa3, 0x02, 0x0a, 0x1a, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4e, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, + 0x79, 0x12, 0x50, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x73, 0x1a, 0x63, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x22, 0xcf, 0x01, 0x0a, 0x17, 0x43, 0x6f, 0x6e, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x5f, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x76, + 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, + 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x10, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x12, 0x37, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x63, + 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x6c, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x6e, + 0x63, 0x69, 0x6c, 0x6c, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x85, 0x02, 0x0a, 0x18, 0x43, + 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6f, 0x5f, + 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x70, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, + 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12, 0x2d, + 0x0a, 0x12, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x65, 0x63, + 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12, 0x1e, 0x0a, + 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x4a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x2b, 0x0a, + 0x11, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x73, 0x32, 0xee, 0x03, 0x0a, 0x13, 0x50, 0x72, 0x61, 0x65, 0x66, 0x65, 0x63, 0x74, 0x49, + 0x6e, 0x66, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5b, 0x0a, 0x12, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, + 0x12, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x73, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x1f, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, + 0x79, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, + 0x12, 0x4c, 0x0a, 0x0d, 0x44, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x12, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x6c, + 0x6f, 0x73, 0x73, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x73, + 0x73, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, + 0x0a, 0x17, 0x53, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, + 0x76, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, + 0x69, 0x76, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, 0x76, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x14, 0x53, 0x65, + 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x63, 0x74, + 0x6f, 0x72, 0x12, 0x23, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x65, 0x74, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, + 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x04, 0xf0, + 0x97, 0x28, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, + 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_praefect_proto_rawDescOnce sync.Once + file_praefect_proto_rawDescData = file_praefect_proto_rawDesc +) + +func file_praefect_proto_rawDescGZIP() []byte { + file_praefect_proto_rawDescOnce.Do(func() { + file_praefect_proto_rawDescData = protoimpl.X.CompressGZIP(file_praefect_proto_rawDescData) + }) + return file_praefect_proto_rawDescData +} + +var file_praefect_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_praefect_proto_goTypes = []interface{}{ + (*SetReplicationFactorRequest)(nil), // 0: gitaly.SetReplicationFactorRequest + (*SetReplicationFactorResponse)(nil), // 1: gitaly.SetReplicationFactorResponse + (*SetAuthoritativeStorageRequest)(nil), // 2: gitaly.SetAuthoritativeStorageRequest + (*SetAuthoritativeStorageResponse)(nil), // 3: gitaly.SetAuthoritativeStorageResponse + (*DatalossCheckRequest)(nil), // 4: gitaly.DatalossCheckRequest + (*DatalossCheckResponse)(nil), // 5: gitaly.DatalossCheckResponse + (*RepositoryReplicasRequest)(nil), // 6: gitaly.RepositoryReplicasRequest + (*RepositoryReplicasResponse)(nil), // 7: gitaly.RepositoryReplicasResponse + (*ConsistencyCheckRequest)(nil), // 8: gitaly.ConsistencyCheckRequest + (*ConsistencyCheckResponse)(nil), // 9: gitaly.ConsistencyCheckResponse + (*DatalossCheckResponse_Repository)(nil), // 10: gitaly.DatalossCheckResponse.Repository + (*DatalossCheckResponse_Repository_Storage)(nil), // 11: gitaly.DatalossCheckResponse.Repository.Storage + (*RepositoryReplicasResponse_RepositoryDetails)(nil), // 12: gitaly.RepositoryReplicasResponse.RepositoryDetails + (*Repository)(nil), // 13: gitaly.Repository +} +var file_praefect_proto_depIdxs = []int32{ + 10, // 0: gitaly.DatalossCheckResponse.repositories:type_name -> gitaly.DatalossCheckResponse.Repository + 13, // 1: gitaly.RepositoryReplicasRequest.repository:type_name -> gitaly.Repository + 12, // 2: gitaly.RepositoryReplicasResponse.primary:type_name -> gitaly.RepositoryReplicasResponse.RepositoryDetails + 12, // 3: gitaly.RepositoryReplicasResponse.replicas:type_name -> gitaly.RepositoryReplicasResponse.RepositoryDetails + 11, // 4: gitaly.DatalossCheckResponse.Repository.storages:type_name -> gitaly.DatalossCheckResponse.Repository.Storage + 13, // 5: gitaly.RepositoryReplicasResponse.RepositoryDetails.repository:type_name -> gitaly.Repository + 6, // 6: gitaly.PraefectInfoService.RepositoryReplicas:input_type -> gitaly.RepositoryReplicasRequest + 8, // 7: gitaly.PraefectInfoService.ConsistencyCheck:input_type -> gitaly.ConsistencyCheckRequest + 4, // 8: gitaly.PraefectInfoService.DatalossCheck:input_type -> gitaly.DatalossCheckRequest + 2, // 9: gitaly.PraefectInfoService.SetAuthoritativeStorage:input_type -> gitaly.SetAuthoritativeStorageRequest + 0, // 10: gitaly.PraefectInfoService.SetReplicationFactor:input_type -> gitaly.SetReplicationFactorRequest + 7, // 11: gitaly.PraefectInfoService.RepositoryReplicas:output_type -> gitaly.RepositoryReplicasResponse + 9, // 12: gitaly.PraefectInfoService.ConsistencyCheck:output_type -> gitaly.ConsistencyCheckResponse + 5, // 13: gitaly.PraefectInfoService.DatalossCheck:output_type -> gitaly.DatalossCheckResponse + 3, // 14: gitaly.PraefectInfoService.SetAuthoritativeStorage:output_type -> gitaly.SetAuthoritativeStorageResponse + 1, // 15: gitaly.PraefectInfoService.SetReplicationFactor:output_type -> gitaly.SetReplicationFactorResponse + 11, // [11:16] is the sub-list for method output_type + 6, // [6:11] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_praefect_proto_init() } +func file_praefect_proto_init() { + if File_praefect_proto != nil { + return + } + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_praefect_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetReplicationFactorRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetReplicationFactorResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetAuthoritativeStorageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetAuthoritativeStorageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DatalossCheckRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DatalossCheckResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RepositoryReplicasRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RepositoryReplicasResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConsistencyCheckRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConsistencyCheckResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DatalossCheckResponse_Repository); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DatalossCheckResponse_Repository_Storage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_praefect_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RepositoryReplicasResponse_RepositoryDetails); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_praefect_proto_rawDesc, + NumEnums: 0, + NumMessages: 13, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "praefect.proto", + GoTypes: file_praefect_proto_goTypes, + DependencyIndexes: file_praefect_proto_depIdxs, + MessageInfos: file_praefect_proto_msgTypes, + }.Build() + File_praefect_proto = out.File + file_praefect_proto_rawDesc = nil + file_praefect_proto_goTypes = nil + file_praefect_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/praefect_grpc.pb.go b/proto/go/gitalypb/praefect_grpc.pb.go new file mode 100644 index 000000000..435f2e849 --- /dev/null +++ b/proto/go/gitalypb/praefect_grpc.pb.go @@ -0,0 +1,305 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// PraefectInfoServiceClient is the client API for PraefectInfoService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type PraefectInfoServiceClient interface { + RepositoryReplicas(ctx context.Context, in *RepositoryReplicasRequest, opts ...grpc.CallOption) (*RepositoryReplicasResponse, error) + // ConsistencyCheck will perform a consistency check on the requested + // virtual storage backend. A stream of repository statuses will be sent + // back indicating which repos are consistent with the primary and which ones + // need repair. + ConsistencyCheck(ctx context.Context, in *ConsistencyCheckRequest, opts ...grpc.CallOption) (PraefectInfoService_ConsistencyCheckClient, error) + // DatalossCheck checks for outdated repository replicas. + DatalossCheck(ctx context.Context, in *DatalossCheckRequest, opts ...grpc.CallOption) (*DatalossCheckResponse, error) + // SetAuthoritativeStorage sets the authoritative storage for a repository on a given virtual storage. + // This causes the current version of the repository on the authoritative storage to be considered the + // latest and overwrite any other version on the virtual storage. + SetAuthoritativeStorage(ctx context.Context, in *SetAuthoritativeStorageRequest, opts ...grpc.CallOption) (*SetAuthoritativeStorageResponse, error) + // SetReplicationFactor assigns or unassigns host nodes from the repository to meet the desired replication factor. + // SetReplicationFactor returns an error when trying to set a replication factor that exceeds the storage node count + // in the virtual storage. An error is also returned when trying to set a replication factor below one. The primary node + // won't be unassigned as it needs a copy of the repository to accept writes. Likewise, the primary is the first storage + // that gets assigned when setting a replication factor for a repository. Assignments of unconfigured storages are ignored. + // This might cause the actual replication factor to be higher than desired if the replication factor is set during an upgrade + // from a Praefect node that does not yet know about a new node. As assignments of unconfigured storages are ignored, replication + // factor of repositories assigned to a storage node removed from the cluster is effectively decreased. + SetReplicationFactor(ctx context.Context, in *SetReplicationFactorRequest, opts ...grpc.CallOption) (*SetReplicationFactorResponse, error) +} + +type praefectInfoServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewPraefectInfoServiceClient(cc grpc.ClientConnInterface) PraefectInfoServiceClient { + return &praefectInfoServiceClient{cc} +} + +func (c *praefectInfoServiceClient) RepositoryReplicas(ctx context.Context, in *RepositoryReplicasRequest, opts ...grpc.CallOption) (*RepositoryReplicasResponse, error) { + out := new(RepositoryReplicasResponse) + err := c.cc.Invoke(ctx, "/gitaly.PraefectInfoService/RepositoryReplicas", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *praefectInfoServiceClient) ConsistencyCheck(ctx context.Context, in *ConsistencyCheckRequest, opts ...grpc.CallOption) (PraefectInfoService_ConsistencyCheckClient, error) { + stream, err := c.cc.NewStream(ctx, &PraefectInfoService_ServiceDesc.Streams[0], "/gitaly.PraefectInfoService/ConsistencyCheck", opts...) + if err != nil { + return nil, err + } + x := &praefectInfoServiceConsistencyCheckClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type PraefectInfoService_ConsistencyCheckClient interface { + Recv() (*ConsistencyCheckResponse, error) + grpc.ClientStream +} + +type praefectInfoServiceConsistencyCheckClient struct { + grpc.ClientStream +} + +func (x *praefectInfoServiceConsistencyCheckClient) Recv() (*ConsistencyCheckResponse, error) { + m := new(ConsistencyCheckResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *praefectInfoServiceClient) DatalossCheck(ctx context.Context, in *DatalossCheckRequest, opts ...grpc.CallOption) (*DatalossCheckResponse, error) { + out := new(DatalossCheckResponse) + err := c.cc.Invoke(ctx, "/gitaly.PraefectInfoService/DatalossCheck", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *praefectInfoServiceClient) SetAuthoritativeStorage(ctx context.Context, in *SetAuthoritativeStorageRequest, opts ...grpc.CallOption) (*SetAuthoritativeStorageResponse, error) { + out := new(SetAuthoritativeStorageResponse) + err := c.cc.Invoke(ctx, "/gitaly.PraefectInfoService/SetAuthoritativeStorage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *praefectInfoServiceClient) SetReplicationFactor(ctx context.Context, in *SetReplicationFactorRequest, opts ...grpc.CallOption) (*SetReplicationFactorResponse, error) { + out := new(SetReplicationFactorResponse) + err := c.cc.Invoke(ctx, "/gitaly.PraefectInfoService/SetReplicationFactor", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PraefectInfoServiceServer is the server API for PraefectInfoService service. +// All implementations must embed UnimplementedPraefectInfoServiceServer +// for forward compatibility +type PraefectInfoServiceServer interface { + RepositoryReplicas(context.Context, *RepositoryReplicasRequest) (*RepositoryReplicasResponse, error) + // ConsistencyCheck will perform a consistency check on the requested + // virtual storage backend. A stream of repository statuses will be sent + // back indicating which repos are consistent with the primary and which ones + // need repair. + ConsistencyCheck(*ConsistencyCheckRequest, PraefectInfoService_ConsistencyCheckServer) error + // DatalossCheck checks for outdated repository replicas. + DatalossCheck(context.Context, *DatalossCheckRequest) (*DatalossCheckResponse, error) + // SetAuthoritativeStorage sets the authoritative storage for a repository on a given virtual storage. + // This causes the current version of the repository on the authoritative storage to be considered the + // latest and overwrite any other version on the virtual storage. + SetAuthoritativeStorage(context.Context, *SetAuthoritativeStorageRequest) (*SetAuthoritativeStorageResponse, error) + // SetReplicationFactor assigns or unassigns host nodes from the repository to meet the desired replication factor. + // SetReplicationFactor returns an error when trying to set a replication factor that exceeds the storage node count + // in the virtual storage. An error is also returned when trying to set a replication factor below one. The primary node + // won't be unassigned as it needs a copy of the repository to accept writes. Likewise, the primary is the first storage + // that gets assigned when setting a replication factor for a repository. Assignments of unconfigured storages are ignored. + // This might cause the actual replication factor to be higher than desired if the replication factor is set during an upgrade + // from a Praefect node that does not yet know about a new node. As assignments of unconfigured storages are ignored, replication + // factor of repositories assigned to a storage node removed from the cluster is effectively decreased. + SetReplicationFactor(context.Context, *SetReplicationFactorRequest) (*SetReplicationFactorResponse, error) + mustEmbedUnimplementedPraefectInfoServiceServer() +} + +// UnimplementedPraefectInfoServiceServer must be embedded to have forward compatible implementations. +type UnimplementedPraefectInfoServiceServer struct { +} + +func (UnimplementedPraefectInfoServiceServer) RepositoryReplicas(context.Context, *RepositoryReplicasRequest) (*RepositoryReplicasResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RepositoryReplicas not implemented") +} +func (UnimplementedPraefectInfoServiceServer) ConsistencyCheck(*ConsistencyCheckRequest, PraefectInfoService_ConsistencyCheckServer) error { + return status.Errorf(codes.Unimplemented, "method ConsistencyCheck not implemented") +} +func (UnimplementedPraefectInfoServiceServer) DatalossCheck(context.Context, *DatalossCheckRequest) (*DatalossCheckResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DatalossCheck not implemented") +} +func (UnimplementedPraefectInfoServiceServer) SetAuthoritativeStorage(context.Context, *SetAuthoritativeStorageRequest) (*SetAuthoritativeStorageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetAuthoritativeStorage not implemented") +} +func (UnimplementedPraefectInfoServiceServer) SetReplicationFactor(context.Context, *SetReplicationFactorRequest) (*SetReplicationFactorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetReplicationFactor not implemented") +} +func (UnimplementedPraefectInfoServiceServer) mustEmbedUnimplementedPraefectInfoServiceServer() {} + +// UnsafePraefectInfoServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PraefectInfoServiceServer will +// result in compilation errors. +type UnsafePraefectInfoServiceServer interface { + mustEmbedUnimplementedPraefectInfoServiceServer() +} + +func RegisterPraefectInfoServiceServer(s grpc.ServiceRegistrar, srv PraefectInfoServiceServer) { + s.RegisterService(&PraefectInfoService_ServiceDesc, srv) +} + +func _PraefectInfoService_RepositoryReplicas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RepositoryReplicasRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PraefectInfoServiceServer).RepositoryReplicas(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.PraefectInfoService/RepositoryReplicas", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PraefectInfoServiceServer).RepositoryReplicas(ctx, req.(*RepositoryReplicasRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PraefectInfoService_ConsistencyCheck_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ConsistencyCheckRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(PraefectInfoServiceServer).ConsistencyCheck(m, &praefectInfoServiceConsistencyCheckServer{stream}) +} + +type PraefectInfoService_ConsistencyCheckServer interface { + Send(*ConsistencyCheckResponse) error + grpc.ServerStream +} + +type praefectInfoServiceConsistencyCheckServer struct { + grpc.ServerStream +} + +func (x *praefectInfoServiceConsistencyCheckServer) Send(m *ConsistencyCheckResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _PraefectInfoService_DatalossCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DatalossCheckRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PraefectInfoServiceServer).DatalossCheck(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.PraefectInfoService/DatalossCheck", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PraefectInfoServiceServer).DatalossCheck(ctx, req.(*DatalossCheckRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PraefectInfoService_SetAuthoritativeStorage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetAuthoritativeStorageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PraefectInfoServiceServer).SetAuthoritativeStorage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.PraefectInfoService/SetAuthoritativeStorage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PraefectInfoServiceServer).SetAuthoritativeStorage(ctx, req.(*SetAuthoritativeStorageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PraefectInfoService_SetReplicationFactor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetReplicationFactorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PraefectInfoServiceServer).SetReplicationFactor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.PraefectInfoService/SetReplicationFactor", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PraefectInfoServiceServer).SetReplicationFactor(ctx, req.(*SetReplicationFactorRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// PraefectInfoService_ServiceDesc is the grpc.ServiceDesc for PraefectInfoService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PraefectInfoService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.PraefectInfoService", + HandlerType: (*PraefectInfoServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "RepositoryReplicas", + Handler: _PraefectInfoService_RepositoryReplicas_Handler, + }, + { + MethodName: "DatalossCheck", + Handler: _PraefectInfoService_DatalossCheck_Handler, + }, + { + MethodName: "SetAuthoritativeStorage", + Handler: _PraefectInfoService_SetAuthoritativeStorage_Handler, + }, + { + MethodName: "SetReplicationFactor", + Handler: _PraefectInfoService_SetReplicationFactor_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "ConsistencyCheck", + Handler: _PraefectInfoService_ConsistencyCheck_Handler, + ServerStreams: true, + }, + }, + Metadata: "praefect.proto", +} diff --git a/proto/go/gitalypb/ref.pb.go b/proto/go/gitalypb/ref.pb.go index 39e87dd52..4e41f2a68 100644 --- a/proto/go/gitalypb/ref.pb.go +++ b/proto/go/gitalypb/ref.pb.go @@ -1,29 +1,25 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: ref.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type FindLocalBranchesRequest_SortBy int32 @@ -33,24 +29,45 @@ const ( FindLocalBranchesRequest_UPDATED_DESC FindLocalBranchesRequest_SortBy = 2 ) -var FindLocalBranchesRequest_SortBy_name = map[int32]string{ - 0: "NAME", - 1: "UPDATED_ASC", - 2: "UPDATED_DESC", -} +// Enum value maps for FindLocalBranchesRequest_SortBy. +var ( + FindLocalBranchesRequest_SortBy_name = map[int32]string{ + 0: "NAME", + 1: "UPDATED_ASC", + 2: "UPDATED_DESC", + } + FindLocalBranchesRequest_SortBy_value = map[string]int32{ + "NAME": 0, + "UPDATED_ASC": 1, + "UPDATED_DESC": 2, + } +) -var FindLocalBranchesRequest_SortBy_value = map[string]int32{ - "NAME": 0, - "UPDATED_ASC": 1, - "UPDATED_DESC": 2, +func (x FindLocalBranchesRequest_SortBy) Enum() *FindLocalBranchesRequest_SortBy { + p := new(FindLocalBranchesRequest_SortBy) + *p = x + return p } func (x FindLocalBranchesRequest_SortBy) String() string { - return proto.EnumName(FindLocalBranchesRequest_SortBy_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FindLocalBranchesRequest_SortBy) Descriptor() protoreflect.EnumDescriptor { + return file_ref_proto_enumTypes[0].Descriptor() +} + +func (FindLocalBranchesRequest_SortBy) Type() protoreflect.EnumType { + return &file_ref_proto_enumTypes[0] +} + +func (x FindLocalBranchesRequest_SortBy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use FindLocalBranchesRequest_SortBy.Descriptor instead. func (FindLocalBranchesRequest_SortBy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{10, 0} + return file_ref_proto_rawDescGZIP(), []int{10, 0} } type CreateBranchResponse_Status int32 @@ -62,3156 +79,3444 @@ const ( CreateBranchResponse_ERR_INVALID_START_POINT CreateBranchResponse_Status = 3 ) -var CreateBranchResponse_Status_name = map[int32]string{ - 0: "OK", - 1: "ERR_EXISTS", - 2: "ERR_INVALID", - 3: "ERR_INVALID_START_POINT", -} +// Enum value maps for CreateBranchResponse_Status. +var ( + CreateBranchResponse_Status_name = map[int32]string{ + 0: "OK", + 1: "ERR_EXISTS", + 2: "ERR_INVALID", + 3: "ERR_INVALID_START_POINT", + } + CreateBranchResponse_Status_value = map[string]int32{ + "OK": 0, + "ERR_EXISTS": 1, + "ERR_INVALID": 2, + "ERR_INVALID_START_POINT": 3, + } +) -var CreateBranchResponse_Status_value = map[string]int32{ - "OK": 0, - "ERR_EXISTS": 1, - "ERR_INVALID": 2, - "ERR_INVALID_START_POINT": 3, +func (x CreateBranchResponse_Status) Enum() *CreateBranchResponse_Status { + p := new(CreateBranchResponse_Status) + *p = x + return p } func (x CreateBranchResponse_Status) String() string { - return proto.EnumName(CreateBranchResponse_Status_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CreateBranchResponse_Status) Descriptor() protoreflect.EnumDescriptor { + return file_ref_proto_enumTypes[1].Descriptor() +} + +func (CreateBranchResponse_Status) Type() protoreflect.EnumType { + return &file_ref_proto_enumTypes[1] } +func (x CreateBranchResponse_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CreateBranchResponse_Status.Descriptor instead. func (CreateBranchResponse_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{23, 0} + return file_ref_proto_rawDescGZIP(), []int{23, 0} } type ListNewBlobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // Limit the number of revs to be returned fro mgit-rev-list // If the limit is set to zero, all items will be returned - Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` } -func (m *ListNewBlobsRequest) Reset() { *m = ListNewBlobsRequest{} } -func (m *ListNewBlobsRequest) String() string { return proto.CompactTextString(m) } -func (*ListNewBlobsRequest) ProtoMessage() {} -func (*ListNewBlobsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{0} +func (x *ListNewBlobsRequest) Reset() { + *x = ListNewBlobsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListNewBlobsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListNewBlobsRequest.Unmarshal(m, b) -} -func (m *ListNewBlobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListNewBlobsRequest.Marshal(b, m, deterministic) +func (x *ListNewBlobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListNewBlobsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListNewBlobsRequest.Merge(m, src) -} -func (m *ListNewBlobsRequest) XXX_Size() int { - return xxx_messageInfo_ListNewBlobsRequest.Size(m) -} -func (m *ListNewBlobsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListNewBlobsRequest.DiscardUnknown(m) + +func (*ListNewBlobsRequest) ProtoMessage() {} + +func (x *ListNewBlobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListNewBlobsRequest proto.InternalMessageInfo +// Deprecated: Use ListNewBlobsRequest.ProtoReflect.Descriptor instead. +func (*ListNewBlobsRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{0} +} -func (m *ListNewBlobsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ListNewBlobsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ListNewBlobsRequest) GetCommitId() string { - if m != nil { - return m.CommitId +func (x *ListNewBlobsRequest) GetCommitId() string { + if x != nil { + return x.CommitId } return "" } -func (m *ListNewBlobsRequest) GetLimit() uint32 { - if m != nil { - return m.Limit +func (x *ListNewBlobsRequest) GetLimit() uint32 { + if x != nil { + return x.Limit } return 0 } type ListNewBlobsResponse struct { - NewBlobObjects []*NewBlobObject `protobuf:"bytes,1,rep,name=new_blob_objects,json=newBlobObjects,proto3" json:"new_blob_objects,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ListNewBlobsResponse) Reset() { *m = ListNewBlobsResponse{} } -func (m *ListNewBlobsResponse) String() string { return proto.CompactTextString(m) } -func (*ListNewBlobsResponse) ProtoMessage() {} -func (*ListNewBlobsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{1} + NewBlobObjects []*NewBlobObject `protobuf:"bytes,1,rep,name=new_blob_objects,json=newBlobObjects,proto3" json:"new_blob_objects,omitempty"` } -func (m *ListNewBlobsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListNewBlobsResponse.Unmarshal(m, b) -} -func (m *ListNewBlobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListNewBlobsResponse.Marshal(b, m, deterministic) -} -func (m *ListNewBlobsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListNewBlobsResponse.Merge(m, src) +func (x *ListNewBlobsResponse) Reset() { + *x = ListNewBlobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListNewBlobsResponse) XXX_Size() int { - return xxx_messageInfo_ListNewBlobsResponse.Size(m) + +func (x *ListNewBlobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListNewBlobsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListNewBlobsResponse.DiscardUnknown(m) + +func (*ListNewBlobsResponse) ProtoMessage() {} + +func (x *ListNewBlobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListNewBlobsResponse proto.InternalMessageInfo +// Deprecated: Use ListNewBlobsResponse.ProtoReflect.Descriptor instead. +func (*ListNewBlobsResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{1} +} -func (m *ListNewBlobsResponse) GetNewBlobObjects() []*NewBlobObject { - if m != nil { - return m.NewBlobObjects +func (x *ListNewBlobsResponse) GetNewBlobObjects() []*NewBlobObject { + if x != nil { + return x.NewBlobObjects } return nil } type FindDefaultBranchNameRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindDefaultBranchNameRequest) Reset() { *m = FindDefaultBranchNameRequest{} } -func (m *FindDefaultBranchNameRequest) String() string { return proto.CompactTextString(m) } -func (*FindDefaultBranchNameRequest) ProtoMessage() {} -func (*FindDefaultBranchNameRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{2} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *FindDefaultBranchNameRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindDefaultBranchNameRequest.Unmarshal(m, b) -} -func (m *FindDefaultBranchNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindDefaultBranchNameRequest.Marshal(b, m, deterministic) -} -func (m *FindDefaultBranchNameRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindDefaultBranchNameRequest.Merge(m, src) +func (x *FindDefaultBranchNameRequest) Reset() { + *x = FindDefaultBranchNameRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindDefaultBranchNameRequest) XXX_Size() int { - return xxx_messageInfo_FindDefaultBranchNameRequest.Size(m) + +func (x *FindDefaultBranchNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindDefaultBranchNameRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindDefaultBranchNameRequest.DiscardUnknown(m) + +func (*FindDefaultBranchNameRequest) ProtoMessage() {} + +func (x *FindDefaultBranchNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindDefaultBranchNameRequest proto.InternalMessageInfo +// Deprecated: Use FindDefaultBranchNameRequest.ProtoReflect.Descriptor instead. +func (*FindDefaultBranchNameRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{2} +} -func (m *FindDefaultBranchNameRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindDefaultBranchNameRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type FindDefaultBranchNameResponse struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindDefaultBranchNameResponse) Reset() { *m = FindDefaultBranchNameResponse{} } -func (m *FindDefaultBranchNameResponse) String() string { return proto.CompactTextString(m) } -func (*FindDefaultBranchNameResponse) ProtoMessage() {} -func (*FindDefaultBranchNameResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{3} + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (m *FindDefaultBranchNameResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindDefaultBranchNameResponse.Unmarshal(m, b) -} -func (m *FindDefaultBranchNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindDefaultBranchNameResponse.Marshal(b, m, deterministic) -} -func (m *FindDefaultBranchNameResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindDefaultBranchNameResponse.Merge(m, src) +func (x *FindDefaultBranchNameResponse) Reset() { + *x = FindDefaultBranchNameResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindDefaultBranchNameResponse) XXX_Size() int { - return xxx_messageInfo_FindDefaultBranchNameResponse.Size(m) + +func (x *FindDefaultBranchNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindDefaultBranchNameResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindDefaultBranchNameResponse.DiscardUnknown(m) + +func (*FindDefaultBranchNameResponse) ProtoMessage() {} + +func (x *FindDefaultBranchNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindDefaultBranchNameResponse proto.InternalMessageInfo +// Deprecated: Use FindDefaultBranchNameResponse.ProtoReflect.Descriptor instead. +func (*FindDefaultBranchNameResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{3} +} -func (m *FindDefaultBranchNameResponse) GetName() []byte { - if m != nil { - return m.Name +func (x *FindDefaultBranchNameResponse) GetName() []byte { + if x != nil { + return x.Name } return nil } type FindAllBranchNamesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindAllBranchNamesRequest) Reset() { *m = FindAllBranchNamesRequest{} } -func (m *FindAllBranchNamesRequest) String() string { return proto.CompactTextString(m) } -func (*FindAllBranchNamesRequest) ProtoMessage() {} -func (*FindAllBranchNamesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{4} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *FindAllBranchNamesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindAllBranchNamesRequest.Unmarshal(m, b) -} -func (m *FindAllBranchNamesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindAllBranchNamesRequest.Marshal(b, m, deterministic) -} -func (m *FindAllBranchNamesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindAllBranchNamesRequest.Merge(m, src) +func (x *FindAllBranchNamesRequest) Reset() { + *x = FindAllBranchNamesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindAllBranchNamesRequest) XXX_Size() int { - return xxx_messageInfo_FindAllBranchNamesRequest.Size(m) + +func (x *FindAllBranchNamesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindAllBranchNamesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindAllBranchNamesRequest.DiscardUnknown(m) + +func (*FindAllBranchNamesRequest) ProtoMessage() {} + +func (x *FindAllBranchNamesRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindAllBranchNamesRequest proto.InternalMessageInfo +// Deprecated: Use FindAllBranchNamesRequest.ProtoReflect.Descriptor instead. +func (*FindAllBranchNamesRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{4} +} -func (m *FindAllBranchNamesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindAllBranchNamesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type FindAllBranchNamesResponse struct { - Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindAllBranchNamesResponse) Reset() { *m = FindAllBranchNamesResponse{} } -func (m *FindAllBranchNamesResponse) String() string { return proto.CompactTextString(m) } -func (*FindAllBranchNamesResponse) ProtoMessage() {} -func (*FindAllBranchNamesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{5} + Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` } -func (m *FindAllBranchNamesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindAllBranchNamesResponse.Unmarshal(m, b) -} -func (m *FindAllBranchNamesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindAllBranchNamesResponse.Marshal(b, m, deterministic) -} -func (m *FindAllBranchNamesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindAllBranchNamesResponse.Merge(m, src) +func (x *FindAllBranchNamesResponse) Reset() { + *x = FindAllBranchNamesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindAllBranchNamesResponse) XXX_Size() int { - return xxx_messageInfo_FindAllBranchNamesResponse.Size(m) + +func (x *FindAllBranchNamesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindAllBranchNamesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindAllBranchNamesResponse.DiscardUnknown(m) + +func (*FindAllBranchNamesResponse) ProtoMessage() {} + +func (x *FindAllBranchNamesResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindAllBranchNamesResponse proto.InternalMessageInfo +// Deprecated: Use FindAllBranchNamesResponse.ProtoReflect.Descriptor instead. +func (*FindAllBranchNamesResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{5} +} -func (m *FindAllBranchNamesResponse) GetNames() [][]byte { - if m != nil { - return m.Names +func (x *FindAllBranchNamesResponse) GetNames() [][]byte { + if x != nil { + return x.Names } return nil } type FindAllTagNamesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindAllTagNamesRequest) Reset() { *m = FindAllTagNamesRequest{} } -func (m *FindAllTagNamesRequest) String() string { return proto.CompactTextString(m) } -func (*FindAllTagNamesRequest) ProtoMessage() {} -func (*FindAllTagNamesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{6} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *FindAllTagNamesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindAllTagNamesRequest.Unmarshal(m, b) -} -func (m *FindAllTagNamesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindAllTagNamesRequest.Marshal(b, m, deterministic) -} -func (m *FindAllTagNamesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindAllTagNamesRequest.Merge(m, src) +func (x *FindAllTagNamesRequest) Reset() { + *x = FindAllTagNamesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindAllTagNamesRequest) XXX_Size() int { - return xxx_messageInfo_FindAllTagNamesRequest.Size(m) + +func (x *FindAllTagNamesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindAllTagNamesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindAllTagNamesRequest.DiscardUnknown(m) + +func (*FindAllTagNamesRequest) ProtoMessage() {} + +func (x *FindAllTagNamesRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindAllTagNamesRequest proto.InternalMessageInfo +// Deprecated: Use FindAllTagNamesRequest.ProtoReflect.Descriptor instead. +func (*FindAllTagNamesRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{6} +} -func (m *FindAllTagNamesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindAllTagNamesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type FindAllTagNamesResponse struct { - Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindAllTagNamesResponse) Reset() { *m = FindAllTagNamesResponse{} } -func (m *FindAllTagNamesResponse) String() string { return proto.CompactTextString(m) } -func (*FindAllTagNamesResponse) ProtoMessage() {} -func (*FindAllTagNamesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{7} + Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` } -func (m *FindAllTagNamesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindAllTagNamesResponse.Unmarshal(m, b) -} -func (m *FindAllTagNamesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindAllTagNamesResponse.Marshal(b, m, deterministic) -} -func (m *FindAllTagNamesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindAllTagNamesResponse.Merge(m, src) +func (x *FindAllTagNamesResponse) Reset() { + *x = FindAllTagNamesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindAllTagNamesResponse) XXX_Size() int { - return xxx_messageInfo_FindAllTagNamesResponse.Size(m) + +func (x *FindAllTagNamesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindAllTagNamesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindAllTagNamesResponse.DiscardUnknown(m) + +func (*FindAllTagNamesResponse) ProtoMessage() {} + +func (x *FindAllTagNamesResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindAllTagNamesResponse proto.InternalMessageInfo +// Deprecated: Use FindAllTagNamesResponse.ProtoReflect.Descriptor instead. +func (*FindAllTagNamesResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{7} +} -func (m *FindAllTagNamesResponse) GetNames() [][]byte { - if m != nil { - return m.Names +func (x *FindAllTagNamesResponse) GetNames() [][]byte { + if x != nil { + return x.Names } return nil } type FindRefNameRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Require that the resulting ref contains this commit as an ancestor CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // Example prefix: "refs/heads/". Type bytes because that is the type of ref names. - Prefix []byte `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Prefix []byte `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"` } -func (m *FindRefNameRequest) Reset() { *m = FindRefNameRequest{} } -func (m *FindRefNameRequest) String() string { return proto.CompactTextString(m) } -func (*FindRefNameRequest) ProtoMessage() {} -func (*FindRefNameRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{8} +func (x *FindRefNameRequest) Reset() { + *x = FindRefNameRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindRefNameRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindRefNameRequest.Unmarshal(m, b) +func (x *FindRefNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindRefNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindRefNameRequest.Marshal(b, m, deterministic) -} -func (m *FindRefNameRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindRefNameRequest.Merge(m, src) -} -func (m *FindRefNameRequest) XXX_Size() int { - return xxx_messageInfo_FindRefNameRequest.Size(m) -} -func (m *FindRefNameRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindRefNameRequest.DiscardUnknown(m) + +func (*FindRefNameRequest) ProtoMessage() {} + +func (x *FindRefNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindRefNameRequest proto.InternalMessageInfo +// Deprecated: Use FindRefNameRequest.ProtoReflect.Descriptor instead. +func (*FindRefNameRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{8} +} -func (m *FindRefNameRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindRefNameRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *FindRefNameRequest) GetCommitId() string { - if m != nil { - return m.CommitId +func (x *FindRefNameRequest) GetCommitId() string { + if x != nil { + return x.CommitId } return "" } -func (m *FindRefNameRequest) GetPrefix() []byte { - if m != nil { - return m.Prefix +func (x *FindRefNameRequest) GetPrefix() []byte { + if x != nil { + return x.Prefix } return nil } type FindRefNameResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Example name: "refs/heads/master". Cannot assume UTF8, so the type is bytes. - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (m *FindRefNameResponse) Reset() { *m = FindRefNameResponse{} } -func (m *FindRefNameResponse) String() string { return proto.CompactTextString(m) } -func (*FindRefNameResponse) ProtoMessage() {} -func (*FindRefNameResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{9} +func (x *FindRefNameResponse) Reset() { + *x = FindRefNameResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindRefNameResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindRefNameResponse.Unmarshal(m, b) -} -func (m *FindRefNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindRefNameResponse.Marshal(b, m, deterministic) +func (x *FindRefNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindRefNameResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindRefNameResponse.Merge(m, src) -} -func (m *FindRefNameResponse) XXX_Size() int { - return xxx_messageInfo_FindRefNameResponse.Size(m) -} -func (m *FindRefNameResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindRefNameResponse.DiscardUnknown(m) + +func (*FindRefNameResponse) ProtoMessage() {} + +func (x *FindRefNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindRefNameResponse proto.InternalMessageInfo +// Deprecated: Use FindRefNameResponse.ProtoReflect.Descriptor instead. +func (*FindRefNameResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{9} +} -func (m *FindRefNameResponse) GetName() []byte { - if m != nil { - return m.Name +func (x *FindRefNameResponse) GetName() []byte { + if x != nil { + return x.Name } return nil } type FindLocalBranchesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` SortBy FindLocalBranchesRequest_SortBy `protobuf:"varint,2,opt,name=sort_by,json=sortBy,proto3,enum=gitaly.FindLocalBranchesRequest_SortBy" json:"sort_by,omitempty"` // The page token is the branch name, with the `refs/heads/` prefix, for // example "refs/heads/master". After the first branch name is encountered // which lexicographically exceeds the page token, it will be the first result // send as part of the response. - PaginationParams *PaginationParameter `protobuf:"bytes,3,opt,name=pagination_params,json=paginationParams,proto3" json:"pagination_params,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PaginationParams *PaginationParameter `protobuf:"bytes,3,opt,name=pagination_params,json=paginationParams,proto3" json:"pagination_params,omitempty"` } -func (m *FindLocalBranchesRequest) Reset() { *m = FindLocalBranchesRequest{} } -func (m *FindLocalBranchesRequest) String() string { return proto.CompactTextString(m) } -func (*FindLocalBranchesRequest) ProtoMessage() {} -func (*FindLocalBranchesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{10} +func (x *FindLocalBranchesRequest) Reset() { + *x = FindLocalBranchesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindLocalBranchesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindLocalBranchesRequest.Unmarshal(m, b) -} -func (m *FindLocalBranchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindLocalBranchesRequest.Marshal(b, m, deterministic) +func (x *FindLocalBranchesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindLocalBranchesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindLocalBranchesRequest.Merge(m, src) -} -func (m *FindLocalBranchesRequest) XXX_Size() int { - return xxx_messageInfo_FindLocalBranchesRequest.Size(m) -} -func (m *FindLocalBranchesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindLocalBranchesRequest.DiscardUnknown(m) + +func (*FindLocalBranchesRequest) ProtoMessage() {} + +func (x *FindLocalBranchesRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindLocalBranchesRequest proto.InternalMessageInfo +// Deprecated: Use FindLocalBranchesRequest.ProtoReflect.Descriptor instead. +func (*FindLocalBranchesRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{10} +} -func (m *FindLocalBranchesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindLocalBranchesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *FindLocalBranchesRequest) GetSortBy() FindLocalBranchesRequest_SortBy { - if m != nil { - return m.SortBy +func (x *FindLocalBranchesRequest) GetSortBy() FindLocalBranchesRequest_SortBy { + if x != nil { + return x.SortBy } return FindLocalBranchesRequest_NAME } -func (m *FindLocalBranchesRequest) GetPaginationParams() *PaginationParameter { - if m != nil { - return m.PaginationParams +func (x *FindLocalBranchesRequest) GetPaginationParams() *PaginationParameter { + if x != nil { + return x.PaginationParams } return nil } type FindLocalBranchesResponse struct { - Branches []*FindLocalBranchResponse `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindLocalBranchesResponse) Reset() { *m = FindLocalBranchesResponse{} } -func (m *FindLocalBranchesResponse) String() string { return proto.CompactTextString(m) } -func (*FindLocalBranchesResponse) ProtoMessage() {} -func (*FindLocalBranchesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{11} + Branches []*FindLocalBranchResponse `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"` } -func (m *FindLocalBranchesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindLocalBranchesResponse.Unmarshal(m, b) -} -func (m *FindLocalBranchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindLocalBranchesResponse.Marshal(b, m, deterministic) -} -func (m *FindLocalBranchesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindLocalBranchesResponse.Merge(m, src) +func (x *FindLocalBranchesResponse) Reset() { + *x = FindLocalBranchesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindLocalBranchesResponse) XXX_Size() int { - return xxx_messageInfo_FindLocalBranchesResponse.Size(m) + +func (x *FindLocalBranchesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindLocalBranchesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindLocalBranchesResponse.DiscardUnknown(m) + +func (*FindLocalBranchesResponse) ProtoMessage() {} + +func (x *FindLocalBranchesResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindLocalBranchesResponse proto.InternalMessageInfo +// Deprecated: Use FindLocalBranchesResponse.ProtoReflect.Descriptor instead. +func (*FindLocalBranchesResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{11} +} -func (m *FindLocalBranchesResponse) GetBranches() []*FindLocalBranchResponse { - if m != nil { - return m.Branches +func (x *FindLocalBranchesResponse) GetBranches() []*FindLocalBranchResponse { + if x != nil { + return x.Branches } return nil } type FindLocalBranchResponse struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` - CommitSubject []byte `protobuf:"bytes,3,opt,name=commit_subject,json=commitSubject,proto3" json:"commit_subject,omitempty"` - CommitAuthor *FindLocalBranchCommitAuthor `protobuf:"bytes,4,opt,name=commit_author,json=commitAuthor,proto3" json:"commit_author,omitempty"` - CommitCommitter *FindLocalBranchCommitAuthor `protobuf:"bytes,5,opt,name=commit_committer,json=commitCommitter,proto3" json:"commit_committer,omitempty"` - Commit *GitCommit `protobuf:"bytes,6,opt,name=commit,proto3" json:"commit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FindLocalBranchResponse) Reset() { *m = FindLocalBranchResponse{} } -func (m *FindLocalBranchResponse) String() string { return proto.CompactTextString(m) } -func (*FindLocalBranchResponse) ProtoMessage() {} -func (*FindLocalBranchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{12} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindLocalBranchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindLocalBranchResponse.Unmarshal(m, b) -} -func (m *FindLocalBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindLocalBranchResponse.Marshal(b, m, deterministic) + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` + CommitSubject []byte `protobuf:"bytes,3,opt,name=commit_subject,json=commitSubject,proto3" json:"commit_subject,omitempty"` + CommitAuthor *FindLocalBranchCommitAuthor `protobuf:"bytes,4,opt,name=commit_author,json=commitAuthor,proto3" json:"commit_author,omitempty"` + CommitCommitter *FindLocalBranchCommitAuthor `protobuf:"bytes,5,opt,name=commit_committer,json=commitCommitter,proto3" json:"commit_committer,omitempty"` + Commit *GitCommit `protobuf:"bytes,6,opt,name=commit,proto3" json:"commit,omitempty"` } -func (m *FindLocalBranchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindLocalBranchResponse.Merge(m, src) + +func (x *FindLocalBranchResponse) Reset() { + *x = FindLocalBranchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindLocalBranchResponse) XXX_Size() int { - return xxx_messageInfo_FindLocalBranchResponse.Size(m) + +func (x *FindLocalBranchResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindLocalBranchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindLocalBranchResponse.DiscardUnknown(m) + +func (*FindLocalBranchResponse) ProtoMessage() {} + +func (x *FindLocalBranchResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindLocalBranchResponse proto.InternalMessageInfo +// Deprecated: Use FindLocalBranchResponse.ProtoReflect.Descriptor instead. +func (*FindLocalBranchResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{12} +} -func (m *FindLocalBranchResponse) GetName() []byte { - if m != nil { - return m.Name +func (x *FindLocalBranchResponse) GetName() []byte { + if x != nil { + return x.Name } return nil } -func (m *FindLocalBranchResponse) GetCommitId() string { - if m != nil { - return m.CommitId +func (x *FindLocalBranchResponse) GetCommitId() string { + if x != nil { + return x.CommitId } return "" } -func (m *FindLocalBranchResponse) GetCommitSubject() []byte { - if m != nil { - return m.CommitSubject +func (x *FindLocalBranchResponse) GetCommitSubject() []byte { + if x != nil { + return x.CommitSubject } return nil } -func (m *FindLocalBranchResponse) GetCommitAuthor() *FindLocalBranchCommitAuthor { - if m != nil { - return m.CommitAuthor +func (x *FindLocalBranchResponse) GetCommitAuthor() *FindLocalBranchCommitAuthor { + if x != nil { + return x.CommitAuthor } return nil } -func (m *FindLocalBranchResponse) GetCommitCommitter() *FindLocalBranchCommitAuthor { - if m != nil { - return m.CommitCommitter +func (x *FindLocalBranchResponse) GetCommitCommitter() *FindLocalBranchCommitAuthor { + if x != nil { + return x.CommitCommitter } return nil } -func (m *FindLocalBranchResponse) GetCommit() *GitCommit { - if m != nil { - return m.Commit +func (x *FindLocalBranchResponse) GetCommit() *GitCommit { + if x != nil { + return x.Commit } return nil } type FindLocalBranchCommitAuthor struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - Date *timestamp.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` - Timezone []byte `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FindLocalBranchCommitAuthor) Reset() { *m = FindLocalBranchCommitAuthor{} } -func (m *FindLocalBranchCommitAuthor) String() string { return proto.CompactTextString(m) } -func (*FindLocalBranchCommitAuthor) ProtoMessage() {} -func (*FindLocalBranchCommitAuthor) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{13} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindLocalBranchCommitAuthor) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindLocalBranchCommitAuthor.Unmarshal(m, b) -} -func (m *FindLocalBranchCommitAuthor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindLocalBranchCommitAuthor.Marshal(b, m, deterministic) + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + Date *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` + Timezone []byte `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty"` } -func (m *FindLocalBranchCommitAuthor) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindLocalBranchCommitAuthor.Merge(m, src) + +func (x *FindLocalBranchCommitAuthor) Reset() { + *x = FindLocalBranchCommitAuthor{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindLocalBranchCommitAuthor) XXX_Size() int { - return xxx_messageInfo_FindLocalBranchCommitAuthor.Size(m) + +func (x *FindLocalBranchCommitAuthor) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindLocalBranchCommitAuthor) XXX_DiscardUnknown() { - xxx_messageInfo_FindLocalBranchCommitAuthor.DiscardUnknown(m) + +func (*FindLocalBranchCommitAuthor) ProtoMessage() {} + +func (x *FindLocalBranchCommitAuthor) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindLocalBranchCommitAuthor proto.InternalMessageInfo +// Deprecated: Use FindLocalBranchCommitAuthor.ProtoReflect.Descriptor instead. +func (*FindLocalBranchCommitAuthor) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{13} +} -func (m *FindLocalBranchCommitAuthor) GetName() []byte { - if m != nil { - return m.Name +func (x *FindLocalBranchCommitAuthor) GetName() []byte { + if x != nil { + return x.Name } return nil } -func (m *FindLocalBranchCommitAuthor) GetEmail() []byte { - if m != nil { - return m.Email +func (x *FindLocalBranchCommitAuthor) GetEmail() []byte { + if x != nil { + return x.Email } return nil } -func (m *FindLocalBranchCommitAuthor) GetDate() *timestamp.Timestamp { - if m != nil { - return m.Date +func (x *FindLocalBranchCommitAuthor) GetDate() *timestamppb.Timestamp { + if x != nil { + return x.Date } return nil } -func (m *FindLocalBranchCommitAuthor) GetTimezone() []byte { - if m != nil { - return m.Timezone +func (x *FindLocalBranchCommitAuthor) GetTimezone() []byte { + if x != nil { + return x.Timezone } return nil } type FindAllBranchesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Only return branches that are merged into root ref MergedOnly bool `protobuf:"varint,2,opt,name=merged_only,json=mergedOnly,proto3" json:"merged_only,omitempty"` // If merged_only is true, this is a list of branches from which we // return those merged into the root ref - MergedBranches [][]byte `protobuf:"bytes,3,rep,name=merged_branches,json=mergedBranches,proto3" json:"merged_branches,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MergedBranches [][]byte `protobuf:"bytes,3,rep,name=merged_branches,json=mergedBranches,proto3" json:"merged_branches,omitempty"` } -func (m *FindAllBranchesRequest) Reset() { *m = FindAllBranchesRequest{} } -func (m *FindAllBranchesRequest) String() string { return proto.CompactTextString(m) } -func (*FindAllBranchesRequest) ProtoMessage() {} -func (*FindAllBranchesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{14} +func (x *FindAllBranchesRequest) Reset() { + *x = FindAllBranchesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindAllBranchesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindAllBranchesRequest.Unmarshal(m, b) -} -func (m *FindAllBranchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindAllBranchesRequest.Marshal(b, m, deterministic) -} -func (m *FindAllBranchesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindAllBranchesRequest.Merge(m, src) -} -func (m *FindAllBranchesRequest) XXX_Size() int { - return xxx_messageInfo_FindAllBranchesRequest.Size(m) +func (x *FindAllBranchesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindAllBranchesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindAllBranchesRequest.DiscardUnknown(m) + +func (*FindAllBranchesRequest) ProtoMessage() {} + +func (x *FindAllBranchesRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindAllBranchesRequest proto.InternalMessageInfo +// Deprecated: Use FindAllBranchesRequest.ProtoReflect.Descriptor instead. +func (*FindAllBranchesRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{14} +} -func (m *FindAllBranchesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindAllBranchesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *FindAllBranchesRequest) GetMergedOnly() bool { - if m != nil { - return m.MergedOnly +func (x *FindAllBranchesRequest) GetMergedOnly() bool { + if x != nil { + return x.MergedOnly } return false } -func (m *FindAllBranchesRequest) GetMergedBranches() [][]byte { - if m != nil { - return m.MergedBranches +func (x *FindAllBranchesRequest) GetMergedBranches() [][]byte { + if x != nil { + return x.MergedBranches } return nil } type FindAllBranchesResponse struct { - Branches []*FindAllBranchesResponse_Branch `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindAllBranchesResponse) Reset() { *m = FindAllBranchesResponse{} } -func (m *FindAllBranchesResponse) String() string { return proto.CompactTextString(m) } -func (*FindAllBranchesResponse) ProtoMessage() {} -func (*FindAllBranchesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{15} -} - -func (m *FindAllBranchesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindAllBranchesResponse.Unmarshal(m, b) -} -func (m *FindAllBranchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindAllBranchesResponse.Marshal(b, m, deterministic) -} -func (m *FindAllBranchesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindAllBranchesResponse.Merge(m, src) -} -func (m *FindAllBranchesResponse) XXX_Size() int { - return xxx_messageInfo_FindAllBranchesResponse.Size(m) + Branches []*FindAllBranchesResponse_Branch `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"` } -func (m *FindAllBranchesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindAllBranchesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_FindAllBranchesResponse proto.InternalMessageInfo -func (m *FindAllBranchesResponse) GetBranches() []*FindAllBranchesResponse_Branch { - if m != nil { - return m.Branches +func (x *FindAllBranchesResponse) Reset() { + *x = FindAllBranchesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type FindAllBranchesResponse_Branch struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Target *GitCommit `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *FindAllBranchesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindAllBranchesResponse_Branch) Reset() { *m = FindAllBranchesResponse_Branch{} } -func (m *FindAllBranchesResponse_Branch) String() string { return proto.CompactTextString(m) } -func (*FindAllBranchesResponse_Branch) ProtoMessage() {} -func (*FindAllBranchesResponse_Branch) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{15, 0} -} +func (*FindAllBranchesResponse) ProtoMessage() {} -func (m *FindAllBranchesResponse_Branch) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindAllBranchesResponse_Branch.Unmarshal(m, b) -} -func (m *FindAllBranchesResponse_Branch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindAllBranchesResponse_Branch.Marshal(b, m, deterministic) -} -func (m *FindAllBranchesResponse_Branch) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindAllBranchesResponse_Branch.Merge(m, src) -} -func (m *FindAllBranchesResponse_Branch) XXX_Size() int { - return xxx_messageInfo_FindAllBranchesResponse_Branch.Size(m) -} -func (m *FindAllBranchesResponse_Branch) XXX_DiscardUnknown() { - xxx_messageInfo_FindAllBranchesResponse_Branch.DiscardUnknown(m) +func (x *FindAllBranchesResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindAllBranchesResponse_Branch proto.InternalMessageInfo - -func (m *FindAllBranchesResponse_Branch) GetName() []byte { - if m != nil { - return m.Name - } - return nil +// Deprecated: Use FindAllBranchesResponse.ProtoReflect.Descriptor instead. +func (*FindAllBranchesResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{15} } -func (m *FindAllBranchesResponse_Branch) GetTarget() *GitCommit { - if m != nil { - return m.Target +func (x *FindAllBranchesResponse) GetBranches() []*FindAllBranchesResponse_Branch { + if x != nil { + return x.Branches } return nil } type FindTagRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - TagName []byte `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindTagRequest) Reset() { *m = FindTagRequest{} } -func (m *FindTagRequest) String() string { return proto.CompactTextString(m) } -func (*FindTagRequest) ProtoMessage() {} -func (*FindTagRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{16} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + TagName []byte `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` } -func (m *FindTagRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindTagRequest.Unmarshal(m, b) -} -func (m *FindTagRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindTagRequest.Marshal(b, m, deterministic) -} -func (m *FindTagRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindTagRequest.Merge(m, src) +func (x *FindTagRequest) Reset() { + *x = FindTagRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindTagRequest) XXX_Size() int { - return xxx_messageInfo_FindTagRequest.Size(m) + +func (x *FindTagRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindTagRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindTagRequest.DiscardUnknown(m) + +func (*FindTagRequest) ProtoMessage() {} + +func (x *FindTagRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindTagRequest proto.InternalMessageInfo +// Deprecated: Use FindTagRequest.ProtoReflect.Descriptor instead. +func (*FindTagRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{16} +} -func (m *FindTagRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindTagRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *FindTagRequest) GetTagName() []byte { - if m != nil { - return m.TagName +func (x *FindTagRequest) GetTagName() []byte { + if x != nil { + return x.TagName } return nil } type FindTagResponse struct { - Tag *Tag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindTagResponse) Reset() { *m = FindTagResponse{} } -func (m *FindTagResponse) String() string { return proto.CompactTextString(m) } -func (*FindTagResponse) ProtoMessage() {} -func (*FindTagResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{17} + Tag *Tag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` } -func (m *FindTagResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindTagResponse.Unmarshal(m, b) -} -func (m *FindTagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindTagResponse.Marshal(b, m, deterministic) -} -func (m *FindTagResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindTagResponse.Merge(m, src) +func (x *FindTagResponse) Reset() { + *x = FindTagResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindTagResponse) XXX_Size() int { - return xxx_messageInfo_FindTagResponse.Size(m) + +func (x *FindTagResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindTagResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindTagResponse.DiscardUnknown(m) + +func (*FindTagResponse) ProtoMessage() {} + +func (x *FindTagResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindTagResponse proto.InternalMessageInfo +// Deprecated: Use FindTagResponse.ProtoReflect.Descriptor instead. +func (*FindTagResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{17} +} -func (m *FindTagResponse) GetTag() *Tag { - if m != nil { - return m.Tag +func (x *FindTagResponse) GetTag() *Tag { + if x != nil { + return x.Tag } return nil } type FindAllTagsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindAllTagsRequest) Reset() { *m = FindAllTagsRequest{} } -func (m *FindAllTagsRequest) String() string { return proto.CompactTextString(m) } -func (*FindAllTagsRequest) ProtoMessage() {} -func (*FindAllTagsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{18} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *FindAllTagsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindAllTagsRequest.Unmarshal(m, b) -} -func (m *FindAllTagsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindAllTagsRequest.Marshal(b, m, deterministic) -} -func (m *FindAllTagsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindAllTagsRequest.Merge(m, src) +func (x *FindAllTagsRequest) Reset() { + *x = FindAllTagsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindAllTagsRequest) XXX_Size() int { - return xxx_messageInfo_FindAllTagsRequest.Size(m) + +func (x *FindAllTagsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindAllTagsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindAllTagsRequest.DiscardUnknown(m) + +func (*FindAllTagsRequest) ProtoMessage() {} + +func (x *FindAllTagsRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindAllTagsRequest proto.InternalMessageInfo +// Deprecated: Use FindAllTagsRequest.ProtoReflect.Descriptor instead. +func (*FindAllTagsRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{18} +} -func (m *FindAllTagsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindAllTagsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type FindAllTagsResponse struct { - Tags []*Tag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindAllTagsResponse) Reset() { *m = FindAllTagsResponse{} } -func (m *FindAllTagsResponse) String() string { return proto.CompactTextString(m) } -func (*FindAllTagsResponse) ProtoMessage() {} -func (*FindAllTagsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{19} + Tags []*Tag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` } -func (m *FindAllTagsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindAllTagsResponse.Unmarshal(m, b) -} -func (m *FindAllTagsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindAllTagsResponse.Marshal(b, m, deterministic) -} -func (m *FindAllTagsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindAllTagsResponse.Merge(m, src) +func (x *FindAllTagsResponse) Reset() { + *x = FindAllTagsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindAllTagsResponse) XXX_Size() int { - return xxx_messageInfo_FindAllTagsResponse.Size(m) + +func (x *FindAllTagsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindAllTagsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindAllTagsResponse.DiscardUnknown(m) + +func (*FindAllTagsResponse) ProtoMessage() {} + +func (x *FindAllTagsResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindAllTagsResponse proto.InternalMessageInfo +// Deprecated: Use FindAllTagsResponse.ProtoReflect.Descriptor instead. +func (*FindAllTagsResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{19} +} -func (m *FindAllTagsResponse) GetTags() []*Tag { - if m != nil { - return m.Tags +func (x *FindAllTagsResponse) GetTags() []*Tag { + if x != nil { + return x.Tags } return nil } type RefExistsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Any ref, e.g. 'refs/heads/master' or 'refs/tags/v1.0.1'. Must start with 'refs/'. - Ref []byte `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Ref []byte `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` } -func (m *RefExistsRequest) Reset() { *m = RefExistsRequest{} } -func (m *RefExistsRequest) String() string { return proto.CompactTextString(m) } -func (*RefExistsRequest) ProtoMessage() {} -func (*RefExistsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{20} +func (x *RefExistsRequest) Reset() { + *x = RefExistsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RefExistsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RefExistsRequest.Unmarshal(m, b) +func (x *RefExistsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RefExistsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RefExistsRequest.Marshal(b, m, deterministic) -} -func (m *RefExistsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefExistsRequest.Merge(m, src) -} -func (m *RefExistsRequest) XXX_Size() int { - return xxx_messageInfo_RefExistsRequest.Size(m) -} -func (m *RefExistsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RefExistsRequest.DiscardUnknown(m) + +func (*RefExistsRequest) ProtoMessage() {} + +func (x *RefExistsRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RefExistsRequest proto.InternalMessageInfo +// Deprecated: Use RefExistsRequest.ProtoReflect.Descriptor instead. +func (*RefExistsRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{20} +} -func (m *RefExistsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *RefExistsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *RefExistsRequest) GetRef() []byte { - if m != nil { - return m.Ref +func (x *RefExistsRequest) GetRef() []byte { + if x != nil { + return x.Ref } return nil } type RefExistsResponse struct { - Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RefExistsResponse) Reset() { *m = RefExistsResponse{} } -func (m *RefExistsResponse) String() string { return proto.CompactTextString(m) } -func (*RefExistsResponse) ProtoMessage() {} -func (*RefExistsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{21} + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` } -func (m *RefExistsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RefExistsResponse.Unmarshal(m, b) -} -func (m *RefExistsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RefExistsResponse.Marshal(b, m, deterministic) -} -func (m *RefExistsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefExistsResponse.Merge(m, src) +func (x *RefExistsResponse) Reset() { + *x = RefExistsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RefExistsResponse) XXX_Size() int { - return xxx_messageInfo_RefExistsResponse.Size(m) + +func (x *RefExistsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RefExistsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RefExistsResponse.DiscardUnknown(m) + +func (*RefExistsResponse) ProtoMessage() {} + +func (x *RefExistsResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RefExistsResponse proto.InternalMessageInfo +// Deprecated: Use RefExistsResponse.ProtoReflect.Descriptor instead. +func (*RefExistsResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{21} +} -func (m *RefExistsResponse) GetValue() bool { - if m != nil { - return m.Value +func (x *RefExistsResponse) GetValue() bool { + if x != nil { + return x.Value } return false } type CreateBranchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - StartPoint []byte `protobuf:"bytes,3,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateBranchRequest) Reset() { *m = CreateBranchRequest{} } -func (m *CreateBranchRequest) String() string { return proto.CompactTextString(m) } -func (*CreateBranchRequest) ProtoMessage() {} -func (*CreateBranchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{22} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + StartPoint []byte `protobuf:"bytes,3,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"` } -func (m *CreateBranchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateBranchRequest.Unmarshal(m, b) -} -func (m *CreateBranchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateBranchRequest.Marshal(b, m, deterministic) -} -func (m *CreateBranchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateBranchRequest.Merge(m, src) +func (x *CreateBranchRequest) Reset() { + *x = CreateBranchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateBranchRequest) XXX_Size() int { - return xxx_messageInfo_CreateBranchRequest.Size(m) + +func (x *CreateBranchRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateBranchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateBranchRequest.DiscardUnknown(m) + +func (*CreateBranchRequest) ProtoMessage() {} + +func (x *CreateBranchRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateBranchRequest proto.InternalMessageInfo +// Deprecated: Use CreateBranchRequest.ProtoReflect.Descriptor instead. +func (*CreateBranchRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{22} +} -func (m *CreateBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CreateBranchRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *CreateBranchRequest) GetName() []byte { - if m != nil { - return m.Name +func (x *CreateBranchRequest) GetName() []byte { + if x != nil { + return x.Name } return nil } -func (m *CreateBranchRequest) GetStartPoint() []byte { - if m != nil { - return m.StartPoint +func (x *CreateBranchRequest) GetStartPoint() []byte { + if x != nil { + return x.StartPoint } return nil } type CreateBranchResponse struct { - Status CreateBranchResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=gitaly.CreateBranchResponse_Status" json:"status,omitempty"` - Branch *Branch `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateBranchResponse) Reset() { *m = CreateBranchResponse{} } -func (m *CreateBranchResponse) String() string { return proto.CompactTextString(m) } -func (*CreateBranchResponse) ProtoMessage() {} -func (*CreateBranchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{23} + Status CreateBranchResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=gitaly.CreateBranchResponse_Status" json:"status,omitempty"` + Branch *Branch `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"` } -func (m *CreateBranchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateBranchResponse.Unmarshal(m, b) -} -func (m *CreateBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateBranchResponse.Marshal(b, m, deterministic) -} -func (m *CreateBranchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateBranchResponse.Merge(m, src) +func (x *CreateBranchResponse) Reset() { + *x = CreateBranchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateBranchResponse) XXX_Size() int { - return xxx_messageInfo_CreateBranchResponse.Size(m) + +func (x *CreateBranchResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateBranchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateBranchResponse.DiscardUnknown(m) + +func (*CreateBranchResponse) ProtoMessage() {} + +func (x *CreateBranchResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateBranchResponse proto.InternalMessageInfo +// Deprecated: Use CreateBranchResponse.ProtoReflect.Descriptor instead. +func (*CreateBranchResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{23} +} -func (m *CreateBranchResponse) GetStatus() CreateBranchResponse_Status { - if m != nil { - return m.Status +func (x *CreateBranchResponse) GetStatus() CreateBranchResponse_Status { + if x != nil { + return x.Status } return CreateBranchResponse_OK } -func (m *CreateBranchResponse) GetBranch() *Branch { - if m != nil { - return m.Branch +func (x *CreateBranchResponse) GetBranch() *Branch { + if x != nil { + return x.Branch } return nil } type DeleteBranchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DeleteBranchRequest) Reset() { *m = DeleteBranchRequest{} } -func (m *DeleteBranchRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteBranchRequest) ProtoMessage() {} -func (*DeleteBranchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{24} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -func (m *DeleteBranchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteBranchRequest.Unmarshal(m, b) -} -func (m *DeleteBranchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteBranchRequest.Marshal(b, m, deterministic) -} -func (m *DeleteBranchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteBranchRequest.Merge(m, src) +func (x *DeleteBranchRequest) Reset() { + *x = DeleteBranchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeleteBranchRequest) XXX_Size() int { - return xxx_messageInfo_DeleteBranchRequest.Size(m) + +func (x *DeleteBranchRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteBranchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteBranchRequest.DiscardUnknown(m) + +func (*DeleteBranchRequest) ProtoMessage() {} + +func (x *DeleteBranchRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DeleteBranchRequest proto.InternalMessageInfo +// Deprecated: Use DeleteBranchRequest.ProtoReflect.Descriptor instead. +func (*DeleteBranchRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{24} +} -func (m *DeleteBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *DeleteBranchRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *DeleteBranchRequest) GetName() []byte { - if m != nil { - return m.Name +func (x *DeleteBranchRequest) GetName() []byte { + if x != nil { + return x.Name } return nil } // Not clear if we need to do status signaling; we can add fields later. type DeleteBranchResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *DeleteBranchResponse) Reset() { *m = DeleteBranchResponse{} } -func (m *DeleteBranchResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteBranchResponse) ProtoMessage() {} -func (*DeleteBranchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{25} +func (x *DeleteBranchResponse) Reset() { + *x = DeleteBranchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeleteBranchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteBranchResponse.Unmarshal(m, b) -} -func (m *DeleteBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteBranchResponse.Marshal(b, m, deterministic) -} -func (m *DeleteBranchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteBranchResponse.Merge(m, src) -} -func (m *DeleteBranchResponse) XXX_Size() int { - return xxx_messageInfo_DeleteBranchResponse.Size(m) +func (x *DeleteBranchResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteBranchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteBranchResponse.DiscardUnknown(m) + +func (*DeleteBranchResponse) ProtoMessage() {} + +func (x *DeleteBranchResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DeleteBranchResponse proto.InternalMessageInfo +// Deprecated: Use DeleteBranchResponse.ProtoReflect.Descriptor instead. +func (*DeleteBranchResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{25} +} type FindBranchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // repository is the repository in which the branch should be looked up. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // name is the name of the branch which should be looked up. This must be the // branch name only, it must not have the "refs/heads/" prefix. - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -func (m *FindBranchRequest) Reset() { *m = FindBranchRequest{} } -func (m *FindBranchRequest) String() string { return proto.CompactTextString(m) } -func (*FindBranchRequest) ProtoMessage() {} -func (*FindBranchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{26} +func (x *FindBranchRequest) Reset() { + *x = FindBranchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindBranchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindBranchRequest.Unmarshal(m, b) -} -func (m *FindBranchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindBranchRequest.Marshal(b, m, deterministic) -} -func (m *FindBranchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindBranchRequest.Merge(m, src) -} -func (m *FindBranchRequest) XXX_Size() int { - return xxx_messageInfo_FindBranchRequest.Size(m) +func (x *FindBranchRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindBranchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindBranchRequest.DiscardUnknown(m) + +func (*FindBranchRequest) ProtoMessage() {} + +func (x *FindBranchRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindBranchRequest proto.InternalMessageInfo +// Deprecated: Use FindBranchRequest.ProtoReflect.Descriptor instead. +func (*FindBranchRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{26} +} -func (m *FindBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindBranchRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *FindBranchRequest) GetName() []byte { - if m != nil { - return m.Name +func (x *FindBranchRequest) GetName() []byte { + if x != nil { + return x.Name } return nil } type FindBranchResponse struct { - Branch *Branch `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindBranchResponse) Reset() { *m = FindBranchResponse{} } -func (m *FindBranchResponse) String() string { return proto.CompactTextString(m) } -func (*FindBranchResponse) ProtoMessage() {} -func (*FindBranchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{27} + Branch *Branch `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"` } -func (m *FindBranchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindBranchResponse.Unmarshal(m, b) -} -func (m *FindBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindBranchResponse.Marshal(b, m, deterministic) -} -func (m *FindBranchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindBranchResponse.Merge(m, src) +func (x *FindBranchResponse) Reset() { + *x = FindBranchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindBranchResponse) XXX_Size() int { - return xxx_messageInfo_FindBranchResponse.Size(m) + +func (x *FindBranchResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindBranchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindBranchResponse.DiscardUnknown(m) + +func (*FindBranchResponse) ProtoMessage() {} + +func (x *FindBranchResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindBranchResponse proto.InternalMessageInfo +// Deprecated: Use FindBranchResponse.ProtoReflect.Descriptor instead. +func (*FindBranchResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{27} +} -func (m *FindBranchResponse) GetBranch() *Branch { - if m != nil { - return m.Branch +func (x *FindBranchResponse) GetBranch() *Branch { + if x != nil { + return x.Branch } return nil } type DeleteRefsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // The following two fields are mutually exclusive - ExceptWithPrefix [][]byte `protobuf:"bytes,2,rep,name=except_with_prefix,json=exceptWithPrefix,proto3" json:"except_with_prefix,omitempty"` - Refs [][]byte `protobuf:"bytes,3,rep,name=refs,proto3" json:"refs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ExceptWithPrefix [][]byte `protobuf:"bytes,2,rep,name=except_with_prefix,json=exceptWithPrefix,proto3" json:"except_with_prefix,omitempty"` + Refs [][]byte `protobuf:"bytes,3,rep,name=refs,proto3" json:"refs,omitempty"` } -func (m *DeleteRefsRequest) Reset() { *m = DeleteRefsRequest{} } -func (m *DeleteRefsRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRefsRequest) ProtoMessage() {} -func (*DeleteRefsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{28} +func (x *DeleteRefsRequest) Reset() { + *x = DeleteRefsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeleteRefsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteRefsRequest.Unmarshal(m, b) -} -func (m *DeleteRefsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteRefsRequest.Marshal(b, m, deterministic) +func (x *DeleteRefsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteRefsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteRefsRequest.Merge(m, src) -} -func (m *DeleteRefsRequest) XXX_Size() int { - return xxx_messageInfo_DeleteRefsRequest.Size(m) -} -func (m *DeleteRefsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteRefsRequest.DiscardUnknown(m) + +func (*DeleteRefsRequest) ProtoMessage() {} + +func (x *DeleteRefsRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DeleteRefsRequest proto.InternalMessageInfo +// Deprecated: Use DeleteRefsRequest.ProtoReflect.Descriptor instead. +func (*DeleteRefsRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{28} +} -func (m *DeleteRefsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *DeleteRefsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *DeleteRefsRequest) GetExceptWithPrefix() [][]byte { - if m != nil { - return m.ExceptWithPrefix +func (x *DeleteRefsRequest) GetExceptWithPrefix() [][]byte { + if x != nil { + return x.ExceptWithPrefix } return nil } -func (m *DeleteRefsRequest) GetRefs() [][]byte { - if m != nil { - return m.Refs +func (x *DeleteRefsRequest) GetRefs() [][]byte { + if x != nil { + return x.Refs } return nil } type DeleteRefsResponse struct { - GitError string `protobuf:"bytes,1,opt,name=git_error,json=gitError,proto3" json:"git_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DeleteRefsResponse) Reset() { *m = DeleteRefsResponse{} } -func (m *DeleteRefsResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteRefsResponse) ProtoMessage() {} -func (*DeleteRefsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{29} + GitError string `protobuf:"bytes,1,opt,name=git_error,json=gitError,proto3" json:"git_error,omitempty"` } -func (m *DeleteRefsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteRefsResponse.Unmarshal(m, b) -} -func (m *DeleteRefsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteRefsResponse.Marshal(b, m, deterministic) -} -func (m *DeleteRefsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteRefsResponse.Merge(m, src) -} -func (m *DeleteRefsResponse) XXX_Size() int { - return xxx_messageInfo_DeleteRefsResponse.Size(m) -} -func (m *DeleteRefsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteRefsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteRefsResponse proto.InternalMessageInfo - -func (m *DeleteRefsResponse) GetGitError() string { - if m != nil { - return m.GitError +func (x *DeleteRefsResponse) Reset() { + *x = DeleteRefsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" -} - -type ListBranchNamesContainingCommitRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` - // Limit the number of tag names to be returned - // If the limit is set to zero, all items will be returned - Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListBranchNamesContainingCommitRequest) Reset() { - *m = ListBranchNamesContainingCommitRequest{} -} -func (m *ListBranchNamesContainingCommitRequest) String() string { return proto.CompactTextString(m) } -func (*ListBranchNamesContainingCommitRequest) ProtoMessage() {} -func (*ListBranchNamesContainingCommitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{30} } -func (m *ListBranchNamesContainingCommitRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListBranchNamesContainingCommitRequest.Unmarshal(m, b) -} -func (m *ListBranchNamesContainingCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListBranchNamesContainingCommitRequest.Marshal(b, m, deterministic) -} -func (m *ListBranchNamesContainingCommitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListBranchNamesContainingCommitRequest.Merge(m, src) -} -func (m *ListBranchNamesContainingCommitRequest) XXX_Size() int { - return xxx_messageInfo_ListBranchNamesContainingCommitRequest.Size(m) -} -func (m *ListBranchNamesContainingCommitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListBranchNamesContainingCommitRequest.DiscardUnknown(m) +func (x *DeleteRefsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ListBranchNamesContainingCommitRequest proto.InternalMessageInfo +func (*DeleteRefsResponse) ProtoMessage() {} -func (m *ListBranchNamesContainingCommitRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *DeleteRefsResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *ListBranchNamesContainingCommitRequest) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" +// Deprecated: Use DeleteRefsResponse.ProtoReflect.Descriptor instead. +func (*DeleteRefsResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{29} } -func (m *ListBranchNamesContainingCommitRequest) GetLimit() uint32 { - if m != nil { - return m.Limit +func (x *DeleteRefsResponse) GetGitError() string { + if x != nil { + return x.GitError } - return 0 -} - -type ListBranchNamesContainingCommitResponse struct { - BranchNames [][]byte `protobuf:"bytes,2,rep,name=branch_names,json=branchNames,proto3" json:"branch_names,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListBranchNamesContainingCommitResponse) Reset() { - *m = ListBranchNamesContainingCommitResponse{} -} -func (m *ListBranchNamesContainingCommitResponse) String() string { return proto.CompactTextString(m) } -func (*ListBranchNamesContainingCommitResponse) ProtoMessage() {} -func (*ListBranchNamesContainingCommitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{31} -} - -func (m *ListBranchNamesContainingCommitResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListBranchNamesContainingCommitResponse.Unmarshal(m, b) -} -func (m *ListBranchNamesContainingCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListBranchNamesContainingCommitResponse.Marshal(b, m, deterministic) -} -func (m *ListBranchNamesContainingCommitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListBranchNamesContainingCommitResponse.Merge(m, src) -} -func (m *ListBranchNamesContainingCommitResponse) XXX_Size() int { - return xxx_messageInfo_ListBranchNamesContainingCommitResponse.Size(m) -} -func (m *ListBranchNamesContainingCommitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListBranchNamesContainingCommitResponse.DiscardUnknown(m) + return "" } -var xxx_messageInfo_ListBranchNamesContainingCommitResponse proto.InternalMessageInfo - -func (m *ListBranchNamesContainingCommitResponse) GetBranchNames() [][]byte { - if m != nil { - return m.BranchNames - } - return nil -} +type ListBranchNamesContainingCommitRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type ListTagNamesContainingCommitRequest struct { Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // Limit the number of tag names to be returned // If the limit is set to zero, all items will be returned - Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` } -func (m *ListTagNamesContainingCommitRequest) Reset() { *m = ListTagNamesContainingCommitRequest{} } -func (m *ListTagNamesContainingCommitRequest) String() string { return proto.CompactTextString(m) } -func (*ListTagNamesContainingCommitRequest) ProtoMessage() {} -func (*ListTagNamesContainingCommitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{32} +func (x *ListBranchNamesContainingCommitRequest) Reset() { + *x = ListBranchNamesContainingCommitRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListTagNamesContainingCommitRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListTagNamesContainingCommitRequest.Unmarshal(m, b) -} -func (m *ListTagNamesContainingCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListTagNamesContainingCommitRequest.Marshal(b, m, deterministic) -} -func (m *ListTagNamesContainingCommitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListTagNamesContainingCommitRequest.Merge(m, src) -} -func (m *ListTagNamesContainingCommitRequest) XXX_Size() int { - return xxx_messageInfo_ListTagNamesContainingCommitRequest.Size(m) +func (x *ListBranchNamesContainingCommitRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListTagNamesContainingCommitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListTagNamesContainingCommitRequest.DiscardUnknown(m) + +func (*ListBranchNamesContainingCommitRequest) ProtoMessage() {} + +func (x *ListBranchNamesContainingCommitRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListTagNamesContainingCommitRequest proto.InternalMessageInfo +// Deprecated: Use ListBranchNamesContainingCommitRequest.ProtoReflect.Descriptor instead. +func (*ListBranchNamesContainingCommitRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{30} +} -func (m *ListTagNamesContainingCommitRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ListBranchNamesContainingCommitRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ListTagNamesContainingCommitRequest) GetCommitId() string { - if m != nil { - return m.CommitId +func (x *ListBranchNamesContainingCommitRequest) GetCommitId() string { + if x != nil { + return x.CommitId } return "" } -func (m *ListTagNamesContainingCommitRequest) GetLimit() uint32 { - if m != nil { - return m.Limit +func (x *ListBranchNamesContainingCommitRequest) GetLimit() uint32 { + if x != nil { + return x.Limit } return 0 } -type ListTagNamesContainingCommitResponse struct { - TagNames [][]byte `protobuf:"bytes,2,rep,name=tag_names,json=tagNames,proto3" json:"tag_names,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListTagNamesContainingCommitResponse) Reset() { *m = ListTagNamesContainingCommitResponse{} } -func (m *ListTagNamesContainingCommitResponse) String() string { return proto.CompactTextString(m) } -func (*ListTagNamesContainingCommitResponse) ProtoMessage() {} -func (*ListTagNamesContainingCommitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{33} -} +type ListBranchNamesContainingCommitResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ListTagNamesContainingCommitResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListTagNamesContainingCommitResponse.Unmarshal(m, b) + BranchNames [][]byte `protobuf:"bytes,2,rep,name=branch_names,json=branchNames,proto3" json:"branch_names,omitempty"` } -func (m *ListTagNamesContainingCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListTagNamesContainingCommitResponse.Marshal(b, m, deterministic) -} -func (m *ListTagNamesContainingCommitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListTagNamesContainingCommitResponse.Merge(m, src) -} -func (m *ListTagNamesContainingCommitResponse) XXX_Size() int { - return xxx_messageInfo_ListTagNamesContainingCommitResponse.Size(m) -} -func (m *ListTagNamesContainingCommitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListTagNamesContainingCommitResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListTagNamesContainingCommitResponse proto.InternalMessageInfo -func (m *ListTagNamesContainingCommitResponse) GetTagNames() [][]byte { - if m != nil { - return m.TagNames +func (x *ListBranchNamesContainingCommitResponse) Reset() { + *x = ListBranchNamesContainingCommitResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type GetTagMessagesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - TagIds []string `protobuf:"bytes,3,rep,name=tag_ids,json=tagIds,proto3" json:"tag_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ListBranchNamesContainingCommitResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetTagMessagesRequest) Reset() { *m = GetTagMessagesRequest{} } -func (m *GetTagMessagesRequest) String() string { return proto.CompactTextString(m) } -func (*GetTagMessagesRequest) ProtoMessage() {} -func (*GetTagMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{34} -} +func (*ListBranchNamesContainingCommitResponse) ProtoMessage() {} -func (m *GetTagMessagesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTagMessagesRequest.Unmarshal(m, b) -} -func (m *GetTagMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTagMessagesRequest.Marshal(b, m, deterministic) -} -func (m *GetTagMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTagMessagesRequest.Merge(m, src) -} -func (m *GetTagMessagesRequest) XXX_Size() int { - return xxx_messageInfo_GetTagMessagesRequest.Size(m) -} -func (m *GetTagMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetTagMessagesRequest.DiscardUnknown(m) +func (x *ListBranchNamesContainingCommitResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetTagMessagesRequest proto.InternalMessageInfo - -func (m *GetTagMessagesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil +// Deprecated: Use ListBranchNamesContainingCommitResponse.ProtoReflect.Descriptor instead. +func (*ListBranchNamesContainingCommitResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{31} } -func (m *GetTagMessagesRequest) GetTagIds() []string { - if m != nil { - return m.TagIds +func (x *ListBranchNamesContainingCommitResponse) GetBranchNames() [][]byte { + if x != nil { + return x.BranchNames } return nil } -type GetTagMessagesResponse struct { - Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - // Only present for a new tag message - TagId string `protobuf:"bytes,3,opt,name=tag_id,json=tagId,proto3" json:"tag_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetTagMessagesResponse) Reset() { *m = GetTagMessagesResponse{} } -func (m *GetTagMessagesResponse) String() string { return proto.CompactTextString(m) } -func (*GetTagMessagesResponse) ProtoMessage() {} -func (*GetTagMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{35} -} +type ListTagNamesContainingCommitRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetTagMessagesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTagMessagesResponse.Unmarshal(m, b) -} -func (m *GetTagMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTagMessagesResponse.Marshal(b, m, deterministic) -} -func (m *GetTagMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTagMessagesResponse.Merge(m, src) -} -func (m *GetTagMessagesResponse) XXX_Size() int { - return xxx_messageInfo_GetTagMessagesResponse.Size(m) -} -func (m *GetTagMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetTagMessagesResponse.DiscardUnknown(m) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` + // Limit the number of tag names to be returned + // If the limit is set to zero, all items will be returned + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` } -var xxx_messageInfo_GetTagMessagesResponse proto.InternalMessageInfo - -func (m *GetTagMessagesResponse) GetMessage() []byte { - if m != nil { - return m.Message +func (x *ListTagNamesContainingCommitRequest) Reset() { + *x = ListTagNamesContainingCommitRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *GetTagMessagesResponse) GetTagId() string { - if m != nil { - return m.TagId - } - return "" +func (x *ListTagNamesContainingCommitRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type ListNewCommitsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*ListTagNamesContainingCommitRequest) ProtoMessage() {} -func (m *ListNewCommitsRequest) Reset() { *m = ListNewCommitsRequest{} } -func (m *ListNewCommitsRequest) String() string { return proto.CompactTextString(m) } -func (*ListNewCommitsRequest) ProtoMessage() {} -func (*ListNewCommitsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{36} +func (x *ListTagNamesContainingCommitRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ListNewCommitsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListNewCommitsRequest.Unmarshal(m, b) -} -func (m *ListNewCommitsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListNewCommitsRequest.Marshal(b, m, deterministic) -} -func (m *ListNewCommitsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListNewCommitsRequest.Merge(m, src) -} -func (m *ListNewCommitsRequest) XXX_Size() int { - return xxx_messageInfo_ListNewCommitsRequest.Size(m) -} -func (m *ListNewCommitsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListNewCommitsRequest.DiscardUnknown(m) +// Deprecated: Use ListTagNamesContainingCommitRequest.ProtoReflect.Descriptor instead. +func (*ListTagNamesContainingCommitRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{32} } -var xxx_messageInfo_ListNewCommitsRequest proto.InternalMessageInfo - -func (m *ListNewCommitsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ListTagNamesContainingCommitRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ListNewCommitsRequest) GetCommitId() string { - if m != nil { - return m.CommitId +func (x *ListTagNamesContainingCommitRequest) GetCommitId() string { + if x != nil { + return x.CommitId } return "" } -type ListNewCommitsResponse struct { - Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListNewCommitsResponse) Reset() { *m = ListNewCommitsResponse{} } -func (m *ListNewCommitsResponse) String() string { return proto.CompactTextString(m) } -func (*ListNewCommitsResponse) ProtoMessage() {} -func (*ListNewCommitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{37} -} - -func (m *ListNewCommitsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListNewCommitsResponse.Unmarshal(m, b) -} -func (m *ListNewCommitsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListNewCommitsResponse.Marshal(b, m, deterministic) -} -func (m *ListNewCommitsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListNewCommitsResponse.Merge(m, src) -} -func (m *ListNewCommitsResponse) XXX_Size() int { - return xxx_messageInfo_ListNewCommitsResponse.Size(m) -} -func (m *ListNewCommitsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListNewCommitsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListNewCommitsResponse proto.InternalMessageInfo - -func (m *ListNewCommitsResponse) GetCommits() []*GitCommit { - if m != nil { - return m.Commits +func (x *ListTagNamesContainingCommitRequest) GetLimit() uint32 { + if x != nil { + return x.Limit } - return nil -} - -type FindAllRemoteBranchesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - RemoteName string `protobuf:"bytes,2,opt,name=remote_name,json=remoteName,proto3" json:"remote_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return 0 } -func (m *FindAllRemoteBranchesRequest) Reset() { *m = FindAllRemoteBranchesRequest{} } -func (m *FindAllRemoteBranchesRequest) String() string { return proto.CompactTextString(m) } -func (*FindAllRemoteBranchesRequest) ProtoMessage() {} -func (*FindAllRemoteBranchesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{38} -} +type ListTagNamesContainingCommitResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindAllRemoteBranchesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindAllRemoteBranchesRequest.Unmarshal(m, b) -} -func (m *FindAllRemoteBranchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindAllRemoteBranchesRequest.Marshal(b, m, deterministic) -} -func (m *FindAllRemoteBranchesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindAllRemoteBranchesRequest.Merge(m, src) -} -func (m *FindAllRemoteBranchesRequest) XXX_Size() int { - return xxx_messageInfo_FindAllRemoteBranchesRequest.Size(m) -} -func (m *FindAllRemoteBranchesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindAllRemoteBranchesRequest.DiscardUnknown(m) + TagNames [][]byte `protobuf:"bytes,2,rep,name=tag_names,json=tagNames,proto3" json:"tag_names,omitempty"` } -var xxx_messageInfo_FindAllRemoteBranchesRequest proto.InternalMessageInfo - -func (m *FindAllRemoteBranchesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ListTagNamesContainingCommitResponse) Reset() { + *x = ListTagNamesContainingCommitResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *FindAllRemoteBranchesRequest) GetRemoteName() string { - if m != nil { - return m.RemoteName - } - return "" -} - -type FindAllRemoteBranchesResponse struct { - Branches []*Branch `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ListTagNamesContainingCommitResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindAllRemoteBranchesResponse) Reset() { *m = FindAllRemoteBranchesResponse{} } -func (m *FindAllRemoteBranchesResponse) String() string { return proto.CompactTextString(m) } -func (*FindAllRemoteBranchesResponse) ProtoMessage() {} -func (*FindAllRemoteBranchesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{39} -} +func (*ListTagNamesContainingCommitResponse) ProtoMessage() {} -func (m *FindAllRemoteBranchesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindAllRemoteBranchesResponse.Unmarshal(m, b) -} -func (m *FindAllRemoteBranchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindAllRemoteBranchesResponse.Marshal(b, m, deterministic) -} -func (m *FindAllRemoteBranchesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindAllRemoteBranchesResponse.Merge(m, src) -} -func (m *FindAllRemoteBranchesResponse) XXX_Size() int { - return xxx_messageInfo_FindAllRemoteBranchesResponse.Size(m) -} -func (m *FindAllRemoteBranchesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindAllRemoteBranchesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_FindAllRemoteBranchesResponse proto.InternalMessageInfo - -func (m *FindAllRemoteBranchesResponse) GetBranches() []*Branch { - if m != nil { - return m.Branches +func (x *ListTagNamesContainingCommitResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil -} - -type PackRefsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - AllRefs bool `protobuf:"varint,2,opt,name=all_refs,json=allRefs,proto3" json:"all_refs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return mi.MessageOf(x) } -func (m *PackRefsRequest) Reset() { *m = PackRefsRequest{} } -func (m *PackRefsRequest) String() string { return proto.CompactTextString(m) } -func (*PackRefsRequest) ProtoMessage() {} -func (*PackRefsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{40} -} - -func (m *PackRefsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PackRefsRequest.Unmarshal(m, b) -} -func (m *PackRefsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PackRefsRequest.Marshal(b, m, deterministic) -} -func (m *PackRefsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PackRefsRequest.Merge(m, src) -} -func (m *PackRefsRequest) XXX_Size() int { - return xxx_messageInfo_PackRefsRequest.Size(m) -} -func (m *PackRefsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PackRefsRequest.DiscardUnknown(m) +// Deprecated: Use ListTagNamesContainingCommitResponse.ProtoReflect.Descriptor instead. +func (*ListTagNamesContainingCommitResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{33} } -var xxx_messageInfo_PackRefsRequest proto.InternalMessageInfo - -func (m *PackRefsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ListTagNamesContainingCommitResponse) GetTagNames() [][]byte { + if x != nil { + return x.TagNames } return nil } -func (m *PackRefsRequest) GetAllRefs() bool { - if m != nil { - return m.AllRefs - } - return false -} +type GetTagMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type PackRefsResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + TagIds []string `protobuf:"bytes,3,rep,name=tag_ids,json=tagIds,proto3" json:"tag_ids,omitempty"` } -func (m *PackRefsResponse) Reset() { *m = PackRefsResponse{} } -func (m *PackRefsResponse) String() string { return proto.CompactTextString(m) } -func (*PackRefsResponse) ProtoMessage() {} -func (*PackRefsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_65d958559ea81b29, []int{41} -} - -func (m *PackRefsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PackRefsResponse.Unmarshal(m, b) -} -func (m *PackRefsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PackRefsResponse.Marshal(b, m, deterministic) -} -func (m *PackRefsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PackRefsResponse.Merge(m, src) -} -func (m *PackRefsResponse) XXX_Size() int { - return xxx_messageInfo_PackRefsResponse.Size(m) -} -func (m *PackRefsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PackRefsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PackRefsResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("gitaly.FindLocalBranchesRequest_SortBy", FindLocalBranchesRequest_SortBy_name, FindLocalBranchesRequest_SortBy_value) - proto.RegisterEnum("gitaly.CreateBranchResponse_Status", CreateBranchResponse_Status_name, CreateBranchResponse_Status_value) - proto.RegisterType((*ListNewBlobsRequest)(nil), "gitaly.ListNewBlobsRequest") - proto.RegisterType((*ListNewBlobsResponse)(nil), "gitaly.ListNewBlobsResponse") - proto.RegisterType((*FindDefaultBranchNameRequest)(nil), "gitaly.FindDefaultBranchNameRequest") - proto.RegisterType((*FindDefaultBranchNameResponse)(nil), "gitaly.FindDefaultBranchNameResponse") - proto.RegisterType((*FindAllBranchNamesRequest)(nil), "gitaly.FindAllBranchNamesRequest") - proto.RegisterType((*FindAllBranchNamesResponse)(nil), "gitaly.FindAllBranchNamesResponse") - proto.RegisterType((*FindAllTagNamesRequest)(nil), "gitaly.FindAllTagNamesRequest") - proto.RegisterType((*FindAllTagNamesResponse)(nil), "gitaly.FindAllTagNamesResponse") - proto.RegisterType((*FindRefNameRequest)(nil), "gitaly.FindRefNameRequest") - proto.RegisterType((*FindRefNameResponse)(nil), "gitaly.FindRefNameResponse") - proto.RegisterType((*FindLocalBranchesRequest)(nil), "gitaly.FindLocalBranchesRequest") - proto.RegisterType((*FindLocalBranchesResponse)(nil), "gitaly.FindLocalBranchesResponse") - proto.RegisterType((*FindLocalBranchResponse)(nil), "gitaly.FindLocalBranchResponse") - proto.RegisterType((*FindLocalBranchCommitAuthor)(nil), "gitaly.FindLocalBranchCommitAuthor") - proto.RegisterType((*FindAllBranchesRequest)(nil), "gitaly.FindAllBranchesRequest") - proto.RegisterType((*FindAllBranchesResponse)(nil), "gitaly.FindAllBranchesResponse") - proto.RegisterType((*FindAllBranchesResponse_Branch)(nil), "gitaly.FindAllBranchesResponse.Branch") - proto.RegisterType((*FindTagRequest)(nil), "gitaly.FindTagRequest") - proto.RegisterType((*FindTagResponse)(nil), "gitaly.FindTagResponse") - proto.RegisterType((*FindAllTagsRequest)(nil), "gitaly.FindAllTagsRequest") - proto.RegisterType((*FindAllTagsResponse)(nil), "gitaly.FindAllTagsResponse") - proto.RegisterType((*RefExistsRequest)(nil), "gitaly.RefExistsRequest") - proto.RegisterType((*RefExistsResponse)(nil), "gitaly.RefExistsResponse") - proto.RegisterType((*CreateBranchRequest)(nil), "gitaly.CreateBranchRequest") - proto.RegisterType((*CreateBranchResponse)(nil), "gitaly.CreateBranchResponse") - proto.RegisterType((*DeleteBranchRequest)(nil), "gitaly.DeleteBranchRequest") - proto.RegisterType((*DeleteBranchResponse)(nil), "gitaly.DeleteBranchResponse") - proto.RegisterType((*FindBranchRequest)(nil), "gitaly.FindBranchRequest") - proto.RegisterType((*FindBranchResponse)(nil), "gitaly.FindBranchResponse") - proto.RegisterType((*DeleteRefsRequest)(nil), "gitaly.DeleteRefsRequest") - proto.RegisterType((*DeleteRefsResponse)(nil), "gitaly.DeleteRefsResponse") - proto.RegisterType((*ListBranchNamesContainingCommitRequest)(nil), "gitaly.ListBranchNamesContainingCommitRequest") - proto.RegisterType((*ListBranchNamesContainingCommitResponse)(nil), "gitaly.ListBranchNamesContainingCommitResponse") - proto.RegisterType((*ListTagNamesContainingCommitRequest)(nil), "gitaly.ListTagNamesContainingCommitRequest") - proto.RegisterType((*ListTagNamesContainingCommitResponse)(nil), "gitaly.ListTagNamesContainingCommitResponse") - proto.RegisterType((*GetTagMessagesRequest)(nil), "gitaly.GetTagMessagesRequest") - proto.RegisterType((*GetTagMessagesResponse)(nil), "gitaly.GetTagMessagesResponse") - proto.RegisterType((*ListNewCommitsRequest)(nil), "gitaly.ListNewCommitsRequest") - proto.RegisterType((*ListNewCommitsResponse)(nil), "gitaly.ListNewCommitsResponse") - proto.RegisterType((*FindAllRemoteBranchesRequest)(nil), "gitaly.FindAllRemoteBranchesRequest") - proto.RegisterType((*FindAllRemoteBranchesResponse)(nil), "gitaly.FindAllRemoteBranchesResponse") - proto.RegisterType((*PackRefsRequest)(nil), "gitaly.PackRefsRequest") - proto.RegisterType((*PackRefsResponse)(nil), "gitaly.PackRefsResponse") -} - -func init() { proto.RegisterFile("ref.proto", fileDescriptor_65d958559ea81b29) } - -var fileDescriptor_65d958559ea81b29 = []byte{ - // 1749 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0x5f, 0x73, 0x1b, 0x49, - 0x11, 0xbf, 0x95, 0x6d, 0x59, 0x6a, 0x29, 0xf2, 0x7a, 0xe2, 0x3f, 0xf2, 0x3a, 0x89, 0x9d, 0xb9, - 0xbb, 0xc4, 0xe1, 0x82, 0x7c, 0xe7, 0x3b, 0x28, 0xaa, 0xa0, 0x0a, 0xfc, 0x47, 0x24, 0x26, 0x39, - 0x45, 0x35, 0xd2, 0x71, 0x39, 0x8a, 0x62, 0x6b, 0x24, 0x8d, 0xd6, 0x0b, 0xab, 0x5d, 0xb1, 0x3b, - 0x4e, 0x62, 0x78, 0xe3, 0x78, 0xa4, 0x8a, 0x2a, 0x28, 0xea, 0x78, 0xe0, 0x89, 0x07, 0x3e, 0x02, - 0x1f, 0x81, 0x17, 0xbe, 0x11, 0x4f, 0xd4, 0xce, 0xcc, 0xfe, 0x93, 0x56, 0x72, 0xaa, 0xac, 0x14, - 0x3c, 0x69, 0xa7, 0xa7, 0xfb, 0x37, 0xbf, 0xe9, 0xe9, 0xed, 0xee, 0x59, 0x41, 0xd9, 0x67, 0xc3, - 0xc6, 0xd8, 0xf7, 0xb8, 0x87, 0x8a, 0x96, 0xcd, 0xa9, 0x73, 0x65, 0x80, 0x63, 0xbb, 0x5c, 0xca, - 0x8c, 0x6a, 0x70, 0x41, 0x7d, 0x36, 0x50, 0x23, 0xe8, 0x39, 0x5e, 0x4f, 0x3d, 0xef, 0x59, 0x9e, - 0x67, 0x39, 0xec, 0x50, 0x8c, 0x7a, 0x97, 0xc3, 0x43, 0x6e, 0x8f, 0x58, 0xc0, 0xe9, 0x68, 0x2c, - 0x15, 0xf0, 0xef, 0x34, 0xb8, 0xfd, 0xdc, 0x0e, 0x78, 0x8b, 0xbd, 0x3e, 0x71, 0xbc, 0x5e, 0x40, - 0xd8, 0xaf, 0x2f, 0x59, 0xc0, 0xd1, 0xf7, 0x00, 0x7c, 0x36, 0xf6, 0x02, 0x9b, 0x7b, 0xfe, 0x55, - 0x5d, 0xdb, 0xd7, 0x0e, 0x2a, 0x47, 0xa8, 0x21, 0xd7, 0x6e, 0x90, 0x78, 0xe6, 0x64, 0xf9, 0xaf, - 0xff, 0x7a, 0xac, 0x91, 0x94, 0x2e, 0xda, 0x85, 0x72, 0xdf, 0x1b, 0x8d, 0x6c, 0x6e, 0xda, 0x83, - 0x7a, 0x61, 0x5f, 0x3b, 0x28, 0x93, 0x92, 0x14, 0x9c, 0x0f, 0xd0, 0x06, 0xac, 0x38, 0xf6, 0xc8, - 0xe6, 0xf5, 0xa5, 0x7d, 0xed, 0xe0, 0x16, 0x91, 0x03, 0xfc, 0x25, 0x6c, 0x64, 0x39, 0x04, 0x63, - 0xcf, 0x0d, 0x18, 0xfa, 0x21, 0xe8, 0x2e, 0x7b, 0x6d, 0x86, 0xfb, 0x31, 0xbd, 0xde, 0x2f, 0x59, - 0x9f, 0x07, 0x75, 0x6d, 0x7f, 0xe9, 0xa0, 0x72, 0xb4, 0x19, 0x51, 0x51, 0x36, 0x2f, 0xc4, 0x2c, - 0xa9, 0xb9, 0xe9, 0x61, 0x80, 0x5f, 0xc2, 0x9d, 0x1f, 0xdb, 0xee, 0xe0, 0x8c, 0x0d, 0xe9, 0xa5, - 0xc3, 0x4f, 0x7c, 0xea, 0xf6, 0x2f, 0x5a, 0x74, 0xc4, 0x6e, 0xbc, 0x4b, 0xfc, 0x29, 0xdc, 0x9d, - 0x81, 0xac, 0xb8, 0x23, 0x58, 0x76, 0xe9, 0x88, 0x09, 0xd0, 0x2a, 0x11, 0xcf, 0xf8, 0x0b, 0xd8, - 0x09, 0x8d, 0x8e, 0x1d, 0x27, 0x31, 0xb8, 0xb9, 0xc7, 0xf1, 0x11, 0x18, 0x79, 0xb0, 0x8a, 0xc8, - 0x06, 0xac, 0x84, 0x8b, 0x4b, 0xcf, 0x55, 0x89, 0x1c, 0x60, 0x02, 0x5b, 0xca, 0xa6, 0x4b, 0xad, - 0x05, 0xf1, 0x38, 0x84, 0xed, 0x29, 0xcc, 0xb9, 0x24, 0xbe, 0xd6, 0x00, 0x85, 0x16, 0x84, 0x0d, - 0x17, 0x72, 0x2a, 0xf3, 0x63, 0x6f, 0x0b, 0x8a, 0x63, 0x9f, 0x0d, 0xed, 0x37, 0x22, 0xf8, 0xaa, - 0x44, 0x8d, 0xf0, 0x23, 0xb8, 0x9d, 0x21, 0x31, 0xe7, 0x00, 0xbf, 0x29, 0x40, 0x3d, 0xd4, 0x7d, - 0xee, 0xf5, 0xa9, 0x72, 0xf6, 0x02, 0x1c, 0x87, 0x7e, 0x04, 0xab, 0x81, 0xe7, 0x73, 0xb3, 0x77, - 0x25, 0x48, 0xd7, 0x8e, 0x1e, 0x46, 0x66, 0xb3, 0x16, 0x6b, 0x74, 0x3c, 0x9f, 0x9f, 0x5c, 0x91, - 0x62, 0x20, 0x7e, 0xd1, 0x53, 0x58, 0x1f, 0x53, 0xcb, 0x76, 0x29, 0xb7, 0x3d, 0xd7, 0x1c, 0x53, - 0x9f, 0x8e, 0x02, 0xb1, 0xcd, 0xca, 0xd1, 0x6e, 0x84, 0xd5, 0x8e, 0x15, 0xda, 0xe1, 0x3c, 0xe3, - 0xcc, 0x27, 0xfa, 0x38, 0x2b, 0x0c, 0xf0, 0x77, 0xa0, 0x28, 0xb1, 0x51, 0x09, 0x96, 0x5b, 0xc7, - 0x9f, 0x37, 0xf5, 0xf7, 0xd0, 0x1a, 0x54, 0xbe, 0x68, 0x9f, 0x1d, 0x77, 0x9b, 0x67, 0xe6, 0x71, - 0xe7, 0x54, 0xd7, 0x90, 0x0e, 0xd5, 0x48, 0x70, 0xd6, 0xec, 0x9c, 0xea, 0x05, 0xfc, 0x52, 0x86, - 0xf6, 0x04, 0x57, 0xe5, 0xca, 0xef, 0x43, 0xa9, 0xa7, 0x64, 0xea, 0xfd, 0xdd, 0x9b, 0xb1, 0xc1, - 0xc8, 0x84, 0xc4, 0x06, 0xf8, 0x9f, 0x05, 0x19, 0x56, 0x39, 0x5a, 0x79, 0x67, 0x34, 0x3f, 0x06, - 0x3e, 0x84, 0x9a, 0x9a, 0x0c, 0x2e, 0x45, 0x8e, 0x50, 0xb1, 0x70, 0x4b, 0x4a, 0x3b, 0x52, 0x88, - 0x9e, 0x82, 0x12, 0x98, 0xf4, 0x92, 0x5f, 0x78, 0x7e, 0x7d, 0x59, 0xb8, 0xf2, 0xfd, 0x19, 0xac, - 0x4f, 0x85, 0xee, 0xb1, 0x50, 0x25, 0xd5, 0x7e, 0x6a, 0x84, 0x5a, 0xa0, 0x2b, 0x24, 0xf9, 0xc3, - 0x99, 0x5f, 0x5f, 0x79, 0x7b, 0xb0, 0x35, 0x69, 0x75, 0x1a, 0xd9, 0xa2, 0x47, 0x50, 0x94, 0xa2, - 0x7a, 0x51, 0xa0, 0xac, 0x47, 0x28, 0x4f, 0x22, 0x2d, 0xa2, 0x14, 0xf0, 0x9f, 0x35, 0xd8, 0x9d, - 0x83, 0x9d, 0xeb, 0xbc, 0x0d, 0x58, 0x61, 0x23, 0x6a, 0x3b, 0xc2, 0x71, 0x55, 0x22, 0x07, 0xa8, - 0x01, 0xcb, 0x03, 0xca, 0x99, 0x0a, 0x28, 0xa3, 0x21, 0x8b, 0x4a, 0x23, 0x2a, 0x2a, 0x8d, 0x6e, - 0x54, 0x54, 0x88, 0xd0, 0x43, 0x06, 0x94, 0xc2, 0x3a, 0xf3, 0x1b, 0xcf, 0x65, 0xc2, 0x73, 0x55, - 0x12, 0x8f, 0xf1, 0xdf, 0xb4, 0x38, 0xf3, 0x2c, 0xee, 0x05, 0xda, 0x83, 0xca, 0x88, 0xf9, 0x16, - 0x1b, 0x98, 0x9e, 0xeb, 0xc8, 0x97, 0xa8, 0x44, 0x40, 0x8a, 0x5e, 0xb8, 0xce, 0x15, 0x7a, 0x08, - 0x6b, 0x4a, 0x21, 0x0e, 0xc4, 0x25, 0x91, 0x89, 0x6a, 0x52, 0x1c, 0x51, 0xc1, 0xff, 0xd0, 0xe2, - 0x24, 0x36, 0x15, 0xc6, 0x27, 0x53, 0x61, 0xfc, 0x20, 0x7d, 0x86, 0x39, 0x26, 0x0d, 0x15, 0xaf, - 0xb1, 0x9d, 0xf1, 0x04, 0x8a, 0x52, 0x96, 0xeb, 0xfe, 0x47, 0x50, 0xe4, 0xd4, 0xb7, 0x18, 0x17, - 0x5b, 0xc8, 0x3f, 0x5d, 0xa9, 0x80, 0x19, 0xd4, 0xc2, 0x45, 0xbb, 0xd4, 0xba, 0xb9, 0xfb, 0x76, - 0xa0, 0xc4, 0xa9, 0x65, 0x0a, 0x3a, 0xf2, 0xe0, 0x57, 0xb9, 0xcc, 0xe0, 0xf8, 0x63, 0x58, 0x8b, - 0x97, 0x51, 0x6e, 0xb8, 0x0b, 0x4b, 0x9c, 0x5a, 0x6a, 0x81, 0x4a, 0xb4, 0x40, 0xa8, 0x11, 0xca, - 0x71, 0x4b, 0xe6, 0x74, 0x59, 0x05, 0x16, 0x50, 0x55, 0xbe, 0x2b, 0xd3, 0x73, 0x8c, 0xa7, 0x58, - 0xec, 0xc1, 0x32, 0xa7, 0x56, 0x74, 0x10, 0x19, 0x1a, 0x62, 0x02, 0xff, 0x02, 0x74, 0xc2, 0x86, - 0xcd, 0x37, 0x76, 0xc0, 0x17, 0x10, 0x61, 0x3a, 0x2c, 0xf9, 0x6c, 0xa8, 0xbc, 0x13, 0x3e, 0xe2, - 0x47, 0xb0, 0x9e, 0xc2, 0x4f, 0xea, 0xdc, 0x2b, 0xea, 0x5c, 0xca, 0x53, 0x2d, 0x11, 0x39, 0xc0, - 0xbf, 0xd7, 0xe0, 0xf6, 0xa9, 0xcf, 0x28, 0x67, 0x51, 0xfe, 0xba, 0x29, 0x9d, 0x28, 0x78, 0x0a, - 0xa9, 0xe0, 0xd9, 0x83, 0x4a, 0xc0, 0xa9, 0xcf, 0xcd, 0xb1, 0x67, 0xbb, 0x51, 0x62, 0x03, 0x21, - 0x6a, 0x87, 0x12, 0xfc, 0x6f, 0x0d, 0x36, 0xb2, 0x34, 0xe2, 0xfc, 0x5c, 0x0c, 0x38, 0xe5, 0x97, - 0x81, 0xe0, 0x50, 0x4b, 0x52, 0x53, 0x9e, 0x76, 0xa3, 0x23, 0x54, 0x89, 0x32, 0x41, 0x0f, 0xa0, - 0x28, 0xa3, 0x5b, 0xc5, 0x6c, 0x2d, 0x32, 0x56, 0x66, 0x6a, 0x16, 0xb7, 0xa0, 0x28, 0x2d, 0x51, - 0x11, 0x0a, 0x2f, 0x9e, 0xe9, 0xef, 0xa1, 0x1a, 0x40, 0x93, 0x10, 0xb3, 0xf9, 0xf2, 0xbc, 0xd3, - 0xed, 0xe8, 0x5a, 0x58, 0x66, 0xc2, 0xf1, 0x79, 0xeb, 0xa7, 0xc7, 0xcf, 0xcf, 0xcf, 0xf4, 0x02, - 0xda, 0x85, 0xed, 0x94, 0xc0, 0xec, 0x74, 0x8f, 0x49, 0xd7, 0x6c, 0xbf, 0x38, 0x6f, 0x75, 0xf5, - 0x25, 0xdc, 0x87, 0xdb, 0x67, 0xcc, 0x61, 0xef, 0xd4, 0xa7, 0x78, 0x0b, 0x36, 0xb2, 0x8b, 0x48, - 0x1f, 0x60, 0x0a, 0xeb, 0x61, 0x50, 0xbe, 0xcb, 0xa5, 0x7f, 0x20, 0xdf, 0xa3, 0x89, 0xa3, 0x4a, - 0xbc, 0xad, 0xcd, 0xf5, 0xf6, 0x1f, 0x35, 0x58, 0x97, 0xcc, 0x09, 0x1b, 0x2e, 0x20, 0xfe, 0x1f, - 0x03, 0x62, 0x6f, 0xfa, 0x6c, 0xcc, 0xcd, 0xd7, 0x36, 0xbf, 0x30, 0x55, 0x23, 0x55, 0x10, 0x39, - 0x54, 0x97, 0x33, 0x5f, 0xda, 0xfc, 0xa2, 0x2d, 0xe4, 0xe1, 0x7e, 0x7c, 0x36, 0x8c, 0x72, 0xac, - 0x78, 0xc6, 0x9f, 0x00, 0x4a, 0x13, 0x52, 0xfb, 0xd9, 0x85, 0xb2, 0x65, 0x73, 0x93, 0xf9, 0xbe, - 0xe7, 0x0b, 0x42, 0x65, 0x52, 0xb2, 0x6c, 0xde, 0x0c, 0xc7, 0xf8, 0x2f, 0x1a, 0x3c, 0x08, 0x2f, - 0x06, 0xa9, 0xb6, 0xf6, 0xd4, 0x73, 0x39, 0xb5, 0x5d, 0xdb, 0xb5, 0x54, 0x3e, 0xfc, 0x5f, 0xdc, - 0x57, 0x08, 0x3c, 0xbc, 0x96, 0x96, 0xda, 0xdf, 0x7d, 0xa8, 0xca, 0x13, 0x31, 0x65, 0xff, 0x2b, - 0x3d, 0x56, 0xe9, 0x25, 0xa6, 0x3f, 0x59, 0x2e, 0x69, 0x7a, 0x01, 0xff, 0x49, 0x83, 0xf7, 0x43, - 0xd0, 0xa8, 0x75, 0xfe, 0xbf, 0xd8, 0xe8, 0x39, 0x7c, 0x30, 0x9f, 0x53, 0x72, 0x8a, 0x51, 0x01, - 0x89, 0xb6, 0x58, 0x52, 0x15, 0x24, 0xda, 0xdf, 0x6f, 0x61, 0xf3, 0x09, 0x0b, 0x91, 0x3e, 0x67, - 0x41, 0x40, 0xad, 0x45, 0x54, 0xfd, 0x6d, 0x08, 0xcb, 0x94, 0x69, 0x0f, 0x64, 0xa0, 0x95, 0xc3, - 0xda, 0x68, 0x9d, 0x0f, 0xc2, 0x15, 0x0b, 0xfa, 0x12, 0x49, 0x28, 0xe1, 0xaf, 0x60, 0x6b, 0x72, - 0x71, 0xc5, 0xbc, 0x0e, 0xab, 0x23, 0x29, 0x8b, 0x2a, 0x9f, 0x1a, 0xa2, 0xcd, 0xb0, 0x16, 0x87, - 0xe8, 0xc2, 0x25, 0x65, 0xb2, 0x22, 0xc0, 0xe5, 0x6e, 0x48, 0x5c, 0x2f, 0xb1, 0x0b, 0x9b, 0xea, - 0xee, 0x2a, 0x7d, 0xf2, 0x8e, 0x6f, 0xd0, 0xb8, 0x09, 0x5b, 0x93, 0xeb, 0xa9, 0xad, 0x7c, 0x04, - 0xab, 0x52, 0x2b, 0x2a, 0x8a, 0x39, 0xdd, 0x43, 0xa4, 0x81, 0xaf, 0xe4, 0xcd, 0xf8, 0xd8, 0x71, - 0x08, 0x1b, 0x79, 0x51, 0x7e, 0x5b, 0x50, 0x2f, 0xe6, 0x0b, 0xc8, 0xa4, 0x9f, 0x28, 0x87, 0x0a, - 0xa1, 0x48, 0xb4, 0x14, 0xcf, 0xe4, 0xd5, 0x39, 0x67, 0x69, 0xb5, 0x91, 0x6f, 0x4d, 0xf5, 0x59, - 0x93, 0x59, 0x2e, 0xb9, 0x1d, 0x0c, 0x61, 0xad, 0x4d, 0xfb, 0xbf, 0x5a, 0x4c, 0x92, 0xdb, 0x81, - 0x12, 0x75, 0x1c, 0x53, 0xa4, 0x2e, 0xd9, 0x43, 0xae, 0xd2, 0x90, 0xe5, 0x30, 0xc0, 0x08, 0xf4, - 0x64, 0x1d, 0xc9, 0xf3, 0xe8, 0xef, 0xb7, 0x00, 0x08, 0x1b, 0x76, 0x98, 0xff, 0xca, 0xee, 0x33, - 0xe4, 0xc0, 0x66, 0xee, 0x27, 0x01, 0xf4, 0x41, 0xba, 0x4b, 0x9c, 0xf5, 0x2d, 0xc2, 0xf8, 0xf0, - 0x1a, 0x2d, 0x55, 0x79, 0x8a, 0xff, 0xf9, 0xe6, 0xa0, 0x50, 0x2a, 0x20, 0x16, 0xb7, 0x59, 0xa9, - 0x34, 0x84, 0xee, 0xe7, 0x36, 0xa4, 0xe9, 0xfb, 0xbd, 0x81, 0xe7, 0xa9, 0x64, 0x17, 0xf9, 0x58, - 0x43, 0x3f, 0x97, 0xfd, 0x5f, 0xea, 0x4e, 0x8f, 0xee, 0x4d, 0x00, 0x4c, 0x7c, 0x40, 0x30, 0xf6, - 0x66, 0xce, 0x4f, 0xa1, 0xb7, 0xa0, 0x92, 0xba, 0x7a, 0x23, 0x23, 0x6d, 0x99, 0xfd, 0x28, 0x60, - 0xec, 0xe6, 0xce, 0x4d, 0x38, 0xa5, 0x27, 0xcb, 0x72, 0xe6, 0x16, 0x8a, 0xf6, 0xaf, 0xbb, 0x4c, - 0x1b, 0xf7, 0xe7, 0x68, 0xcc, 0xf1, 0x48, 0xbc, 0xc2, 0xbd, 0x99, 0xd7, 0x80, 0x7c, 0x8f, 0xcc, - 0x41, 0x6f, 0x4b, 0x8f, 0xa8, 0x6e, 0x37, 0xeb, 0x91, 0x6c, 0x4b, 0x9d, 0xf5, 0xc8, 0x44, 0x7b, - 0x9c, 0x42, 0x3c, 0x81, 0x55, 0xd5, 0xc1, 0xa3, 0xad, 0xb4, 0x45, 0x72, 0x73, 0x30, 0xb6, 0xa7, - 0xe4, 0x13, 0x7e, 0x75, 0x65, 0x68, 0x4f, 0xbd, 0xb2, 0xd9, 0xd0, 0x9e, 0x95, 0x4c, 0xb2, 0xa1, - 0x3d, 0xf3, 0xbd, 0x4f, 0x71, 0x7e, 0x0a, 0xe5, 0xb8, 0xb7, 0x46, 0xf5, 0xe4, 0xdd, 0xcd, 0xb6, - 0xf3, 0xc6, 0x4e, 0xce, 0xcc, 0x04, 0xf3, 0x67, 0x00, 0x49, 0x17, 0x85, 0x76, 0xd2, 0x44, 0x32, - 0xcd, 0x9b, 0x61, 0xe4, 0x4d, 0x4d, 0x83, 0x25, 0x2d, 0x4c, 0x02, 0x36, 0xd5, 0x67, 0x25, 0x60, - 0xd3, 0x1d, 0x8f, 0x02, 0xd3, 0xd0, 0x1f, 0x34, 0xd8, 0xbb, 0xa6, 0x8b, 0x40, 0x8d, 0x08, 0xe7, - 0xed, 0xba, 0x20, 0xe3, 0xf0, 0xad, 0xf5, 0xa7, 0x5c, 0xfe, 0xb5, 0x06, 0x77, 0xe6, 0xd5, 0x7a, - 0xf4, 0x51, 0x1a, 0xfb, 0x9a, 0x2e, 0xc5, 0x78, 0xfc, 0x76, 0xca, 0x53, 0x2c, 0xbe, 0x82, 0x5a, - 0xb6, 0x50, 0xa3, 0xbb, 0x71, 0x11, 0xcb, 0xeb, 0x1e, 0x8c, 0x7b, 0xb3, 0xa6, 0xf3, 0xa0, 0xb3, - 0x85, 0x33, 0x81, 0xce, 0x2d, 0xe0, 0x09, 0x74, 0x7e, 0xbd, 0x4d, 0x41, 0x77, 0xa0, 0x9a, 0xfe, - 0x7e, 0x8d, 0x76, 0x27, 0x2c, 0xd3, 0x5f, 0xd6, 0x8d, 0x3b, 0xf9, 0x93, 0x53, 0xa0, 0x4d, 0x28, - 0x45, 0x15, 0x07, 0x6d, 0x27, 0xdf, 0xf0, 0x32, 0xb5, 0xce, 0xa8, 0x4f, 0x4f, 0x64, 0xc3, 0xec, - 0xe4, 0xb3, 0x9f, 0x1d, 0x59, 0x36, 0x77, 0x68, 0xaf, 0xd1, 0xf7, 0x46, 0x87, 0xf2, 0xf1, 0xdb, - 0x9e, 0x6f, 0x1d, 0x4a, 0xc3, 0xc3, 0x57, 0x9f, 0x7c, 0x26, 0xff, 0x1d, 0x38, 0xb4, 0x3c, 0x25, - 0x1b, 0xf7, 0x7a, 0x45, 0x21, 0xfa, 0xf4, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x82, 0x3a, 0x57, - 0xea, 0x79, 0x18, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// RefServiceClient is the client API for RefService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RefServiceClient interface { - FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error) - FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchNamesClient, error) - FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequest, opts ...grpc.CallOption) (RefService_FindAllTagNamesClient, error) - // Find a Ref matching the given constraints. Response may be empty. - FindRefName(ctx context.Context, in *FindRefNameRequest, opts ...grpc.CallOption) (*FindRefNameResponse, error) - // Return a stream so we can divide the response in chunks of branches - FindLocalBranches(ctx context.Context, in *FindLocalBranchesRequest, opts ...grpc.CallOption) (RefService_FindLocalBranchesClient, error) - FindAllBranches(ctx context.Context, in *FindAllBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchesClient, error) - FindAllTags(ctx context.Context, in *FindAllTagsRequest, opts ...grpc.CallOption) (RefService_FindAllTagsClient, error) - FindTag(ctx context.Context, in *FindTagRequest, opts ...grpc.CallOption) (*FindTagResponse, error) - FindAllRemoteBranches(ctx context.Context, in *FindAllRemoteBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllRemoteBranchesClient, error) - RefExists(ctx context.Context, in *RefExistsRequest, opts ...grpc.CallOption) (*RefExistsResponse, error) - // FindBranch finds a branch by its unqualified name (like "master") and - // returns the commit it currently points to. - FindBranch(ctx context.Context, in *FindBranchRequest, opts ...grpc.CallOption) (*FindBranchResponse, error) - DeleteRefs(ctx context.Context, in *DeleteRefsRequest, opts ...grpc.CallOption) (*DeleteRefsResponse, error) - ListBranchNamesContainingCommit(ctx context.Context, in *ListBranchNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListBranchNamesContainingCommitClient, error) - ListTagNamesContainingCommit(ctx context.Context, in *ListTagNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListTagNamesContainingCommitClient, error) - GetTagMessages(ctx context.Context, in *GetTagMessagesRequest, opts ...grpc.CallOption) (RefService_GetTagMessagesClient, error) - // Returns commits that are only reachable from the ref passed - ListNewCommits(ctx context.Context, in *ListNewCommitsRequest, opts ...grpc.CallOption) (RefService_ListNewCommitsClient, error) - ListNewBlobs(ctx context.Context, in *ListNewBlobsRequest, opts ...grpc.CallOption) (RefService_ListNewBlobsClient, error) - PackRefs(ctx context.Context, in *PackRefsRequest, opts ...grpc.CallOption) (*PackRefsResponse, error) -} - -type refServiceClient struct { - cc *grpc.ClientConn -} - -func NewRefServiceClient(cc *grpc.ClientConn) RefServiceClient { - return &refServiceClient{cc} -} - -func (c *refServiceClient) FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error) { - out := new(FindDefaultBranchNameResponse) - err := c.cc.Invoke(ctx, "/gitaly.RefService/FindDefaultBranchName", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *refServiceClient) FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchNamesClient, error) { - stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[0], "/gitaly.RefService/FindAllBranchNames", opts...) - if err != nil { - return nil, err - } - x := &refServiceFindAllBranchNamesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *GetTagMessagesRequest) Reset() { + *x = GetTagMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_FindAllBranchNamesClient interface { - Recv() (*FindAllBranchNamesResponse, error) - grpc.ClientStream } -type refServiceFindAllBranchNamesClient struct { - grpc.ClientStream +func (x *GetTagMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *refServiceFindAllBranchNamesClient) Recv() (*FindAllBranchNamesResponse, error) { - m := new(FindAllBranchNamesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +func (*GetTagMessagesRequest) ProtoMessage() {} -func (c *refServiceClient) FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequest, opts ...grpc.CallOption) (RefService_FindAllTagNamesClient, error) { - stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[1], "/gitaly.RefService/FindAllTagNames", opts...) - if err != nil { - return nil, err - } - x := &refServiceFindAllTagNamesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *GetTagMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_FindAllTagNamesClient interface { - Recv() (*FindAllTagNamesResponse, error) - grpc.ClientStream + return mi.MessageOf(x) } -type refServiceFindAllTagNamesClient struct { - grpc.ClientStream -} - -func (x *refServiceFindAllTagNamesClient) Recv() (*FindAllTagNamesResponse, error) { - m := new(FindAllTagNamesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +// Deprecated: Use GetTagMessagesRequest.ProtoReflect.Descriptor instead. +func (*GetTagMessagesRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{34} } -func (c *refServiceClient) FindRefName(ctx context.Context, in *FindRefNameRequest, opts ...grpc.CallOption) (*FindRefNameResponse, error) { - out := new(FindRefNameResponse) - err := c.cc.Invoke(ctx, "/gitaly.RefService/FindRefName", in, out, opts...) - if err != nil { - return nil, err +func (x *GetTagMessagesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return out, nil + return nil } -func (c *refServiceClient) FindLocalBranches(ctx context.Context, in *FindLocalBranchesRequest, opts ...grpc.CallOption) (RefService_FindLocalBranchesClient, error) { - stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[2], "/gitaly.RefService/FindLocalBranches", opts...) - if err != nil { - return nil, err - } - x := &refServiceFindLocalBranchesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *GetTagMessagesRequest) GetTagIds() []string { + if x != nil { + return x.TagIds } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_FindLocalBranchesClient interface { - Recv() (*FindLocalBranchesResponse, error) - grpc.ClientStream + return nil } -type refServiceFindLocalBranchesClient struct { - grpc.ClientStream -} +type GetTagMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *refServiceFindLocalBranchesClient) Recv() (*FindLocalBranchesResponse, error) { - m := new(FindLocalBranchesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + // Only present for a new tag message + TagId string `protobuf:"bytes,3,opt,name=tag_id,json=tagId,proto3" json:"tag_id,omitempty"` } -func (c *refServiceClient) FindAllBranches(ctx context.Context, in *FindAllBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchesClient, error) { - stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[3], "/gitaly.RefService/FindAllBranches", opts...) - if err != nil { - return nil, err - } - x := &refServiceFindAllBranchesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *GetTagMessagesResponse) Reset() { + *x = GetTagMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return x, nil } -type RefService_FindAllBranchesClient interface { - Recv() (*FindAllBranchesResponse, error) - grpc.ClientStream +func (x *GetTagMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type refServiceFindAllBranchesClient struct { - grpc.ClientStream -} - -func (x *refServiceFindAllBranchesClient) Recv() (*FindAllBranchesResponse, error) { - m := new(FindAllBranchesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +func (*GetTagMessagesResponse) ProtoMessage() {} -func (c *refServiceClient) FindAllTags(ctx context.Context, in *FindAllTagsRequest, opts ...grpc.CallOption) (RefService_FindAllTagsClient, error) { - stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[4], "/gitaly.RefService/FindAllTags", opts...) - if err != nil { - return nil, err - } - x := &refServiceFindAllTagsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *GetTagMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return x, nil -} - -type RefService_FindAllTagsClient interface { - Recv() (*FindAllTagsResponse, error) - grpc.ClientStream -} - -type refServiceFindAllTagsClient struct { - grpc.ClientStream + return mi.MessageOf(x) } -func (x *refServiceFindAllTagsClient) Recv() (*FindAllTagsResponse, error) { - m := new(FindAllTagsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +// Deprecated: Use GetTagMessagesResponse.ProtoReflect.Descriptor instead. +func (*GetTagMessagesResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{35} } -func (c *refServiceClient) FindTag(ctx context.Context, in *FindTagRequest, opts ...grpc.CallOption) (*FindTagResponse, error) { - out := new(FindTagResponse) - err := c.cc.Invoke(ctx, "/gitaly.RefService/FindTag", in, out, opts...) - if err != nil { - return nil, err +func (x *GetTagMessagesResponse) GetMessage() []byte { + if x != nil { + return x.Message } - return out, nil + return nil } -func (c *refServiceClient) FindAllRemoteBranches(ctx context.Context, in *FindAllRemoteBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllRemoteBranchesClient, error) { - stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[5], "/gitaly.RefService/FindAllRemoteBranches", opts...) - if err != nil { - return nil, err - } - x := &refServiceFindAllRemoteBranchesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *GetTagMessagesResponse) GetTagId() string { + if x != nil { + return x.TagId } - return x, nil -} - -type RefService_FindAllRemoteBranchesClient interface { - Recv() (*FindAllRemoteBranchesResponse, error) - grpc.ClientStream + return "" } -type refServiceFindAllRemoteBranchesClient struct { - grpc.ClientStream -} +type ListNewCommitsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *refServiceFindAllRemoteBranchesClient) Recv() (*FindAllRemoteBranchesResponse, error) { - m := new(FindAllRemoteBranchesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` } -func (c *refServiceClient) RefExists(ctx context.Context, in *RefExistsRequest, opts ...grpc.CallOption) (*RefExistsResponse, error) { - out := new(RefExistsResponse) - err := c.cc.Invoke(ctx, "/gitaly.RefService/RefExists", in, out, opts...) - if err != nil { - return nil, err +func (x *ListNewCommitsRequest) Reset() { + *x = ListNewCommitsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil } -func (c *refServiceClient) FindBranch(ctx context.Context, in *FindBranchRequest, opts ...grpc.CallOption) (*FindBranchResponse, error) { - out := new(FindBranchResponse) - err := c.cc.Invoke(ctx, "/gitaly.RefService/FindBranch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *ListNewCommitsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *refServiceClient) DeleteRefs(ctx context.Context, in *DeleteRefsRequest, opts ...grpc.CallOption) (*DeleteRefsResponse, error) { - out := new(DeleteRefsResponse) - err := c.cc.Invoke(ctx, "/gitaly.RefService/DeleteRefs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*ListNewCommitsRequest) ProtoMessage() {} -func (c *refServiceClient) ListBranchNamesContainingCommit(ctx context.Context, in *ListBranchNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListBranchNamesContainingCommitClient, error) { - stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[6], "/gitaly.RefService/ListBranchNamesContainingCommit", opts...) - if err != nil { - return nil, err - } - x := &refServiceListBranchNamesContainingCommitClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *ListNewCommitsRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_ListBranchNamesContainingCommitClient interface { - Recv() (*ListBranchNamesContainingCommitResponse, error) - grpc.ClientStream + return mi.MessageOf(x) } -type refServiceListBranchNamesContainingCommitClient struct { - grpc.ClientStream +// Deprecated: Use ListNewCommitsRequest.ProtoReflect.Descriptor instead. +func (*ListNewCommitsRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{36} } -func (x *refServiceListBranchNamesContainingCommitClient) Recv() (*ListBranchNamesContainingCommitResponse, error) { - m := new(ListBranchNamesContainingCommitResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *ListNewCommitsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return m, nil + return nil } -func (c *refServiceClient) ListTagNamesContainingCommit(ctx context.Context, in *ListTagNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListTagNamesContainingCommitClient, error) { - stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[7], "/gitaly.RefService/ListTagNamesContainingCommit", opts...) - if err != nil { - return nil, err - } - x := &refServiceListTagNamesContainingCommitClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *ListNewCommitsRequest) GetCommitId() string { + if x != nil { + return x.CommitId } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil + return "" } -type RefService_ListTagNamesContainingCommitClient interface { - Recv() (*ListTagNamesContainingCommitResponse, error) - grpc.ClientStream -} +type ListNewCommitsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type refServiceListTagNamesContainingCommitClient struct { - grpc.ClientStream + Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` } -func (x *refServiceListTagNamesContainingCommitClient) Recv() (*ListTagNamesContainingCommitResponse, error) { - m := new(ListTagNamesContainingCommitResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *ListNewCommitsResponse) Reset() { + *x = ListNewCommitsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -func (c *refServiceClient) GetTagMessages(ctx context.Context, in *GetTagMessagesRequest, opts ...grpc.CallOption) (RefService_GetTagMessagesClient, error) { - stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[8], "/gitaly.RefService/GetTagMessages", opts...) - if err != nil { - return nil, err - } - x := &refServiceGetTagMessagesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil +func (x *ListNewCommitsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type RefService_GetTagMessagesClient interface { - Recv() (*GetTagMessagesResponse, error) - grpc.ClientStream -} +func (*ListNewCommitsResponse) ProtoMessage() {} -type refServiceGetTagMessagesClient struct { - grpc.ClientStream -} - -func (x *refServiceGetTagMessagesClient) Recv() (*GetTagMessagesResponse, error) { - m := new(GetTagMessagesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *ListNewCommitsResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -func (c *refServiceClient) ListNewCommits(ctx context.Context, in *ListNewCommitsRequest, opts ...grpc.CallOption) (RefService_ListNewCommitsClient, error) { - stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[9], "/gitaly.RefService/ListNewCommits", opts...) - if err != nil { - return nil, err - } - x := &refServiceListNewCommitsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_ListNewCommitsClient interface { - Recv() (*ListNewCommitsResponse, error) - grpc.ClientStream -} - -type refServiceListNewCommitsClient struct { - grpc.ClientStream -} - -func (x *refServiceListNewCommitsClient) Recv() (*ListNewCommitsResponse, error) { - m := new(ListNewCommitsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +// Deprecated: Use ListNewCommitsResponse.ProtoReflect.Descriptor instead. +func (*ListNewCommitsResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{37} } -func (c *refServiceClient) ListNewBlobs(ctx context.Context, in *ListNewBlobsRequest, opts ...grpc.CallOption) (RefService_ListNewBlobsClient, error) { - stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[10], "/gitaly.RefService/ListNewBlobs", opts...) - if err != nil { - return nil, err - } - x := &refServiceListNewBlobsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *ListNewCommitsResponse) GetCommits() []*GitCommit { + if x != nil { + return x.Commits } - return x, nil -} - -type RefService_ListNewBlobsClient interface { - Recv() (*ListNewBlobsResponse, error) - grpc.ClientStream + return nil } -type refServiceListNewBlobsClient struct { - grpc.ClientStream -} +type FindAllRemoteBranchesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *refServiceListNewBlobsClient) Recv() (*ListNewBlobsResponse, error) { - m := new(ListNewBlobsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + RemoteName string `protobuf:"bytes,2,opt,name=remote_name,json=remoteName,proto3" json:"remote_name,omitempty"` } -func (c *refServiceClient) PackRefs(ctx context.Context, in *PackRefsRequest, opts ...grpc.CallOption) (*PackRefsResponse, error) { - out := new(PackRefsResponse) - err := c.cc.Invoke(ctx, "/gitaly.RefService/PackRefs", in, out, opts...) - if err != nil { - return nil, err +func (x *FindAllRemoteBranchesRequest) Reset() { + *x = FindAllRemoteBranchesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil } -// RefServiceServer is the server API for RefService service. -type RefServiceServer interface { - FindDefaultBranchName(context.Context, *FindDefaultBranchNameRequest) (*FindDefaultBranchNameResponse, error) - FindAllBranchNames(*FindAllBranchNamesRequest, RefService_FindAllBranchNamesServer) error - FindAllTagNames(*FindAllTagNamesRequest, RefService_FindAllTagNamesServer) error - // Find a Ref matching the given constraints. Response may be empty. - FindRefName(context.Context, *FindRefNameRequest) (*FindRefNameResponse, error) - // Return a stream so we can divide the response in chunks of branches - FindLocalBranches(*FindLocalBranchesRequest, RefService_FindLocalBranchesServer) error - FindAllBranches(*FindAllBranchesRequest, RefService_FindAllBranchesServer) error - FindAllTags(*FindAllTagsRequest, RefService_FindAllTagsServer) error - FindTag(context.Context, *FindTagRequest) (*FindTagResponse, error) - FindAllRemoteBranches(*FindAllRemoteBranchesRequest, RefService_FindAllRemoteBranchesServer) error - RefExists(context.Context, *RefExistsRequest) (*RefExistsResponse, error) - // FindBranch finds a branch by its unqualified name (like "master") and - // returns the commit it currently points to. - FindBranch(context.Context, *FindBranchRequest) (*FindBranchResponse, error) - DeleteRefs(context.Context, *DeleteRefsRequest) (*DeleteRefsResponse, error) - ListBranchNamesContainingCommit(*ListBranchNamesContainingCommitRequest, RefService_ListBranchNamesContainingCommitServer) error - ListTagNamesContainingCommit(*ListTagNamesContainingCommitRequest, RefService_ListTagNamesContainingCommitServer) error - GetTagMessages(*GetTagMessagesRequest, RefService_GetTagMessagesServer) error - // Returns commits that are only reachable from the ref passed - ListNewCommits(*ListNewCommitsRequest, RefService_ListNewCommitsServer) error - ListNewBlobs(*ListNewBlobsRequest, RefService_ListNewBlobsServer) error - PackRefs(context.Context, *PackRefsRequest) (*PackRefsResponse, error) +func (x *FindAllRemoteBranchesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -// UnimplementedRefServiceServer can be embedded to have forward compatible implementations. -type UnimplementedRefServiceServer struct { -} +func (*FindAllRemoteBranchesRequest) ProtoMessage() {} -func (*UnimplementedRefServiceServer) FindDefaultBranchName(ctx context.Context, req *FindDefaultBranchNameRequest) (*FindDefaultBranchNameResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindDefaultBranchName not implemented") -} -func (*UnimplementedRefServiceServer) FindAllBranchNames(req *FindAllBranchNamesRequest, srv RefService_FindAllBranchNamesServer) error { - return status.Errorf(codes.Unimplemented, "method FindAllBranchNames not implemented") -} -func (*UnimplementedRefServiceServer) FindAllTagNames(req *FindAllTagNamesRequest, srv RefService_FindAllTagNamesServer) error { - return status.Errorf(codes.Unimplemented, "method FindAllTagNames not implemented") -} -func (*UnimplementedRefServiceServer) FindRefName(ctx context.Context, req *FindRefNameRequest) (*FindRefNameResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindRefName not implemented") -} -func (*UnimplementedRefServiceServer) FindLocalBranches(req *FindLocalBranchesRequest, srv RefService_FindLocalBranchesServer) error { - return status.Errorf(codes.Unimplemented, "method FindLocalBranches not implemented") -} -func (*UnimplementedRefServiceServer) FindAllBranches(req *FindAllBranchesRequest, srv RefService_FindAllBranchesServer) error { - return status.Errorf(codes.Unimplemented, "method FindAllBranches not implemented") -} -func (*UnimplementedRefServiceServer) FindAllTags(req *FindAllTagsRequest, srv RefService_FindAllTagsServer) error { - return status.Errorf(codes.Unimplemented, "method FindAllTags not implemented") -} -func (*UnimplementedRefServiceServer) FindTag(ctx context.Context, req *FindTagRequest) (*FindTagResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindTag not implemented") -} -func (*UnimplementedRefServiceServer) FindAllRemoteBranches(req *FindAllRemoteBranchesRequest, srv RefService_FindAllRemoteBranchesServer) error { - return status.Errorf(codes.Unimplemented, "method FindAllRemoteBranches not implemented") -} -func (*UnimplementedRefServiceServer) RefExists(ctx context.Context, req *RefExistsRequest) (*RefExistsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RefExists not implemented") -} -func (*UnimplementedRefServiceServer) FindBranch(ctx context.Context, req *FindBranchRequest) (*FindBranchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindBranch not implemented") -} -func (*UnimplementedRefServiceServer) DeleteRefs(ctx context.Context, req *DeleteRefsRequest) (*DeleteRefsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteRefs not implemented") -} -func (*UnimplementedRefServiceServer) ListBranchNamesContainingCommit(req *ListBranchNamesContainingCommitRequest, srv RefService_ListBranchNamesContainingCommitServer) error { - return status.Errorf(codes.Unimplemented, "method ListBranchNamesContainingCommit not implemented") -} -func (*UnimplementedRefServiceServer) ListTagNamesContainingCommit(req *ListTagNamesContainingCommitRequest, srv RefService_ListTagNamesContainingCommitServer) error { - return status.Errorf(codes.Unimplemented, "method ListTagNamesContainingCommit not implemented") -} -func (*UnimplementedRefServiceServer) GetTagMessages(req *GetTagMessagesRequest, srv RefService_GetTagMessagesServer) error { - return status.Errorf(codes.Unimplemented, "method GetTagMessages not implemented") -} -func (*UnimplementedRefServiceServer) ListNewCommits(req *ListNewCommitsRequest, srv RefService_ListNewCommitsServer) error { - return status.Errorf(codes.Unimplemented, "method ListNewCommits not implemented") -} -func (*UnimplementedRefServiceServer) ListNewBlobs(req *ListNewBlobsRequest, srv RefService_ListNewBlobsServer) error { - return status.Errorf(codes.Unimplemented, "method ListNewBlobs not implemented") -} -func (*UnimplementedRefServiceServer) PackRefs(ctx context.Context, req *PackRefsRequest) (*PackRefsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PackRefs not implemented") +func (x *FindAllRemoteBranchesRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func RegisterRefServiceServer(s *grpc.Server, srv RefServiceServer) { - s.RegisterService(&_RefService_serviceDesc, srv) +// Deprecated: Use FindAllRemoteBranchesRequest.ProtoReflect.Descriptor instead. +func (*FindAllRemoteBranchesRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{38} } -func _RefService_FindDefaultBranchName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindDefaultBranchNameRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServiceServer).FindDefaultBranchName(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/FindDefaultBranchName", +func (x *FindAllRemoteBranchesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).FindDefaultBranchName(ctx, req.(*FindDefaultBranchNameRequest)) - } - return interceptor(ctx, in, info, handler) + return nil } -func _RefService_FindAllBranchNames_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllBranchNamesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *FindAllRemoteBranchesRequest) GetRemoteName() string { + if x != nil { + return x.RemoteName } - return srv.(RefServiceServer).FindAllBranchNames(m, &refServiceFindAllBranchNamesServer{stream}) -} - -type RefService_FindAllBranchNamesServer interface { - Send(*FindAllBranchNamesResponse) error - grpc.ServerStream + return "" } -type refServiceFindAllBranchNamesServer struct { - grpc.ServerStream -} +type FindAllRemoteBranchesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *refServiceFindAllBranchNamesServer) Send(m *FindAllBranchNamesResponse) error { - return x.ServerStream.SendMsg(m) + Branches []*Branch `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"` } -func _RefService_FindAllTagNames_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllTagNamesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *FindAllRemoteBranchesResponse) Reset() { + *x = FindAllRemoteBranchesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(RefServiceServer).FindAllTagNames(m, &refServiceFindAllTagNamesServer{stream}) -} - -type RefService_FindAllTagNamesServer interface { - Send(*FindAllTagNamesResponse) error - grpc.ServerStream -} - -type refServiceFindAllTagNamesServer struct { - grpc.ServerStream } -func (x *refServiceFindAllTagNamesServer) Send(m *FindAllTagNamesResponse) error { - return x.ServerStream.SendMsg(m) +func (x *FindAllRemoteBranchesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func _RefService_FindRefName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindRefNameRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServiceServer).FindRefName(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/FindRefName", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).FindRefName(ctx, req.(*FindRefNameRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*FindAllRemoteBranchesResponse) ProtoMessage() {} -func _RefService_FindLocalBranches_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindLocalBranchesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *FindAllRemoteBranchesResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(RefServiceServer).FindLocalBranches(m, &refServiceFindLocalBranchesServer{stream}) -} - -type RefService_FindLocalBranchesServer interface { - Send(*FindLocalBranchesResponse) error - grpc.ServerStream -} - -type refServiceFindLocalBranchesServer struct { - grpc.ServerStream + return mi.MessageOf(x) } -func (x *refServiceFindLocalBranchesServer) Send(m *FindLocalBranchesResponse) error { - return x.ServerStream.SendMsg(m) +// Deprecated: Use FindAllRemoteBranchesResponse.ProtoReflect.Descriptor instead. +func (*FindAllRemoteBranchesResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{39} } -func _RefService_FindAllBranches_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllBranchesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *FindAllRemoteBranchesResponse) GetBranches() []*Branch { + if x != nil { + return x.Branches } - return srv.(RefServiceServer).FindAllBranches(m, &refServiceFindAllBranchesServer{stream}) -} - -type RefService_FindAllBranchesServer interface { - Send(*FindAllBranchesResponse) error - grpc.ServerStream + return nil } -type refServiceFindAllBranchesServer struct { - grpc.ServerStream -} +type PackRefsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *refServiceFindAllBranchesServer) Send(m *FindAllBranchesResponse) error { - return x.ServerStream.SendMsg(m) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + AllRefs bool `protobuf:"varint,2,opt,name=all_refs,json=allRefs,proto3" json:"all_refs,omitempty"` } -func _RefService_FindAllTags_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllTagsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *PackRefsRequest) Reset() { + *x = PackRefsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(RefServiceServer).FindAllTags(m, &refServiceFindAllTagsServer{stream}) } -type RefService_FindAllTagsServer interface { - Send(*FindAllTagsResponse) error - grpc.ServerStream +func (x *PackRefsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type refServiceFindAllTagsServer struct { - grpc.ServerStream -} +func (*PackRefsRequest) ProtoMessage() {} -func (x *refServiceFindAllTagsServer) Send(m *FindAllTagsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RefService_FindTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindTagRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServiceServer).FindTag(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/FindTag", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).FindTag(ctx, req.(*FindTagRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RefService_FindAllRemoteBranches_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllRemoteBranchesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *PackRefsRequest) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(RefServiceServer).FindAllRemoteBranches(m, &refServiceFindAllRemoteBranchesServer{stream}) -} - -type RefService_FindAllRemoteBranchesServer interface { - Send(*FindAllRemoteBranchesResponse) error - grpc.ServerStream + return mi.MessageOf(x) } -type refServiceFindAllRemoteBranchesServer struct { - grpc.ServerStream -} - -func (x *refServiceFindAllRemoteBranchesServer) Send(m *FindAllRemoteBranchesResponse) error { - return x.ServerStream.SendMsg(m) +// Deprecated: Use PackRefsRequest.ProtoReflect.Descriptor instead. +func (*PackRefsRequest) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{40} } -func _RefService_RefExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RefExistsRequest) - if err := dec(in); err != nil { - return nil, err +func (x *PackRefsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - if interceptor == nil { - return srv.(RefServiceServer).RefExists(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/RefExists", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).RefExists(ctx, req.(*RefExistsRequest)) - } - return interceptor(ctx, in, info, handler) + return nil } -func _RefService_FindBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServiceServer).FindBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/FindBranch", +func (x *PackRefsRequest) GetAllRefs() bool { + if x != nil { + return x.AllRefs } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).FindBranch(ctx, req.(*FindBranchRequest)) - } - return interceptor(ctx, in, info, handler) + return false } -func _RefService_DeleteRefs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRefsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServiceServer).DeleteRefs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/DeleteRefs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).DeleteRefs(ctx, req.(*DeleteRefsRequest)) - } - return interceptor(ctx, in, info, handler) +type PackRefsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func _RefService_ListBranchNamesContainingCommit_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListBranchNamesContainingCommitRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *PackRefsResponse) Reset() { + *x = PackRefsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(RefServiceServer).ListBranchNamesContainingCommit(m, &refServiceListBranchNamesContainingCommitServer{stream}) -} - -type RefService_ListBranchNamesContainingCommitServer interface { - Send(*ListBranchNamesContainingCommitResponse) error - grpc.ServerStream } -type refServiceListBranchNamesContainingCommitServer struct { - grpc.ServerStream +func (x *PackRefsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *refServiceListBranchNamesContainingCommitServer) Send(m *ListBranchNamesContainingCommitResponse) error { - return x.ServerStream.SendMsg(m) -} +func (*PackRefsResponse) ProtoMessage() {} -func _RefService_ListTagNamesContainingCommit_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListTagNamesContainingCommitRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *PackRefsResponse) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[41] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(RefServiceServer).ListTagNamesContainingCommit(m, &refServiceListTagNamesContainingCommitServer{stream}) + return mi.MessageOf(x) } -type RefService_ListTagNamesContainingCommitServer interface { - Send(*ListTagNamesContainingCommitResponse) error - grpc.ServerStream +// Deprecated: Use PackRefsResponse.ProtoReflect.Descriptor instead. +func (*PackRefsResponse) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{41} } -type refServiceListTagNamesContainingCommitServer struct { - grpc.ServerStream -} +type FindAllBranchesResponse_Branch struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *refServiceListTagNamesContainingCommitServer) Send(m *ListTagNamesContainingCommitResponse) error { - return x.ServerStream.SendMsg(m) + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Target *GitCommit `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` } -func _RefService_GetTagMessages_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetTagMessagesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *FindAllBranchesResponse_Branch) Reset() { + *x = FindAllBranchesResponse_Branch{} + if protoimpl.UnsafeEnabled { + mi := &file_ref_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(RefServiceServer).GetTagMessages(m, &refServiceGetTagMessagesServer{stream}) -} - -type RefService_GetTagMessagesServer interface { - Send(*GetTagMessagesResponse) error - grpc.ServerStream } -type refServiceGetTagMessagesServer struct { - grpc.ServerStream +func (x *FindAllBranchesResponse_Branch) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *refServiceGetTagMessagesServer) Send(m *GetTagMessagesResponse) error { - return x.ServerStream.SendMsg(m) -} +func (*FindAllBranchesResponse_Branch) ProtoMessage() {} -func _RefService_ListNewCommits_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListNewCommitsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *FindAllBranchesResponse_Branch) ProtoReflect() protoreflect.Message { + mi := &file_ref_proto_msgTypes[42] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(RefServiceServer).ListNewCommits(m, &refServiceListNewCommitsServer{stream}) + return mi.MessageOf(x) } -type RefService_ListNewCommitsServer interface { - Send(*ListNewCommitsResponse) error - grpc.ServerStream -} - -type refServiceListNewCommitsServer struct { - grpc.ServerStream -} - -func (x *refServiceListNewCommitsServer) Send(m *ListNewCommitsResponse) error { - return x.ServerStream.SendMsg(m) +// Deprecated: Use FindAllBranchesResponse_Branch.ProtoReflect.Descriptor instead. +func (*FindAllBranchesResponse_Branch) Descriptor() ([]byte, []int) { + return file_ref_proto_rawDescGZIP(), []int{15, 0} } -func _RefService_ListNewBlobs_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListNewBlobsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *FindAllBranchesResponse_Branch) GetName() []byte { + if x != nil { + return x.Name } - return srv.(RefServiceServer).ListNewBlobs(m, &refServiceListNewBlobsServer{stream}) -} - -type RefService_ListNewBlobsServer interface { - Send(*ListNewBlobsResponse) error - grpc.ServerStream -} - -type refServiceListNewBlobsServer struct { - grpc.ServerStream -} - -func (x *refServiceListNewBlobsServer) Send(m *ListNewBlobsResponse) error { - return x.ServerStream.SendMsg(m) + return nil } -func _RefService_PackRefs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PackRefsRequest) - if err := dec(in); err != nil { - return nil, err +func (x *FindAllBranchesResponse_Branch) GetTarget() *GitCommit { + if x != nil { + return x.Target } - if interceptor == nil { - return srv.(RefServiceServer).PackRefs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/PackRefs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).PackRefs(ctx, req.(*PackRefsRequest)) - } - return interceptor(ctx, in, info, handler) + return nil } -var _RefService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.RefService", - HandlerType: (*RefServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "FindDefaultBranchName", - Handler: _RefService_FindDefaultBranchName_Handler, - }, - { - MethodName: "FindRefName", - Handler: _RefService_FindRefName_Handler, - }, - { - MethodName: "FindTag", - Handler: _RefService_FindTag_Handler, - }, - { - MethodName: "RefExists", - Handler: _RefService_RefExists_Handler, - }, - { - MethodName: "FindBranch", - Handler: _RefService_FindBranch_Handler, - }, - { - MethodName: "DeleteRefs", - Handler: _RefService_DeleteRefs_Handler, - }, - { - MethodName: "PackRefs", - Handler: _RefService_PackRefs_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "FindAllBranchNames", - Handler: _RefService_FindAllBranchNames_Handler, - ServerStreams: true, - }, - { - StreamName: "FindAllTagNames", - Handler: _RefService_FindAllTagNames_Handler, - ServerStreams: true, - }, - { - StreamName: "FindLocalBranches", - Handler: _RefService_FindLocalBranches_Handler, - ServerStreams: true, - }, - { - StreamName: "FindAllBranches", - Handler: _RefService_FindAllBranches_Handler, - ServerStreams: true, - }, - { - StreamName: "FindAllTags", - Handler: _RefService_FindAllTags_Handler, - ServerStreams: true, - }, - { - StreamName: "FindAllRemoteBranches", - Handler: _RefService_FindAllRemoteBranches_Handler, - ServerStreams: true, - }, - { - StreamName: "ListBranchNamesContainingCommit", - Handler: _RefService_ListBranchNamesContainingCommit_Handler, - ServerStreams: true, - }, - { - StreamName: "ListTagNamesContainingCommit", - Handler: _RefService_ListTagNamesContainingCommit_Handler, - ServerStreams: true, - }, - { - StreamName: "GetTagMessages", - Handler: _RefService_GetTagMessages_Handler, - ServerStreams: true, - }, - { - StreamName: "ListNewCommits", - Handler: _RefService_ListNewCommits_Handler, - ServerStreams: true, - }, - { - StreamName: "ListNewBlobs", - Handler: _RefService_ListNewBlobs_Handler, - ServerStreams: true, +var File_ref_proto protoreflect.FileDescriptor + +var file_ref_proto_rawDesc = []byte{ + 0x0a, 0x09, 0x72, 0x65, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x62, + 0x6c, 0x6f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x82, 0x01, 0x0a, 0x13, 0x4c, + 0x69, 0x73, 0x74, 0x4e, 0x65, 0x77, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, + 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, + 0x57, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x77, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x10, 0x6e, 0x65, 0x77, 0x5f, 0x62, + 0x6c, 0x6f, 0x62, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4e, 0x65, 0x77, 0x42, 0x6c, + 0x6f, 0x62, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x0e, 0x6e, 0x65, 0x77, 0x42, 0x6c, 0x6f, + 0x62, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x58, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, + 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x22, 0x33, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x55, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, + 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x32, + 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x05, 0x6e, 0x61, 0x6d, + 0x65, 0x73, 0x22, 0x52, 0x0a, 0x16, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, + 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x2f, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, + 0x6c, 0x54, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, + 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x83, 0x01, 0x0a, 0x12, 0x46, 0x69, 0x6e, 0x64, + 0x52, 0x65, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, 0x29, 0x0a, + 0x13, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x97, 0x02, 0x0a, 0x18, 0x46, 0x69, 0x6e, + 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x40, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x27, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x6f, + 0x63, 0x61, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, + 0x79, 0x12, 0x48, 0x0a, 0x11, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x35, 0x0a, 0x06, 0x53, + 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x00, 0x12, + 0x0f, 0x0a, 0x0b, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x41, 0x53, 0x43, 0x10, 0x01, + 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x44, 0x45, 0x53, 0x43, + 0x10, 0x02, 0x22, 0x58, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x42, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x3b, 0x0a, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, + 0x6f, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x22, 0xb6, 0x02, 0x0a, + 0x17, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x5f, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x12, 0x48, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x52, 0x0c, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x4e, 0x0a, 0x10, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x06, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x06, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0x93, 0x01, 0x0a, 0x1b, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x6f, + 0x63, 0x61, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, + 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, + 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x64, 0x61, 0x74, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x22, 0x9c, 0x01, 0x0a, 0x16, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, + 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x4f, 0x6e, 0x6c, + 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x5f, 0x62, 0x72, 0x61, 0x6e, + 0x63, 0x68, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, 0x6d, 0x65, 0x72, 0x67, + 0x65, 0x64, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x22, 0xa6, 0x01, 0x0a, 0x17, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x1a, 0x47, 0x0a, 0x06, 0x42, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x06, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x22, 0x65, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x19, 0x0a, 0x08, 0x74, 0x61, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x07, 0x74, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x30, 0x0a, 0x0f, 0x46, 0x69, + 0x6e, 0x64, 0x54, 0x61, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, + 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0x4e, 0x0a, 0x12, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x36, 0x0a, 0x13, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x04, + 0x74, 0x61, 0x67, 0x73, 0x22, 0x5e, 0x0a, 0x10, 0x52, 0x65, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x03, 0x72, 0x65, 0x66, 0x22, 0x29, 0x0a, 0x11, 0x52, 0x65, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, + 0x84, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, + 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0xcb, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x3b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x23, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x06, + 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x06, 0x62, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x22, 0x4e, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x06, + 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x52, 0x52, 0x5f, 0x45, 0x58, + 0x49, 0x53, 0x54, 0x53, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x52, 0x52, 0x5f, 0x49, 0x4e, + 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x45, 0x52, 0x52, 0x5f, 0x49, + 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x49, + 0x4e, 0x54, 0x10, 0x03, 0x22, 0x63, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x61, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, + 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3c, 0x0a, 0x12, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x61, 0x6e, + 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x62, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, + 0x63, 0x68, 0x22, 0x8f, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x66, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x77, 0x69, 0x74, + 0x68, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x10, + 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x57, 0x69, 0x74, 0x68, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, + 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x66, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, + 0x72, 0x65, 0x66, 0x73, 0x22, 0x31, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, + 0x66, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x69, + 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, + 0x69, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x95, 0x01, 0x0a, 0x26, 0x4c, 0x69, 0x73, 0x74, + 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, + 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, + 0x52, 0x0a, 0x27, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, + 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, + 0x52, 0x0b, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x4a, 0x04, 0x08, + 0x01, 0x10, 0x02, 0x22, 0x92, 0x01, 0x0a, 0x23, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x67, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x49, 0x0a, 0x24, 0x4c, 0x69, 0x73, 0x74, + 0x54, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, + 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0c, 0x52, 0x08, 0x74, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x4a, 0x04, 0x08, + 0x01, 0x10, 0x02, 0x22, 0x7b, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x67, 0x5f, 0x69, 0x64, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x67, 0x49, 0x64, 0x73, 0x4a, + 0x04, 0x08, 0x02, 0x10, 0x03, 0x52, 0x09, 0x74, 0x61, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, + 0x22, 0x59, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x61, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x67, 0x49, 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10, + 0x02, 0x52, 0x08, 0x74, 0x61, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6e, 0x0a, 0x15, 0x4c, + 0x69, 0x73, 0x74, 0x4e, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, + 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1b, + 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x16, 0x4c, + 0x69, 0x73, 0x74, 0x4e, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x73, 0x22, 0x79, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, + 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x4b, 0x0a, + 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x42, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, + 0x0a, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x22, 0x66, 0x0a, 0x0f, 0x50, 0x61, + 0x63, 0x6b, 0x52, 0x65, 0x66, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x6c, 0x6c, 0x5f, 0x72, + 0x65, 0x66, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x61, 0x6c, 0x6c, 0x52, 0x65, + 0x66, 0x73, 0x22, 0x12, 0x0a, 0x10, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x66, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xa2, 0x0d, 0x0a, 0x0a, 0x52, 0x65, 0x66, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, + 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x02, 0x12, 0x65, 0x0a, 0x12, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x42, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x42, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x5c, 0x0a, 0x0f, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x1e, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x54, 0x61, + 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x54, 0x61, + 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, + 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x4e, 0x0a, 0x0b, 0x46, 0x69, 0x6e, 0x64, + 0x52, 0x65, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, + 0x64, 0x52, 0x65, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x62, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, + 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12, 0x20, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x6c, + 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x6f, 0x63, + 0x61, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x5c, 0x0a, 0x0f, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12, + 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x50, 0x0a, 0x0b, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, 0x73, 0x12, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x42, 0x0a, 0x07, + 0x46, 0x69, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x12, 0x16, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x17, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x54, 0x61, 0x67, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, + 0x12, 0x6e, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x25, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, + 0x12, 0x48, 0x0a, 0x09, 0x52, 0x65, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x18, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x52, 0x65, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x4b, 0x0a, 0x0a, 0x46, 0x69, + 0x6e, 0x64, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, + 0x64, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x4b, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x52, 0x65, 0x66, 0x73, 0x12, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x66, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x65, 0x66, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, + 0x28, 0x02, 0x08, 0x01, 0x12, 0x8c, 0x01, 0x0a, 0x1f, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, + 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x2e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, + 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, + 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, + 0x02, 0x30, 0x01, 0x12, 0x83, 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x67, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x2b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x54, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, + 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, + 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x59, 0x0a, 0x0e, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x1d, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, + 0x08, 0x02, 0x30, 0x01, 0x12, 0x59, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x77, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x4e, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, + 0x53, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x77, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x12, + 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x77, + 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x77, 0x42, 0x6c, 0x6f, + 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, + 0x08, 0x02, 0x30, 0x01, 0x12, 0x45, 0x0a, 0x08, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x66, 0x73, + 0x12, 0x17, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, + 0x66, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x66, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, + 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, + 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, + 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ref_proto_rawDescOnce sync.Once + file_ref_proto_rawDescData = file_ref_proto_rawDesc +) + +func file_ref_proto_rawDescGZIP() []byte { + file_ref_proto_rawDescOnce.Do(func() { + file_ref_proto_rawDescData = protoimpl.X.CompressGZIP(file_ref_proto_rawDescData) + }) + return file_ref_proto_rawDescData +} + +var file_ref_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_ref_proto_msgTypes = make([]protoimpl.MessageInfo, 43) +var file_ref_proto_goTypes = []interface{}{ + (FindLocalBranchesRequest_SortBy)(0), // 0: gitaly.FindLocalBranchesRequest.SortBy + (CreateBranchResponse_Status)(0), // 1: gitaly.CreateBranchResponse.Status + (*ListNewBlobsRequest)(nil), // 2: gitaly.ListNewBlobsRequest + (*ListNewBlobsResponse)(nil), // 3: gitaly.ListNewBlobsResponse + (*FindDefaultBranchNameRequest)(nil), // 4: gitaly.FindDefaultBranchNameRequest + (*FindDefaultBranchNameResponse)(nil), // 5: gitaly.FindDefaultBranchNameResponse + (*FindAllBranchNamesRequest)(nil), // 6: gitaly.FindAllBranchNamesRequest + (*FindAllBranchNamesResponse)(nil), // 7: gitaly.FindAllBranchNamesResponse + (*FindAllTagNamesRequest)(nil), // 8: gitaly.FindAllTagNamesRequest + (*FindAllTagNamesResponse)(nil), // 9: gitaly.FindAllTagNamesResponse + (*FindRefNameRequest)(nil), // 10: gitaly.FindRefNameRequest + (*FindRefNameResponse)(nil), // 11: gitaly.FindRefNameResponse + (*FindLocalBranchesRequest)(nil), // 12: gitaly.FindLocalBranchesRequest + (*FindLocalBranchesResponse)(nil), // 13: gitaly.FindLocalBranchesResponse + (*FindLocalBranchResponse)(nil), // 14: gitaly.FindLocalBranchResponse + (*FindLocalBranchCommitAuthor)(nil), // 15: gitaly.FindLocalBranchCommitAuthor + (*FindAllBranchesRequest)(nil), // 16: gitaly.FindAllBranchesRequest + (*FindAllBranchesResponse)(nil), // 17: gitaly.FindAllBranchesResponse + (*FindTagRequest)(nil), // 18: gitaly.FindTagRequest + (*FindTagResponse)(nil), // 19: gitaly.FindTagResponse + (*FindAllTagsRequest)(nil), // 20: gitaly.FindAllTagsRequest + (*FindAllTagsResponse)(nil), // 21: gitaly.FindAllTagsResponse + (*RefExistsRequest)(nil), // 22: gitaly.RefExistsRequest + (*RefExistsResponse)(nil), // 23: gitaly.RefExistsResponse + (*CreateBranchRequest)(nil), // 24: gitaly.CreateBranchRequest + (*CreateBranchResponse)(nil), // 25: gitaly.CreateBranchResponse + (*DeleteBranchRequest)(nil), // 26: gitaly.DeleteBranchRequest + (*DeleteBranchResponse)(nil), // 27: gitaly.DeleteBranchResponse + (*FindBranchRequest)(nil), // 28: gitaly.FindBranchRequest + (*FindBranchResponse)(nil), // 29: gitaly.FindBranchResponse + (*DeleteRefsRequest)(nil), // 30: gitaly.DeleteRefsRequest + (*DeleteRefsResponse)(nil), // 31: gitaly.DeleteRefsResponse + (*ListBranchNamesContainingCommitRequest)(nil), // 32: gitaly.ListBranchNamesContainingCommitRequest + (*ListBranchNamesContainingCommitResponse)(nil), // 33: gitaly.ListBranchNamesContainingCommitResponse + (*ListTagNamesContainingCommitRequest)(nil), // 34: gitaly.ListTagNamesContainingCommitRequest + (*ListTagNamesContainingCommitResponse)(nil), // 35: gitaly.ListTagNamesContainingCommitResponse + (*GetTagMessagesRequest)(nil), // 36: gitaly.GetTagMessagesRequest + (*GetTagMessagesResponse)(nil), // 37: gitaly.GetTagMessagesResponse + (*ListNewCommitsRequest)(nil), // 38: gitaly.ListNewCommitsRequest + (*ListNewCommitsResponse)(nil), // 39: gitaly.ListNewCommitsResponse + (*FindAllRemoteBranchesRequest)(nil), // 40: gitaly.FindAllRemoteBranchesRequest + (*FindAllRemoteBranchesResponse)(nil), // 41: gitaly.FindAllRemoteBranchesResponse + (*PackRefsRequest)(nil), // 42: gitaly.PackRefsRequest + (*PackRefsResponse)(nil), // 43: gitaly.PackRefsResponse + (*FindAllBranchesResponse_Branch)(nil), // 44: gitaly.FindAllBranchesResponse.Branch + (*Repository)(nil), // 45: gitaly.Repository + (*NewBlobObject)(nil), // 46: gitaly.NewBlobObject + (*PaginationParameter)(nil), // 47: gitaly.PaginationParameter + (*GitCommit)(nil), // 48: gitaly.GitCommit + (*timestamppb.Timestamp)(nil), // 49: google.protobuf.Timestamp + (*Tag)(nil), // 50: gitaly.Tag + (*Branch)(nil), // 51: gitaly.Branch +} +var file_ref_proto_depIdxs = []int32{ + 45, // 0: gitaly.ListNewBlobsRequest.repository:type_name -> gitaly.Repository + 46, // 1: gitaly.ListNewBlobsResponse.new_blob_objects:type_name -> gitaly.NewBlobObject + 45, // 2: gitaly.FindDefaultBranchNameRequest.repository:type_name -> gitaly.Repository + 45, // 3: gitaly.FindAllBranchNamesRequest.repository:type_name -> gitaly.Repository + 45, // 4: gitaly.FindAllTagNamesRequest.repository:type_name -> gitaly.Repository + 45, // 5: gitaly.FindRefNameRequest.repository:type_name -> gitaly.Repository + 45, // 6: gitaly.FindLocalBranchesRequest.repository:type_name -> gitaly.Repository + 0, // 7: gitaly.FindLocalBranchesRequest.sort_by:type_name -> gitaly.FindLocalBranchesRequest.SortBy + 47, // 8: gitaly.FindLocalBranchesRequest.pagination_params:type_name -> gitaly.PaginationParameter + 14, // 9: gitaly.FindLocalBranchesResponse.branches:type_name -> gitaly.FindLocalBranchResponse + 15, // 10: gitaly.FindLocalBranchResponse.commit_author:type_name -> gitaly.FindLocalBranchCommitAuthor + 15, // 11: gitaly.FindLocalBranchResponse.commit_committer:type_name -> gitaly.FindLocalBranchCommitAuthor + 48, // 12: gitaly.FindLocalBranchResponse.commit:type_name -> gitaly.GitCommit + 49, // 13: gitaly.FindLocalBranchCommitAuthor.date:type_name -> google.protobuf.Timestamp + 45, // 14: gitaly.FindAllBranchesRequest.repository:type_name -> gitaly.Repository + 44, // 15: gitaly.FindAllBranchesResponse.branches:type_name -> gitaly.FindAllBranchesResponse.Branch + 45, // 16: gitaly.FindTagRequest.repository:type_name -> gitaly.Repository + 50, // 17: gitaly.FindTagResponse.tag:type_name -> gitaly.Tag + 45, // 18: gitaly.FindAllTagsRequest.repository:type_name -> gitaly.Repository + 50, // 19: gitaly.FindAllTagsResponse.tags:type_name -> gitaly.Tag + 45, // 20: gitaly.RefExistsRequest.repository:type_name -> gitaly.Repository + 45, // 21: gitaly.CreateBranchRequest.repository:type_name -> gitaly.Repository + 1, // 22: gitaly.CreateBranchResponse.status:type_name -> gitaly.CreateBranchResponse.Status + 51, // 23: gitaly.CreateBranchResponse.branch:type_name -> gitaly.Branch + 45, // 24: gitaly.DeleteBranchRequest.repository:type_name -> gitaly.Repository + 45, // 25: gitaly.FindBranchRequest.repository:type_name -> gitaly.Repository + 51, // 26: gitaly.FindBranchResponse.branch:type_name -> gitaly.Branch + 45, // 27: gitaly.DeleteRefsRequest.repository:type_name -> gitaly.Repository + 45, // 28: gitaly.ListBranchNamesContainingCommitRequest.repository:type_name -> gitaly.Repository + 45, // 29: gitaly.ListTagNamesContainingCommitRequest.repository:type_name -> gitaly.Repository + 45, // 30: gitaly.GetTagMessagesRequest.repository:type_name -> gitaly.Repository + 45, // 31: gitaly.ListNewCommitsRequest.repository:type_name -> gitaly.Repository + 48, // 32: gitaly.ListNewCommitsResponse.commits:type_name -> gitaly.GitCommit + 45, // 33: gitaly.FindAllRemoteBranchesRequest.repository:type_name -> gitaly.Repository + 51, // 34: gitaly.FindAllRemoteBranchesResponse.branches:type_name -> gitaly.Branch + 45, // 35: gitaly.PackRefsRequest.repository:type_name -> gitaly.Repository + 48, // 36: gitaly.FindAllBranchesResponse.Branch.target:type_name -> gitaly.GitCommit + 4, // 37: gitaly.RefService.FindDefaultBranchName:input_type -> gitaly.FindDefaultBranchNameRequest + 6, // 38: gitaly.RefService.FindAllBranchNames:input_type -> gitaly.FindAllBranchNamesRequest + 8, // 39: gitaly.RefService.FindAllTagNames:input_type -> gitaly.FindAllTagNamesRequest + 10, // 40: gitaly.RefService.FindRefName:input_type -> gitaly.FindRefNameRequest + 12, // 41: gitaly.RefService.FindLocalBranches:input_type -> gitaly.FindLocalBranchesRequest + 16, // 42: gitaly.RefService.FindAllBranches:input_type -> gitaly.FindAllBranchesRequest + 20, // 43: gitaly.RefService.FindAllTags:input_type -> gitaly.FindAllTagsRequest + 18, // 44: gitaly.RefService.FindTag:input_type -> gitaly.FindTagRequest + 40, // 45: gitaly.RefService.FindAllRemoteBranches:input_type -> gitaly.FindAllRemoteBranchesRequest + 22, // 46: gitaly.RefService.RefExists:input_type -> gitaly.RefExistsRequest + 28, // 47: gitaly.RefService.FindBranch:input_type -> gitaly.FindBranchRequest + 30, // 48: gitaly.RefService.DeleteRefs:input_type -> gitaly.DeleteRefsRequest + 32, // 49: gitaly.RefService.ListBranchNamesContainingCommit:input_type -> gitaly.ListBranchNamesContainingCommitRequest + 34, // 50: gitaly.RefService.ListTagNamesContainingCommit:input_type -> gitaly.ListTagNamesContainingCommitRequest + 36, // 51: gitaly.RefService.GetTagMessages:input_type -> gitaly.GetTagMessagesRequest + 38, // 52: gitaly.RefService.ListNewCommits:input_type -> gitaly.ListNewCommitsRequest + 2, // 53: gitaly.RefService.ListNewBlobs:input_type -> gitaly.ListNewBlobsRequest + 42, // 54: gitaly.RefService.PackRefs:input_type -> gitaly.PackRefsRequest + 5, // 55: gitaly.RefService.FindDefaultBranchName:output_type -> gitaly.FindDefaultBranchNameResponse + 7, // 56: gitaly.RefService.FindAllBranchNames:output_type -> gitaly.FindAllBranchNamesResponse + 9, // 57: gitaly.RefService.FindAllTagNames:output_type -> gitaly.FindAllTagNamesResponse + 11, // 58: gitaly.RefService.FindRefName:output_type -> gitaly.FindRefNameResponse + 13, // 59: gitaly.RefService.FindLocalBranches:output_type -> gitaly.FindLocalBranchesResponse + 17, // 60: gitaly.RefService.FindAllBranches:output_type -> gitaly.FindAllBranchesResponse + 21, // 61: gitaly.RefService.FindAllTags:output_type -> gitaly.FindAllTagsResponse + 19, // 62: gitaly.RefService.FindTag:output_type -> gitaly.FindTagResponse + 41, // 63: gitaly.RefService.FindAllRemoteBranches:output_type -> gitaly.FindAllRemoteBranchesResponse + 23, // 64: gitaly.RefService.RefExists:output_type -> gitaly.RefExistsResponse + 29, // 65: gitaly.RefService.FindBranch:output_type -> gitaly.FindBranchResponse + 31, // 66: gitaly.RefService.DeleteRefs:output_type -> gitaly.DeleteRefsResponse + 33, // 67: gitaly.RefService.ListBranchNamesContainingCommit:output_type -> gitaly.ListBranchNamesContainingCommitResponse + 35, // 68: gitaly.RefService.ListTagNamesContainingCommit:output_type -> gitaly.ListTagNamesContainingCommitResponse + 37, // 69: gitaly.RefService.GetTagMessages:output_type -> gitaly.GetTagMessagesResponse + 39, // 70: gitaly.RefService.ListNewCommits:output_type -> gitaly.ListNewCommitsResponse + 3, // 71: gitaly.RefService.ListNewBlobs:output_type -> gitaly.ListNewBlobsResponse + 43, // 72: gitaly.RefService.PackRefs:output_type -> gitaly.PackRefsResponse + 55, // [55:73] is the sub-list for method output_type + 37, // [37:55] is the sub-list for method input_type + 37, // [37:37] is the sub-list for extension type_name + 37, // [37:37] is the sub-list for extension extendee + 0, // [0:37] is the sub-list for field type_name +} + +func init() { file_ref_proto_init() } +func file_ref_proto_init() { + if File_ref_proto != nil { + return + } + file_lint_proto_init() + file_shared_proto_init() + file_blob_proto_init() + if !protoimpl.UnsafeEnabled { + file_ref_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListNewBlobsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListNewBlobsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindDefaultBranchNameRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindDefaultBranchNameResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllBranchNamesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllBranchNamesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllTagNamesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllTagNamesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRefNameRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRefNameResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindLocalBranchesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindLocalBranchesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindLocalBranchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindLocalBranchCommitAuthor); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllBranchesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllBranchesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindTagRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindTagResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllTagsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllTagsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefExistsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefExistsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateBranchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateBranchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteBranchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteBranchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindBranchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindBranchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteRefsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteRefsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBranchNamesContainingCommitRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBranchNamesContainingCommitResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListTagNamesContainingCommitRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListTagNamesContainingCommitResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTagMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTagMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListNewCommitsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListNewCommitsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllRemoteBranchesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllRemoteBranchesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PackRefsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PackRefsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ref_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllBranchesResponse_Branch); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ref_proto_rawDesc, + NumEnums: 2, + NumMessages: 43, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "ref.proto", + GoTypes: file_ref_proto_goTypes, + DependencyIndexes: file_ref_proto_depIdxs, + EnumInfos: file_ref_proto_enumTypes, + MessageInfos: file_ref_proto_msgTypes, + }.Build() + File_ref_proto = out.File + file_ref_proto_rawDesc = nil + file_ref_proto_goTypes = nil + file_ref_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/ref_grpc.pb.go b/proto/go/gitalypb/ref_grpc.pb.go new file mode 100644 index 000000000..58db62602 --- /dev/null +++ b/proto/go/gitalypb/ref_grpc.pb.go @@ -0,0 +1,1021 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// RefServiceClient is the client API for RefService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type RefServiceClient interface { + FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error) + FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchNamesClient, error) + FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequest, opts ...grpc.CallOption) (RefService_FindAllTagNamesClient, error) + // Find a Ref matching the given constraints. Response may be empty. + FindRefName(ctx context.Context, in *FindRefNameRequest, opts ...grpc.CallOption) (*FindRefNameResponse, error) + // Return a stream so we can divide the response in chunks of branches + FindLocalBranches(ctx context.Context, in *FindLocalBranchesRequest, opts ...grpc.CallOption) (RefService_FindLocalBranchesClient, error) + FindAllBranches(ctx context.Context, in *FindAllBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchesClient, error) + FindAllTags(ctx context.Context, in *FindAllTagsRequest, opts ...grpc.CallOption) (RefService_FindAllTagsClient, error) + FindTag(ctx context.Context, in *FindTagRequest, opts ...grpc.CallOption) (*FindTagResponse, error) + FindAllRemoteBranches(ctx context.Context, in *FindAllRemoteBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllRemoteBranchesClient, error) + RefExists(ctx context.Context, in *RefExistsRequest, opts ...grpc.CallOption) (*RefExistsResponse, error) + // FindBranch finds a branch by its unqualified name (like "master") and + // returns the commit it currently points to. + FindBranch(ctx context.Context, in *FindBranchRequest, opts ...grpc.CallOption) (*FindBranchResponse, error) + DeleteRefs(ctx context.Context, in *DeleteRefsRequest, opts ...grpc.CallOption) (*DeleteRefsResponse, error) + ListBranchNamesContainingCommit(ctx context.Context, in *ListBranchNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListBranchNamesContainingCommitClient, error) + ListTagNamesContainingCommit(ctx context.Context, in *ListTagNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListTagNamesContainingCommitClient, error) + GetTagMessages(ctx context.Context, in *GetTagMessagesRequest, opts ...grpc.CallOption) (RefService_GetTagMessagesClient, error) + // Returns commits that are only reachable from the ref passed + ListNewCommits(ctx context.Context, in *ListNewCommitsRequest, opts ...grpc.CallOption) (RefService_ListNewCommitsClient, error) + ListNewBlobs(ctx context.Context, in *ListNewBlobsRequest, opts ...grpc.CallOption) (RefService_ListNewBlobsClient, error) + PackRefs(ctx context.Context, in *PackRefsRequest, opts ...grpc.CallOption) (*PackRefsResponse, error) +} + +type refServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewRefServiceClient(cc grpc.ClientConnInterface) RefServiceClient { + return &refServiceClient{cc} +} + +func (c *refServiceClient) FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error) { + out := new(FindDefaultBranchNameResponse) + err := c.cc.Invoke(ctx, "/gitaly.RefService/FindDefaultBranchName", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refServiceClient) FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchNamesClient, error) { + stream, err := c.cc.NewStream(ctx, &RefService_ServiceDesc.Streams[0], "/gitaly.RefService/FindAllBranchNames", opts...) + if err != nil { + return nil, err + } + x := &refServiceFindAllBranchNamesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_FindAllBranchNamesClient interface { + Recv() (*FindAllBranchNamesResponse, error) + grpc.ClientStream +} + +type refServiceFindAllBranchNamesClient struct { + grpc.ClientStream +} + +func (x *refServiceFindAllBranchNamesClient) Recv() (*FindAllBranchNamesResponse, error) { + m := new(FindAllBranchNamesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequest, opts ...grpc.CallOption) (RefService_FindAllTagNamesClient, error) { + stream, err := c.cc.NewStream(ctx, &RefService_ServiceDesc.Streams[1], "/gitaly.RefService/FindAllTagNames", opts...) + if err != nil { + return nil, err + } + x := &refServiceFindAllTagNamesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_FindAllTagNamesClient interface { + Recv() (*FindAllTagNamesResponse, error) + grpc.ClientStream +} + +type refServiceFindAllTagNamesClient struct { + grpc.ClientStream +} + +func (x *refServiceFindAllTagNamesClient) Recv() (*FindAllTagNamesResponse, error) { + m := new(FindAllTagNamesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) FindRefName(ctx context.Context, in *FindRefNameRequest, opts ...grpc.CallOption) (*FindRefNameResponse, error) { + out := new(FindRefNameResponse) + err := c.cc.Invoke(ctx, "/gitaly.RefService/FindRefName", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refServiceClient) FindLocalBranches(ctx context.Context, in *FindLocalBranchesRequest, opts ...grpc.CallOption) (RefService_FindLocalBranchesClient, error) { + stream, err := c.cc.NewStream(ctx, &RefService_ServiceDesc.Streams[2], "/gitaly.RefService/FindLocalBranches", opts...) + if err != nil { + return nil, err + } + x := &refServiceFindLocalBranchesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_FindLocalBranchesClient interface { + Recv() (*FindLocalBranchesResponse, error) + grpc.ClientStream +} + +type refServiceFindLocalBranchesClient struct { + grpc.ClientStream +} + +func (x *refServiceFindLocalBranchesClient) Recv() (*FindLocalBranchesResponse, error) { + m := new(FindLocalBranchesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) FindAllBranches(ctx context.Context, in *FindAllBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchesClient, error) { + stream, err := c.cc.NewStream(ctx, &RefService_ServiceDesc.Streams[3], "/gitaly.RefService/FindAllBranches", opts...) + if err != nil { + return nil, err + } + x := &refServiceFindAllBranchesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_FindAllBranchesClient interface { + Recv() (*FindAllBranchesResponse, error) + grpc.ClientStream +} + +type refServiceFindAllBranchesClient struct { + grpc.ClientStream +} + +func (x *refServiceFindAllBranchesClient) Recv() (*FindAllBranchesResponse, error) { + m := new(FindAllBranchesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) FindAllTags(ctx context.Context, in *FindAllTagsRequest, opts ...grpc.CallOption) (RefService_FindAllTagsClient, error) { + stream, err := c.cc.NewStream(ctx, &RefService_ServiceDesc.Streams[4], "/gitaly.RefService/FindAllTags", opts...) + if err != nil { + return nil, err + } + x := &refServiceFindAllTagsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_FindAllTagsClient interface { + Recv() (*FindAllTagsResponse, error) + grpc.ClientStream +} + +type refServiceFindAllTagsClient struct { + grpc.ClientStream +} + +func (x *refServiceFindAllTagsClient) Recv() (*FindAllTagsResponse, error) { + m := new(FindAllTagsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) FindTag(ctx context.Context, in *FindTagRequest, opts ...grpc.CallOption) (*FindTagResponse, error) { + out := new(FindTagResponse) + err := c.cc.Invoke(ctx, "/gitaly.RefService/FindTag", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refServiceClient) FindAllRemoteBranches(ctx context.Context, in *FindAllRemoteBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllRemoteBranchesClient, error) { + stream, err := c.cc.NewStream(ctx, &RefService_ServiceDesc.Streams[5], "/gitaly.RefService/FindAllRemoteBranches", opts...) + if err != nil { + return nil, err + } + x := &refServiceFindAllRemoteBranchesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_FindAllRemoteBranchesClient interface { + Recv() (*FindAllRemoteBranchesResponse, error) + grpc.ClientStream +} + +type refServiceFindAllRemoteBranchesClient struct { + grpc.ClientStream +} + +func (x *refServiceFindAllRemoteBranchesClient) Recv() (*FindAllRemoteBranchesResponse, error) { + m := new(FindAllRemoteBranchesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) RefExists(ctx context.Context, in *RefExistsRequest, opts ...grpc.CallOption) (*RefExistsResponse, error) { + out := new(RefExistsResponse) + err := c.cc.Invoke(ctx, "/gitaly.RefService/RefExists", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refServiceClient) FindBranch(ctx context.Context, in *FindBranchRequest, opts ...grpc.CallOption) (*FindBranchResponse, error) { + out := new(FindBranchResponse) + err := c.cc.Invoke(ctx, "/gitaly.RefService/FindBranch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refServiceClient) DeleteRefs(ctx context.Context, in *DeleteRefsRequest, opts ...grpc.CallOption) (*DeleteRefsResponse, error) { + out := new(DeleteRefsResponse) + err := c.cc.Invoke(ctx, "/gitaly.RefService/DeleteRefs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refServiceClient) ListBranchNamesContainingCommit(ctx context.Context, in *ListBranchNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListBranchNamesContainingCommitClient, error) { + stream, err := c.cc.NewStream(ctx, &RefService_ServiceDesc.Streams[6], "/gitaly.RefService/ListBranchNamesContainingCommit", opts...) + if err != nil { + return nil, err + } + x := &refServiceListBranchNamesContainingCommitClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_ListBranchNamesContainingCommitClient interface { + Recv() (*ListBranchNamesContainingCommitResponse, error) + grpc.ClientStream +} + +type refServiceListBranchNamesContainingCommitClient struct { + grpc.ClientStream +} + +func (x *refServiceListBranchNamesContainingCommitClient) Recv() (*ListBranchNamesContainingCommitResponse, error) { + m := new(ListBranchNamesContainingCommitResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) ListTagNamesContainingCommit(ctx context.Context, in *ListTagNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListTagNamesContainingCommitClient, error) { + stream, err := c.cc.NewStream(ctx, &RefService_ServiceDesc.Streams[7], "/gitaly.RefService/ListTagNamesContainingCommit", opts...) + if err != nil { + return nil, err + } + x := &refServiceListTagNamesContainingCommitClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_ListTagNamesContainingCommitClient interface { + Recv() (*ListTagNamesContainingCommitResponse, error) + grpc.ClientStream +} + +type refServiceListTagNamesContainingCommitClient struct { + grpc.ClientStream +} + +func (x *refServiceListTagNamesContainingCommitClient) Recv() (*ListTagNamesContainingCommitResponse, error) { + m := new(ListTagNamesContainingCommitResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) GetTagMessages(ctx context.Context, in *GetTagMessagesRequest, opts ...grpc.CallOption) (RefService_GetTagMessagesClient, error) { + stream, err := c.cc.NewStream(ctx, &RefService_ServiceDesc.Streams[8], "/gitaly.RefService/GetTagMessages", opts...) + if err != nil { + return nil, err + } + x := &refServiceGetTagMessagesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_GetTagMessagesClient interface { + Recv() (*GetTagMessagesResponse, error) + grpc.ClientStream +} + +type refServiceGetTagMessagesClient struct { + grpc.ClientStream +} + +func (x *refServiceGetTagMessagesClient) Recv() (*GetTagMessagesResponse, error) { + m := new(GetTagMessagesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) ListNewCommits(ctx context.Context, in *ListNewCommitsRequest, opts ...grpc.CallOption) (RefService_ListNewCommitsClient, error) { + stream, err := c.cc.NewStream(ctx, &RefService_ServiceDesc.Streams[9], "/gitaly.RefService/ListNewCommits", opts...) + if err != nil { + return nil, err + } + x := &refServiceListNewCommitsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_ListNewCommitsClient interface { + Recv() (*ListNewCommitsResponse, error) + grpc.ClientStream +} + +type refServiceListNewCommitsClient struct { + grpc.ClientStream +} + +func (x *refServiceListNewCommitsClient) Recv() (*ListNewCommitsResponse, error) { + m := new(ListNewCommitsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) ListNewBlobs(ctx context.Context, in *ListNewBlobsRequest, opts ...grpc.CallOption) (RefService_ListNewBlobsClient, error) { + stream, err := c.cc.NewStream(ctx, &RefService_ServiceDesc.Streams[10], "/gitaly.RefService/ListNewBlobs", opts...) + if err != nil { + return nil, err + } + x := &refServiceListNewBlobsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_ListNewBlobsClient interface { + Recv() (*ListNewBlobsResponse, error) + grpc.ClientStream +} + +type refServiceListNewBlobsClient struct { + grpc.ClientStream +} + +func (x *refServiceListNewBlobsClient) Recv() (*ListNewBlobsResponse, error) { + m := new(ListNewBlobsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) PackRefs(ctx context.Context, in *PackRefsRequest, opts ...grpc.CallOption) (*PackRefsResponse, error) { + out := new(PackRefsResponse) + err := c.cc.Invoke(ctx, "/gitaly.RefService/PackRefs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RefServiceServer is the server API for RefService service. +// All implementations must embed UnimplementedRefServiceServer +// for forward compatibility +type RefServiceServer interface { + FindDefaultBranchName(context.Context, *FindDefaultBranchNameRequest) (*FindDefaultBranchNameResponse, error) + FindAllBranchNames(*FindAllBranchNamesRequest, RefService_FindAllBranchNamesServer) error + FindAllTagNames(*FindAllTagNamesRequest, RefService_FindAllTagNamesServer) error + // Find a Ref matching the given constraints. Response may be empty. + FindRefName(context.Context, *FindRefNameRequest) (*FindRefNameResponse, error) + // Return a stream so we can divide the response in chunks of branches + FindLocalBranches(*FindLocalBranchesRequest, RefService_FindLocalBranchesServer) error + FindAllBranches(*FindAllBranchesRequest, RefService_FindAllBranchesServer) error + FindAllTags(*FindAllTagsRequest, RefService_FindAllTagsServer) error + FindTag(context.Context, *FindTagRequest) (*FindTagResponse, error) + FindAllRemoteBranches(*FindAllRemoteBranchesRequest, RefService_FindAllRemoteBranchesServer) error + RefExists(context.Context, *RefExistsRequest) (*RefExistsResponse, error) + // FindBranch finds a branch by its unqualified name (like "master") and + // returns the commit it currently points to. + FindBranch(context.Context, *FindBranchRequest) (*FindBranchResponse, error) + DeleteRefs(context.Context, *DeleteRefsRequest) (*DeleteRefsResponse, error) + ListBranchNamesContainingCommit(*ListBranchNamesContainingCommitRequest, RefService_ListBranchNamesContainingCommitServer) error + ListTagNamesContainingCommit(*ListTagNamesContainingCommitRequest, RefService_ListTagNamesContainingCommitServer) error + GetTagMessages(*GetTagMessagesRequest, RefService_GetTagMessagesServer) error + // Returns commits that are only reachable from the ref passed + ListNewCommits(*ListNewCommitsRequest, RefService_ListNewCommitsServer) error + ListNewBlobs(*ListNewBlobsRequest, RefService_ListNewBlobsServer) error + PackRefs(context.Context, *PackRefsRequest) (*PackRefsResponse, error) + mustEmbedUnimplementedRefServiceServer() +} + +// UnimplementedRefServiceServer must be embedded to have forward compatible implementations. +type UnimplementedRefServiceServer struct { +} + +func (UnimplementedRefServiceServer) FindDefaultBranchName(context.Context, *FindDefaultBranchNameRequest) (*FindDefaultBranchNameResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindDefaultBranchName not implemented") +} +func (UnimplementedRefServiceServer) FindAllBranchNames(*FindAllBranchNamesRequest, RefService_FindAllBranchNamesServer) error { + return status.Errorf(codes.Unimplemented, "method FindAllBranchNames not implemented") +} +func (UnimplementedRefServiceServer) FindAllTagNames(*FindAllTagNamesRequest, RefService_FindAllTagNamesServer) error { + return status.Errorf(codes.Unimplemented, "method FindAllTagNames not implemented") +} +func (UnimplementedRefServiceServer) FindRefName(context.Context, *FindRefNameRequest) (*FindRefNameResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindRefName not implemented") +} +func (UnimplementedRefServiceServer) FindLocalBranches(*FindLocalBranchesRequest, RefService_FindLocalBranchesServer) error { + return status.Errorf(codes.Unimplemented, "method FindLocalBranches not implemented") +} +func (UnimplementedRefServiceServer) FindAllBranches(*FindAllBranchesRequest, RefService_FindAllBranchesServer) error { + return status.Errorf(codes.Unimplemented, "method FindAllBranches not implemented") +} +func (UnimplementedRefServiceServer) FindAllTags(*FindAllTagsRequest, RefService_FindAllTagsServer) error { + return status.Errorf(codes.Unimplemented, "method FindAllTags not implemented") +} +func (UnimplementedRefServiceServer) FindTag(context.Context, *FindTagRequest) (*FindTagResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindTag not implemented") +} +func (UnimplementedRefServiceServer) FindAllRemoteBranches(*FindAllRemoteBranchesRequest, RefService_FindAllRemoteBranchesServer) error { + return status.Errorf(codes.Unimplemented, "method FindAllRemoteBranches not implemented") +} +func (UnimplementedRefServiceServer) RefExists(context.Context, *RefExistsRequest) (*RefExistsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RefExists not implemented") +} +func (UnimplementedRefServiceServer) FindBranch(context.Context, *FindBranchRequest) (*FindBranchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindBranch not implemented") +} +func (UnimplementedRefServiceServer) DeleteRefs(context.Context, *DeleteRefsRequest) (*DeleteRefsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteRefs not implemented") +} +func (UnimplementedRefServiceServer) ListBranchNamesContainingCommit(*ListBranchNamesContainingCommitRequest, RefService_ListBranchNamesContainingCommitServer) error { + return status.Errorf(codes.Unimplemented, "method ListBranchNamesContainingCommit not implemented") +} +func (UnimplementedRefServiceServer) ListTagNamesContainingCommit(*ListTagNamesContainingCommitRequest, RefService_ListTagNamesContainingCommitServer) error { + return status.Errorf(codes.Unimplemented, "method ListTagNamesContainingCommit not implemented") +} +func (UnimplementedRefServiceServer) GetTagMessages(*GetTagMessagesRequest, RefService_GetTagMessagesServer) error { + return status.Errorf(codes.Unimplemented, "method GetTagMessages not implemented") +} +func (UnimplementedRefServiceServer) ListNewCommits(*ListNewCommitsRequest, RefService_ListNewCommitsServer) error { + return status.Errorf(codes.Unimplemented, "method ListNewCommits not implemented") +} +func (UnimplementedRefServiceServer) ListNewBlobs(*ListNewBlobsRequest, RefService_ListNewBlobsServer) error { + return status.Errorf(codes.Unimplemented, "method ListNewBlobs not implemented") +} +func (UnimplementedRefServiceServer) PackRefs(context.Context, *PackRefsRequest) (*PackRefsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PackRefs not implemented") +} +func (UnimplementedRefServiceServer) mustEmbedUnimplementedRefServiceServer() {} + +// UnsafeRefServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to RefServiceServer will +// result in compilation errors. +type UnsafeRefServiceServer interface { + mustEmbedUnimplementedRefServiceServer() +} + +func RegisterRefServiceServer(s grpc.ServiceRegistrar, srv RefServiceServer) { + s.RegisterService(&RefService_ServiceDesc, srv) +} + +func _RefService_FindDefaultBranchName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindDefaultBranchNameRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).FindDefaultBranchName(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/FindDefaultBranchName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).FindDefaultBranchName(ctx, req.(*FindDefaultBranchNameRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefService_FindAllBranchNames_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindAllBranchNamesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).FindAllBranchNames(m, &refServiceFindAllBranchNamesServer{stream}) +} + +type RefService_FindAllBranchNamesServer interface { + Send(*FindAllBranchNamesResponse) error + grpc.ServerStream +} + +type refServiceFindAllBranchNamesServer struct { + grpc.ServerStream +} + +func (x *refServiceFindAllBranchNamesServer) Send(m *FindAllBranchNamesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_FindAllTagNames_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindAllTagNamesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).FindAllTagNames(m, &refServiceFindAllTagNamesServer{stream}) +} + +type RefService_FindAllTagNamesServer interface { + Send(*FindAllTagNamesResponse) error + grpc.ServerStream +} + +type refServiceFindAllTagNamesServer struct { + grpc.ServerStream +} + +func (x *refServiceFindAllTagNamesServer) Send(m *FindAllTagNamesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_FindRefName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindRefNameRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).FindRefName(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/FindRefName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).FindRefName(ctx, req.(*FindRefNameRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefService_FindLocalBranches_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindLocalBranchesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).FindLocalBranches(m, &refServiceFindLocalBranchesServer{stream}) +} + +type RefService_FindLocalBranchesServer interface { + Send(*FindLocalBranchesResponse) error + grpc.ServerStream +} + +type refServiceFindLocalBranchesServer struct { + grpc.ServerStream +} + +func (x *refServiceFindLocalBranchesServer) Send(m *FindLocalBranchesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_FindAllBranches_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindAllBranchesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).FindAllBranches(m, &refServiceFindAllBranchesServer{stream}) +} + +type RefService_FindAllBranchesServer interface { + Send(*FindAllBranchesResponse) error + grpc.ServerStream +} + +type refServiceFindAllBranchesServer struct { + grpc.ServerStream +} + +func (x *refServiceFindAllBranchesServer) Send(m *FindAllBranchesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_FindAllTags_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindAllTagsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).FindAllTags(m, &refServiceFindAllTagsServer{stream}) +} + +type RefService_FindAllTagsServer interface { + Send(*FindAllTagsResponse) error + grpc.ServerStream +} + +type refServiceFindAllTagsServer struct { + grpc.ServerStream +} + +func (x *refServiceFindAllTagsServer) Send(m *FindAllTagsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_FindTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindTagRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).FindTag(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/FindTag", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).FindTag(ctx, req.(*FindTagRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefService_FindAllRemoteBranches_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindAllRemoteBranchesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).FindAllRemoteBranches(m, &refServiceFindAllRemoteBranchesServer{stream}) +} + +type RefService_FindAllRemoteBranchesServer interface { + Send(*FindAllRemoteBranchesResponse) error + grpc.ServerStream +} + +type refServiceFindAllRemoteBranchesServer struct { + grpc.ServerStream +} + +func (x *refServiceFindAllRemoteBranchesServer) Send(m *FindAllRemoteBranchesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_RefExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RefExistsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).RefExists(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/RefExists", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).RefExists(ctx, req.(*RefExistsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefService_FindBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).FindBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/FindBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).FindBranch(ctx, req.(*FindBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefService_DeleteRefs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteRefsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).DeleteRefs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/DeleteRefs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).DeleteRefs(ctx, req.(*DeleteRefsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefService_ListBranchNamesContainingCommit_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListBranchNamesContainingCommitRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).ListBranchNamesContainingCommit(m, &refServiceListBranchNamesContainingCommitServer{stream}) +} + +type RefService_ListBranchNamesContainingCommitServer interface { + Send(*ListBranchNamesContainingCommitResponse) error + grpc.ServerStream +} + +type refServiceListBranchNamesContainingCommitServer struct { + grpc.ServerStream +} + +func (x *refServiceListBranchNamesContainingCommitServer) Send(m *ListBranchNamesContainingCommitResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_ListTagNamesContainingCommit_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListTagNamesContainingCommitRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).ListTagNamesContainingCommit(m, &refServiceListTagNamesContainingCommitServer{stream}) +} + +type RefService_ListTagNamesContainingCommitServer interface { + Send(*ListTagNamesContainingCommitResponse) error + grpc.ServerStream +} + +type refServiceListTagNamesContainingCommitServer struct { + grpc.ServerStream +} + +func (x *refServiceListTagNamesContainingCommitServer) Send(m *ListTagNamesContainingCommitResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_GetTagMessages_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetTagMessagesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).GetTagMessages(m, &refServiceGetTagMessagesServer{stream}) +} + +type RefService_GetTagMessagesServer interface { + Send(*GetTagMessagesResponse) error + grpc.ServerStream +} + +type refServiceGetTagMessagesServer struct { + grpc.ServerStream +} + +func (x *refServiceGetTagMessagesServer) Send(m *GetTagMessagesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_ListNewCommits_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListNewCommitsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).ListNewCommits(m, &refServiceListNewCommitsServer{stream}) +} + +type RefService_ListNewCommitsServer interface { + Send(*ListNewCommitsResponse) error + grpc.ServerStream +} + +type refServiceListNewCommitsServer struct { + grpc.ServerStream +} + +func (x *refServiceListNewCommitsServer) Send(m *ListNewCommitsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_ListNewBlobs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListNewBlobsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).ListNewBlobs(m, &refServiceListNewBlobsServer{stream}) +} + +type RefService_ListNewBlobsServer interface { + Send(*ListNewBlobsResponse) error + grpc.ServerStream +} + +type refServiceListNewBlobsServer struct { + grpc.ServerStream +} + +func (x *refServiceListNewBlobsServer) Send(m *ListNewBlobsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_PackRefs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PackRefsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).PackRefs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/PackRefs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).PackRefs(ctx, req.(*PackRefsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// RefService_ServiceDesc is the grpc.ServiceDesc for RefService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var RefService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.RefService", + HandlerType: (*RefServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FindDefaultBranchName", + Handler: _RefService_FindDefaultBranchName_Handler, + }, + { + MethodName: "FindRefName", + Handler: _RefService_FindRefName_Handler, + }, + { + MethodName: "FindTag", + Handler: _RefService_FindTag_Handler, + }, + { + MethodName: "RefExists", + Handler: _RefService_RefExists_Handler, + }, + { + MethodName: "FindBranch", + Handler: _RefService_FindBranch_Handler, + }, + { + MethodName: "DeleteRefs", + Handler: _RefService_DeleteRefs_Handler, + }, + { + MethodName: "PackRefs", + Handler: _RefService_PackRefs_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "FindAllBranchNames", + Handler: _RefService_FindAllBranchNames_Handler, + ServerStreams: true, + }, + { + StreamName: "FindAllTagNames", + Handler: _RefService_FindAllTagNames_Handler, + ServerStreams: true, + }, + { + StreamName: "FindLocalBranches", + Handler: _RefService_FindLocalBranches_Handler, + ServerStreams: true, + }, + { + StreamName: "FindAllBranches", + Handler: _RefService_FindAllBranches_Handler, + ServerStreams: true, + }, + { + StreamName: "FindAllTags", + Handler: _RefService_FindAllTags_Handler, + ServerStreams: true, + }, + { + StreamName: "FindAllRemoteBranches", + Handler: _RefService_FindAllRemoteBranches_Handler, + ServerStreams: true, + }, + { + StreamName: "ListBranchNamesContainingCommit", + Handler: _RefService_ListBranchNamesContainingCommit_Handler, + ServerStreams: true, + }, + { + StreamName: "ListTagNamesContainingCommit", + Handler: _RefService_ListTagNamesContainingCommit_Handler, + ServerStreams: true, + }, + { + StreamName: "GetTagMessages", + Handler: _RefService_GetTagMessages_Handler, + ServerStreams: true, + }, + { + StreamName: "ListNewCommits", + Handler: _RefService_ListNewCommits_Handler, + ServerStreams: true, + }, + { + StreamName: "ListNewBlobs", + Handler: _RefService_ListNewBlobs_Handler, + ServerStreams: true, + }, + }, + Metadata: "ref.proto", +} diff --git a/proto/go/gitalypb/remote.pb.go b/proto/go/gitalypb/remote.pb.go index 4ed3c2243..c6ffeac29 100644 --- a/proto/go/gitalypb/remote.pb.go +++ b/proto/go/gitalypb/remote.pb.go @@ -1,297 +1,344 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: remote.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type AddRemoteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` // If any, the remote is configured as a mirror with those mappings - MirrorRefmaps []string `protobuf:"bytes,5,rep,name=mirror_refmaps,json=mirrorRefmaps,proto3" json:"mirror_refmaps,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MirrorRefmaps []string `protobuf:"bytes,5,rep,name=mirror_refmaps,json=mirrorRefmaps,proto3" json:"mirror_refmaps,omitempty"` } -func (m *AddRemoteRequest) Reset() { *m = AddRemoteRequest{} } -func (m *AddRemoteRequest) String() string { return proto.CompactTextString(m) } -func (*AddRemoteRequest) ProtoMessage() {} -func (*AddRemoteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{0} +func (x *AddRemoteRequest) Reset() { + *x = AddRemoteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AddRemoteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddRemoteRequest.Unmarshal(m, b) -} -func (m *AddRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddRemoteRequest.Marshal(b, m, deterministic) -} -func (m *AddRemoteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddRemoteRequest.Merge(m, src) -} -func (m *AddRemoteRequest) XXX_Size() int { - return xxx_messageInfo_AddRemoteRequest.Size(m) +func (x *AddRemoteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AddRemoteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AddRemoteRequest.DiscardUnknown(m) + +func (*AddRemoteRequest) ProtoMessage() {} + +func (x *AddRemoteRequest) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AddRemoteRequest proto.InternalMessageInfo +// Deprecated: Use AddRemoteRequest.ProtoReflect.Descriptor instead. +func (*AddRemoteRequest) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{0} +} -func (m *AddRemoteRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *AddRemoteRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *AddRemoteRequest) GetName() string { - if m != nil { - return m.Name +func (x *AddRemoteRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *AddRemoteRequest) GetUrl() string { - if m != nil { - return m.Url +func (x *AddRemoteRequest) GetUrl() string { + if x != nil { + return x.Url } return "" } -func (m *AddRemoteRequest) GetMirrorRefmaps() []string { - if m != nil { - return m.MirrorRefmaps +func (x *AddRemoteRequest) GetMirrorRefmaps() []string { + if x != nil { + return x.MirrorRefmaps } return nil } type AddRemoteResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *AddRemoteResponse) Reset() { *m = AddRemoteResponse{} } -func (m *AddRemoteResponse) String() string { return proto.CompactTextString(m) } -func (*AddRemoteResponse) ProtoMessage() {} -func (*AddRemoteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{1} +func (x *AddRemoteResponse) Reset() { + *x = AddRemoteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AddRemoteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddRemoteResponse.Unmarshal(m, b) -} -func (m *AddRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddRemoteResponse.Marshal(b, m, deterministic) -} -func (m *AddRemoteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddRemoteResponse.Merge(m, src) -} -func (m *AddRemoteResponse) XXX_Size() int { - return xxx_messageInfo_AddRemoteResponse.Size(m) -} -func (m *AddRemoteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AddRemoteResponse.DiscardUnknown(m) +func (x *AddRemoteResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_AddRemoteResponse proto.InternalMessageInfo +func (*AddRemoteResponse) ProtoMessage() {} -type RemoveRemoteRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *AddRemoteResponse) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *RemoveRemoteRequest) Reset() { *m = RemoveRemoteRequest{} } -func (m *RemoveRemoteRequest) String() string { return proto.CompactTextString(m) } -func (*RemoveRemoteRequest) ProtoMessage() {} -func (*RemoveRemoteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{2} +// Deprecated: Use AddRemoteResponse.ProtoReflect.Descriptor instead. +func (*AddRemoteResponse) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{1} } -func (m *RemoveRemoteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoveRemoteRequest.Unmarshal(m, b) -} -func (m *RemoveRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoveRemoteRequest.Marshal(b, m, deterministic) +type RemoveRemoteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -func (m *RemoveRemoteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveRemoteRequest.Merge(m, src) + +func (x *RemoveRemoteRequest) Reset() { + *x = RemoveRemoteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RemoveRemoteRequest) XXX_Size() int { - return xxx_messageInfo_RemoveRemoteRequest.Size(m) + +func (x *RemoveRemoteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RemoveRemoteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveRemoteRequest.DiscardUnknown(m) + +func (*RemoveRemoteRequest) ProtoMessage() {} + +func (x *RemoveRemoteRequest) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RemoveRemoteRequest proto.InternalMessageInfo +// Deprecated: Use RemoveRemoteRequest.ProtoReflect.Descriptor instead. +func (*RemoveRemoteRequest) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{2} +} -func (m *RemoveRemoteRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *RemoveRemoteRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *RemoveRemoteRequest) GetName() string { - if m != nil { - return m.Name +func (x *RemoveRemoteRequest) GetName() string { + if x != nil { + return x.Name } return "" } type RemoveRemoteResponse struct { - Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RemoveRemoteResponse) Reset() { *m = RemoveRemoteResponse{} } -func (m *RemoveRemoteResponse) String() string { return proto.CompactTextString(m) } -func (*RemoveRemoteResponse) ProtoMessage() {} -func (*RemoveRemoteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{3} + Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` } -func (m *RemoveRemoteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoveRemoteResponse.Unmarshal(m, b) -} -func (m *RemoveRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoveRemoteResponse.Marshal(b, m, deterministic) -} -func (m *RemoveRemoteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveRemoteResponse.Merge(m, src) +func (x *RemoveRemoteResponse) Reset() { + *x = RemoveRemoteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RemoveRemoteResponse) XXX_Size() int { - return xxx_messageInfo_RemoveRemoteResponse.Size(m) + +func (x *RemoveRemoteResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RemoveRemoteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveRemoteResponse.DiscardUnknown(m) + +func (*RemoveRemoteResponse) ProtoMessage() {} + +func (x *RemoveRemoteResponse) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RemoveRemoteResponse proto.InternalMessageInfo +// Deprecated: Use RemoveRemoteResponse.ProtoReflect.Descriptor instead. +func (*RemoveRemoteResponse) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{3} +} -func (m *RemoveRemoteResponse) GetResult() bool { - if m != nil { - return m.Result +func (x *RemoveRemoteResponse) GetResult() bool { + if x != nil { + return x.Result } return false } type FetchInternalRemoteRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - RemoteRepository *Repository `protobuf:"bytes,2,opt,name=remote_repository,json=remoteRepository,proto3" json:"remote_repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FetchInternalRemoteRequest) Reset() { *m = FetchInternalRemoteRequest{} } -func (m *FetchInternalRemoteRequest) String() string { return proto.CompactTextString(m) } -func (*FetchInternalRemoteRequest) ProtoMessage() {} -func (*FetchInternalRemoteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{4} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + RemoteRepository *Repository `protobuf:"bytes,2,opt,name=remote_repository,json=remoteRepository,proto3" json:"remote_repository,omitempty"` } -func (m *FetchInternalRemoteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FetchInternalRemoteRequest.Unmarshal(m, b) -} -func (m *FetchInternalRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FetchInternalRemoteRequest.Marshal(b, m, deterministic) -} -func (m *FetchInternalRemoteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FetchInternalRemoteRequest.Merge(m, src) +func (x *FetchInternalRemoteRequest) Reset() { + *x = FetchInternalRemoteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FetchInternalRemoteRequest) XXX_Size() int { - return xxx_messageInfo_FetchInternalRemoteRequest.Size(m) + +func (x *FetchInternalRemoteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FetchInternalRemoteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FetchInternalRemoteRequest.DiscardUnknown(m) + +func (*FetchInternalRemoteRequest) ProtoMessage() {} + +func (x *FetchInternalRemoteRequest) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FetchInternalRemoteRequest proto.InternalMessageInfo +// Deprecated: Use FetchInternalRemoteRequest.ProtoReflect.Descriptor instead. +func (*FetchInternalRemoteRequest) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{4} +} -func (m *FetchInternalRemoteRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FetchInternalRemoteRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *FetchInternalRemoteRequest) GetRemoteRepository() *Repository { - if m != nil { - return m.RemoteRepository +func (x *FetchInternalRemoteRequest) GetRemoteRepository() *Repository { + if x != nil { + return x.RemoteRepository } return nil } type FetchInternalRemoteResponse struct { - Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FetchInternalRemoteResponse) Reset() { *m = FetchInternalRemoteResponse{} } -func (m *FetchInternalRemoteResponse) String() string { return proto.CompactTextString(m) } -func (*FetchInternalRemoteResponse) ProtoMessage() {} -func (*FetchInternalRemoteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{5} + Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` } -func (m *FetchInternalRemoteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FetchInternalRemoteResponse.Unmarshal(m, b) -} -func (m *FetchInternalRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FetchInternalRemoteResponse.Marshal(b, m, deterministic) -} -func (m *FetchInternalRemoteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FetchInternalRemoteResponse.Merge(m, src) +func (x *FetchInternalRemoteResponse) Reset() { + *x = FetchInternalRemoteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FetchInternalRemoteResponse) XXX_Size() int { - return xxx_messageInfo_FetchInternalRemoteResponse.Size(m) + +func (x *FetchInternalRemoteResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FetchInternalRemoteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FetchInternalRemoteResponse.DiscardUnknown(m) + +func (*FetchInternalRemoteResponse) ProtoMessage() {} + +func (x *FetchInternalRemoteResponse) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FetchInternalRemoteResponse proto.InternalMessageInfo +// Deprecated: Use FetchInternalRemoteResponse.ProtoReflect.Descriptor instead. +func (*FetchInternalRemoteResponse) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{5} +} -func (m *FetchInternalRemoteResponse) GetResult() bool { - if m != nil { - return m.Result +func (x *FetchInternalRemoteResponse) GetResult() bool { + if x != nil { + return x.Result } return false } type UpdateRemoteMirrorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Repository is the repository whose mirror repository to update. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // RefName is actually the remote to update. Deprecated in favor of the @@ -316,223 +363,193 @@ type UpdateRemoteMirrorRequest struct { KnownHosts string `protobuf:"bytes,5,opt,name=known_hosts,json=knownHosts,proto3" json:"known_hosts,omitempty"` // KeepDivergentRefs specifies whether or not to update diverged references // in the mirror repository. - KeepDivergentRefs bool `protobuf:"varint,6,opt,name=keep_divergent_refs,json=keepDivergentRefs,proto3" json:"keep_divergent_refs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + KeepDivergentRefs bool `protobuf:"varint,6,opt,name=keep_divergent_refs,json=keepDivergentRefs,proto3" json:"keep_divergent_refs,omitempty"` } -func (m *UpdateRemoteMirrorRequest) Reset() { *m = UpdateRemoteMirrorRequest{} } -func (m *UpdateRemoteMirrorRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateRemoteMirrorRequest) ProtoMessage() {} -func (*UpdateRemoteMirrorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{6} +func (x *UpdateRemoteMirrorRequest) Reset() { + *x = UpdateRemoteMirrorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UpdateRemoteMirrorRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateRemoteMirrorRequest.Unmarshal(m, b) -} -func (m *UpdateRemoteMirrorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateRemoteMirrorRequest.Marshal(b, m, deterministic) -} -func (m *UpdateRemoteMirrorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateRemoteMirrorRequest.Merge(m, src) -} -func (m *UpdateRemoteMirrorRequest) XXX_Size() int { - return xxx_messageInfo_UpdateRemoteMirrorRequest.Size(m) +func (x *UpdateRemoteMirrorRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateRemoteMirrorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateRemoteMirrorRequest.DiscardUnknown(m) + +func (*UpdateRemoteMirrorRequest) ProtoMessage() {} + +func (x *UpdateRemoteMirrorRequest) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateRemoteMirrorRequest proto.InternalMessageInfo +// Deprecated: Use UpdateRemoteMirrorRequest.ProtoReflect.Descriptor instead. +func (*UpdateRemoteMirrorRequest) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{6} +} -func (m *UpdateRemoteMirrorRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *UpdateRemoteMirrorRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *UpdateRemoteMirrorRequest) GetRefName() string { - if m != nil { - return m.RefName +func (x *UpdateRemoteMirrorRequest) GetRefName() string { + if x != nil { + return x.RefName } return "" } -func (m *UpdateRemoteMirrorRequest) GetRemote() *UpdateRemoteMirrorRequest_Remote { - if m != nil { - return m.Remote +func (x *UpdateRemoteMirrorRequest) GetRemote() *UpdateRemoteMirrorRequest_Remote { + if x != nil { + return x.Remote } return nil } -func (m *UpdateRemoteMirrorRequest) GetOnlyBranchesMatching() [][]byte { - if m != nil { - return m.OnlyBranchesMatching +func (x *UpdateRemoteMirrorRequest) GetOnlyBranchesMatching() [][]byte { + if x != nil { + return x.OnlyBranchesMatching } return nil } -func (m *UpdateRemoteMirrorRequest) GetSshKey() string { - if m != nil { - return m.SshKey +func (x *UpdateRemoteMirrorRequest) GetSshKey() string { + if x != nil { + return x.SshKey } return "" } -func (m *UpdateRemoteMirrorRequest) GetKnownHosts() string { - if m != nil { - return m.KnownHosts +func (x *UpdateRemoteMirrorRequest) GetKnownHosts() string { + if x != nil { + return x.KnownHosts } return "" } -func (m *UpdateRemoteMirrorRequest) GetKeepDivergentRefs() bool { - if m != nil { - return m.KeepDivergentRefs +func (x *UpdateRemoteMirrorRequest) GetKeepDivergentRefs() bool { + if x != nil { + return x.KeepDivergentRefs } return false } -type UpdateRemoteMirrorRequest_Remote struct { - // URL is the URL of the remote repository. - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - // HTTPAuthorizationHeader is an optional HTTP header used for - // authenticating against the remote repository. - HttpAuthorizationHeader string `protobuf:"bytes,2,opt,name=http_authorization_header,json=httpAuthorizationHeader,proto3" json:"http_authorization_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateRemoteMirrorRequest_Remote) Reset() { *m = UpdateRemoteMirrorRequest_Remote{} } -func (m *UpdateRemoteMirrorRequest_Remote) String() string { return proto.CompactTextString(m) } -func (*UpdateRemoteMirrorRequest_Remote) ProtoMessage() {} -func (*UpdateRemoteMirrorRequest_Remote) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{6, 0} -} +type UpdateRemoteMirrorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UpdateRemoteMirrorRequest_Remote) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateRemoteMirrorRequest_Remote.Unmarshal(m, b) -} -func (m *UpdateRemoteMirrorRequest_Remote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateRemoteMirrorRequest_Remote.Marshal(b, m, deterministic) -} -func (m *UpdateRemoteMirrorRequest_Remote) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateRemoteMirrorRequest_Remote.Merge(m, src) -} -func (m *UpdateRemoteMirrorRequest_Remote) XXX_Size() int { - return xxx_messageInfo_UpdateRemoteMirrorRequest_Remote.Size(m) -} -func (m *UpdateRemoteMirrorRequest_Remote) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateRemoteMirrorRequest_Remote.DiscardUnknown(m) + // DivergentRefs contains a list of references that had diverged in the + // mirror from the source repository. + DivergentRefs [][]byte `protobuf:"bytes,1,rep,name=divergent_refs,json=divergentRefs,proto3" json:"divergent_refs,omitempty"` } -var xxx_messageInfo_UpdateRemoteMirrorRequest_Remote proto.InternalMessageInfo - -func (m *UpdateRemoteMirrorRequest_Remote) GetUrl() string { - if m != nil { - return m.Url +func (x *UpdateRemoteMirrorResponse) Reset() { + *x = UpdateRemoteMirrorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *UpdateRemoteMirrorRequest_Remote) GetHttpAuthorizationHeader() string { - if m != nil { - return m.HttpAuthorizationHeader - } - return "" +func (x *UpdateRemoteMirrorResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type UpdateRemoteMirrorResponse struct { - // DivergentRefs contains a list of references that had diverged in the - // mirror from the source repository. - DivergentRefs [][]byte `protobuf:"bytes,1,rep,name=divergent_refs,json=divergentRefs,proto3" json:"divergent_refs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*UpdateRemoteMirrorResponse) ProtoMessage() {} -func (m *UpdateRemoteMirrorResponse) Reset() { *m = UpdateRemoteMirrorResponse{} } -func (m *UpdateRemoteMirrorResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateRemoteMirrorResponse) ProtoMessage() {} -func (*UpdateRemoteMirrorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{7} +func (x *UpdateRemoteMirrorResponse) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *UpdateRemoteMirrorResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateRemoteMirrorResponse.Unmarshal(m, b) -} -func (m *UpdateRemoteMirrorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateRemoteMirrorResponse.Marshal(b, m, deterministic) -} -func (m *UpdateRemoteMirrorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateRemoteMirrorResponse.Merge(m, src) -} -func (m *UpdateRemoteMirrorResponse) XXX_Size() int { - return xxx_messageInfo_UpdateRemoteMirrorResponse.Size(m) -} -func (m *UpdateRemoteMirrorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateRemoteMirrorResponse.DiscardUnknown(m) +// Deprecated: Use UpdateRemoteMirrorResponse.ProtoReflect.Descriptor instead. +func (*UpdateRemoteMirrorResponse) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{7} } -var xxx_messageInfo_UpdateRemoteMirrorResponse proto.InternalMessageInfo - -func (m *UpdateRemoteMirrorResponse) GetDivergentRefs() [][]byte { - if m != nil { - return m.DivergentRefs +func (x *UpdateRemoteMirrorResponse) GetDivergentRefs() [][]byte { + if x != nil { + return x.DivergentRefs } return nil } type FindRemoteRepositoryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` // This field is used to redirect request to proper storage where it can be handled. // As of now it doesn't matter what storage will be used, but it still must be a valid. // For more details: https://gitlab.com/gitlab-org/gitaly/-/issues/2442 - StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` } -func (m *FindRemoteRepositoryRequest) Reset() { *m = FindRemoteRepositoryRequest{} } -func (m *FindRemoteRepositoryRequest) String() string { return proto.CompactTextString(m) } -func (*FindRemoteRepositoryRequest) ProtoMessage() {} -func (*FindRemoteRepositoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{8} +func (x *FindRemoteRepositoryRequest) Reset() { + *x = FindRemoteRepositoryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindRemoteRepositoryRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindRemoteRepositoryRequest.Unmarshal(m, b) -} -func (m *FindRemoteRepositoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindRemoteRepositoryRequest.Marshal(b, m, deterministic) -} -func (m *FindRemoteRepositoryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindRemoteRepositoryRequest.Merge(m, src) -} -func (m *FindRemoteRepositoryRequest) XXX_Size() int { - return xxx_messageInfo_FindRemoteRepositoryRequest.Size(m) +func (x *FindRemoteRepositoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindRemoteRepositoryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindRemoteRepositoryRequest.DiscardUnknown(m) + +func (*FindRemoteRepositoryRequest) ProtoMessage() {} + +func (x *FindRemoteRepositoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindRemoteRepositoryRequest proto.InternalMessageInfo +// Deprecated: Use FindRemoteRepositoryRequest.ProtoReflect.Descriptor instead. +func (*FindRemoteRepositoryRequest) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{8} +} -func (m *FindRemoteRepositoryRequest) GetRemote() string { - if m != nil { - return m.Remote +func (x *FindRemoteRepositoryRequest) GetRemote() string { + if x != nil { + return x.Remote } return "" } -func (m *FindRemoteRepositoryRequest) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *FindRemoteRepositoryRequest) GetStorageName() string { + if x != nil { + return x.StorageName } return "" } @@ -540,46 +557,58 @@ func (m *FindRemoteRepositoryRequest) GetStorageName() string { // This migth throw a GRPC Unavailable code, to signal the request failure // is transient. type FindRemoteRepositoryResponse struct { - Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindRemoteRepositoryResponse) Reset() { *m = FindRemoteRepositoryResponse{} } -func (m *FindRemoteRepositoryResponse) String() string { return proto.CompactTextString(m) } -func (*FindRemoteRepositoryResponse) ProtoMessage() {} -func (*FindRemoteRepositoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{9} + Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` } -func (m *FindRemoteRepositoryResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindRemoteRepositoryResponse.Unmarshal(m, b) -} -func (m *FindRemoteRepositoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindRemoteRepositoryResponse.Marshal(b, m, deterministic) -} -func (m *FindRemoteRepositoryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindRemoteRepositoryResponse.Merge(m, src) +func (x *FindRemoteRepositoryResponse) Reset() { + *x = FindRemoteRepositoryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindRemoteRepositoryResponse) XXX_Size() int { - return xxx_messageInfo_FindRemoteRepositoryResponse.Size(m) + +func (x *FindRemoteRepositoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindRemoteRepositoryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindRemoteRepositoryResponse.DiscardUnknown(m) + +func (*FindRemoteRepositoryResponse) ProtoMessage() {} + +func (x *FindRemoteRepositoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindRemoteRepositoryResponse proto.InternalMessageInfo +// Deprecated: Use FindRemoteRepositoryResponse.ProtoReflect.Descriptor instead. +func (*FindRemoteRepositoryResponse) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{9} +} -func (m *FindRemoteRepositoryResponse) GetExists() bool { - if m != nil { - return m.Exists +func (x *FindRemoteRepositoryResponse) GetExists() bool { + if x != nil { + return x.Exists } return false } // FindRemoteRootRefRequest represents a request for the FindRemoteRootRef RPC. type FindRemoteRootRefRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Repository is the repository in which the request shall be executed in. If // a remote name is given, then this is the repository in which the remote // will be looked up. @@ -588,67 +617,73 @@ type FindRemoteRootRefRequest struct { // looked up. The remote must have been created before this call. This // parameter is deprecated in favor of `RemoteUrl`, see // https://gitlab.com/gitlab-org/gitaly/-/issues/1773. - Remote string `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"` // Deprecated: Do not use. + // + // Deprecated: Do not use. + Remote string `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"` // RemoteUrl specifies the remote repository URL which should be fetched from. RemoteUrl string `protobuf:"bytes,3,opt,name=remote_url,json=remoteUrl,proto3" json:"remote_url,omitempty"` // HttpAuthorizationHeader is the HTTP header which should be added to the // request in order to authenticate against the repository. - HttpAuthorizationHeader string `protobuf:"bytes,4,opt,name=http_authorization_header,json=httpAuthorizationHeader,proto3" json:"http_authorization_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + HttpAuthorizationHeader string `protobuf:"bytes,4,opt,name=http_authorization_header,json=httpAuthorizationHeader,proto3" json:"http_authorization_header,omitempty"` } -func (m *FindRemoteRootRefRequest) Reset() { *m = FindRemoteRootRefRequest{} } -func (m *FindRemoteRootRefRequest) String() string { return proto.CompactTextString(m) } -func (*FindRemoteRootRefRequest) ProtoMessage() {} -func (*FindRemoteRootRefRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{10} +func (x *FindRemoteRootRefRequest) Reset() { + *x = FindRemoteRootRefRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindRemoteRootRefRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindRemoteRootRefRequest.Unmarshal(m, b) +func (x *FindRemoteRootRefRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindRemoteRootRefRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindRemoteRootRefRequest.Marshal(b, m, deterministic) -} -func (m *FindRemoteRootRefRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindRemoteRootRefRequest.Merge(m, src) -} -func (m *FindRemoteRootRefRequest) XXX_Size() int { - return xxx_messageInfo_FindRemoteRootRefRequest.Size(m) -} -func (m *FindRemoteRootRefRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindRemoteRootRefRequest.DiscardUnknown(m) + +func (*FindRemoteRootRefRequest) ProtoMessage() {} + +func (x *FindRemoteRootRefRequest) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindRemoteRootRefRequest proto.InternalMessageInfo +// Deprecated: Use FindRemoteRootRefRequest.ProtoReflect.Descriptor instead. +func (*FindRemoteRootRefRequest) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{10} +} -func (m *FindRemoteRootRefRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindRemoteRootRefRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } // Deprecated: Do not use. -func (m *FindRemoteRootRefRequest) GetRemote() string { - if m != nil { - return m.Remote +func (x *FindRemoteRootRefRequest) GetRemote() string { + if x != nil { + return x.Remote } return "" } -func (m *FindRemoteRootRefRequest) GetRemoteUrl() string { - if m != nil { - return m.RemoteUrl +func (x *FindRemoteRootRefRequest) GetRemoteUrl() string { + if x != nil { + return x.RemoteUrl } return "" } -func (m *FindRemoteRootRefRequest) GetHttpAuthorizationHeader() string { - if m != nil { - return m.HttpAuthorizationHeader +func (x *FindRemoteRootRefRequest) GetHttpAuthorizationHeader() string { + if x != nil { + return x.HttpAuthorizationHeader } return "" } @@ -656,569 +691,702 @@ func (m *FindRemoteRootRefRequest) GetHttpAuthorizationHeader() string { // FindRemoteRootRefResponse represents the response for the FindRemoteRootRef // request. type FindRemoteRootRefResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Ref is the name of the remote root reference. - Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` } -func (m *FindRemoteRootRefResponse) Reset() { *m = FindRemoteRootRefResponse{} } -func (m *FindRemoteRootRefResponse) String() string { return proto.CompactTextString(m) } -func (*FindRemoteRootRefResponse) ProtoMessage() {} -func (*FindRemoteRootRefResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{11} +func (x *FindRemoteRootRefResponse) Reset() { + *x = FindRemoteRootRefResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindRemoteRootRefResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindRemoteRootRefResponse.Unmarshal(m, b) -} -func (m *FindRemoteRootRefResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindRemoteRootRefResponse.Marshal(b, m, deterministic) -} -func (m *FindRemoteRootRefResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindRemoteRootRefResponse.Merge(m, src) -} -func (m *FindRemoteRootRefResponse) XXX_Size() int { - return xxx_messageInfo_FindRemoteRootRefResponse.Size(m) -} -func (m *FindRemoteRootRefResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindRemoteRootRefResponse.DiscardUnknown(m) +func (x *FindRemoteRootRefResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_FindRemoteRootRefResponse proto.InternalMessageInfo +func (*FindRemoteRootRefResponse) ProtoMessage() {} -func (m *FindRemoteRootRefResponse) GetRef() string { - if m != nil { - return m.Ref +func (x *FindRemoteRootRefResponse) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -type ListRemotesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use FindRemoteRootRefResponse.ProtoReflect.Descriptor instead. +func (*FindRemoteRootRefResponse) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{11} } -func (m *ListRemotesRequest) Reset() { *m = ListRemotesRequest{} } -func (m *ListRemotesRequest) String() string { return proto.CompactTextString(m) } -func (*ListRemotesRequest) ProtoMessage() {} -func (*ListRemotesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{12} +func (x *FindRemoteRootRefResponse) GetRef() string { + if x != nil { + return x.Ref + } + return "" } -func (m *ListRemotesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListRemotesRequest.Unmarshal(m, b) -} -func (m *ListRemotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListRemotesRequest.Marshal(b, m, deterministic) -} -func (m *ListRemotesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListRemotesRequest.Merge(m, src) -} -func (m *ListRemotesRequest) XXX_Size() int { - return xxx_messageInfo_ListRemotesRequest.Size(m) -} -func (m *ListRemotesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListRemotesRequest.DiscardUnknown(m) -} +type ListRemotesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var xxx_messageInfo_ListRemotesRequest proto.InternalMessageInfo + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` +} -func (m *ListRemotesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ListRemotesRequest) Reset() { + *x = ListRemotesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ListRemotesResponse struct { - Remotes []*ListRemotesResponse_Remote `protobuf:"bytes,1,rep,name=remotes,proto3" json:"remotes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ListRemotesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListRemotesResponse) Reset() { *m = ListRemotesResponse{} } -func (m *ListRemotesResponse) String() string { return proto.CompactTextString(m) } -func (*ListRemotesResponse) ProtoMessage() {} -func (*ListRemotesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{13} -} +func (*ListRemotesRequest) ProtoMessage() {} -func (m *ListRemotesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListRemotesResponse.Unmarshal(m, b) -} -func (m *ListRemotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListRemotesResponse.Marshal(b, m, deterministic) -} -func (m *ListRemotesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListRemotesResponse.Merge(m, src) -} -func (m *ListRemotesResponse) XXX_Size() int { - return xxx_messageInfo_ListRemotesResponse.Size(m) -} -func (m *ListRemotesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListRemotesResponse.DiscardUnknown(m) +func (x *ListRemotesRequest) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListRemotesResponse proto.InternalMessageInfo +// Deprecated: Use ListRemotesRequest.ProtoReflect.Descriptor instead. +func (*ListRemotesRequest) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{12} +} -func (m *ListRemotesResponse) GetRemotes() []*ListRemotesResponse_Remote { - if m != nil { - return m.Remotes +func (x *ListRemotesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -type ListRemotesResponse_Remote struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - FetchUrl string `protobuf:"bytes,2,opt,name=fetch_url,json=fetchUrl,proto3" json:"fetch_url,omitempty"` - PushUrl string `protobuf:"bytes,3,opt,name=push_url,json=pushUrl,proto3" json:"push_url,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListRemotesResponse_Remote) Reset() { *m = ListRemotesResponse_Remote{} } -func (m *ListRemotesResponse_Remote) String() string { return proto.CompactTextString(m) } -func (*ListRemotesResponse_Remote) ProtoMessage() {} -func (*ListRemotesResponse_Remote) Descriptor() ([]byte, []int) { - return fileDescriptor_eefc82927d57d89b, []int{13, 0} -} +type ListRemotesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ListRemotesResponse_Remote) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListRemotesResponse_Remote.Unmarshal(m, b) -} -func (m *ListRemotesResponse_Remote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListRemotesResponse_Remote.Marshal(b, m, deterministic) -} -func (m *ListRemotesResponse_Remote) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListRemotesResponse_Remote.Merge(m, src) + Remotes []*ListRemotesResponse_Remote `protobuf:"bytes,1,rep,name=remotes,proto3" json:"remotes,omitempty"` } -func (m *ListRemotesResponse_Remote) XXX_Size() int { - return xxx_messageInfo_ListRemotesResponse_Remote.Size(m) -} -func (m *ListRemotesResponse_Remote) XXX_DiscardUnknown() { - xxx_messageInfo_ListRemotesResponse_Remote.DiscardUnknown(m) -} - -var xxx_messageInfo_ListRemotesResponse_Remote proto.InternalMessageInfo -func (m *ListRemotesResponse_Remote) GetName() string { - if m != nil { - return m.Name +func (x *ListRemotesResponse) Reset() { + *x = ListRemotesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *ListRemotesResponse_Remote) GetFetchUrl() string { - if m != nil { - return m.FetchUrl - } - return "" +func (x *ListRemotesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListRemotesResponse_Remote) GetPushUrl() string { - if m != nil { - return m.PushUrl +func (*ListRemotesResponse) ProtoMessage() {} + +func (x *ListRemotesResponse) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func init() { - proto.RegisterType((*AddRemoteRequest)(nil), "gitaly.AddRemoteRequest") - proto.RegisterType((*AddRemoteResponse)(nil), "gitaly.AddRemoteResponse") - proto.RegisterType((*RemoveRemoteRequest)(nil), "gitaly.RemoveRemoteRequest") - proto.RegisterType((*RemoveRemoteResponse)(nil), "gitaly.RemoveRemoteResponse") - proto.RegisterType((*FetchInternalRemoteRequest)(nil), "gitaly.FetchInternalRemoteRequest") - proto.RegisterType((*FetchInternalRemoteResponse)(nil), "gitaly.FetchInternalRemoteResponse") - proto.RegisterType((*UpdateRemoteMirrorRequest)(nil), "gitaly.UpdateRemoteMirrorRequest") - proto.RegisterType((*UpdateRemoteMirrorRequest_Remote)(nil), "gitaly.UpdateRemoteMirrorRequest.Remote") - proto.RegisterType((*UpdateRemoteMirrorResponse)(nil), "gitaly.UpdateRemoteMirrorResponse") - proto.RegisterType((*FindRemoteRepositoryRequest)(nil), "gitaly.FindRemoteRepositoryRequest") - proto.RegisterType((*FindRemoteRepositoryResponse)(nil), "gitaly.FindRemoteRepositoryResponse") - proto.RegisterType((*FindRemoteRootRefRequest)(nil), "gitaly.FindRemoteRootRefRequest") - proto.RegisterType((*FindRemoteRootRefResponse)(nil), "gitaly.FindRemoteRootRefResponse") - proto.RegisterType((*ListRemotesRequest)(nil), "gitaly.ListRemotesRequest") - proto.RegisterType((*ListRemotesResponse)(nil), "gitaly.ListRemotesResponse") - proto.RegisterType((*ListRemotesResponse_Remote)(nil), "gitaly.ListRemotesResponse.Remote") -} - -func init() { proto.RegisterFile("remote.proto", fileDescriptor_eefc82927d57d89b) } - -var fileDescriptor_eefc82927d57d89b = []byte{ - // 867 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x6e, 0xe3, 0x44, - 0x14, 0x96, 0x13, 0x6f, 0x7e, 0x4e, 0xd3, 0x55, 0x3a, 0xa9, 0xba, 0x8e, 0xbb, 0x88, 0xac, 0x61, - 0x45, 0x2e, 0xd8, 0x44, 0x94, 0x82, 0x10, 0x42, 0x82, 0x2d, 0x68, 0x55, 0x7e, 0x76, 0x25, 0x0c, - 0xe5, 0x82, 0x0b, 0x8c, 0x9b, 0x1c, 0xc7, 0x56, 0x1d, 0x8f, 0x99, 0x99, 0x14, 0xc2, 0x13, 0xf0, - 0x06, 0xe5, 0x15, 0xe0, 0x82, 0xc7, 0xe0, 0x02, 0xde, 0x68, 0xaf, 0xd0, 0x78, 0xc6, 0x8e, 0xd3, - 0x3a, 0xe9, 0x45, 0xd9, 0x3b, 0xcf, 0x39, 0x67, 0xbe, 0xf3, 0x9d, 0xdf, 0x31, 0x74, 0x18, 0xce, - 0xa9, 0xc0, 0x51, 0xca, 0xa8, 0xa0, 0xa4, 0x31, 0x8b, 0x84, 0x1f, 0x2f, 0x6d, 0x88, 0xa3, 0x44, - 0x28, 0x99, 0xdd, 0xe1, 0xa1, 0xcf, 0x70, 0xaa, 0x4e, 0xce, 0x5f, 0x06, 0x74, 0x9f, 0x4e, 0xa7, - 0x6e, 0x76, 0xcb, 0xc5, 0x9f, 0x16, 0xc8, 0x05, 0xf9, 0x00, 0x80, 0x61, 0x4a, 0x79, 0x24, 0x28, - 0x5b, 0x5a, 0xc6, 0xc0, 0x18, 0xee, 0x1c, 0x91, 0x91, 0xc2, 0x1a, 0xb9, 0x85, 0xe6, 0xc4, 0xfc, - 0xfd, 0xef, 0xb7, 0x0d, 0xb7, 0x64, 0x4b, 0x08, 0x98, 0x89, 0x3f, 0x47, 0xab, 0x36, 0x30, 0x86, - 0x6d, 0x37, 0xfb, 0x26, 0x5d, 0xa8, 0x2f, 0x58, 0x6c, 0xd5, 0x33, 0x91, 0xfc, 0x24, 0x8f, 0xe1, - 0xfe, 0x3c, 0x62, 0x8c, 0x32, 0x8f, 0x61, 0x30, 0xf7, 0x53, 0x6e, 0xdd, 0x1b, 0xd4, 0x87, 0x6d, - 0x77, 0x57, 0x49, 0x5d, 0x25, 0xfc, 0xc2, 0x6c, 0x99, 0xdd, 0x7b, 0xb9, 0x50, 0x9b, 0x3a, 0x3d, - 0xd8, 0x2b, 0xf1, 0xe5, 0x29, 0x4d, 0x38, 0x3a, 0x13, 0xe8, 0x49, 0xc9, 0x25, 0xbe, 0xc2, 0x38, - 0x9c, 0x11, 0xec, 0xaf, 0x3b, 0x51, 0xce, 0xc9, 0x01, 0x34, 0x18, 0xf2, 0x45, 0x2c, 0x32, 0x0f, - 0x2d, 0x57, 0x9f, 0x9c, 0x2b, 0x03, 0xec, 0x67, 0x28, 0x26, 0xe1, 0xe7, 0x89, 0x40, 0x96, 0xf8, - 0xf1, 0xff, 0x45, 0xee, 0x63, 0xd8, 0x53, 0x55, 0xf6, 0x4a, 0x00, 0xb5, 0x4d, 0x00, 0x6e, 0x97, - 0x69, 0xbf, 0xb9, 0xc4, 0x79, 0x0f, 0x0e, 0x2b, 0x89, 0xdd, 0x12, 0xd0, 0x9f, 0x75, 0xe8, 0x9f, - 0xa5, 0x53, 0x5f, 0xe8, 0x0c, 0x3c, 0xd7, 0xd5, 0xba, 0x6b, 0x3c, 0x7d, 0x68, 0x31, 0x0c, 0xbc, - 0x52, 0xc2, 0x9b, 0x0c, 0x83, 0x17, 0xb2, 0x77, 0x3e, 0x91, 0x54, 0xa4, 0x2f, 0xab, 0x99, 0x01, - 0x0e, 0x73, 0xc0, 0x8d, 0x3c, 0x46, 0x3a, 0x18, 0x7d, 0x8f, 0x1c, 0xc3, 0x01, 0x4d, 0xe2, 0xa5, - 0x77, 0xce, 0xfc, 0x64, 0x12, 0x22, 0xf7, 0xe6, 0xbe, 0x98, 0x84, 0x51, 0x32, 0xb3, 0xea, 0x83, - 0xfa, 0xb0, 0xe3, 0xee, 0x4b, 0xed, 0x89, 0x56, 0x3e, 0xd7, 0x3a, 0xf2, 0x00, 0x9a, 0x9c, 0x87, - 0xde, 0x05, 0x2e, 0x2d, 0x33, 0x63, 0xd4, 0xe0, 0x3c, 0xfc, 0x12, 0x97, 0xe4, 0x75, 0xd8, 0xb9, - 0x48, 0xe8, 0xcf, 0x89, 0x17, 0x52, 0x2e, 0x64, 0xdf, 0x4a, 0x25, 0x64, 0xa2, 0x53, 0x29, 0x21, - 0x23, 0xe8, 0x5d, 0x20, 0xa6, 0xde, 0x34, 0xba, 0x44, 0x36, 0xc3, 0x44, 0xc8, 0xc6, 0xe5, 0x56, - 0x23, 0xcb, 0xe4, 0x9e, 0x54, 0x7d, 0x96, 0x6b, 0x5c, 0x0c, 0xb8, 0xfd, 0x1d, 0x34, 0x14, 0xe3, - 0x7c, 0x4e, 0x8c, 0xd5, 0x9c, 0x7c, 0x08, 0xfd, 0x50, 0x88, 0xd4, 0xf3, 0x17, 0x22, 0xa4, 0x2c, - 0xfa, 0xd5, 0x17, 0x11, 0x4d, 0xbc, 0x10, 0xfd, 0x29, 0x32, 0x9d, 0xa9, 0x07, 0xd2, 0xe0, 0x69, - 0x59, 0x7f, 0x9a, 0xa9, 0x9d, 0x4f, 0xc1, 0xae, 0xca, 0x91, 0x2e, 0xf1, 0x63, 0xb8, 0x7f, 0x8d, - 0xa0, 0x91, 0x65, 0x63, 0x77, 0x5a, 0x26, 0xe7, 0xfc, 0x00, 0x87, 0xcf, 0xa2, 0xa4, 0x98, 0xb6, - 0xa2, 0xa5, 0x74, 0xc9, 0x0f, 0x8a, 0xea, 0x28, 0xd2, 0x79, 0xce, 0xdf, 0x82, 0x0e, 0x17, 0x94, - 0xf9, 0x33, 0x2c, 0x15, 0xf5, 0xc4, 0xfc, 0x4d, 0x16, 0x7e, 0x47, 0x6b, 0x64, 0x79, 0x9d, 0xf7, - 0xe1, 0x61, 0x35, 0xfe, 0xaa, 0x13, 0xf1, 0x97, 0x48, 0x26, 0x5a, 0x77, 0xa2, 0x3a, 0x39, 0xff, - 0x1a, 0x60, 0x95, 0x2e, 0x52, 0x2a, 0xe9, 0xde, 0xbd, 0x11, 0xed, 0x22, 0x1e, 0xc5, 0xb8, 0x66, - 0x19, 0x45, 0x4c, 0xaf, 0x49, 0xd4, 0x6c, 0xe8, 0x56, 0xcb, 0xac, 0xad, 0x24, 0x67, 0xb7, 0x95, - 0xca, 0xdc, 0x5e, 0xaa, 0x27, 0xd0, 0xaf, 0x08, 0x46, 0xa7, 0xa0, 0x0b, 0x75, 0x86, 0x41, 0xde, - 0x15, 0x0c, 0x03, 0xe7, 0x05, 0x90, 0xaf, 0x22, 0x2e, 0x94, 0x39, 0xbf, 0x73, 0xd4, 0xce, 0x1f, - 0x06, 0xf4, 0xd6, 0x00, 0xb5, 0xe7, 0x8f, 0xa0, 0xa9, 0xe2, 0x53, 0xcd, 0xb1, 0x73, 0xe4, 0xe4, - 0x70, 0x15, 0xd6, 0xf9, 0xd8, 0xe5, 0x57, 0xec, 0x6f, 0x8b, 0xbe, 0xce, 0x77, 0xa9, 0x51, 0x7a, - 0x13, 0x0e, 0xa1, 0x1d, 0xc8, 0x0d, 0x94, 0x25, 0x53, 0x75, 0x72, 0x2b, 0x13, 0xc8, 0x5c, 0xf6, - 0xa1, 0x95, 0x2e, 0x78, 0x58, 0x4a, 0x74, 0x53, 0x9e, 0xcf, 0x58, 0x7c, 0xf4, 0x8f, 0x09, 0xbb, - 0x0a, 0xf6, 0x1b, 0x64, 0x97, 0xd1, 0x04, 0xc9, 0x29, 0xb4, 0x8b, 0xf7, 0x80, 0x58, 0x39, 0xc3, - 0xeb, 0x4f, 0x9a, 0xdd, 0xaf, 0xd0, 0xe8, 0xc7, 0xa3, 0xf1, 0xf2, 0x6a, 0x58, 0x6b, 0x19, 0x24, - 0x80, 0x5e, 0xc5, 0x56, 0x24, 0x45, 0xd4, 0x9b, 0x77, 0xb9, 0xfd, 0xc6, 0x56, 0x9b, 0x6b, 0x7e, - 0xbe, 0x86, 0x4e, 0xf9, 0x1d, 0x21, 0x87, 0xab, 0x2a, 0xdd, 0x78, 0xc2, 0xec, 0x87, 0xd5, 0xca, - 0x6b, 0x90, 0x08, 0xe4, 0xe6, 0xb0, 0x93, 0x47, 0xb7, 0x2e, 0x4b, 0xdb, 0xd9, 0x66, 0xb2, 0xe6, - 0xa4, 0x36, 0x34, 0xc8, 0x05, 0xec, 0x57, 0x8d, 0x2b, 0x59, 0x85, 0xbf, 0x79, 0x59, 0xd8, 0x6f, - 0x6e, 0x37, 0xd2, 0xce, 0x5a, 0x2f, 0xaf, 0x86, 0x66, 0xab, 0xd6, 0xad, 0x91, 0x1f, 0x61, 0xef, - 0xc6, 0x54, 0x90, 0x41, 0x05, 0xc8, 0xda, 0xf4, 0xdb, 0x8f, 0xb6, 0x58, 0xac, 0x07, 0x74, 0x72, - 0xfc, 0xfd, 0xd1, 0x2c, 0x12, 0xb1, 0x7f, 0x3e, 0x9a, 0xd0, 0xf9, 0x58, 0x7d, 0x3e, 0xa1, 0x6c, - 0x36, 0x56, 0x08, 0xe3, 0xcb, 0x77, 0x8e, 0xc7, 0xd9, 0x5f, 0xd2, 0x78, 0x46, 0xb5, 0x2c, 0x3d, - 0x3f, 0x6f, 0x64, 0xa2, 0x77, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x58, 0xfb, 0x0e, 0xfd, 0x6a, - 0x09, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// RemoteServiceClient is the client API for RemoteService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RemoteServiceClient interface { - AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error) - FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error) - RemoveRemote(ctx context.Context, in *RemoveRemoteRequest, opts ...grpc.CallOption) (*RemoveRemoteResponse, error) - // UpdateRemoteMirror compares the references in the target repository and its remote mirror - // repository. Any differences in the references are then addressed by pushing the differing - // references to the mirror. Created and modified references are updated, removed references are - // deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match - // the patterns specified in the requests. - UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error) - FindRemoteRepository(ctx context.Context, in *FindRemoteRepositoryRequest, opts ...grpc.CallOption) (*FindRemoteRepositoryResponse, error) - // FindRemoteRootRef tries to find the root reference of a remote - // repository. The root reference is the default branch as pointed to by - // the remotes HEAD reference. Returns an InvalidArgument error if the - // specified remote does not exist and a NotFound error in case no HEAD - // branch was found. - FindRemoteRootRef(ctx context.Context, in *FindRemoteRootRefRequest, opts ...grpc.CallOption) (*FindRemoteRootRefResponse, error) -} - -type remoteServiceClient struct { - cc *grpc.ClientConn -} - -func NewRemoteServiceClient(cc *grpc.ClientConn) RemoteServiceClient { - return &remoteServiceClient{cc} -} - -func (c *remoteServiceClient) AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error) { - out := new(AddRemoteResponse) - err := c.cc.Invoke(ctx, "/gitaly.RemoteService/AddRemote", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *remoteServiceClient) FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error) { - out := new(FetchInternalRemoteResponse) - err := c.cc.Invoke(ctx, "/gitaly.RemoteService/FetchInternalRemote", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *remoteServiceClient) RemoveRemote(ctx context.Context, in *RemoveRemoteRequest, opts ...grpc.CallOption) (*RemoveRemoteResponse, error) { - out := new(RemoveRemoteResponse) - err := c.cc.Invoke(ctx, "/gitaly.RemoteService/RemoveRemote", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use ListRemotesResponse.ProtoReflect.Descriptor instead. +func (*ListRemotesResponse) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{13} } -func (c *remoteServiceClient) UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error) { - stream, err := c.cc.NewStream(ctx, &_RemoteService_serviceDesc.Streams[0], "/gitaly.RemoteService/UpdateRemoteMirror", opts...) - if err != nil { - return nil, err +func (x *ListRemotesResponse) GetRemotes() []*ListRemotesResponse_Remote { + if x != nil { + return x.Remotes } - x := &remoteServiceUpdateRemoteMirrorClient{stream} - return x, nil -} - -type RemoteService_UpdateRemoteMirrorClient interface { - Send(*UpdateRemoteMirrorRequest) error - CloseAndRecv() (*UpdateRemoteMirrorResponse, error) - grpc.ClientStream + return nil } -type remoteServiceUpdateRemoteMirrorClient struct { - grpc.ClientStream -} +type UpdateRemoteMirrorRequest_Remote struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *remoteServiceUpdateRemoteMirrorClient) Send(m *UpdateRemoteMirrorRequest) error { - return x.ClientStream.SendMsg(m) + // URL is the URL of the remote repository. + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + // HTTPAuthorizationHeader is an optional HTTP header used for + // authenticating against the remote repository. + HttpAuthorizationHeader string `protobuf:"bytes,2,opt,name=http_authorization_header,json=httpAuthorizationHeader,proto3" json:"http_authorization_header,omitempty"` } -func (x *remoteServiceUpdateRemoteMirrorClient) CloseAndRecv() (*UpdateRemoteMirrorResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(UpdateRemoteMirrorResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *UpdateRemoteMirrorRequest_Remote) Reset() { + *x = UpdateRemoteMirrorRequest_Remote{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -func (c *remoteServiceClient) FindRemoteRepository(ctx context.Context, in *FindRemoteRepositoryRequest, opts ...grpc.CallOption) (*FindRemoteRepositoryResponse, error) { - out := new(FindRemoteRepositoryResponse) - err := c.cc.Invoke(ctx, "/gitaly.RemoteService/FindRemoteRepository", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *UpdateRemoteMirrorRequest_Remote) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *remoteServiceClient) FindRemoteRootRef(ctx context.Context, in *FindRemoteRootRefRequest, opts ...grpc.CallOption) (*FindRemoteRootRefResponse, error) { - out := new(FindRemoteRootRefResponse) - err := c.cc.Invoke(ctx, "/gitaly.RemoteService/FindRemoteRootRef", in, out, opts...) - if err != nil { - return nil, err +func (*UpdateRemoteMirrorRequest_Remote) ProtoMessage() {} + +func (x *UpdateRemoteMirrorRequest_Remote) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -// RemoteServiceServer is the server API for RemoteService service. -type RemoteServiceServer interface { - AddRemote(context.Context, *AddRemoteRequest) (*AddRemoteResponse, error) - FetchInternalRemote(context.Context, *FetchInternalRemoteRequest) (*FetchInternalRemoteResponse, error) - RemoveRemote(context.Context, *RemoveRemoteRequest) (*RemoveRemoteResponse, error) - // UpdateRemoteMirror compares the references in the target repository and its remote mirror - // repository. Any differences in the references are then addressed by pushing the differing - // references to the mirror. Created and modified references are updated, removed references are - // deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match - // the patterns specified in the requests. - UpdateRemoteMirror(RemoteService_UpdateRemoteMirrorServer) error - FindRemoteRepository(context.Context, *FindRemoteRepositoryRequest) (*FindRemoteRepositoryResponse, error) - // FindRemoteRootRef tries to find the root reference of a remote - // repository. The root reference is the default branch as pointed to by - // the remotes HEAD reference. Returns an InvalidArgument error if the - // specified remote does not exist and a NotFound error in case no HEAD - // branch was found. - FindRemoteRootRef(context.Context, *FindRemoteRootRefRequest) (*FindRemoteRootRefResponse, error) +// Deprecated: Use UpdateRemoteMirrorRequest_Remote.ProtoReflect.Descriptor instead. +func (*UpdateRemoteMirrorRequest_Remote) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{6, 0} } -// UnimplementedRemoteServiceServer can be embedded to have forward compatible implementations. -type UnimplementedRemoteServiceServer struct { +func (x *UpdateRemoteMirrorRequest_Remote) GetUrl() string { + if x != nil { + return x.Url + } + return "" } -func (*UnimplementedRemoteServiceServer) AddRemote(ctx context.Context, req *AddRemoteRequest) (*AddRemoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddRemote not implemented") -} -func (*UnimplementedRemoteServiceServer) FetchInternalRemote(ctx context.Context, req *FetchInternalRemoteRequest) (*FetchInternalRemoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FetchInternalRemote not implemented") -} -func (*UnimplementedRemoteServiceServer) RemoveRemote(ctx context.Context, req *RemoveRemoteRequest) (*RemoveRemoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveRemote not implemented") -} -func (*UnimplementedRemoteServiceServer) UpdateRemoteMirror(srv RemoteService_UpdateRemoteMirrorServer) error { - return status.Errorf(codes.Unimplemented, "method UpdateRemoteMirror not implemented") -} -func (*UnimplementedRemoteServiceServer) FindRemoteRepository(ctx context.Context, req *FindRemoteRepositoryRequest) (*FindRemoteRepositoryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindRemoteRepository not implemented") -} -func (*UnimplementedRemoteServiceServer) FindRemoteRootRef(ctx context.Context, req *FindRemoteRootRefRequest) (*FindRemoteRootRefResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindRemoteRootRef not implemented") +func (x *UpdateRemoteMirrorRequest_Remote) GetHttpAuthorizationHeader() string { + if x != nil { + return x.HttpAuthorizationHeader + } + return "" } -func RegisterRemoteServiceServer(s *grpc.Server, srv RemoteServiceServer) { - s.RegisterService(&_RemoteService_serviceDesc, srv) -} +type ListRemotesResponse_Remote struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func _RemoteService_AddRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddRemoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RemoteServiceServer).AddRemote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RemoteService/AddRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RemoteServiceServer).AddRemote(ctx, req.(*AddRemoteRequest)) - } - return interceptor(ctx, in, info, handler) + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + FetchUrl string `protobuf:"bytes,2,opt,name=fetch_url,json=fetchUrl,proto3" json:"fetch_url,omitempty"` + PushUrl string `protobuf:"bytes,3,opt,name=push_url,json=pushUrl,proto3" json:"push_url,omitempty"` } -func _RemoteService_FetchInternalRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FetchInternalRemoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RemoteServiceServer).FetchInternalRemote(ctx, in) +func (x *ListRemotesResponse_Remote) Reset() { + *x = ListRemotesResponse_Remote{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RemoteService/FetchInternalRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RemoteServiceServer).FetchInternalRemote(ctx, req.(*FetchInternalRemoteRequest)) - } - return interceptor(ctx, in, info, handler) } -func _RemoteService_RemoveRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveRemoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RemoteServiceServer).RemoveRemote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RemoteService/RemoveRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RemoteServiceServer).RemoveRemote(ctx, req.(*RemoveRemoteRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *ListRemotesResponse_Remote) String() string { + return protoimpl.X.MessageStringOf(x) } -func _RemoteService_UpdateRemoteMirror_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(RemoteServiceServer).UpdateRemoteMirror(&remoteServiceUpdateRemoteMirrorServer{stream}) -} +func (*ListRemotesResponse_Remote) ProtoMessage() {} -type RemoteService_UpdateRemoteMirrorServer interface { - SendAndClose(*UpdateRemoteMirrorResponse) error - Recv() (*UpdateRemoteMirrorRequest, error) - grpc.ServerStream +func (x *ListRemotesResponse_Remote) ProtoReflect() protoreflect.Message { + mi := &file_remote_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type remoteServiceUpdateRemoteMirrorServer struct { - grpc.ServerStream +// Deprecated: Use ListRemotesResponse_Remote.ProtoReflect.Descriptor instead. +func (*ListRemotesResponse_Remote) Descriptor() ([]byte, []int) { + return file_remote_proto_rawDescGZIP(), []int{13, 0} } -func (x *remoteServiceUpdateRemoteMirrorServer) SendAndClose(m *UpdateRemoteMirrorResponse) error { - return x.ServerStream.SendMsg(m) +func (x *ListRemotesResponse_Remote) GetName() string { + if x != nil { + return x.Name + } + return "" } -func (x *remoteServiceUpdateRemoteMirrorServer) Recv() (*UpdateRemoteMirrorRequest, error) { - m := new(UpdateRemoteMirrorRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func (x *ListRemotesResponse_Remote) GetFetchUrl() string { + if x != nil { + return x.FetchUrl } - return m, nil + return "" } -func _RemoteService_FindRemoteRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindRemoteRepositoryRequest) - if err := dec(in); err != nil { - return nil, err +func (x *ListRemotesResponse_Remote) GetPushUrl() string { + if x != nil { + return x.PushUrl } - if interceptor == nil { - return srv.(RemoteServiceServer).FindRemoteRepository(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RemoteService/FindRemoteRepository", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RemoteServiceServer).FindRemoteRepository(ctx, req.(*FindRemoteRepositoryRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _RemoteService_FindRemoteRootRef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindRemoteRootRefRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RemoteServiceServer).FindRemoteRootRef(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RemoteService/FindRemoteRootRef", +var File_remote_proto protoreflect.FileDescriptor + +var file_remote_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xae, 0x01, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x5f, + 0x72, 0x65, 0x66, 0x6d, 0x61, 0x70, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x6d, + 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x66, 0x6d, 0x61, 0x70, 0x73, 0x4a, 0x04, 0x08, 0x04, + 0x10, 0x05, 0x52, 0x0d, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x66, 0x6d, 0x61, + 0x70, 0x22, 0x13, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2e, 0x0a, 0x14, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x97, 0x01, 0x0a, 0x1a, + 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x3f, 0x0a, 0x11, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x52, 0x10, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x35, 0x0a, 0x1b, 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xaa, 0x03, 0x0a, + 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x4d, 0x69, 0x72, + 0x72, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x65, 0x66, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x40, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x28, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x12, 0x34, 0x0a, 0x16, 0x6f, 0x6e, 0x6c, 0x79, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x65, 0x73, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0c, 0x52, 0x14, 0x6f, 0x6e, 0x6c, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x4d, + 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x73, 0x68, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x73, 0x68, 0x4b, 0x65, 0x79, + 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x48, 0x6f, 0x73, 0x74, + 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x6b, 0x65, 0x65, 0x70, 0x5f, 0x64, 0x69, 0x76, 0x65, 0x72, 0x67, + 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, + 0x6b, 0x65, 0x65, 0x70, 0x44, 0x69, 0x76, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x66, + 0x73, 0x1a, 0x56, 0x0a, 0x06, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, + 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x3a, 0x0a, + 0x19, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x17, 0x68, 0x74, 0x74, 0x70, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x43, 0x0a, 0x1a, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x69, 0x76, 0x65, 0x72, + 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, + 0x0d, 0x64, 0x69, 0x76, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x66, 0x73, 0x22, 0x5e, + 0x0a, 0x1b, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, + 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, + 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x36, + 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, + 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0xcb, 0x01, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x52, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, + 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, + 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, + 0x01, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x74, 0x74, 0x70, + 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x74, 0x74, + 0x70, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x22, 0x2d, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x72, 0x65, 0x66, 0x22, 0x4e, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x22, 0xa9, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x52, 0x07, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x73, 0x1a, 0x54, 0x0a, 0x06, 0x52, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x65, 0x74, 0x63, 0x68, + 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x65, 0x74, 0x63, + 0x68, 0x55, 0x72, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x75, 0x72, 0x6c, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x75, 0x73, 0x68, 0x55, 0x72, 0x6c, 0x32, + 0xca, 0x04, 0x0a, 0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x48, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x18, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x66, 0x0a, 0x13, 0x46, + 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x12, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x65, 0x74, 0x63, + 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x01, 0x12, 0x51, 0x0a, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, + 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x65, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x21, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x22, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x28, 0x01, 0x12, 0x6b, 0x0a, + 0x14, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x08, 0xfa, 0x97, 0x28, 0x04, 0x08, 0x02, 0x10, 0x02, 0x12, 0x60, 0x0a, 0x11, 0x46, 0x69, + 0x6e, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x66, 0x12, + 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x66, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x42, 0x34, 0x5a, 0x32, + 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, + 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_remote_proto_rawDescOnce sync.Once + file_remote_proto_rawDescData = file_remote_proto_rawDesc +) + +func file_remote_proto_rawDescGZIP() []byte { + file_remote_proto_rawDescOnce.Do(func() { + file_remote_proto_rawDescData = protoimpl.X.CompressGZIP(file_remote_proto_rawDescData) + }) + return file_remote_proto_rawDescData +} + +var file_remote_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_remote_proto_goTypes = []interface{}{ + (*AddRemoteRequest)(nil), // 0: gitaly.AddRemoteRequest + (*AddRemoteResponse)(nil), // 1: gitaly.AddRemoteResponse + (*RemoveRemoteRequest)(nil), // 2: gitaly.RemoveRemoteRequest + (*RemoveRemoteResponse)(nil), // 3: gitaly.RemoveRemoteResponse + (*FetchInternalRemoteRequest)(nil), // 4: gitaly.FetchInternalRemoteRequest + (*FetchInternalRemoteResponse)(nil), // 5: gitaly.FetchInternalRemoteResponse + (*UpdateRemoteMirrorRequest)(nil), // 6: gitaly.UpdateRemoteMirrorRequest + (*UpdateRemoteMirrorResponse)(nil), // 7: gitaly.UpdateRemoteMirrorResponse + (*FindRemoteRepositoryRequest)(nil), // 8: gitaly.FindRemoteRepositoryRequest + (*FindRemoteRepositoryResponse)(nil), // 9: gitaly.FindRemoteRepositoryResponse + (*FindRemoteRootRefRequest)(nil), // 10: gitaly.FindRemoteRootRefRequest + (*FindRemoteRootRefResponse)(nil), // 11: gitaly.FindRemoteRootRefResponse + (*ListRemotesRequest)(nil), // 12: gitaly.ListRemotesRequest + (*ListRemotesResponse)(nil), // 13: gitaly.ListRemotesResponse + (*UpdateRemoteMirrorRequest_Remote)(nil), // 14: gitaly.UpdateRemoteMirrorRequest.Remote + (*ListRemotesResponse_Remote)(nil), // 15: gitaly.ListRemotesResponse.Remote + (*Repository)(nil), // 16: gitaly.Repository +} +var file_remote_proto_depIdxs = []int32{ + 16, // 0: gitaly.AddRemoteRequest.repository:type_name -> gitaly.Repository + 16, // 1: gitaly.RemoveRemoteRequest.repository:type_name -> gitaly.Repository + 16, // 2: gitaly.FetchInternalRemoteRequest.repository:type_name -> gitaly.Repository + 16, // 3: gitaly.FetchInternalRemoteRequest.remote_repository:type_name -> gitaly.Repository + 16, // 4: gitaly.UpdateRemoteMirrorRequest.repository:type_name -> gitaly.Repository + 14, // 5: gitaly.UpdateRemoteMirrorRequest.remote:type_name -> gitaly.UpdateRemoteMirrorRequest.Remote + 16, // 6: gitaly.FindRemoteRootRefRequest.repository:type_name -> gitaly.Repository + 16, // 7: gitaly.ListRemotesRequest.repository:type_name -> gitaly.Repository + 15, // 8: gitaly.ListRemotesResponse.remotes:type_name -> gitaly.ListRemotesResponse.Remote + 0, // 9: gitaly.RemoteService.AddRemote:input_type -> gitaly.AddRemoteRequest + 4, // 10: gitaly.RemoteService.FetchInternalRemote:input_type -> gitaly.FetchInternalRemoteRequest + 2, // 11: gitaly.RemoteService.RemoveRemote:input_type -> gitaly.RemoveRemoteRequest + 6, // 12: gitaly.RemoteService.UpdateRemoteMirror:input_type -> gitaly.UpdateRemoteMirrorRequest + 8, // 13: gitaly.RemoteService.FindRemoteRepository:input_type -> gitaly.FindRemoteRepositoryRequest + 10, // 14: gitaly.RemoteService.FindRemoteRootRef:input_type -> gitaly.FindRemoteRootRefRequest + 1, // 15: gitaly.RemoteService.AddRemote:output_type -> gitaly.AddRemoteResponse + 5, // 16: gitaly.RemoteService.FetchInternalRemote:output_type -> gitaly.FetchInternalRemoteResponse + 3, // 17: gitaly.RemoteService.RemoveRemote:output_type -> gitaly.RemoveRemoteResponse + 7, // 18: gitaly.RemoteService.UpdateRemoteMirror:output_type -> gitaly.UpdateRemoteMirrorResponse + 9, // 19: gitaly.RemoteService.FindRemoteRepository:output_type -> gitaly.FindRemoteRepositoryResponse + 11, // 20: gitaly.RemoteService.FindRemoteRootRef:output_type -> gitaly.FindRemoteRootRefResponse + 15, // [15:21] is the sub-list for method output_type + 9, // [9:15] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name +} + +func init() { file_remote_proto_init() } +func file_remote_proto_init() { + if File_remote_proto != nil { + return } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RemoteServiceServer).FindRemoteRootRef(ctx, req.(*FindRemoteRootRefRequest)) + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_remote_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddRemoteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddRemoteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveRemoteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveRemoteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchInternalRemoteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchInternalRemoteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateRemoteMirrorRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateRemoteMirrorResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRemoteRepositoryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRemoteRepositoryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRemoteRootRefRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRemoteRootRefResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListRemotesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListRemotesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateRemoteMirrorRequest_Remote); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListRemotesResponse_Remote); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return interceptor(ctx, in, info, handler) -} - -var _RemoteService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.RemoteService", - HandlerType: (*RemoteServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "AddRemote", - Handler: _RemoteService_AddRemote_Handler, - }, - { - MethodName: "FetchInternalRemote", - Handler: _RemoteService_FetchInternalRemote_Handler, - }, - { - MethodName: "RemoveRemote", - Handler: _RemoteService_RemoveRemote_Handler, - }, - { - MethodName: "FindRemoteRepository", - Handler: _RemoteService_FindRemoteRepository_Handler, - }, - { - MethodName: "FindRemoteRootRef", - Handler: _RemoteService_FindRemoteRootRef_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "UpdateRemoteMirror", - Handler: _RemoteService_UpdateRemoteMirror_Handler, - ClientStreams: true, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_remote_proto_rawDesc, + NumEnums: 0, + NumMessages: 16, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "remote.proto", + GoTypes: file_remote_proto_goTypes, + DependencyIndexes: file_remote_proto_depIdxs, + MessageInfos: file_remote_proto_msgTypes, + }.Build() + File_remote_proto = out.File + file_remote_proto_rawDesc = nil + file_remote_proto_goTypes = nil + file_remote_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/remote_grpc.pb.go b/proto/go/gitalypb/remote_grpc.pb.go new file mode 100644 index 000000000..4c6efadd9 --- /dev/null +++ b/proto/go/gitalypb/remote_grpc.pb.go @@ -0,0 +1,336 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// RemoteServiceClient is the client API for RemoteService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type RemoteServiceClient interface { + AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error) + FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error) + RemoveRemote(ctx context.Context, in *RemoveRemoteRequest, opts ...grpc.CallOption) (*RemoveRemoteResponse, error) + // UpdateRemoteMirror compares the references in the target repository and its remote mirror + // repository. Any differences in the references are then addressed by pushing the differing + // references to the mirror. Created and modified references are updated, removed references are + // deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match + // the patterns specified in the requests. + UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error) + FindRemoteRepository(ctx context.Context, in *FindRemoteRepositoryRequest, opts ...grpc.CallOption) (*FindRemoteRepositoryResponse, error) + // FindRemoteRootRef tries to find the root reference of a remote + // repository. The root reference is the default branch as pointed to by + // the remotes HEAD reference. Returns an InvalidArgument error if the + // specified remote does not exist and a NotFound error in case no HEAD + // branch was found. + FindRemoteRootRef(ctx context.Context, in *FindRemoteRootRefRequest, opts ...grpc.CallOption) (*FindRemoteRootRefResponse, error) +} + +type remoteServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewRemoteServiceClient(cc grpc.ClientConnInterface) RemoteServiceClient { + return &remoteServiceClient{cc} +} + +func (c *remoteServiceClient) AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error) { + out := new(AddRemoteResponse) + err := c.cc.Invoke(ctx, "/gitaly.RemoteService/AddRemote", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *remoteServiceClient) FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error) { + out := new(FetchInternalRemoteResponse) + err := c.cc.Invoke(ctx, "/gitaly.RemoteService/FetchInternalRemote", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *remoteServiceClient) RemoveRemote(ctx context.Context, in *RemoveRemoteRequest, opts ...grpc.CallOption) (*RemoveRemoteResponse, error) { + out := new(RemoveRemoteResponse) + err := c.cc.Invoke(ctx, "/gitaly.RemoteService/RemoveRemote", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *remoteServiceClient) UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error) { + stream, err := c.cc.NewStream(ctx, &RemoteService_ServiceDesc.Streams[0], "/gitaly.RemoteService/UpdateRemoteMirror", opts...) + if err != nil { + return nil, err + } + x := &remoteServiceUpdateRemoteMirrorClient{stream} + return x, nil +} + +type RemoteService_UpdateRemoteMirrorClient interface { + Send(*UpdateRemoteMirrorRequest) error + CloseAndRecv() (*UpdateRemoteMirrorResponse, error) + grpc.ClientStream +} + +type remoteServiceUpdateRemoteMirrorClient struct { + grpc.ClientStream +} + +func (x *remoteServiceUpdateRemoteMirrorClient) Send(m *UpdateRemoteMirrorRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *remoteServiceUpdateRemoteMirrorClient) CloseAndRecv() (*UpdateRemoteMirrorResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(UpdateRemoteMirrorResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *remoteServiceClient) FindRemoteRepository(ctx context.Context, in *FindRemoteRepositoryRequest, opts ...grpc.CallOption) (*FindRemoteRepositoryResponse, error) { + out := new(FindRemoteRepositoryResponse) + err := c.cc.Invoke(ctx, "/gitaly.RemoteService/FindRemoteRepository", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *remoteServiceClient) FindRemoteRootRef(ctx context.Context, in *FindRemoteRootRefRequest, opts ...grpc.CallOption) (*FindRemoteRootRefResponse, error) { + out := new(FindRemoteRootRefResponse) + err := c.cc.Invoke(ctx, "/gitaly.RemoteService/FindRemoteRootRef", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RemoteServiceServer is the server API for RemoteService service. +// All implementations must embed UnimplementedRemoteServiceServer +// for forward compatibility +type RemoteServiceServer interface { + AddRemote(context.Context, *AddRemoteRequest) (*AddRemoteResponse, error) + FetchInternalRemote(context.Context, *FetchInternalRemoteRequest) (*FetchInternalRemoteResponse, error) + RemoveRemote(context.Context, *RemoveRemoteRequest) (*RemoveRemoteResponse, error) + // UpdateRemoteMirror compares the references in the target repository and its remote mirror + // repository. Any differences in the references are then addressed by pushing the differing + // references to the mirror. Created and modified references are updated, removed references are + // deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match + // the patterns specified in the requests. + UpdateRemoteMirror(RemoteService_UpdateRemoteMirrorServer) error + FindRemoteRepository(context.Context, *FindRemoteRepositoryRequest) (*FindRemoteRepositoryResponse, error) + // FindRemoteRootRef tries to find the root reference of a remote + // repository. The root reference is the default branch as pointed to by + // the remotes HEAD reference. Returns an InvalidArgument error if the + // specified remote does not exist and a NotFound error in case no HEAD + // branch was found. + FindRemoteRootRef(context.Context, *FindRemoteRootRefRequest) (*FindRemoteRootRefResponse, error) + mustEmbedUnimplementedRemoteServiceServer() +} + +// UnimplementedRemoteServiceServer must be embedded to have forward compatible implementations. +type UnimplementedRemoteServiceServer struct { +} + +func (UnimplementedRemoteServiceServer) AddRemote(context.Context, *AddRemoteRequest) (*AddRemoteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddRemote not implemented") +} +func (UnimplementedRemoteServiceServer) FetchInternalRemote(context.Context, *FetchInternalRemoteRequest) (*FetchInternalRemoteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchInternalRemote not implemented") +} +func (UnimplementedRemoteServiceServer) RemoveRemote(context.Context, *RemoveRemoteRequest) (*RemoveRemoteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveRemote not implemented") +} +func (UnimplementedRemoteServiceServer) UpdateRemoteMirror(RemoteService_UpdateRemoteMirrorServer) error { + return status.Errorf(codes.Unimplemented, "method UpdateRemoteMirror not implemented") +} +func (UnimplementedRemoteServiceServer) FindRemoteRepository(context.Context, *FindRemoteRepositoryRequest) (*FindRemoteRepositoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindRemoteRepository not implemented") +} +func (UnimplementedRemoteServiceServer) FindRemoteRootRef(context.Context, *FindRemoteRootRefRequest) (*FindRemoteRootRefResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindRemoteRootRef not implemented") +} +func (UnimplementedRemoteServiceServer) mustEmbedUnimplementedRemoteServiceServer() {} + +// UnsafeRemoteServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to RemoteServiceServer will +// result in compilation errors. +type UnsafeRemoteServiceServer interface { + mustEmbedUnimplementedRemoteServiceServer() +} + +func RegisterRemoteServiceServer(s grpc.ServiceRegistrar, srv RemoteServiceServer) { + s.RegisterService(&RemoteService_ServiceDesc, srv) +} + +func _RemoteService_AddRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddRemoteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RemoteServiceServer).AddRemote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RemoteService/AddRemote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RemoteServiceServer).AddRemote(ctx, req.(*AddRemoteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RemoteService_FetchInternalRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FetchInternalRemoteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RemoteServiceServer).FetchInternalRemote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RemoteService/FetchInternalRemote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RemoteServiceServer).FetchInternalRemote(ctx, req.(*FetchInternalRemoteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RemoteService_RemoveRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveRemoteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RemoteServiceServer).RemoveRemote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RemoteService/RemoveRemote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RemoteServiceServer).RemoveRemote(ctx, req.(*RemoveRemoteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RemoteService_UpdateRemoteMirror_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(RemoteServiceServer).UpdateRemoteMirror(&remoteServiceUpdateRemoteMirrorServer{stream}) +} + +type RemoteService_UpdateRemoteMirrorServer interface { + SendAndClose(*UpdateRemoteMirrorResponse) error + Recv() (*UpdateRemoteMirrorRequest, error) + grpc.ServerStream +} + +type remoteServiceUpdateRemoteMirrorServer struct { + grpc.ServerStream +} + +func (x *remoteServiceUpdateRemoteMirrorServer) SendAndClose(m *UpdateRemoteMirrorResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *remoteServiceUpdateRemoteMirrorServer) Recv() (*UpdateRemoteMirrorRequest, error) { + m := new(UpdateRemoteMirrorRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _RemoteService_FindRemoteRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindRemoteRepositoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RemoteServiceServer).FindRemoteRepository(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RemoteService/FindRemoteRepository", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RemoteServiceServer).FindRemoteRepository(ctx, req.(*FindRemoteRepositoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RemoteService_FindRemoteRootRef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindRemoteRootRefRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RemoteServiceServer).FindRemoteRootRef(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RemoteService/FindRemoteRootRef", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RemoteServiceServer).FindRemoteRootRef(ctx, req.(*FindRemoteRootRefRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// RemoteService_ServiceDesc is the grpc.ServiceDesc for RemoteService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var RemoteService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.RemoteService", + HandlerType: (*RemoteServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AddRemote", + Handler: _RemoteService_AddRemote_Handler, + }, + { + MethodName: "FetchInternalRemote", + Handler: _RemoteService_FetchInternalRemote_Handler, + }, + { + MethodName: "RemoveRemote", + Handler: _RemoteService_RemoveRemote_Handler, + }, + { + MethodName: "FindRemoteRepository", + Handler: _RemoteService_FindRemoteRepository_Handler, + }, + { + MethodName: "FindRemoteRootRef", + Handler: _RemoteService_FindRemoteRootRef_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "UpdateRemoteMirror", + Handler: _RemoteService_UpdateRemoteMirror_Handler, + ClientStreams: true, + }, + }, + Metadata: "remote.proto", +} diff --git a/proto/go/gitalypb/repository-service.pb.go b/proto/go/gitalypb/repository-service.pb.go index 3b1bac826..3f031201f 100644 --- a/proto/go/gitalypb/repository-service.pb.go +++ b/proto/go/gitalypb/repository-service.pb.go @@ -1,28 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: repository-service.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type WriteCommitGraphRequest_SplitStrategy int32 @@ -33,20 +29,41 @@ const ( WriteCommitGraphRequest_SizeMultiple WriteCommitGraphRequest_SplitStrategy = 0 ) -var WriteCommitGraphRequest_SplitStrategy_name = map[int32]string{ - 0: "SizeMultiple", -} +// Enum value maps for WriteCommitGraphRequest_SplitStrategy. +var ( + WriteCommitGraphRequest_SplitStrategy_name = map[int32]string{ + 0: "SizeMultiple", + } + WriteCommitGraphRequest_SplitStrategy_value = map[string]int32{ + "SizeMultiple": 0, + } +) -var WriteCommitGraphRequest_SplitStrategy_value = map[string]int32{ - "SizeMultiple": 0, +func (x WriteCommitGraphRequest_SplitStrategy) Enum() *WriteCommitGraphRequest_SplitStrategy { + p := new(WriteCommitGraphRequest_SplitStrategy) + *p = x + return p } func (x WriteCommitGraphRequest_SplitStrategy) String() string { - return proto.EnumName(WriteCommitGraphRequest_SplitStrategy_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (WriteCommitGraphRequest_SplitStrategy) Descriptor() protoreflect.EnumDescriptor { + return file_repository_service_proto_enumTypes[0].Descriptor() +} + +func (WriteCommitGraphRequest_SplitStrategy) Type() protoreflect.EnumType { + return &file_repository_service_proto_enumTypes[0] +} + +func (x WriteCommitGraphRequest_SplitStrategy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use WriteCommitGraphRequest_SplitStrategy.Descriptor instead. func (WriteCommitGraphRequest_SplitStrategy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{10, 0} + return file_repository_service_proto_rawDescGZIP(), []int{10, 0} } type GetArchiveRequest_Format int32 @@ -58,26 +75,47 @@ const ( GetArchiveRequest_TAR_BZ2 GetArchiveRequest_Format = 3 ) -var GetArchiveRequest_Format_name = map[int32]string{ - 0: "ZIP", - 1: "TAR", - 2: "TAR_GZ", - 3: "TAR_BZ2", -} +// Enum value maps for GetArchiveRequest_Format. +var ( + GetArchiveRequest_Format_name = map[int32]string{ + 0: "ZIP", + 1: "TAR", + 2: "TAR_GZ", + 3: "TAR_BZ2", + } + GetArchiveRequest_Format_value = map[string]int32{ + "ZIP": 0, + "TAR": 1, + "TAR_GZ": 2, + "TAR_BZ2": 3, + } +) -var GetArchiveRequest_Format_value = map[string]int32{ - "ZIP": 0, - "TAR": 1, - "TAR_GZ": 2, - "TAR_BZ2": 3, +func (x GetArchiveRequest_Format) Enum() *GetArchiveRequest_Format { + p := new(GetArchiveRequest_Format) + *p = x + return p } func (x GetArchiveRequest_Format) String() string { - return proto.EnumName(GetArchiveRequest_Format_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GetArchiveRequest_Format) Descriptor() protoreflect.EnumDescriptor { + return file_repository_service_proto_enumTypes[1].Descriptor() +} + +func (GetArchiveRequest_Format) Type() protoreflect.EnumType { + return &file_repository_service_proto_enumTypes[1] } +func (x GetArchiveRequest_Format) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GetArchiveRequest_Format.Descriptor instead. func (GetArchiveRequest_Format) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{22, 0} + return file_repository_service_proto_rawDescGZIP(), []int{22, 0} } type GetRawChangesResponse_RawChange_Operation int32 @@ -92,331 +130,417 @@ const ( GetRawChangesResponse_RawChange_TYPE_CHANGED GetRawChangesResponse_RawChange_Operation = 6 ) -var GetRawChangesResponse_RawChange_Operation_name = map[int32]string{ - 0: "UNKNOWN", - 1: "ADDED", - 2: "COPIED", - 3: "DELETED", - 4: "MODIFIED", - 5: "RENAMED", - 6: "TYPE_CHANGED", -} +// Enum value maps for GetRawChangesResponse_RawChange_Operation. +var ( + GetRawChangesResponse_RawChange_Operation_name = map[int32]string{ + 0: "UNKNOWN", + 1: "ADDED", + 2: "COPIED", + 3: "DELETED", + 4: "MODIFIED", + 5: "RENAMED", + 6: "TYPE_CHANGED", + } + GetRawChangesResponse_RawChange_Operation_value = map[string]int32{ + "UNKNOWN": 0, + "ADDED": 1, + "COPIED": 2, + "DELETED": 3, + "MODIFIED": 4, + "RENAMED": 5, + "TYPE_CHANGED": 6, + } +) -var GetRawChangesResponse_RawChange_Operation_value = map[string]int32{ - "UNKNOWN": 0, - "ADDED": 1, - "COPIED": 2, - "DELETED": 3, - "MODIFIED": 4, - "RENAMED": 5, - "TYPE_CHANGED": 6, +func (x GetRawChangesResponse_RawChange_Operation) Enum() *GetRawChangesResponse_RawChange_Operation { + p := new(GetRawChangesResponse_RawChange_Operation) + *p = x + return p } func (x GetRawChangesResponse_RawChange_Operation) String() string { - return proto.EnumName(GetRawChangesResponse_RawChange_Operation_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (GetRawChangesResponse_RawChange_Operation) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{67, 0, 0} +func (GetRawChangesResponse_RawChange_Operation) Descriptor() protoreflect.EnumDescriptor { + return file_repository_service_proto_enumTypes[2].Descriptor() } -type RepositoryExistsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (GetRawChangesResponse_RawChange_Operation) Type() protoreflect.EnumType { + return &file_repository_service_proto_enumTypes[2] } -func (m *RepositoryExistsRequest) Reset() { *m = RepositoryExistsRequest{} } -func (m *RepositoryExistsRequest) String() string { return proto.CompactTextString(m) } -func (*RepositoryExistsRequest) ProtoMessage() {} -func (*RepositoryExistsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{0} +func (x GetRawChangesResponse_RawChange_Operation) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *RepositoryExistsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RepositoryExistsRequest.Unmarshal(m, b) +// Deprecated: Use GetRawChangesResponse_RawChange_Operation.Descriptor instead. +func (GetRawChangesResponse_RawChange_Operation) EnumDescriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{67, 0, 0} } -func (m *RepositoryExistsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RepositoryExistsRequest.Marshal(b, m, deterministic) + +type RepositoryExistsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *RepositoryExistsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepositoryExistsRequest.Merge(m, src) + +func (x *RepositoryExistsRequest) Reset() { + *x = RepositoryExistsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RepositoryExistsRequest) XXX_Size() int { - return xxx_messageInfo_RepositoryExistsRequest.Size(m) + +func (x *RepositoryExistsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RepositoryExistsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RepositoryExistsRequest.DiscardUnknown(m) + +func (*RepositoryExistsRequest) ProtoMessage() {} + +func (x *RepositoryExistsRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RepositoryExistsRequest proto.InternalMessageInfo +// Deprecated: Use RepositoryExistsRequest.ProtoReflect.Descriptor instead. +func (*RepositoryExistsRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{0} +} -func (m *RepositoryExistsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *RepositoryExistsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type RepositoryExistsResponse struct { - Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RepositoryExistsResponse) Reset() { *m = RepositoryExistsResponse{} } -func (m *RepositoryExistsResponse) String() string { return proto.CompactTextString(m) } -func (*RepositoryExistsResponse) ProtoMessage() {} -func (*RepositoryExistsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{1} + Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` } -func (m *RepositoryExistsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RepositoryExistsResponse.Unmarshal(m, b) -} -func (m *RepositoryExistsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RepositoryExistsResponse.Marshal(b, m, deterministic) -} -func (m *RepositoryExistsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepositoryExistsResponse.Merge(m, src) +func (x *RepositoryExistsResponse) Reset() { + *x = RepositoryExistsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RepositoryExistsResponse) XXX_Size() int { - return xxx_messageInfo_RepositoryExistsResponse.Size(m) + +func (x *RepositoryExistsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RepositoryExistsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RepositoryExistsResponse.DiscardUnknown(m) + +func (*RepositoryExistsResponse) ProtoMessage() {} + +func (x *RepositoryExistsResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RepositoryExistsResponse proto.InternalMessageInfo +// Deprecated: Use RepositoryExistsResponse.ProtoReflect.Descriptor instead. +func (*RepositoryExistsResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{1} +} -func (m *RepositoryExistsResponse) GetExists() bool { - if m != nil { - return m.Exists +func (x *RepositoryExistsResponse) GetExists() bool { + if x != nil { + return x.Exists } return false } type RepackIncrementalRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RepackIncrementalRequest) Reset() { *m = RepackIncrementalRequest{} } -func (m *RepackIncrementalRequest) String() string { return proto.CompactTextString(m) } -func (*RepackIncrementalRequest) ProtoMessage() {} -func (*RepackIncrementalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{2} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *RepackIncrementalRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RepackIncrementalRequest.Unmarshal(m, b) -} -func (m *RepackIncrementalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RepackIncrementalRequest.Marshal(b, m, deterministic) -} -func (m *RepackIncrementalRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepackIncrementalRequest.Merge(m, src) +func (x *RepackIncrementalRequest) Reset() { + *x = RepackIncrementalRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RepackIncrementalRequest) XXX_Size() int { - return xxx_messageInfo_RepackIncrementalRequest.Size(m) + +func (x *RepackIncrementalRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RepackIncrementalRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RepackIncrementalRequest.DiscardUnknown(m) + +func (*RepackIncrementalRequest) ProtoMessage() {} + +func (x *RepackIncrementalRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RepackIncrementalRequest proto.InternalMessageInfo +// Deprecated: Use RepackIncrementalRequest.ProtoReflect.Descriptor instead. +func (*RepackIncrementalRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{2} +} -func (m *RepackIncrementalRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *RepackIncrementalRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type RepackIncrementalResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RepackIncrementalResponse) Reset() { *m = RepackIncrementalResponse{} } -func (m *RepackIncrementalResponse) String() string { return proto.CompactTextString(m) } -func (*RepackIncrementalResponse) ProtoMessage() {} -func (*RepackIncrementalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{3} +func (x *RepackIncrementalResponse) Reset() { + *x = RepackIncrementalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RepackIncrementalResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RepackIncrementalResponse.Unmarshal(m, b) -} -func (m *RepackIncrementalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RepackIncrementalResponse.Marshal(b, m, deterministic) -} -func (m *RepackIncrementalResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepackIncrementalResponse.Merge(m, src) -} -func (m *RepackIncrementalResponse) XXX_Size() int { - return xxx_messageInfo_RepackIncrementalResponse.Size(m) -} -func (m *RepackIncrementalResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RepackIncrementalResponse.DiscardUnknown(m) +func (x *RepackIncrementalResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RepackIncrementalResponse proto.InternalMessageInfo +func (*RepackIncrementalResponse) ProtoMessage() {} -type RepackFullRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CreateBitmap bool `protobuf:"varint,2,opt,name=create_bitmap,json=createBitmap,proto3" json:"create_bitmap,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *RepackIncrementalResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *RepackFullRequest) Reset() { *m = RepackFullRequest{} } -func (m *RepackFullRequest) String() string { return proto.CompactTextString(m) } -func (*RepackFullRequest) ProtoMessage() {} -func (*RepackFullRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{4} +// Deprecated: Use RepackIncrementalResponse.ProtoReflect.Descriptor instead. +func (*RepackIncrementalResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{3} } -func (m *RepackFullRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RepackFullRequest.Unmarshal(m, b) -} -func (m *RepackFullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RepackFullRequest.Marshal(b, m, deterministic) +type RepackFullRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + CreateBitmap bool `protobuf:"varint,2,opt,name=create_bitmap,json=createBitmap,proto3" json:"create_bitmap,omitempty"` } -func (m *RepackFullRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepackFullRequest.Merge(m, src) + +func (x *RepackFullRequest) Reset() { + *x = RepackFullRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RepackFullRequest) XXX_Size() int { - return xxx_messageInfo_RepackFullRequest.Size(m) + +func (x *RepackFullRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RepackFullRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RepackFullRequest.DiscardUnknown(m) + +func (*RepackFullRequest) ProtoMessage() {} + +func (x *RepackFullRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RepackFullRequest proto.InternalMessageInfo +// Deprecated: Use RepackFullRequest.ProtoReflect.Descriptor instead. +func (*RepackFullRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{4} +} -func (m *RepackFullRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *RepackFullRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *RepackFullRequest) GetCreateBitmap() bool { - if m != nil { - return m.CreateBitmap +func (x *RepackFullRequest) GetCreateBitmap() bool { + if x != nil { + return x.CreateBitmap } return false } type RepackFullResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RepackFullResponse) Reset() { *m = RepackFullResponse{} } -func (m *RepackFullResponse) String() string { return proto.CompactTextString(m) } -func (*RepackFullResponse) ProtoMessage() {} -func (*RepackFullResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{5} +func (x *RepackFullResponse) Reset() { + *x = RepackFullResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RepackFullResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RepackFullResponse.Unmarshal(m, b) -} -func (m *RepackFullResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RepackFullResponse.Marshal(b, m, deterministic) -} -func (m *RepackFullResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepackFullResponse.Merge(m, src) -} -func (m *RepackFullResponse) XXX_Size() int { - return xxx_messageInfo_RepackFullResponse.Size(m) -} -func (m *RepackFullResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RepackFullResponse.DiscardUnknown(m) +func (x *RepackFullResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RepackFullResponse proto.InternalMessageInfo +func (*RepackFullResponse) ProtoMessage() {} -type MidxRepackRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *RepackFullResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *MidxRepackRequest) Reset() { *m = MidxRepackRequest{} } -func (m *MidxRepackRequest) String() string { return proto.CompactTextString(m) } -func (*MidxRepackRequest) ProtoMessage() {} -func (*MidxRepackRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{6} +// Deprecated: Use RepackFullResponse.ProtoReflect.Descriptor instead. +func (*RepackFullResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{5} } -func (m *MidxRepackRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MidxRepackRequest.Unmarshal(m, b) -} -func (m *MidxRepackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MidxRepackRequest.Marshal(b, m, deterministic) +type MidxRepackRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *MidxRepackRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MidxRepackRequest.Merge(m, src) + +func (x *MidxRepackRequest) Reset() { + *x = MidxRepackRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MidxRepackRequest) XXX_Size() int { - return xxx_messageInfo_MidxRepackRequest.Size(m) + +func (x *MidxRepackRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MidxRepackRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MidxRepackRequest.DiscardUnknown(m) + +func (*MidxRepackRequest) ProtoMessage() {} + +func (x *MidxRepackRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_MidxRepackRequest proto.InternalMessageInfo +// Deprecated: Use MidxRepackRequest.ProtoReflect.Descriptor instead. +func (*MidxRepackRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{6} +} -func (m *MidxRepackRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *MidxRepackRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type MidxRepackResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *MidxRepackResponse) Reset() { *m = MidxRepackResponse{} } -func (m *MidxRepackResponse) String() string { return proto.CompactTextString(m) } -func (*MidxRepackResponse) ProtoMessage() {} -func (*MidxRepackResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{7} +func (x *MidxRepackResponse) Reset() { + *x = MidxRepackResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MidxRepackResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MidxRepackResponse.Unmarshal(m, b) -} -func (m *MidxRepackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MidxRepackResponse.Marshal(b, m, deterministic) -} -func (m *MidxRepackResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MidxRepackResponse.Merge(m, src) -} -func (m *MidxRepackResponse) XXX_Size() int { - return xxx_messageInfo_MidxRepackResponse.Size(m) +func (x *MidxRepackResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MidxRepackResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MidxRepackResponse.DiscardUnknown(m) + +func (*MidxRepackResponse) ProtoMessage() {} + +func (x *MidxRepackResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_MidxRepackResponse proto.InternalMessageInfo +// Deprecated: Use MidxRepackResponse.ProtoReflect.Descriptor instead. +func (*MidxRepackResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{7} +} type GarbageCollectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` CreateBitmap bool `protobuf:"varint,2,opt,name=create_bitmap,json=createBitmap,proto3" json:"create_bitmap,omitempty"` // If set to 'true' the 'gc' will be triggered with '--prune=24.hours.ago' flag. @@ -424,396 +548,472 @@ type GarbageCollectRequest struct { // If 'false' provided the 'gc' will rely on the default expiration period (2 weeks). // The window of 24 hours exists because of possible concurrent operations running on the same // storage and removal of the objects may cause races and fail concurrent operations. - Prune bool `protobuf:"varint,3,opt,name=prune,proto3" json:"prune,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Prune bool `protobuf:"varint,3,opt,name=prune,proto3" json:"prune,omitempty"` } -func (m *GarbageCollectRequest) Reset() { *m = GarbageCollectRequest{} } -func (m *GarbageCollectRequest) String() string { return proto.CompactTextString(m) } -func (*GarbageCollectRequest) ProtoMessage() {} -func (*GarbageCollectRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{8} +func (x *GarbageCollectRequest) Reset() { + *x = GarbageCollectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GarbageCollectRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GarbageCollectRequest.Unmarshal(m, b) -} -func (m *GarbageCollectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GarbageCollectRequest.Marshal(b, m, deterministic) -} -func (m *GarbageCollectRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GarbageCollectRequest.Merge(m, src) +func (x *GarbageCollectRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GarbageCollectRequest) XXX_Size() int { - return xxx_messageInfo_GarbageCollectRequest.Size(m) -} -func (m *GarbageCollectRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GarbageCollectRequest.DiscardUnknown(m) + +func (*GarbageCollectRequest) ProtoMessage() {} + +func (x *GarbageCollectRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GarbageCollectRequest proto.InternalMessageInfo +// Deprecated: Use GarbageCollectRequest.ProtoReflect.Descriptor instead. +func (*GarbageCollectRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{8} +} -func (m *GarbageCollectRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *GarbageCollectRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *GarbageCollectRequest) GetCreateBitmap() bool { - if m != nil { - return m.CreateBitmap +func (x *GarbageCollectRequest) GetCreateBitmap() bool { + if x != nil { + return x.CreateBitmap } return false } -func (m *GarbageCollectRequest) GetPrune() bool { - if m != nil { - return m.Prune +func (x *GarbageCollectRequest) GetPrune() bool { + if x != nil { + return x.Prune } return false } type GarbageCollectResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *GarbageCollectResponse) Reset() { *m = GarbageCollectResponse{} } -func (m *GarbageCollectResponse) String() string { return proto.CompactTextString(m) } -func (*GarbageCollectResponse) ProtoMessage() {} -func (*GarbageCollectResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{9} +func (x *GarbageCollectResponse) Reset() { + *x = GarbageCollectResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GarbageCollectResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GarbageCollectResponse.Unmarshal(m, b) -} -func (m *GarbageCollectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GarbageCollectResponse.Marshal(b, m, deterministic) -} -func (m *GarbageCollectResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GarbageCollectResponse.Merge(m, src) +func (x *GarbageCollectResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GarbageCollectResponse) XXX_Size() int { - return xxx_messageInfo_GarbageCollectResponse.Size(m) -} -func (m *GarbageCollectResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GarbageCollectResponse.DiscardUnknown(m) + +func (*GarbageCollectResponse) ProtoMessage() {} + +func (x *GarbageCollectResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GarbageCollectResponse proto.InternalMessageInfo +// Deprecated: Use GarbageCollectResponse.ProtoReflect.Descriptor instead. +func (*GarbageCollectResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{9} +} type WriteCommitGraphRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // SplitStrategy is a strategy used to create/update commit graph. - SplitStrategy WriteCommitGraphRequest_SplitStrategy `protobuf:"varint,2,opt,name=splitStrategy,proto3,enum=gitaly.WriteCommitGraphRequest_SplitStrategy" json:"splitStrategy,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + SplitStrategy WriteCommitGraphRequest_SplitStrategy `protobuf:"varint,2,opt,name=splitStrategy,proto3,enum=gitaly.WriteCommitGraphRequest_SplitStrategy" json:"splitStrategy,omitempty"` } -func (m *WriteCommitGraphRequest) Reset() { *m = WriteCommitGraphRequest{} } -func (m *WriteCommitGraphRequest) String() string { return proto.CompactTextString(m) } -func (*WriteCommitGraphRequest) ProtoMessage() {} -func (*WriteCommitGraphRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{10} +func (x *WriteCommitGraphRequest) Reset() { + *x = WriteCommitGraphRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WriteCommitGraphRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WriteCommitGraphRequest.Unmarshal(m, b) -} -func (m *WriteCommitGraphRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WriteCommitGraphRequest.Marshal(b, m, deterministic) +func (x *WriteCommitGraphRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WriteCommitGraphRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteCommitGraphRequest.Merge(m, src) -} -func (m *WriteCommitGraphRequest) XXX_Size() int { - return xxx_messageInfo_WriteCommitGraphRequest.Size(m) -} -func (m *WriteCommitGraphRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WriteCommitGraphRequest.DiscardUnknown(m) + +func (*WriteCommitGraphRequest) ProtoMessage() {} + +func (x *WriteCommitGraphRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WriteCommitGraphRequest proto.InternalMessageInfo +// Deprecated: Use WriteCommitGraphRequest.ProtoReflect.Descriptor instead. +func (*WriteCommitGraphRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{10} +} -func (m *WriteCommitGraphRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *WriteCommitGraphRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *WriteCommitGraphRequest) GetSplitStrategy() WriteCommitGraphRequest_SplitStrategy { - if m != nil { - return m.SplitStrategy +func (x *WriteCommitGraphRequest) GetSplitStrategy() WriteCommitGraphRequest_SplitStrategy { + if x != nil { + return x.SplitStrategy } return WriteCommitGraphRequest_SizeMultiple } type WriteCommitGraphResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *WriteCommitGraphResponse) Reset() { *m = WriteCommitGraphResponse{} } -func (m *WriteCommitGraphResponse) String() string { return proto.CompactTextString(m) } -func (*WriteCommitGraphResponse) ProtoMessage() {} -func (*WriteCommitGraphResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{11} +func (x *WriteCommitGraphResponse) Reset() { + *x = WriteCommitGraphResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WriteCommitGraphResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WriteCommitGraphResponse.Unmarshal(m, b) -} -func (m *WriteCommitGraphResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WriteCommitGraphResponse.Marshal(b, m, deterministic) -} -func (m *WriteCommitGraphResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteCommitGraphResponse.Merge(m, src) -} -func (m *WriteCommitGraphResponse) XXX_Size() int { - return xxx_messageInfo_WriteCommitGraphResponse.Size(m) -} -func (m *WriteCommitGraphResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WriteCommitGraphResponse.DiscardUnknown(m) +func (x *WriteCommitGraphResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_WriteCommitGraphResponse proto.InternalMessageInfo +func (*WriteCommitGraphResponse) ProtoMessage() {} -type CleanupRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *WriteCommitGraphResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *CleanupRequest) Reset() { *m = CleanupRequest{} } -func (m *CleanupRequest) String() string { return proto.CompactTextString(m) } -func (*CleanupRequest) ProtoMessage() {} -func (*CleanupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{12} +// Deprecated: Use WriteCommitGraphResponse.ProtoReflect.Descriptor instead. +func (*WriteCommitGraphResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{11} } -func (m *CleanupRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CleanupRequest.Unmarshal(m, b) -} -func (m *CleanupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CleanupRequest.Marshal(b, m, deterministic) +type CleanupRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *CleanupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CleanupRequest.Merge(m, src) + +func (x *CleanupRequest) Reset() { + *x = CleanupRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CleanupRequest) XXX_Size() int { - return xxx_messageInfo_CleanupRequest.Size(m) + +func (x *CleanupRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CleanupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CleanupRequest.DiscardUnknown(m) + +func (*CleanupRequest) ProtoMessage() {} + +func (x *CleanupRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CleanupRequest proto.InternalMessageInfo +// Deprecated: Use CleanupRequest.ProtoReflect.Descriptor instead. +func (*CleanupRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{12} +} -func (m *CleanupRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CleanupRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type CleanupResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *CleanupResponse) Reset() { *m = CleanupResponse{} } -func (m *CleanupResponse) String() string { return proto.CompactTextString(m) } -func (*CleanupResponse) ProtoMessage() {} -func (*CleanupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{13} +func (x *CleanupResponse) Reset() { + *x = CleanupResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CleanupResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CleanupResponse.Unmarshal(m, b) -} -func (m *CleanupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CleanupResponse.Marshal(b, m, deterministic) -} -func (m *CleanupResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CleanupResponse.Merge(m, src) -} -func (m *CleanupResponse) XXX_Size() int { - return xxx_messageInfo_CleanupResponse.Size(m) -} -func (m *CleanupResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CleanupResponse.DiscardUnknown(m) +func (x *CleanupResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CleanupResponse proto.InternalMessageInfo +func (*CleanupResponse) ProtoMessage() {} -type RepositorySizeRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CleanupResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *RepositorySizeRequest) Reset() { *m = RepositorySizeRequest{} } -func (m *RepositorySizeRequest) String() string { return proto.CompactTextString(m) } -func (*RepositorySizeRequest) ProtoMessage() {} -func (*RepositorySizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{14} +// Deprecated: Use CleanupResponse.ProtoReflect.Descriptor instead. +func (*CleanupResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{13} } -func (m *RepositorySizeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RepositorySizeRequest.Unmarshal(m, b) -} -func (m *RepositorySizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RepositorySizeRequest.Marshal(b, m, deterministic) +type RepositorySizeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *RepositorySizeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepositorySizeRequest.Merge(m, src) + +func (x *RepositorySizeRequest) Reset() { + *x = RepositorySizeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RepositorySizeRequest) XXX_Size() int { - return xxx_messageInfo_RepositorySizeRequest.Size(m) + +func (x *RepositorySizeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RepositorySizeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RepositorySizeRequest.DiscardUnknown(m) + +func (*RepositorySizeRequest) ProtoMessage() {} + +func (x *RepositorySizeRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RepositorySizeRequest proto.InternalMessageInfo +// Deprecated: Use RepositorySizeRequest.ProtoReflect.Descriptor instead. +func (*RepositorySizeRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{14} +} -func (m *RepositorySizeRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *RepositorySizeRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type RepositorySizeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Repository size in kilobytes - Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` } -func (m *RepositorySizeResponse) Reset() { *m = RepositorySizeResponse{} } -func (m *RepositorySizeResponse) String() string { return proto.CompactTextString(m) } -func (*RepositorySizeResponse) ProtoMessage() {} -func (*RepositorySizeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{15} +func (x *RepositorySizeResponse) Reset() { + *x = RepositorySizeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RepositorySizeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RepositorySizeResponse.Unmarshal(m, b) -} -func (m *RepositorySizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RepositorySizeResponse.Marshal(b, m, deterministic) +func (x *RepositorySizeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RepositorySizeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepositorySizeResponse.Merge(m, src) -} -func (m *RepositorySizeResponse) XXX_Size() int { - return xxx_messageInfo_RepositorySizeResponse.Size(m) -} -func (m *RepositorySizeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RepositorySizeResponse.DiscardUnknown(m) + +func (*RepositorySizeResponse) ProtoMessage() {} + +func (x *RepositorySizeResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RepositorySizeResponse proto.InternalMessageInfo +// Deprecated: Use RepositorySizeResponse.ProtoReflect.Descriptor instead. +func (*RepositorySizeResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{15} +} -func (m *RepositorySizeResponse) GetSize() int64 { - if m != nil { - return m.Size +func (x *RepositorySizeResponse) GetSize() int64 { + if x != nil { + return x.Size } return 0 } type ApplyGitattributesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ApplyGitattributesRequest) Reset() { *m = ApplyGitattributesRequest{} } -func (m *ApplyGitattributesRequest) String() string { return proto.CompactTextString(m) } -func (*ApplyGitattributesRequest) ProtoMessage() {} -func (*ApplyGitattributesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{16} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` } -func (m *ApplyGitattributesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplyGitattributesRequest.Unmarshal(m, b) -} -func (m *ApplyGitattributesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplyGitattributesRequest.Marshal(b, m, deterministic) -} -func (m *ApplyGitattributesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplyGitattributesRequest.Merge(m, src) +func (x *ApplyGitattributesRequest) Reset() { + *x = ApplyGitattributesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ApplyGitattributesRequest) XXX_Size() int { - return xxx_messageInfo_ApplyGitattributesRequest.Size(m) + +func (x *ApplyGitattributesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ApplyGitattributesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ApplyGitattributesRequest.DiscardUnknown(m) + +func (*ApplyGitattributesRequest) ProtoMessage() {} + +func (x *ApplyGitattributesRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ApplyGitattributesRequest proto.InternalMessageInfo +// Deprecated: Use ApplyGitattributesRequest.ProtoReflect.Descriptor instead. +func (*ApplyGitattributesRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{16} +} -func (m *ApplyGitattributesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ApplyGitattributesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ApplyGitattributesRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *ApplyGitattributesRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } type ApplyGitattributesResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ApplyGitattributesResponse) Reset() { *m = ApplyGitattributesResponse{} } -func (m *ApplyGitattributesResponse) String() string { return proto.CompactTextString(m) } -func (*ApplyGitattributesResponse) ProtoMessage() {} -func (*ApplyGitattributesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{17} +func (x *ApplyGitattributesResponse) Reset() { + *x = ApplyGitattributesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ApplyGitattributesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplyGitattributesResponse.Unmarshal(m, b) -} -func (m *ApplyGitattributesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplyGitattributesResponse.Marshal(b, m, deterministic) -} -func (m *ApplyGitattributesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplyGitattributesResponse.Merge(m, src) -} -func (m *ApplyGitattributesResponse) XXX_Size() int { - return xxx_messageInfo_ApplyGitattributesResponse.Size(m) +func (x *ApplyGitattributesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ApplyGitattributesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ApplyGitattributesResponse.DiscardUnknown(m) + +func (*ApplyGitattributesResponse) ProtoMessage() {} + +func (x *ApplyGitattributesResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ApplyGitattributesResponse proto.InternalMessageInfo +// Deprecated: Use ApplyGitattributesResponse.ProtoReflect.Descriptor instead. +func (*ApplyGitattributesResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{17} +} type FetchRemoteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // remote is the name of the remote that shall be fetched. This remote must // exist in the repository's configuration already. This parameter is @@ -837,220 +1037,251 @@ type FetchRemoteRequest struct { // If check_tags_changed is true, the FetchRemote RPC will check whether any // tags were modified, returning the result in the tags_changed field of // FetchRemoteResponse - CheckTagsChanged bool `protobuf:"varint,11,opt,name=check_tags_changed,json=checkTagsChanged,proto3" json:"check_tags_changed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CheckTagsChanged bool `protobuf:"varint,11,opt,name=check_tags_changed,json=checkTagsChanged,proto3" json:"check_tags_changed,omitempty"` } -func (m *FetchRemoteRequest) Reset() { *m = FetchRemoteRequest{} } -func (m *FetchRemoteRequest) String() string { return proto.CompactTextString(m) } -func (*FetchRemoteRequest) ProtoMessage() {} -func (*FetchRemoteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{18} +func (x *FetchRemoteRequest) Reset() { + *x = FetchRemoteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FetchRemoteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FetchRemoteRequest.Unmarshal(m, b) -} -func (m *FetchRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FetchRemoteRequest.Marshal(b, m, deterministic) -} -func (m *FetchRemoteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FetchRemoteRequest.Merge(m, src) +func (x *FetchRemoteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FetchRemoteRequest) XXX_Size() int { - return xxx_messageInfo_FetchRemoteRequest.Size(m) -} -func (m *FetchRemoteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FetchRemoteRequest.DiscardUnknown(m) + +func (*FetchRemoteRequest) ProtoMessage() {} + +func (x *FetchRemoteRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FetchRemoteRequest proto.InternalMessageInfo +// Deprecated: Use FetchRemoteRequest.ProtoReflect.Descriptor instead. +func (*FetchRemoteRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{18} +} -func (m *FetchRemoteRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FetchRemoteRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *FetchRemoteRequest) GetRemote() string { - if m != nil { - return m.Remote +func (x *FetchRemoteRequest) GetRemote() string { + if x != nil { + return x.Remote } return "" } -func (m *FetchRemoteRequest) GetForce() bool { - if m != nil { - return m.Force +func (x *FetchRemoteRequest) GetForce() bool { + if x != nil { + return x.Force } return false } -func (m *FetchRemoteRequest) GetNoTags() bool { - if m != nil { - return m.NoTags +func (x *FetchRemoteRequest) GetNoTags() bool { + if x != nil { + return x.NoTags } return false } -func (m *FetchRemoteRequest) GetTimeout() int32 { - if m != nil { - return m.Timeout +func (x *FetchRemoteRequest) GetTimeout() int32 { + if x != nil { + return x.Timeout } return 0 } -func (m *FetchRemoteRequest) GetSshKey() string { - if m != nil { - return m.SshKey +func (x *FetchRemoteRequest) GetSshKey() string { + if x != nil { + return x.SshKey } return "" } -func (m *FetchRemoteRequest) GetKnownHosts() string { - if m != nil { - return m.KnownHosts +func (x *FetchRemoteRequest) GetKnownHosts() string { + if x != nil { + return x.KnownHosts } return "" } -func (m *FetchRemoteRequest) GetNoPrune() bool { - if m != nil { - return m.NoPrune +func (x *FetchRemoteRequest) GetNoPrune() bool { + if x != nil { + return x.NoPrune } return false } -func (m *FetchRemoteRequest) GetRemoteParams() *Remote { - if m != nil { - return m.RemoteParams +func (x *FetchRemoteRequest) GetRemoteParams() *Remote { + if x != nil { + return x.RemoteParams } return nil } -func (m *FetchRemoteRequest) GetCheckTagsChanged() bool { - if m != nil { - return m.CheckTagsChanged +func (x *FetchRemoteRequest) GetCheckTagsChanged() bool { + if x != nil { + return x.CheckTagsChanged } return false } type FetchRemoteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // If check_tags_changed was set in the FetchRemoteRequest, the FetchRemote // RPC will return false when no tags were changed, and true if tags were // changed or answer cannot be determined. - TagsChanged bool `protobuf:"varint,1,opt,name=tags_changed,json=tagsChanged,proto3" json:"tags_changed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TagsChanged bool `protobuf:"varint,1,opt,name=tags_changed,json=tagsChanged,proto3" json:"tags_changed,omitempty"` } -func (m *FetchRemoteResponse) Reset() { *m = FetchRemoteResponse{} } -func (m *FetchRemoteResponse) String() string { return proto.CompactTextString(m) } -func (*FetchRemoteResponse) ProtoMessage() {} -func (*FetchRemoteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{19} +func (x *FetchRemoteResponse) Reset() { + *x = FetchRemoteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FetchRemoteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FetchRemoteResponse.Unmarshal(m, b) -} -func (m *FetchRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FetchRemoteResponse.Marshal(b, m, deterministic) +func (x *FetchRemoteResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FetchRemoteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FetchRemoteResponse.Merge(m, src) -} -func (m *FetchRemoteResponse) XXX_Size() int { - return xxx_messageInfo_FetchRemoteResponse.Size(m) -} -func (m *FetchRemoteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FetchRemoteResponse.DiscardUnknown(m) + +func (*FetchRemoteResponse) ProtoMessage() {} + +func (x *FetchRemoteResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FetchRemoteResponse proto.InternalMessageInfo +// Deprecated: Use FetchRemoteResponse.ProtoReflect.Descriptor instead. +func (*FetchRemoteResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{19} +} -func (m *FetchRemoteResponse) GetTagsChanged() bool { - if m != nil { - return m.TagsChanged +func (x *FetchRemoteResponse) GetTagsChanged() bool { + if x != nil { + return x.TagsChanged } return false } type CreateRepositoryRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateRepositoryRequest) Reset() { *m = CreateRepositoryRequest{} } -func (m *CreateRepositoryRequest) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryRequest) ProtoMessage() {} -func (*CreateRepositoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{20} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *CreateRepositoryRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateRepositoryRequest.Unmarshal(m, b) -} -func (m *CreateRepositoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateRepositoryRequest.Marshal(b, m, deterministic) -} -func (m *CreateRepositoryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateRepositoryRequest.Merge(m, src) +func (x *CreateRepositoryRequest) Reset() { + *x = CreateRepositoryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateRepositoryRequest) XXX_Size() int { - return xxx_messageInfo_CreateRepositoryRequest.Size(m) + +func (x *CreateRepositoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateRepositoryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateRepositoryRequest.DiscardUnknown(m) + +func (*CreateRepositoryRequest) ProtoMessage() {} + +func (x *CreateRepositoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateRepositoryRequest proto.InternalMessageInfo +// Deprecated: Use CreateRepositoryRequest.ProtoReflect.Descriptor instead. +func (*CreateRepositoryRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{20} +} -func (m *CreateRepositoryRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CreateRepositoryRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type CreateRepositoryResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *CreateRepositoryResponse) Reset() { *m = CreateRepositoryResponse{} } -func (m *CreateRepositoryResponse) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryResponse) ProtoMessage() {} -func (*CreateRepositoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{21} +func (x *CreateRepositoryResponse) Reset() { + *x = CreateRepositoryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateRepositoryResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateRepositoryResponse.Unmarshal(m, b) +func (x *CreateRepositoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateRepositoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateRepositoryResponse.Marshal(b, m, deterministic) -} -func (m *CreateRepositoryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateRepositoryResponse.Merge(m, src) -} -func (m *CreateRepositoryResponse) XXX_Size() int { - return xxx_messageInfo_CreateRepositoryResponse.Size(m) -} -func (m *CreateRepositoryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateRepositoryResponse.DiscardUnknown(m) + +func (*CreateRepositoryResponse) ProtoMessage() {} + +func (x *CreateRepositoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateRepositoryResponse proto.InternalMessageInfo +// Deprecated: Use CreateRepositoryResponse.ProtoReflect.Descriptor instead. +func (*CreateRepositoryResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{21} +} type GetArchiveRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` Prefix string `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"` @@ -1063,212 +1294,244 @@ type GetArchiveRequest struct { // will be `dir/README.md`; with `elide_path = true`, the entry will be // `README.md`. `elide_path` has no effect if `path` refers to the repository // root. `elide_path = true` is not supported if `path` refers to a file. - ElidePath bool `protobuf:"varint,7,opt,name=elide_path,json=elidePath,proto3" json:"elide_path,omitempty"` - IncludeLfsBlobs bool `protobuf:"varint,8,opt,name=include_lfs_blobs,json=includeLfsBlobs,proto3" json:"include_lfs_blobs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ElidePath bool `protobuf:"varint,7,opt,name=elide_path,json=elidePath,proto3" json:"elide_path,omitempty"` + IncludeLfsBlobs bool `protobuf:"varint,8,opt,name=include_lfs_blobs,json=includeLfsBlobs,proto3" json:"include_lfs_blobs,omitempty"` } -func (m *GetArchiveRequest) Reset() { *m = GetArchiveRequest{} } -func (m *GetArchiveRequest) String() string { return proto.CompactTextString(m) } -func (*GetArchiveRequest) ProtoMessage() {} -func (*GetArchiveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{22} +func (x *GetArchiveRequest) Reset() { + *x = GetArchiveRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetArchiveRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetArchiveRequest.Unmarshal(m, b) -} -func (m *GetArchiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetArchiveRequest.Marshal(b, m, deterministic) -} -func (m *GetArchiveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetArchiveRequest.Merge(m, src) +func (x *GetArchiveRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetArchiveRequest) XXX_Size() int { - return xxx_messageInfo_GetArchiveRequest.Size(m) -} -func (m *GetArchiveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetArchiveRequest.DiscardUnknown(m) + +func (*GetArchiveRequest) ProtoMessage() {} + +func (x *GetArchiveRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetArchiveRequest proto.InternalMessageInfo +// Deprecated: Use GetArchiveRequest.ProtoReflect.Descriptor instead. +func (*GetArchiveRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{22} +} -func (m *GetArchiveRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *GetArchiveRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *GetArchiveRequest) GetCommitId() string { - if m != nil { - return m.CommitId +func (x *GetArchiveRequest) GetCommitId() string { + if x != nil { + return x.CommitId } return "" } -func (m *GetArchiveRequest) GetPrefix() string { - if m != nil { - return m.Prefix +func (x *GetArchiveRequest) GetPrefix() string { + if x != nil { + return x.Prefix } return "" } -func (m *GetArchiveRequest) GetFormat() GetArchiveRequest_Format { - if m != nil { - return m.Format +func (x *GetArchiveRequest) GetFormat() GetArchiveRequest_Format { + if x != nil { + return x.Format } return GetArchiveRequest_ZIP } -func (m *GetArchiveRequest) GetPath() []byte { - if m != nil { - return m.Path +func (x *GetArchiveRequest) GetPath() []byte { + if x != nil { + return x.Path } return nil } -func (m *GetArchiveRequest) GetExclude() [][]byte { - if m != nil { - return m.Exclude +func (x *GetArchiveRequest) GetExclude() [][]byte { + if x != nil { + return x.Exclude } return nil } -func (m *GetArchiveRequest) GetElidePath() bool { - if m != nil { - return m.ElidePath +func (x *GetArchiveRequest) GetElidePath() bool { + if x != nil { + return x.ElidePath } return false } -func (m *GetArchiveRequest) GetIncludeLfsBlobs() bool { - if m != nil { - return m.IncludeLfsBlobs +func (x *GetArchiveRequest) GetIncludeLfsBlobs() bool { + if x != nil { + return x.IncludeLfsBlobs } return false } type GetArchiveResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetArchiveResponse) Reset() { *m = GetArchiveResponse{} } -func (m *GetArchiveResponse) String() string { return proto.CompactTextString(m) } -func (*GetArchiveResponse) ProtoMessage() {} -func (*GetArchiveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{23} + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } -func (m *GetArchiveResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetArchiveResponse.Unmarshal(m, b) -} -func (m *GetArchiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetArchiveResponse.Marshal(b, m, deterministic) -} -func (m *GetArchiveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetArchiveResponse.Merge(m, src) +func (x *GetArchiveResponse) Reset() { + *x = GetArchiveResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetArchiveResponse) XXX_Size() int { - return xxx_messageInfo_GetArchiveResponse.Size(m) + +func (x *GetArchiveResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetArchiveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetArchiveResponse.DiscardUnknown(m) + +func (*GetArchiveResponse) ProtoMessage() {} + +func (x *GetArchiveResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetArchiveResponse proto.InternalMessageInfo +// Deprecated: Use GetArchiveResponse.ProtoReflect.Descriptor instead. +func (*GetArchiveResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{23} +} -func (m *GetArchiveResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *GetArchiveResponse) GetData() []byte { + if x != nil { + return x.Data } return nil } type HasLocalBranchesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *HasLocalBranchesRequest) Reset() { *m = HasLocalBranchesRequest{} } -func (m *HasLocalBranchesRequest) String() string { return proto.CompactTextString(m) } -func (*HasLocalBranchesRequest) ProtoMessage() {} -func (*HasLocalBranchesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{24} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *HasLocalBranchesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HasLocalBranchesRequest.Unmarshal(m, b) -} -func (m *HasLocalBranchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HasLocalBranchesRequest.Marshal(b, m, deterministic) -} -func (m *HasLocalBranchesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_HasLocalBranchesRequest.Merge(m, src) +func (x *HasLocalBranchesRequest) Reset() { + *x = HasLocalBranchesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *HasLocalBranchesRequest) XXX_Size() int { - return xxx_messageInfo_HasLocalBranchesRequest.Size(m) + +func (x *HasLocalBranchesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HasLocalBranchesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_HasLocalBranchesRequest.DiscardUnknown(m) + +func (*HasLocalBranchesRequest) ProtoMessage() {} + +func (x *HasLocalBranchesRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_HasLocalBranchesRequest proto.InternalMessageInfo +// Deprecated: Use HasLocalBranchesRequest.ProtoReflect.Descriptor instead. +func (*HasLocalBranchesRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{24} +} -func (m *HasLocalBranchesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *HasLocalBranchesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type HasLocalBranchesResponse struct { - Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *HasLocalBranchesResponse) Reset() { *m = HasLocalBranchesResponse{} } -func (m *HasLocalBranchesResponse) String() string { return proto.CompactTextString(m) } -func (*HasLocalBranchesResponse) ProtoMessage() {} -func (*HasLocalBranchesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{25} + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` } -func (m *HasLocalBranchesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HasLocalBranchesResponse.Unmarshal(m, b) -} -func (m *HasLocalBranchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HasLocalBranchesResponse.Marshal(b, m, deterministic) -} -func (m *HasLocalBranchesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_HasLocalBranchesResponse.Merge(m, src) +func (x *HasLocalBranchesResponse) Reset() { + *x = HasLocalBranchesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *HasLocalBranchesResponse) XXX_Size() int { - return xxx_messageInfo_HasLocalBranchesResponse.Size(m) + +func (x *HasLocalBranchesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HasLocalBranchesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_HasLocalBranchesResponse.DiscardUnknown(m) + +func (*HasLocalBranchesResponse) ProtoMessage() {} + +func (x *HasLocalBranchesResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_HasLocalBranchesResponse proto.InternalMessageInfo +// Deprecated: Use HasLocalBranchesResponse.ProtoReflect.Descriptor instead. +func (*HasLocalBranchesResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{25} +} -func (m *HasLocalBranchesResponse) GetValue() bool { - if m != nil { - return m.Value +func (x *HasLocalBranchesResponse) GetValue() bool { + if x != nil { + return x.Value } return false } type FetchSourceBranchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Repository into which the reference shall be fetched. After a successful // call, it should contain the target reference which points to the same // commit as the source repository's source branch. @@ -1279,1966 +1542,2076 @@ type FetchSourceBranchRequest struct { SourceBranch []byte `protobuf:"bytes,3,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"` // Name of the reference which shall be newly created in the target // repository. - TargetRef []byte `protobuf:"bytes,4,opt,name=target_ref,json=targetRef,proto3" json:"target_ref,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TargetRef []byte `protobuf:"bytes,4,opt,name=target_ref,json=targetRef,proto3" json:"target_ref,omitempty"` } -func (m *FetchSourceBranchRequest) Reset() { *m = FetchSourceBranchRequest{} } -func (m *FetchSourceBranchRequest) String() string { return proto.CompactTextString(m) } -func (*FetchSourceBranchRequest) ProtoMessage() {} -func (*FetchSourceBranchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{26} +func (x *FetchSourceBranchRequest) Reset() { + *x = FetchSourceBranchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FetchSourceBranchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FetchSourceBranchRequest.Unmarshal(m, b) -} -func (m *FetchSourceBranchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FetchSourceBranchRequest.Marshal(b, m, deterministic) -} -func (m *FetchSourceBranchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FetchSourceBranchRequest.Merge(m, src) +func (x *FetchSourceBranchRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FetchSourceBranchRequest) XXX_Size() int { - return xxx_messageInfo_FetchSourceBranchRequest.Size(m) -} -func (m *FetchSourceBranchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FetchSourceBranchRequest.DiscardUnknown(m) + +func (*FetchSourceBranchRequest) ProtoMessage() {} + +func (x *FetchSourceBranchRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FetchSourceBranchRequest proto.InternalMessageInfo +// Deprecated: Use FetchSourceBranchRequest.ProtoReflect.Descriptor instead. +func (*FetchSourceBranchRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{26} +} -func (m *FetchSourceBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FetchSourceBranchRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *FetchSourceBranchRequest) GetSourceRepository() *Repository { - if m != nil { - return m.SourceRepository +func (x *FetchSourceBranchRequest) GetSourceRepository() *Repository { + if x != nil { + return x.SourceRepository } return nil } -func (m *FetchSourceBranchRequest) GetSourceBranch() []byte { - if m != nil { - return m.SourceBranch +func (x *FetchSourceBranchRequest) GetSourceBranch() []byte { + if x != nil { + return x.SourceBranch } return nil } -func (m *FetchSourceBranchRequest) GetTargetRef() []byte { - if m != nil { - return m.TargetRef +func (x *FetchSourceBranchRequest) GetTargetRef() []byte { + if x != nil { + return x.TargetRef } return nil } type FetchSourceBranchResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // True if the source branch was successfully fetched into the target // repository, false if resolving the remote reference or fetching it failed. - Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` } -func (m *FetchSourceBranchResponse) Reset() { *m = FetchSourceBranchResponse{} } -func (m *FetchSourceBranchResponse) String() string { return proto.CompactTextString(m) } -func (*FetchSourceBranchResponse) ProtoMessage() {} -func (*FetchSourceBranchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{27} +func (x *FetchSourceBranchResponse) Reset() { + *x = FetchSourceBranchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FetchSourceBranchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FetchSourceBranchResponse.Unmarshal(m, b) -} -func (m *FetchSourceBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FetchSourceBranchResponse.Marshal(b, m, deterministic) -} -func (m *FetchSourceBranchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FetchSourceBranchResponse.Merge(m, src) -} -func (m *FetchSourceBranchResponse) XXX_Size() int { - return xxx_messageInfo_FetchSourceBranchResponse.Size(m) +func (x *FetchSourceBranchResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FetchSourceBranchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FetchSourceBranchResponse.DiscardUnknown(m) + +func (*FetchSourceBranchResponse) ProtoMessage() {} + +func (x *FetchSourceBranchResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FetchSourceBranchResponse proto.InternalMessageInfo +// Deprecated: Use FetchSourceBranchResponse.ProtoReflect.Descriptor instead. +func (*FetchSourceBranchResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{27} +} -func (m *FetchSourceBranchResponse) GetResult() bool { - if m != nil { - return m.Result +func (x *FetchSourceBranchResponse) GetResult() bool { + if x != nil { + return x.Result } return false } type FsckRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FsckRequest) Reset() { *m = FsckRequest{} } -func (m *FsckRequest) String() string { return proto.CompactTextString(m) } -func (*FsckRequest) ProtoMessage() {} -func (*FsckRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{28} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *FsckRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FsckRequest.Unmarshal(m, b) -} -func (m *FsckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FsckRequest.Marshal(b, m, deterministic) -} -func (m *FsckRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FsckRequest.Merge(m, src) +func (x *FsckRequest) Reset() { + *x = FsckRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FsckRequest) XXX_Size() int { - return xxx_messageInfo_FsckRequest.Size(m) + +func (x *FsckRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FsckRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FsckRequest.DiscardUnknown(m) + +func (*FsckRequest) ProtoMessage() {} + +func (x *FsckRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FsckRequest proto.InternalMessageInfo +// Deprecated: Use FsckRequest.ProtoReflect.Descriptor instead. +func (*FsckRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{28} +} -func (m *FsckRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FsckRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type FsckResponse struct { - Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FsckResponse) Reset() { *m = FsckResponse{} } -func (m *FsckResponse) String() string { return proto.CompactTextString(m) } -func (*FsckResponse) ProtoMessage() {} -func (*FsckResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{29} + Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } -func (m *FsckResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FsckResponse.Unmarshal(m, b) -} -func (m *FsckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FsckResponse.Marshal(b, m, deterministic) -} -func (m *FsckResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FsckResponse.Merge(m, src) +func (x *FsckResponse) Reset() { + *x = FsckResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FsckResponse) XXX_Size() int { - return xxx_messageInfo_FsckResponse.Size(m) + +func (x *FsckResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FsckResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FsckResponse.DiscardUnknown(m) + +func (*FsckResponse) ProtoMessage() {} + +func (x *FsckResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FsckResponse proto.InternalMessageInfo +// Deprecated: Use FsckResponse.ProtoReflect.Descriptor instead. +func (*FsckResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{29} +} -func (m *FsckResponse) GetError() []byte { - if m != nil { - return m.Error +func (x *FsckResponse) GetError() []byte { + if x != nil { + return x.Error } return nil } type WriteRefRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Ref []byte `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` - OldRevision []byte `protobuf:"bytes,4,opt,name=old_revision,json=oldRevision,proto3" json:"old_revision,omitempty"` - Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteRefRequest) Reset() { *m = WriteRefRequest{} } -func (m *WriteRefRequest) String() string { return proto.CompactTextString(m) } -func (*WriteRefRequest) ProtoMessage() {} -func (*WriteRefRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{30} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WriteRefRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WriteRefRequest.Unmarshal(m, b) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Ref []byte `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` + OldRevision []byte `protobuf:"bytes,4,opt,name=old_revision,json=oldRevision,proto3" json:"old_revision,omitempty"` + Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` } -func (m *WriteRefRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WriteRefRequest.Marshal(b, m, deterministic) -} -func (m *WriteRefRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteRefRequest.Merge(m, src) + +func (x *WriteRefRequest) Reset() { + *x = WriteRefRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WriteRefRequest) XXX_Size() int { - return xxx_messageInfo_WriteRefRequest.Size(m) + +func (x *WriteRefRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WriteRefRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WriteRefRequest.DiscardUnknown(m) + +func (*WriteRefRequest) ProtoMessage() {} + +func (x *WriteRefRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WriteRefRequest proto.InternalMessageInfo +// Deprecated: Use WriteRefRequest.ProtoReflect.Descriptor instead. +func (*WriteRefRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{30} +} -func (m *WriteRefRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *WriteRefRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *WriteRefRequest) GetRef() []byte { - if m != nil { - return m.Ref +func (x *WriteRefRequest) GetRef() []byte { + if x != nil { + return x.Ref } return nil } -func (m *WriteRefRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *WriteRefRequest) GetRevision() []byte { + if x != nil { + return x.Revision } return nil } -func (m *WriteRefRequest) GetOldRevision() []byte { - if m != nil { - return m.OldRevision +func (x *WriteRefRequest) GetOldRevision() []byte { + if x != nil { + return x.OldRevision } return nil } -func (m *WriteRefRequest) GetForce() bool { - if m != nil { - return m.Force +func (x *WriteRefRequest) GetForce() bool { + if x != nil { + return x.Force } return false } type WriteRefResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *WriteRefResponse) Reset() { *m = WriteRefResponse{} } -func (m *WriteRefResponse) String() string { return proto.CompactTextString(m) } -func (*WriteRefResponse) ProtoMessage() {} -func (*WriteRefResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{31} +func (x *WriteRefResponse) Reset() { + *x = WriteRefResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WriteRefResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WriteRefResponse.Unmarshal(m, b) -} -func (m *WriteRefResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WriteRefResponse.Marshal(b, m, deterministic) +func (x *WriteRefResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WriteRefResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteRefResponse.Merge(m, src) -} -func (m *WriteRefResponse) XXX_Size() int { - return xxx_messageInfo_WriteRefResponse.Size(m) -} -func (m *WriteRefResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WriteRefResponse.DiscardUnknown(m) + +func (*WriteRefResponse) ProtoMessage() {} + +func (x *WriteRefResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WriteRefResponse proto.InternalMessageInfo +// Deprecated: Use WriteRefResponse.ProtoReflect.Descriptor instead. +func (*WriteRefResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{31} +} type FindMergeBaseRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // We use a repeated field because rugged supports finding a base // for more than 2 revisions, so if we needed that in the future we don't // need to change the protocol. - Revisions [][]byte `protobuf:"bytes,2,rep,name=revisions,proto3" json:"revisions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Revisions [][]byte `protobuf:"bytes,2,rep,name=revisions,proto3" json:"revisions,omitempty"` } -func (m *FindMergeBaseRequest) Reset() { *m = FindMergeBaseRequest{} } -func (m *FindMergeBaseRequest) String() string { return proto.CompactTextString(m) } -func (*FindMergeBaseRequest) ProtoMessage() {} -func (*FindMergeBaseRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{32} +func (x *FindMergeBaseRequest) Reset() { + *x = FindMergeBaseRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindMergeBaseRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindMergeBaseRequest.Unmarshal(m, b) +func (x *FindMergeBaseRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindMergeBaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindMergeBaseRequest.Marshal(b, m, deterministic) -} -func (m *FindMergeBaseRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindMergeBaseRequest.Merge(m, src) -} -func (m *FindMergeBaseRequest) XXX_Size() int { - return xxx_messageInfo_FindMergeBaseRequest.Size(m) -} -func (m *FindMergeBaseRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindMergeBaseRequest.DiscardUnknown(m) + +func (*FindMergeBaseRequest) ProtoMessage() {} + +func (x *FindMergeBaseRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindMergeBaseRequest proto.InternalMessageInfo +// Deprecated: Use FindMergeBaseRequest.ProtoReflect.Descriptor instead. +func (*FindMergeBaseRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{32} +} -func (m *FindMergeBaseRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindMergeBaseRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *FindMergeBaseRequest) GetRevisions() [][]byte { - if m != nil { - return m.Revisions +func (x *FindMergeBaseRequest) GetRevisions() [][]byte { + if x != nil { + return x.Revisions } return nil } type FindMergeBaseResponse struct { - Base string `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindMergeBaseResponse) Reset() { *m = FindMergeBaseResponse{} } -func (m *FindMergeBaseResponse) String() string { return proto.CompactTextString(m) } -func (*FindMergeBaseResponse) ProtoMessage() {} -func (*FindMergeBaseResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{33} + Base string `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` } -func (m *FindMergeBaseResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindMergeBaseResponse.Unmarshal(m, b) -} -func (m *FindMergeBaseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindMergeBaseResponse.Marshal(b, m, deterministic) -} -func (m *FindMergeBaseResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindMergeBaseResponse.Merge(m, src) +func (x *FindMergeBaseResponse) Reset() { + *x = FindMergeBaseResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindMergeBaseResponse) XXX_Size() int { - return xxx_messageInfo_FindMergeBaseResponse.Size(m) + +func (x *FindMergeBaseResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindMergeBaseResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindMergeBaseResponse.DiscardUnknown(m) + +func (*FindMergeBaseResponse) ProtoMessage() {} + +func (x *FindMergeBaseResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindMergeBaseResponse proto.InternalMessageInfo +// Deprecated: Use FindMergeBaseResponse.ProtoReflect.Descriptor instead. +func (*FindMergeBaseResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{33} +} -func (m *FindMergeBaseResponse) GetBase() string { - if m != nil { - return m.Base +func (x *FindMergeBaseResponse) GetBase() string { + if x != nil { + return x.Base } return "" } type CreateForkRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - SourceRepository *Repository `protobuf:"bytes,2,opt,name=source_repository,json=sourceRepository,proto3" json:"source_repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateForkRequest) Reset() { *m = CreateForkRequest{} } -func (m *CreateForkRequest) String() string { return proto.CompactTextString(m) } -func (*CreateForkRequest) ProtoMessage() {} -func (*CreateForkRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{34} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + SourceRepository *Repository `protobuf:"bytes,2,opt,name=source_repository,json=sourceRepository,proto3" json:"source_repository,omitempty"` } -func (m *CreateForkRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateForkRequest.Unmarshal(m, b) -} -func (m *CreateForkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateForkRequest.Marshal(b, m, deterministic) -} -func (m *CreateForkRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateForkRequest.Merge(m, src) +func (x *CreateForkRequest) Reset() { + *x = CreateForkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateForkRequest) XXX_Size() int { - return xxx_messageInfo_CreateForkRequest.Size(m) + +func (x *CreateForkRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateForkRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateForkRequest.DiscardUnknown(m) + +func (*CreateForkRequest) ProtoMessage() {} + +func (x *CreateForkRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateForkRequest proto.InternalMessageInfo +// Deprecated: Use CreateForkRequest.ProtoReflect.Descriptor instead. +func (*CreateForkRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{34} +} -func (m *CreateForkRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CreateForkRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *CreateForkRequest) GetSourceRepository() *Repository { - if m != nil { - return m.SourceRepository +func (x *CreateForkRequest) GetSourceRepository() *Repository { + if x != nil { + return x.SourceRepository } return nil } type CreateForkResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *CreateForkResponse) Reset() { *m = CreateForkResponse{} } -func (m *CreateForkResponse) String() string { return proto.CompactTextString(m) } -func (*CreateForkResponse) ProtoMessage() {} -func (*CreateForkResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{35} +func (x *CreateForkResponse) Reset() { + *x = CreateForkResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateForkResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateForkResponse.Unmarshal(m, b) -} -func (m *CreateForkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateForkResponse.Marshal(b, m, deterministic) -} -func (m *CreateForkResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateForkResponse.Merge(m, src) -} -func (m *CreateForkResponse) XXX_Size() int { - return xxx_messageInfo_CreateForkResponse.Size(m) -} -func (m *CreateForkResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateForkResponse.DiscardUnknown(m) +func (x *CreateForkResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CreateForkResponse proto.InternalMessageInfo +func (*CreateForkResponse) ProtoMessage() {} -type IsRebaseInProgressRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - RebaseId string `protobuf:"bytes,2,opt,name=rebase_id,json=rebaseId,proto3" json:"rebase_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CreateForkResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *IsRebaseInProgressRequest) Reset() { *m = IsRebaseInProgressRequest{} } -func (m *IsRebaseInProgressRequest) String() string { return proto.CompactTextString(m) } -func (*IsRebaseInProgressRequest) ProtoMessage() {} -func (*IsRebaseInProgressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{36} +// Deprecated: Use CreateForkResponse.ProtoReflect.Descriptor instead. +func (*CreateForkResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{35} } -func (m *IsRebaseInProgressRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IsRebaseInProgressRequest.Unmarshal(m, b) -} -func (m *IsRebaseInProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IsRebaseInProgressRequest.Marshal(b, m, deterministic) +type IsRebaseInProgressRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + RebaseId string `protobuf:"bytes,2,opt,name=rebase_id,json=rebaseId,proto3" json:"rebase_id,omitempty"` } -func (m *IsRebaseInProgressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsRebaseInProgressRequest.Merge(m, src) + +func (x *IsRebaseInProgressRequest) Reset() { + *x = IsRebaseInProgressRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *IsRebaseInProgressRequest) XXX_Size() int { - return xxx_messageInfo_IsRebaseInProgressRequest.Size(m) + +func (x *IsRebaseInProgressRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IsRebaseInProgressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IsRebaseInProgressRequest.DiscardUnknown(m) + +func (*IsRebaseInProgressRequest) ProtoMessage() {} + +func (x *IsRebaseInProgressRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_IsRebaseInProgressRequest proto.InternalMessageInfo +// Deprecated: Use IsRebaseInProgressRequest.ProtoReflect.Descriptor instead. +func (*IsRebaseInProgressRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{36} +} -func (m *IsRebaseInProgressRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *IsRebaseInProgressRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *IsRebaseInProgressRequest) GetRebaseId() string { - if m != nil { - return m.RebaseId +func (x *IsRebaseInProgressRequest) GetRebaseId() string { + if x != nil { + return x.RebaseId } return "" } type IsRebaseInProgressResponse struct { - InProgress bool `protobuf:"varint,1,opt,name=in_progress,json=inProgress,proto3" json:"in_progress,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *IsRebaseInProgressResponse) Reset() { *m = IsRebaseInProgressResponse{} } -func (m *IsRebaseInProgressResponse) String() string { return proto.CompactTextString(m) } -func (*IsRebaseInProgressResponse) ProtoMessage() {} -func (*IsRebaseInProgressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{37} + InProgress bool `protobuf:"varint,1,opt,name=in_progress,json=inProgress,proto3" json:"in_progress,omitempty"` } -func (m *IsRebaseInProgressResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IsRebaseInProgressResponse.Unmarshal(m, b) -} -func (m *IsRebaseInProgressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IsRebaseInProgressResponse.Marshal(b, m, deterministic) -} -func (m *IsRebaseInProgressResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsRebaseInProgressResponse.Merge(m, src) +func (x *IsRebaseInProgressResponse) Reset() { + *x = IsRebaseInProgressResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *IsRebaseInProgressResponse) XXX_Size() int { - return xxx_messageInfo_IsRebaseInProgressResponse.Size(m) + +func (x *IsRebaseInProgressResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IsRebaseInProgressResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IsRebaseInProgressResponse.DiscardUnknown(m) + +func (*IsRebaseInProgressResponse) ProtoMessage() {} + +func (x *IsRebaseInProgressResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_IsRebaseInProgressResponse proto.InternalMessageInfo +// Deprecated: Use IsRebaseInProgressResponse.ProtoReflect.Descriptor instead. +func (*IsRebaseInProgressResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{37} +} -func (m *IsRebaseInProgressResponse) GetInProgress() bool { - if m != nil { - return m.InProgress +func (x *IsRebaseInProgressResponse) GetInProgress() bool { + if x != nil { + return x.InProgress } return false } type IsSquashInProgressRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - SquashId string `protobuf:"bytes,2,opt,name=squash_id,json=squashId,proto3" json:"squash_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *IsSquashInProgressRequest) Reset() { *m = IsSquashInProgressRequest{} } -func (m *IsSquashInProgressRequest) String() string { return proto.CompactTextString(m) } -func (*IsSquashInProgressRequest) ProtoMessage() {} -func (*IsSquashInProgressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{38} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + SquashId string `protobuf:"bytes,2,opt,name=squash_id,json=squashId,proto3" json:"squash_id,omitempty"` } -func (m *IsSquashInProgressRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IsSquashInProgressRequest.Unmarshal(m, b) -} -func (m *IsSquashInProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IsSquashInProgressRequest.Marshal(b, m, deterministic) -} -func (m *IsSquashInProgressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsSquashInProgressRequest.Merge(m, src) +func (x *IsSquashInProgressRequest) Reset() { + *x = IsSquashInProgressRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *IsSquashInProgressRequest) XXX_Size() int { - return xxx_messageInfo_IsSquashInProgressRequest.Size(m) + +func (x *IsSquashInProgressRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IsSquashInProgressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IsSquashInProgressRequest.DiscardUnknown(m) + +func (*IsSquashInProgressRequest) ProtoMessage() {} + +func (x *IsSquashInProgressRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_IsSquashInProgressRequest proto.InternalMessageInfo +// Deprecated: Use IsSquashInProgressRequest.ProtoReflect.Descriptor instead. +func (*IsSquashInProgressRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{38} +} -func (m *IsSquashInProgressRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *IsSquashInProgressRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *IsSquashInProgressRequest) GetSquashId() string { - if m != nil { - return m.SquashId +func (x *IsSquashInProgressRequest) GetSquashId() string { + if x != nil { + return x.SquashId } return "" } type IsSquashInProgressResponse struct { - InProgress bool `protobuf:"varint,1,opt,name=in_progress,json=inProgress,proto3" json:"in_progress,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *IsSquashInProgressResponse) Reset() { *m = IsSquashInProgressResponse{} } -func (m *IsSquashInProgressResponse) String() string { return proto.CompactTextString(m) } -func (*IsSquashInProgressResponse) ProtoMessage() {} -func (*IsSquashInProgressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{39} + InProgress bool `protobuf:"varint,1,opt,name=in_progress,json=inProgress,proto3" json:"in_progress,omitempty"` } -func (m *IsSquashInProgressResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IsSquashInProgressResponse.Unmarshal(m, b) -} -func (m *IsSquashInProgressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IsSquashInProgressResponse.Marshal(b, m, deterministic) -} -func (m *IsSquashInProgressResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsSquashInProgressResponse.Merge(m, src) +func (x *IsSquashInProgressResponse) Reset() { + *x = IsSquashInProgressResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *IsSquashInProgressResponse) XXX_Size() int { - return xxx_messageInfo_IsSquashInProgressResponse.Size(m) + +func (x *IsSquashInProgressResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IsSquashInProgressResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IsSquashInProgressResponse.DiscardUnknown(m) + +func (*IsSquashInProgressResponse) ProtoMessage() {} + +func (x *IsSquashInProgressResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_IsSquashInProgressResponse proto.InternalMessageInfo +// Deprecated: Use IsSquashInProgressResponse.ProtoReflect.Descriptor instead. +func (*IsSquashInProgressResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{39} +} -func (m *IsSquashInProgressResponse) GetInProgress() bool { - if m != nil { - return m.InProgress +func (x *IsSquashInProgressResponse) GetInProgress() bool { + if x != nil { + return x.InProgress } return false } type CreateRepositoryFromURLRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateRepositoryFromURLRequest) Reset() { *m = CreateRepositoryFromURLRequest{} } -func (m *CreateRepositoryFromURLRequest) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryFromURLRequest) ProtoMessage() {} -func (*CreateRepositoryFromURLRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{40} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` } -func (m *CreateRepositoryFromURLRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateRepositoryFromURLRequest.Unmarshal(m, b) -} -func (m *CreateRepositoryFromURLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateRepositoryFromURLRequest.Marshal(b, m, deterministic) -} -func (m *CreateRepositoryFromURLRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateRepositoryFromURLRequest.Merge(m, src) +func (x *CreateRepositoryFromURLRequest) Reset() { + *x = CreateRepositoryFromURLRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateRepositoryFromURLRequest) XXX_Size() int { - return xxx_messageInfo_CreateRepositoryFromURLRequest.Size(m) + +func (x *CreateRepositoryFromURLRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateRepositoryFromURLRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateRepositoryFromURLRequest.DiscardUnknown(m) + +func (*CreateRepositoryFromURLRequest) ProtoMessage() {} + +func (x *CreateRepositoryFromURLRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateRepositoryFromURLRequest proto.InternalMessageInfo +// Deprecated: Use CreateRepositoryFromURLRequest.ProtoReflect.Descriptor instead. +func (*CreateRepositoryFromURLRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{40} +} -func (m *CreateRepositoryFromURLRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CreateRepositoryFromURLRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *CreateRepositoryFromURLRequest) GetUrl() string { - if m != nil { - return m.Url +func (x *CreateRepositoryFromURLRequest) GetUrl() string { + if x != nil { + return x.Url } return "" } type CreateRepositoryFromURLResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *CreateRepositoryFromURLResponse) Reset() { *m = CreateRepositoryFromURLResponse{} } -func (m *CreateRepositoryFromURLResponse) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryFromURLResponse) ProtoMessage() {} -func (*CreateRepositoryFromURLResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{41} +func (x *CreateRepositoryFromURLResponse) Reset() { + *x = CreateRepositoryFromURLResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateRepositoryFromURLResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateRepositoryFromURLResponse.Unmarshal(m, b) -} -func (m *CreateRepositoryFromURLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateRepositoryFromURLResponse.Marshal(b, m, deterministic) -} -func (m *CreateRepositoryFromURLResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateRepositoryFromURLResponse.Merge(m, src) -} -func (m *CreateRepositoryFromURLResponse) XXX_Size() int { - return xxx_messageInfo_CreateRepositoryFromURLResponse.Size(m) -} -func (m *CreateRepositoryFromURLResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateRepositoryFromURLResponse.DiscardUnknown(m) +func (x *CreateRepositoryFromURLResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CreateRepositoryFromURLResponse proto.InternalMessageInfo +func (*CreateRepositoryFromURLResponse) ProtoMessage() {} -type CreateBundleRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CreateRepositoryFromURLResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[41] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *CreateBundleRequest) Reset() { *m = CreateBundleRequest{} } -func (m *CreateBundleRequest) String() string { return proto.CompactTextString(m) } -func (*CreateBundleRequest) ProtoMessage() {} -func (*CreateBundleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{42} +// Deprecated: Use CreateRepositoryFromURLResponse.ProtoReflect.Descriptor instead. +func (*CreateRepositoryFromURLResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{41} } -func (m *CreateBundleRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateBundleRequest.Unmarshal(m, b) -} -func (m *CreateBundleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateBundleRequest.Marshal(b, m, deterministic) +type CreateBundleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *CreateBundleRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateBundleRequest.Merge(m, src) + +func (x *CreateBundleRequest) Reset() { + *x = CreateBundleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateBundleRequest) XXX_Size() int { - return xxx_messageInfo_CreateBundleRequest.Size(m) + +func (x *CreateBundleRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateBundleRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateBundleRequest.DiscardUnknown(m) + +func (*CreateBundleRequest) ProtoMessage() {} + +func (x *CreateBundleRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[42] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateBundleRequest proto.InternalMessageInfo +// Deprecated: Use CreateBundleRequest.ProtoReflect.Descriptor instead. +func (*CreateBundleRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{42} +} -func (m *CreateBundleRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CreateBundleRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type CreateBundleResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateBundleResponse) Reset() { *m = CreateBundleResponse{} } -func (m *CreateBundleResponse) String() string { return proto.CompactTextString(m) } -func (*CreateBundleResponse) ProtoMessage() {} -func (*CreateBundleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{43} + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } -func (m *CreateBundleResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateBundleResponse.Unmarshal(m, b) -} -func (m *CreateBundleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateBundleResponse.Marshal(b, m, deterministic) -} -func (m *CreateBundleResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateBundleResponse.Merge(m, src) +func (x *CreateBundleResponse) Reset() { + *x = CreateBundleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateBundleResponse) XXX_Size() int { - return xxx_messageInfo_CreateBundleResponse.Size(m) + +func (x *CreateBundleResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateBundleResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateBundleResponse.DiscardUnknown(m) + +func (*CreateBundleResponse) ProtoMessage() {} + +func (x *CreateBundleResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[43] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateBundleResponse proto.InternalMessageInfo +// Deprecated: Use CreateBundleResponse.ProtoReflect.Descriptor instead. +func (*CreateBundleResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{43} +} -func (m *CreateBundleResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *CreateBundleResponse) GetData() []byte { + if x != nil { + return x.Data } return nil } // GetConfigRequest is a request for the GetConfig RPC. type GetConfigRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Repository is the repository from which the configuration should be read // from. - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *GetConfigRequest) Reset() { *m = GetConfigRequest{} } -func (m *GetConfigRequest) String() string { return proto.CompactTextString(m) } -func (*GetConfigRequest) ProtoMessage() {} -func (*GetConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{44} +func (x *GetConfigRequest) Reset() { + *x = GetConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetConfigRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetConfigRequest.Unmarshal(m, b) -} -func (m *GetConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetConfigRequest.Marshal(b, m, deterministic) +func (x *GetConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetConfigRequest.Merge(m, src) -} -func (m *GetConfigRequest) XXX_Size() int { - return xxx_messageInfo_GetConfigRequest.Size(m) -} -func (m *GetConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetConfigRequest.DiscardUnknown(m) + +func (*GetConfigRequest) ProtoMessage() {} + +func (x *GetConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[44] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetConfigRequest proto.InternalMessageInfo +// Deprecated: Use GetConfigRequest.ProtoReflect.Descriptor instead. +func (*GetConfigRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{44} +} -func (m *GetConfigRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *GetConfigRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } // GetConfigResponse is a response for the GetConfig RPC. type GetConfigResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Data contains contents of the gitconfig. - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } -func (m *GetConfigResponse) Reset() { *m = GetConfigResponse{} } -func (m *GetConfigResponse) String() string { return proto.CompactTextString(m) } -func (*GetConfigResponse) ProtoMessage() {} -func (*GetConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{45} +func (x *GetConfigResponse) Reset() { + *x = GetConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetConfigResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetConfigResponse.Unmarshal(m, b) -} -func (m *GetConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetConfigResponse.Marshal(b, m, deterministic) -} -func (m *GetConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetConfigResponse.Merge(m, src) -} -func (m *GetConfigResponse) XXX_Size() int { - return xxx_messageInfo_GetConfigResponse.Size(m) +func (x *GetConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetConfigResponse.DiscardUnknown(m) + +func (*GetConfigResponse) ProtoMessage() {} + +func (x *GetConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[45] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetConfigResponse proto.InternalMessageInfo +// Deprecated: Use GetConfigResponse.ProtoReflect.Descriptor instead. +func (*GetConfigResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{45} +} -func (m *GetConfigResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *GetConfigResponse) GetData() []byte { + if x != nil { + return x.Data } return nil } type SetConfigRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Entries []*SetConfigRequest_Entry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SetConfigRequest) Reset() { *m = SetConfigRequest{} } -func (m *SetConfigRequest) String() string { return proto.CompactTextString(m) } -func (*SetConfigRequest) ProtoMessage() {} -func (*SetConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{46} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Entries []*SetConfigRequest_Entry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` } -func (m *SetConfigRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetConfigRequest.Unmarshal(m, b) -} -func (m *SetConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetConfigRequest.Marshal(b, m, deterministic) -} -func (m *SetConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetConfigRequest.Merge(m, src) +func (x *SetConfigRequest) Reset() { + *x = SetConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetConfigRequest) XXX_Size() int { - return xxx_messageInfo_SetConfigRequest.Size(m) + +func (x *SetConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SetConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetConfigRequest.DiscardUnknown(m) + +func (*SetConfigRequest) ProtoMessage() {} + +func (x *SetConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[46] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SetConfigRequest proto.InternalMessageInfo +// Deprecated: Use SetConfigRequest.ProtoReflect.Descriptor instead. +func (*SetConfigRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{46} +} -func (m *SetConfigRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *SetConfigRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *SetConfigRequest) GetEntries() []*SetConfigRequest_Entry { - if m != nil { - return m.Entries +func (x *SetConfigRequest) GetEntries() []*SetConfigRequest_Entry { + if x != nil { + return x.Entries } return nil } -type SetConfigRequest_Entry struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - // Types that are valid to be assigned to Value: - // *SetConfigRequest_Entry_ValueStr - // *SetConfigRequest_Entry_ValueInt32 - // *SetConfigRequest_Entry_ValueBool - Value isSetConfigRequest_Entry_Value `protobuf_oneof:"value"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SetConfigResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *SetConfigRequest_Entry) Reset() { *m = SetConfigRequest_Entry{} } -func (m *SetConfigRequest_Entry) String() string { return proto.CompactTextString(m) } -func (*SetConfigRequest_Entry) ProtoMessage() {} -func (*SetConfigRequest_Entry) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{46, 0} +func (x *SetConfigResponse) Reset() { + *x = SetConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetConfigRequest_Entry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetConfigRequest_Entry.Unmarshal(m, b) -} -func (m *SetConfigRequest_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetConfigRequest_Entry.Marshal(b, m, deterministic) -} -func (m *SetConfigRequest_Entry) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetConfigRequest_Entry.Merge(m, src) -} -func (m *SetConfigRequest_Entry) XXX_Size() int { - return xxx_messageInfo_SetConfigRequest_Entry.Size(m) -} -func (m *SetConfigRequest_Entry) XXX_DiscardUnknown() { - xxx_messageInfo_SetConfigRequest_Entry.DiscardUnknown(m) +func (x *SetConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_SetConfigRequest_Entry proto.InternalMessageInfo +func (*SetConfigResponse) ProtoMessage() {} -func (m *SetConfigRequest_Entry) GetKey() string { - if m != nil { - return m.Key +func (x *SetConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[47] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -type isSetConfigRequest_Entry_Value interface { - isSetConfigRequest_Entry_Value() +// Deprecated: Use SetConfigResponse.ProtoReflect.Descriptor instead. +func (*SetConfigResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{47} } -type SetConfigRequest_Entry_ValueStr struct { - ValueStr string `protobuf:"bytes,2,opt,name=value_str,json=valueStr,proto3,oneof"` +type DeleteConfigRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` } -type SetConfigRequest_Entry_ValueInt32 struct { - ValueInt32 int32 `protobuf:"varint,3,opt,name=value_int32,json=valueInt32,proto3,oneof"` +func (x *DeleteConfigRequest) Reset() { + *x = DeleteConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type SetConfigRequest_Entry_ValueBool struct { - ValueBool bool `protobuf:"varint,4,opt,name=value_bool,json=valueBool,proto3,oneof"` +func (x *DeleteConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (*SetConfigRequest_Entry_ValueStr) isSetConfigRequest_Entry_Value() {} +func (*DeleteConfigRequest) ProtoMessage() {} -func (*SetConfigRequest_Entry_ValueInt32) isSetConfigRequest_Entry_Value() {} +func (x *DeleteConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[48] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} -func (*SetConfigRequest_Entry_ValueBool) isSetConfigRequest_Entry_Value() {} +// Deprecated: Use DeleteConfigRequest.ProtoReflect.Descriptor instead. +func (*DeleteConfigRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{48} +} -func (m *SetConfigRequest_Entry) GetValue() isSetConfigRequest_Entry_Value { - if m != nil { - return m.Value +func (x *DeleteConfigRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *SetConfigRequest_Entry) GetValueStr() string { - if x, ok := m.GetValue().(*SetConfigRequest_Entry_ValueStr); ok { - return x.ValueStr +func (x *DeleteConfigRequest) GetKeys() []string { + if x != nil { + return x.Keys } - return "" + return nil } -func (m *SetConfigRequest_Entry) GetValueInt32() int32 { - if x, ok := m.GetValue().(*SetConfigRequest_Entry_ValueInt32); ok { - return x.ValueInt32 - } - return 0 +type DeleteConfigResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *SetConfigRequest_Entry) GetValueBool() bool { - if x, ok := m.GetValue().(*SetConfigRequest_Entry_ValueBool); ok { - return x.ValueBool +func (x *DeleteConfigResponse) Reset() { + *x = DeleteConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return false } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*SetConfigRequest_Entry) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*SetConfigRequest_Entry_ValueStr)(nil), - (*SetConfigRequest_Entry_ValueInt32)(nil), - (*SetConfigRequest_Entry_ValueBool)(nil), - } +func (x *DeleteConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type SetConfigResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*DeleteConfigResponse) ProtoMessage() {} -func (m *SetConfigResponse) Reset() { *m = SetConfigResponse{} } -func (m *SetConfigResponse) String() string { return proto.CompactTextString(m) } -func (*SetConfigResponse) ProtoMessage() {} -func (*SetConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{47} +func (x *DeleteConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[49] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *SetConfigResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetConfigResponse.Unmarshal(m, b) -} -func (m *SetConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetConfigResponse.Marshal(b, m, deterministic) -} -func (m *SetConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetConfigResponse.Merge(m, src) -} -func (m *SetConfigResponse) XXX_Size() int { - return xxx_messageInfo_SetConfigResponse.Size(m) -} -func (m *SetConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SetConfigResponse.DiscardUnknown(m) +// Deprecated: Use DeleteConfigResponse.ProtoReflect.Descriptor instead. +func (*DeleteConfigResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{49} } -var xxx_messageInfo_SetConfigResponse proto.InternalMessageInfo +type RestoreCustomHooksRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type DeleteConfigRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } -func (m *DeleteConfigRequest) Reset() { *m = DeleteConfigRequest{} } -func (m *DeleteConfigRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteConfigRequest) ProtoMessage() {} -func (*DeleteConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{48} +func (x *RestoreCustomHooksRequest) Reset() { + *x = RestoreCustomHooksRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeleteConfigRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteConfigRequest.Unmarshal(m, b) -} -func (m *DeleteConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteConfigRequest.Marshal(b, m, deterministic) -} -func (m *DeleteConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteConfigRequest.Merge(m, src) +func (x *RestoreCustomHooksRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteConfigRequest) XXX_Size() int { - return xxx_messageInfo_DeleteConfigRequest.Size(m) -} -func (m *DeleteConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteConfigRequest.DiscardUnknown(m) + +func (*RestoreCustomHooksRequest) ProtoMessage() {} + +func (x *RestoreCustomHooksRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[50] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DeleteConfigRequest proto.InternalMessageInfo +// Deprecated: Use RestoreCustomHooksRequest.ProtoReflect.Descriptor instead. +func (*RestoreCustomHooksRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{50} +} -func (m *DeleteConfigRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *RestoreCustomHooksRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *DeleteConfigRequest) GetKeys() []string { - if m != nil { - return m.Keys +func (x *RestoreCustomHooksRequest) GetData() []byte { + if x != nil { + return x.Data } return nil } -type DeleteConfigResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type RestoreCustomHooksResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *DeleteConfigResponse) Reset() { *m = DeleteConfigResponse{} } -func (m *DeleteConfigResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteConfigResponse) ProtoMessage() {} -func (*DeleteConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{49} +func (x *RestoreCustomHooksResponse) Reset() { + *x = RestoreCustomHooksResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeleteConfigResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteConfigResponse.Unmarshal(m, b) -} -func (m *DeleteConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteConfigResponse.Marshal(b, m, deterministic) -} -func (m *DeleteConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteConfigResponse.Merge(m, src) -} -func (m *DeleteConfigResponse) XXX_Size() int { - return xxx_messageInfo_DeleteConfigResponse.Size(m) -} -func (m *DeleteConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteConfigResponse.DiscardUnknown(m) +func (x *RestoreCustomHooksResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_DeleteConfigResponse proto.InternalMessageInfo +func (*RestoreCustomHooksResponse) ProtoMessage() {} -type RestoreCustomHooksRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RestoreCustomHooksRequest) Reset() { *m = RestoreCustomHooksRequest{} } -func (m *RestoreCustomHooksRequest) String() string { return proto.CompactTextString(m) } -func (*RestoreCustomHooksRequest) ProtoMessage() {} -func (*RestoreCustomHooksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{50} +func (x *RestoreCustomHooksResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[51] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *RestoreCustomHooksRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RestoreCustomHooksRequest.Unmarshal(m, b) -} -func (m *RestoreCustomHooksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RestoreCustomHooksRequest.Marshal(b, m, deterministic) -} -func (m *RestoreCustomHooksRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RestoreCustomHooksRequest.Merge(m, src) -} -func (m *RestoreCustomHooksRequest) XXX_Size() int { - return xxx_messageInfo_RestoreCustomHooksRequest.Size(m) -} -func (m *RestoreCustomHooksRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RestoreCustomHooksRequest.DiscardUnknown(m) +// Deprecated: Use RestoreCustomHooksResponse.ProtoReflect.Descriptor instead. +func (*RestoreCustomHooksResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{51} } -var xxx_messageInfo_RestoreCustomHooksRequest proto.InternalMessageInfo +type BackupCustomHooksRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RestoreCustomHooksRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *RestoreCustomHooksRequest) GetData() []byte { - if m != nil { - return m.Data +func (x *BackupCustomHooksRequest) Reset() { + *x = BackupCustomHooksRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type RestoreCustomHooksResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RestoreCustomHooksResponse) Reset() { *m = RestoreCustomHooksResponse{} } -func (m *RestoreCustomHooksResponse) String() string { return proto.CompactTextString(m) } -func (*RestoreCustomHooksResponse) ProtoMessage() {} -func (*RestoreCustomHooksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{51} -} - -func (m *RestoreCustomHooksResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RestoreCustomHooksResponse.Unmarshal(m, b) -} -func (m *RestoreCustomHooksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RestoreCustomHooksResponse.Marshal(b, m, deterministic) -} -func (m *RestoreCustomHooksResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RestoreCustomHooksResponse.Merge(m, src) -} -func (m *RestoreCustomHooksResponse) XXX_Size() int { - return xxx_messageInfo_RestoreCustomHooksResponse.Size(m) -} -func (m *RestoreCustomHooksResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RestoreCustomHooksResponse.DiscardUnknown(m) +func (x *BackupCustomHooksRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RestoreCustomHooksResponse proto.InternalMessageInfo +func (*BackupCustomHooksRequest) ProtoMessage() {} -type BackupCustomHooksRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *BackupCustomHooksRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[52] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *BackupCustomHooksRequest) Reset() { *m = BackupCustomHooksRequest{} } -func (m *BackupCustomHooksRequest) String() string { return proto.CompactTextString(m) } -func (*BackupCustomHooksRequest) ProtoMessage() {} +// Deprecated: Use BackupCustomHooksRequest.ProtoReflect.Descriptor instead. func (*BackupCustomHooksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{52} + return file_repository_service_proto_rawDescGZIP(), []int{52} } -func (m *BackupCustomHooksRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BackupCustomHooksRequest.Unmarshal(m, b) -} -func (m *BackupCustomHooksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BackupCustomHooksRequest.Marshal(b, m, deterministic) -} -func (m *BackupCustomHooksRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BackupCustomHooksRequest.Merge(m, src) -} -func (m *BackupCustomHooksRequest) XXX_Size() int { - return xxx_messageInfo_BackupCustomHooksRequest.Size(m) -} -func (m *BackupCustomHooksRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BackupCustomHooksRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BackupCustomHooksRequest proto.InternalMessageInfo - -func (m *BackupCustomHooksRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *BackupCustomHooksRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type BackupCustomHooksResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BackupCustomHooksResponse) Reset() { *m = BackupCustomHooksResponse{} } -func (m *BackupCustomHooksResponse) String() string { return proto.CompactTextString(m) } -func (*BackupCustomHooksResponse) ProtoMessage() {} -func (*BackupCustomHooksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{53} + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } -func (m *BackupCustomHooksResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BackupCustomHooksResponse.Unmarshal(m, b) -} -func (m *BackupCustomHooksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BackupCustomHooksResponse.Marshal(b, m, deterministic) -} -func (m *BackupCustomHooksResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BackupCustomHooksResponse.Merge(m, src) +func (x *BackupCustomHooksResponse) Reset() { + *x = BackupCustomHooksResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BackupCustomHooksResponse) XXX_Size() int { - return xxx_messageInfo_BackupCustomHooksResponse.Size(m) + +func (x *BackupCustomHooksResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BackupCustomHooksResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BackupCustomHooksResponse.DiscardUnknown(m) + +func (*BackupCustomHooksResponse) ProtoMessage() {} + +func (x *BackupCustomHooksResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[53] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BackupCustomHooksResponse proto.InternalMessageInfo +// Deprecated: Use BackupCustomHooksResponse.ProtoReflect.Descriptor instead. +func (*BackupCustomHooksResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{53} +} -func (m *BackupCustomHooksResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *BackupCustomHooksResponse) GetData() []byte { + if x != nil { + return x.Data } return nil } type CreateRepositoryFromBundleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Only available on the first message - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } -func (m *CreateRepositoryFromBundleRequest) Reset() { *m = CreateRepositoryFromBundleRequest{} } -func (m *CreateRepositoryFromBundleRequest) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryFromBundleRequest) ProtoMessage() {} -func (*CreateRepositoryFromBundleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{54} +func (x *CreateRepositoryFromBundleRequest) Reset() { + *x = CreateRepositoryFromBundleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateRepositoryFromBundleRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateRepositoryFromBundleRequest.Unmarshal(m, b) -} -func (m *CreateRepositoryFromBundleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateRepositoryFromBundleRequest.Marshal(b, m, deterministic) -} -func (m *CreateRepositoryFromBundleRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateRepositoryFromBundleRequest.Merge(m, src) +func (x *CreateRepositoryFromBundleRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateRepositoryFromBundleRequest) XXX_Size() int { - return xxx_messageInfo_CreateRepositoryFromBundleRequest.Size(m) -} -func (m *CreateRepositoryFromBundleRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateRepositoryFromBundleRequest.DiscardUnknown(m) + +func (*CreateRepositoryFromBundleRequest) ProtoMessage() {} + +func (x *CreateRepositoryFromBundleRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[54] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateRepositoryFromBundleRequest proto.InternalMessageInfo +// Deprecated: Use CreateRepositoryFromBundleRequest.ProtoReflect.Descriptor instead. +func (*CreateRepositoryFromBundleRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{54} +} -func (m *CreateRepositoryFromBundleRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CreateRepositoryFromBundleRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *CreateRepositoryFromBundleRequest) GetData() []byte { - if m != nil { - return m.Data +func (x *CreateRepositoryFromBundleRequest) GetData() []byte { + if x != nil { + return x.Data } return nil } type CreateRepositoryFromBundleResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *CreateRepositoryFromBundleResponse) Reset() { *m = CreateRepositoryFromBundleResponse{} } -func (m *CreateRepositoryFromBundleResponse) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryFromBundleResponse) ProtoMessage() {} -func (*CreateRepositoryFromBundleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{55} +func (x *CreateRepositoryFromBundleResponse) Reset() { + *x = CreateRepositoryFromBundleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateRepositoryFromBundleResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateRepositoryFromBundleResponse.Unmarshal(m, b) -} -func (m *CreateRepositoryFromBundleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateRepositoryFromBundleResponse.Marshal(b, m, deterministic) -} -func (m *CreateRepositoryFromBundleResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateRepositoryFromBundleResponse.Merge(m, src) -} -func (m *CreateRepositoryFromBundleResponse) XXX_Size() int { - return xxx_messageInfo_CreateRepositoryFromBundleResponse.Size(m) -} -func (m *CreateRepositoryFromBundleResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateRepositoryFromBundleResponse.DiscardUnknown(m) +func (x *CreateRepositoryFromBundleResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CreateRepositoryFromBundleResponse proto.InternalMessageInfo +func (*CreateRepositoryFromBundleResponse) ProtoMessage() {} -type FindLicenseRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CreateRepositoryFromBundleResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[55] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *FindLicenseRequest) Reset() { *m = FindLicenseRequest{} } -func (m *FindLicenseRequest) String() string { return proto.CompactTextString(m) } -func (*FindLicenseRequest) ProtoMessage() {} -func (*FindLicenseRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{56} +// Deprecated: Use CreateRepositoryFromBundleResponse.ProtoReflect.Descriptor instead. +func (*CreateRepositoryFromBundleResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{55} } -func (m *FindLicenseRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindLicenseRequest.Unmarshal(m, b) -} -func (m *FindLicenseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindLicenseRequest.Marshal(b, m, deterministic) +type FindLicenseRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *FindLicenseRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindLicenseRequest.Merge(m, src) + +func (x *FindLicenseRequest) Reset() { + *x = FindLicenseRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindLicenseRequest) XXX_Size() int { - return xxx_messageInfo_FindLicenseRequest.Size(m) + +func (x *FindLicenseRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindLicenseRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindLicenseRequest.DiscardUnknown(m) + +func (*FindLicenseRequest) ProtoMessage() {} + +func (x *FindLicenseRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[56] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindLicenseRequest proto.InternalMessageInfo +// Deprecated: Use FindLicenseRequest.ProtoReflect.Descriptor instead. +func (*FindLicenseRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{56} +} -func (m *FindLicenseRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *FindLicenseRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type FindLicenseResponse struct { - LicenseShortName string `protobuf:"bytes,1,opt,name=license_short_name,json=licenseShortName,proto3" json:"license_short_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *FindLicenseResponse) Reset() { *m = FindLicenseResponse{} } -func (m *FindLicenseResponse) String() string { return proto.CompactTextString(m) } -func (*FindLicenseResponse) ProtoMessage() {} -func (*FindLicenseResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{57} + LicenseShortName string `protobuf:"bytes,1,opt,name=license_short_name,json=licenseShortName,proto3" json:"license_short_name,omitempty"` } -func (m *FindLicenseResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindLicenseResponse.Unmarshal(m, b) -} -func (m *FindLicenseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindLicenseResponse.Marshal(b, m, deterministic) -} -func (m *FindLicenseResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindLicenseResponse.Merge(m, src) +func (x *FindLicenseResponse) Reset() { + *x = FindLicenseResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FindLicenseResponse) XXX_Size() int { - return xxx_messageInfo_FindLicenseResponse.Size(m) + +func (x *FindLicenseResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FindLicenseResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindLicenseResponse.DiscardUnknown(m) + +func (*FindLicenseResponse) ProtoMessage() {} + +func (x *FindLicenseResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[57] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FindLicenseResponse proto.InternalMessageInfo +// Deprecated: Use FindLicenseResponse.ProtoReflect.Descriptor instead. +func (*FindLicenseResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{57} +} -func (m *FindLicenseResponse) GetLicenseShortName() string { - if m != nil { - return m.LicenseShortName +func (x *FindLicenseResponse) GetLicenseShortName() string { + if x != nil { + return x.LicenseShortName } return "" } type GetInfoAttributesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetInfoAttributesRequest) Reset() { *m = GetInfoAttributesRequest{} } -func (m *GetInfoAttributesRequest) String() string { return proto.CompactTextString(m) } -func (*GetInfoAttributesRequest) ProtoMessage() {} -func (*GetInfoAttributesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{58} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *GetInfoAttributesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetInfoAttributesRequest.Unmarshal(m, b) -} -func (m *GetInfoAttributesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetInfoAttributesRequest.Marshal(b, m, deterministic) -} -func (m *GetInfoAttributesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetInfoAttributesRequest.Merge(m, src) +func (x *GetInfoAttributesRequest) Reset() { + *x = GetInfoAttributesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetInfoAttributesRequest) XXX_Size() int { - return xxx_messageInfo_GetInfoAttributesRequest.Size(m) + +func (x *GetInfoAttributesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetInfoAttributesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetInfoAttributesRequest.DiscardUnknown(m) + +func (*GetInfoAttributesRequest) ProtoMessage() {} + +func (x *GetInfoAttributesRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[58] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetInfoAttributesRequest proto.InternalMessageInfo +// Deprecated: Use GetInfoAttributesRequest.ProtoReflect.Descriptor instead. +func (*GetInfoAttributesRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{58} +} -func (m *GetInfoAttributesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *GetInfoAttributesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type GetInfoAttributesResponse struct { - Attributes []byte `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetInfoAttributesResponse) Reset() { *m = GetInfoAttributesResponse{} } -func (m *GetInfoAttributesResponse) String() string { return proto.CompactTextString(m) } -func (*GetInfoAttributesResponse) ProtoMessage() {} -func (*GetInfoAttributesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{59} + Attributes []byte `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` } -func (m *GetInfoAttributesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetInfoAttributesResponse.Unmarshal(m, b) -} -func (m *GetInfoAttributesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetInfoAttributesResponse.Marshal(b, m, deterministic) -} -func (m *GetInfoAttributesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetInfoAttributesResponse.Merge(m, src) +func (x *GetInfoAttributesResponse) Reset() { + *x = GetInfoAttributesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetInfoAttributesResponse) XXX_Size() int { - return xxx_messageInfo_GetInfoAttributesResponse.Size(m) + +func (x *GetInfoAttributesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetInfoAttributesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetInfoAttributesResponse.DiscardUnknown(m) + +func (*GetInfoAttributesResponse) ProtoMessage() {} + +func (x *GetInfoAttributesResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[59] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetInfoAttributesResponse proto.InternalMessageInfo +// Deprecated: Use GetInfoAttributesResponse.ProtoReflect.Descriptor instead. +func (*GetInfoAttributesResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{59} +} -func (m *GetInfoAttributesResponse) GetAttributes() []byte { - if m != nil { - return m.Attributes +func (x *GetInfoAttributesResponse) GetAttributes() []byte { + if x != nil { + return x.Attributes } return nil } type CalculateChecksumRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CalculateChecksumRequest) Reset() { *m = CalculateChecksumRequest{} } -func (m *CalculateChecksumRequest) String() string { return proto.CompactTextString(m) } -func (*CalculateChecksumRequest) ProtoMessage() {} -func (*CalculateChecksumRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{60} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *CalculateChecksumRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CalculateChecksumRequest.Unmarshal(m, b) -} -func (m *CalculateChecksumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CalculateChecksumRequest.Marshal(b, m, deterministic) -} -func (m *CalculateChecksumRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CalculateChecksumRequest.Merge(m, src) +func (x *CalculateChecksumRequest) Reset() { + *x = CalculateChecksumRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CalculateChecksumRequest) XXX_Size() int { - return xxx_messageInfo_CalculateChecksumRequest.Size(m) + +func (x *CalculateChecksumRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CalculateChecksumRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CalculateChecksumRequest.DiscardUnknown(m) + +func (*CalculateChecksumRequest) ProtoMessage() {} + +func (x *CalculateChecksumRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[60] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CalculateChecksumRequest proto.InternalMessageInfo +// Deprecated: Use CalculateChecksumRequest.ProtoReflect.Descriptor instead. +func (*CalculateChecksumRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{60} +} -func (m *CalculateChecksumRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CalculateChecksumRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type CalculateChecksumResponse struct { - Checksum string `protobuf:"bytes,1,opt,name=checksum,proto3" json:"checksum,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CalculateChecksumResponse) Reset() { *m = CalculateChecksumResponse{} } -func (m *CalculateChecksumResponse) String() string { return proto.CompactTextString(m) } -func (*CalculateChecksumResponse) ProtoMessage() {} -func (*CalculateChecksumResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{61} + Checksum string `protobuf:"bytes,1,opt,name=checksum,proto3" json:"checksum,omitempty"` } -func (m *CalculateChecksumResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CalculateChecksumResponse.Unmarshal(m, b) -} -func (m *CalculateChecksumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CalculateChecksumResponse.Marshal(b, m, deterministic) -} -func (m *CalculateChecksumResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CalculateChecksumResponse.Merge(m, src) -} -func (m *CalculateChecksumResponse) XXX_Size() int { - return xxx_messageInfo_CalculateChecksumResponse.Size(m) +func (x *CalculateChecksumResponse) Reset() { + *x = CalculateChecksumResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CalculateChecksumResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CalculateChecksumResponse.DiscardUnknown(m) + +func (x *CalculateChecksumResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CalculateChecksumResponse proto.InternalMessageInfo +func (*CalculateChecksumResponse) ProtoMessage() {} -func (m *CalculateChecksumResponse) GetChecksum() string { - if m != nil { - return m.Checksum +func (x *CalculateChecksumResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[61] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -type GetSnapshotRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use CalculateChecksumResponse.ProtoReflect.Descriptor instead. +func (*CalculateChecksumResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{61} } -func (m *GetSnapshotRequest) Reset() { *m = GetSnapshotRequest{} } -func (m *GetSnapshotRequest) String() string { return proto.CompactTextString(m) } -func (*GetSnapshotRequest) ProtoMessage() {} -func (*GetSnapshotRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{62} +func (x *CalculateChecksumResponse) GetChecksum() string { + if x != nil { + return x.Checksum + } + return "" } -func (m *GetSnapshotRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetSnapshotRequest.Unmarshal(m, b) -} -func (m *GetSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetSnapshotRequest.Marshal(b, m, deterministic) -} -func (m *GetSnapshotRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetSnapshotRequest.Merge(m, src) -} -func (m *GetSnapshotRequest) XXX_Size() int { - return xxx_messageInfo_GetSnapshotRequest.Size(m) -} -func (m *GetSnapshotRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetSnapshotRequest.DiscardUnknown(m) -} +type GetSnapshotRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var xxx_messageInfo_GetSnapshotRequest proto.InternalMessageInfo + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` +} -func (m *GetSnapshotRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *GetSnapshotRequest) Reset() { + *x = GetSnapshotRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type GetSnapshotResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GetSnapshotRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetSnapshotResponse) Reset() { *m = GetSnapshotResponse{} } -func (m *GetSnapshotResponse) String() string { return proto.CompactTextString(m) } -func (*GetSnapshotResponse) ProtoMessage() {} -func (*GetSnapshotResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{63} -} +func (*GetSnapshotRequest) ProtoMessage() {} -func (m *GetSnapshotResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetSnapshotResponse.Unmarshal(m, b) -} -func (m *GetSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetSnapshotResponse.Marshal(b, m, deterministic) -} -func (m *GetSnapshotResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetSnapshotResponse.Merge(m, src) -} -func (m *GetSnapshotResponse) XXX_Size() int { - return xxx_messageInfo_GetSnapshotResponse.Size(m) -} -func (m *GetSnapshotResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetSnapshotResponse.DiscardUnknown(m) +func (x *GetSnapshotRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[62] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetSnapshotResponse proto.InternalMessageInfo +// Deprecated: Use GetSnapshotRequest.ProtoReflect.Descriptor instead. +func (*GetSnapshotRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{62} +} -func (m *GetSnapshotResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *GetSnapshotRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -type CreateRepositoryFromSnapshotRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - HttpUrl string `protobuf:"bytes,2,opt,name=http_url,json=httpUrl,proto3" json:"http_url,omitempty"` - HttpAuth string `protobuf:"bytes,3,opt,name=http_auth,json=httpAuth,proto3" json:"http_auth,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type GetSnapshotResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateRepositoryFromSnapshotRequest) Reset() { *m = CreateRepositoryFromSnapshotRequest{} } -func (m *CreateRepositoryFromSnapshotRequest) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryFromSnapshotRequest) ProtoMessage() {} -func (*CreateRepositoryFromSnapshotRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{64} + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } -func (m *CreateRepositoryFromSnapshotRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateRepositoryFromSnapshotRequest.Unmarshal(m, b) -} -func (m *CreateRepositoryFromSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateRepositoryFromSnapshotRequest.Marshal(b, m, deterministic) -} -func (m *CreateRepositoryFromSnapshotRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateRepositoryFromSnapshotRequest.Merge(m, src) -} -func (m *CreateRepositoryFromSnapshotRequest) XXX_Size() int { - return xxx_messageInfo_CreateRepositoryFromSnapshotRequest.Size(m) +func (x *GetSnapshotResponse) Reset() { + *x = GetSnapshotResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateRepositoryFromSnapshotRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateRepositoryFromSnapshotRequest.DiscardUnknown(m) + +func (x *GetSnapshotResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CreateRepositoryFromSnapshotRequest proto.InternalMessageInfo +func (*GetSnapshotResponse) ProtoMessage() {} -func (m *CreateRepositoryFromSnapshotRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *GetSnapshotResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[63] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *CreateRepositoryFromSnapshotRequest) GetHttpUrl() string { - if m != nil { - return m.HttpUrl - } - return "" +// Deprecated: Use GetSnapshotResponse.ProtoReflect.Descriptor instead. +func (*GetSnapshotResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{63} } -func (m *CreateRepositoryFromSnapshotRequest) GetHttpAuth() string { - if m != nil { - return m.HttpAuth +func (x *GetSnapshotResponse) GetData() []byte { + if x != nil { + return x.Data } - return "" + return nil } -type CreateRepositoryFromSnapshotResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type CreateRepositoryFromSnapshotRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateRepositoryFromSnapshotResponse) Reset() { *m = CreateRepositoryFromSnapshotResponse{} } -func (m *CreateRepositoryFromSnapshotResponse) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryFromSnapshotResponse) ProtoMessage() {} -func (*CreateRepositoryFromSnapshotResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{65} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + HttpUrl string `protobuf:"bytes,2,opt,name=http_url,json=httpUrl,proto3" json:"http_url,omitempty"` + HttpAuth string `protobuf:"bytes,3,opt,name=http_auth,json=httpAuth,proto3" json:"http_auth,omitempty"` } -func (m *CreateRepositoryFromSnapshotResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateRepositoryFromSnapshotResponse.Unmarshal(m, b) -} -func (m *CreateRepositoryFromSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateRepositoryFromSnapshotResponse.Marshal(b, m, deterministic) -} -func (m *CreateRepositoryFromSnapshotResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateRepositoryFromSnapshotResponse.Merge(m, src) -} -func (m *CreateRepositoryFromSnapshotResponse) XXX_Size() int { - return xxx_messageInfo_CreateRepositoryFromSnapshotResponse.Size(m) -} -func (m *CreateRepositoryFromSnapshotResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateRepositoryFromSnapshotResponse.DiscardUnknown(m) +func (x *CreateRepositoryFromSnapshotRequest) Reset() { + *x = CreateRepositoryFromSnapshotRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var xxx_messageInfo_CreateRepositoryFromSnapshotResponse proto.InternalMessageInfo - -type GetRawChangesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - FromRevision string `protobuf:"bytes,2,opt,name=from_revision,json=fromRevision,proto3" json:"from_revision,omitempty"` - ToRevision string `protobuf:"bytes,3,opt,name=to_revision,json=toRevision,proto3" json:"to_revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CreateRepositoryFromSnapshotRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetRawChangesRequest) Reset() { *m = GetRawChangesRequest{} } -func (m *GetRawChangesRequest) String() string { return proto.CompactTextString(m) } -func (*GetRawChangesRequest) ProtoMessage() {} -func (*GetRawChangesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{66} -} +func (*CreateRepositoryFromSnapshotRequest) ProtoMessage() {} -func (m *GetRawChangesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetRawChangesRequest.Unmarshal(m, b) -} -func (m *GetRawChangesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetRawChangesRequest.Marshal(b, m, deterministic) -} -func (m *GetRawChangesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRawChangesRequest.Merge(m, src) -} -func (m *GetRawChangesRequest) XXX_Size() int { - return xxx_messageInfo_GetRawChangesRequest.Size(m) -} -func (m *GetRawChangesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRawChangesRequest.DiscardUnknown(m) +func (x *CreateRepositoryFromSnapshotRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[64] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetRawChangesRequest proto.InternalMessageInfo +// Deprecated: Use CreateRepositoryFromSnapshotRequest.ProtoReflect.Descriptor instead. +func (*CreateRepositoryFromSnapshotRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{64} +} -func (m *GetRawChangesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CreateRepositoryFromSnapshotRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *GetRawChangesRequest) GetFromRevision() string { - if m != nil { - return m.FromRevision +func (x *CreateRepositoryFromSnapshotRequest) GetHttpUrl() string { + if x != nil { + return x.HttpUrl } return "" } -func (m *GetRawChangesRequest) GetToRevision() string { - if m != nil { - return m.ToRevision +func (x *CreateRepositoryFromSnapshotRequest) GetHttpAuth() string { + if x != nil { + return x.HttpAuth } return "" } -type GetRawChangesResponse struct { - RawChanges []*GetRawChangesResponse_RawChange `protobuf:"bytes,1,rep,name=raw_changes,json=rawChanges,proto3" json:"raw_changes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type CreateRepositoryFromSnapshotResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *GetRawChangesResponse) Reset() { *m = GetRawChangesResponse{} } -func (m *GetRawChangesResponse) String() string { return proto.CompactTextString(m) } -func (*GetRawChangesResponse) ProtoMessage() {} -func (*GetRawChangesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{67} +func (x *CreateRepositoryFromSnapshotResponse) Reset() { + *x = CreateRepositoryFromSnapshotResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetRawChangesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetRawChangesResponse.Unmarshal(m, b) -} -func (m *GetRawChangesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetRawChangesResponse.Marshal(b, m, deterministic) -} -func (m *GetRawChangesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRawChangesResponse.Merge(m, src) -} -func (m *GetRawChangesResponse) XXX_Size() int { - return xxx_messageInfo_GetRawChangesResponse.Size(m) -} -func (m *GetRawChangesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetRawChangesResponse.DiscardUnknown(m) +func (x *CreateRepositoryFromSnapshotResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GetRawChangesResponse proto.InternalMessageInfo +func (*CreateRepositoryFromSnapshotResponse) ProtoMessage() {} -func (m *GetRawChangesResponse) GetRawChanges() []*GetRawChangesResponse_RawChange { - if m != nil { - return m.RawChanges +func (x *CreateRepositoryFromSnapshotResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[65] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type GetRawChangesResponse_RawChange struct { - BlobId string `protobuf:"bytes,1,opt,name=blob_id,json=blobId,proto3" json:"blob_id,omitempty"` - Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - // use fields 9 and 10 in place of 3 and 4 (respectively) - NewPath string `protobuf:"bytes,3,opt,name=new_path,json=newPath,proto3" json:"new_path,omitempty"` // Deprecated: Do not use. - OldPath string `protobuf:"bytes,4,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"` // Deprecated: Do not use. - Operation GetRawChangesResponse_RawChange_Operation `protobuf:"varint,5,opt,name=operation,proto3,enum=gitaly.GetRawChangesResponse_RawChange_Operation" json:"operation,omitempty"` - RawOperation string `protobuf:"bytes,6,opt,name=raw_operation,json=rawOperation,proto3" json:"raw_operation,omitempty"` - OldMode int32 `protobuf:"varint,7,opt,name=old_mode,json=oldMode,proto3" json:"old_mode,omitempty"` - NewMode int32 `protobuf:"varint,8,opt,name=new_mode,json=newMode,proto3" json:"new_mode,omitempty"` - // the following fields, 9 and 10, will eventually replace 3 and 4 - NewPathBytes []byte `protobuf:"bytes,9,opt,name=new_path_bytes,json=newPathBytes,proto3" json:"new_path_bytes,omitempty"` - OldPathBytes []byte `protobuf:"bytes,10,opt,name=old_path_bytes,json=oldPathBytes,proto3" json:"old_path_bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use CreateRepositoryFromSnapshotResponse.ProtoReflect.Descriptor instead. +func (*CreateRepositoryFromSnapshotResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{65} } -func (m *GetRawChangesResponse_RawChange) Reset() { *m = GetRawChangesResponse_RawChange{} } -func (m *GetRawChangesResponse_RawChange) String() string { return proto.CompactTextString(m) } -func (*GetRawChangesResponse_RawChange) ProtoMessage() {} -func (*GetRawChangesResponse_RawChange) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{67, 0} -} +type GetRawChangesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetRawChangesResponse_RawChange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetRawChangesResponse_RawChange.Unmarshal(m, b) -} -func (m *GetRawChangesResponse_RawChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetRawChangesResponse_RawChange.Marshal(b, m, deterministic) -} -func (m *GetRawChangesResponse_RawChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRawChangesResponse_RawChange.Merge(m, src) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + FromRevision string `protobuf:"bytes,2,opt,name=from_revision,json=fromRevision,proto3" json:"from_revision,omitempty"` + ToRevision string `protobuf:"bytes,3,opt,name=to_revision,json=toRevision,proto3" json:"to_revision,omitempty"` } -func (m *GetRawChangesResponse_RawChange) XXX_Size() int { - return xxx_messageInfo_GetRawChangesResponse_RawChange.Size(m) + +func (x *GetRawChangesRequest) Reset() { + *x = GetRawChangesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetRawChangesResponse_RawChange) XXX_DiscardUnknown() { - xxx_messageInfo_GetRawChangesResponse_RawChange.DiscardUnknown(m) + +func (x *GetRawChangesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GetRawChangesResponse_RawChange proto.InternalMessageInfo +func (*GetRawChangesRequest) ProtoMessage() {} -func (m *GetRawChangesResponse_RawChange) GetBlobId() string { - if m != nil { - return m.BlobId +func (x *GetRawChangesRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[66] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *GetRawChangesResponse_RawChange) GetSize() int64 { - if m != nil { - return m.Size +// Deprecated: Use GetRawChangesRequest.ProtoReflect.Descriptor instead. +func (*GetRawChangesRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{66} +} + +func (x *GetRawChangesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return 0 + return nil } -// Deprecated: Do not use. -func (m *GetRawChangesResponse_RawChange) GetNewPath() string { - if m != nil { - return m.NewPath +func (x *GetRawChangesRequest) GetFromRevision() string { + if x != nil { + return x.FromRevision } return "" } -// Deprecated: Do not use. -func (m *GetRawChangesResponse_RawChange) GetOldPath() string { - if m != nil { - return m.OldPath +func (x *GetRawChangesRequest) GetToRevision() string { + if x != nil { + return x.ToRevision } return "" } -func (m *GetRawChangesResponse_RawChange) GetOperation() GetRawChangesResponse_RawChange_Operation { - if m != nil { - return m.Operation - } - return GetRawChangesResponse_RawChange_UNKNOWN +type GetRawChangesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RawChanges []*GetRawChangesResponse_RawChange `protobuf:"bytes,1,rep,name=raw_changes,json=rawChanges,proto3" json:"raw_changes,omitempty"` } -func (m *GetRawChangesResponse_RawChange) GetRawOperation() string { - if m != nil { - return m.RawOperation +func (x *GetRawChangesResponse) Reset() { + *x = GetRawChangesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *GetRawChangesResponse_RawChange) GetOldMode() int32 { - if m != nil { - return m.OldMode - } - return 0 +func (x *GetRawChangesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetRawChangesResponse_RawChange) GetNewMode() int32 { - if m != nil { - return m.NewMode +func (*GetRawChangesResponse) ProtoMessage() {} + +func (x *GetRawChangesResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[67] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *GetRawChangesResponse_RawChange) GetNewPathBytes() []byte { - if m != nil { - return m.NewPathBytes - } - return nil +// Deprecated: Use GetRawChangesResponse.ProtoReflect.Descriptor instead. +func (*GetRawChangesResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{67} } -func (m *GetRawChangesResponse_RawChange) GetOldPathBytes() []byte { - if m != nil { - return m.OldPathBytes +func (x *GetRawChangesResponse) GetRawChanges() []*GetRawChangesResponse_RawChange { + if x != nil { + return x.RawChanges } return nil } type SearchFilesByNameRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` @@ -3247,224 +3620,256 @@ type SearchFilesByNameRequest struct { // parsed using Go's `regexp` package, which is closely related to PCRE, // excluding backreferences, atomic/possesive operators, and some other // features. It has a maximum length of 1000 bytes. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` } -func (m *SearchFilesByNameRequest) Reset() { *m = SearchFilesByNameRequest{} } -func (m *SearchFilesByNameRequest) String() string { return proto.CompactTextString(m) } -func (*SearchFilesByNameRequest) ProtoMessage() {} -func (*SearchFilesByNameRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{68} +func (x *SearchFilesByNameRequest) Reset() { + *x = SearchFilesByNameRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SearchFilesByNameRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SearchFilesByNameRequest.Unmarshal(m, b) -} -func (m *SearchFilesByNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SearchFilesByNameRequest.Marshal(b, m, deterministic) +func (x *SearchFilesByNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SearchFilesByNameRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchFilesByNameRequest.Merge(m, src) -} -func (m *SearchFilesByNameRequest) XXX_Size() int { - return xxx_messageInfo_SearchFilesByNameRequest.Size(m) -} -func (m *SearchFilesByNameRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SearchFilesByNameRequest.DiscardUnknown(m) + +func (*SearchFilesByNameRequest) ProtoMessage() {} + +func (x *SearchFilesByNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[68] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SearchFilesByNameRequest proto.InternalMessageInfo +// Deprecated: Use SearchFilesByNameRequest.ProtoReflect.Descriptor instead. +func (*SearchFilesByNameRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{68} +} -func (m *SearchFilesByNameRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *SearchFilesByNameRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *SearchFilesByNameRequest) GetQuery() string { - if m != nil { - return m.Query +func (x *SearchFilesByNameRequest) GetQuery() string { + if x != nil { + return x.Query } return "" } -func (m *SearchFilesByNameRequest) GetRef() []byte { - if m != nil { - return m.Ref +func (x *SearchFilesByNameRequest) GetRef() []byte { + if x != nil { + return x.Ref } return nil } -func (m *SearchFilesByNameRequest) GetFilter() string { - if m != nil { - return m.Filter +func (x *SearchFilesByNameRequest) GetFilter() string { + if x != nil { + return x.Filter } return "" } type SearchFilesByNameResponse struct { - Files [][]byte `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SearchFilesByNameResponse) Reset() { *m = SearchFilesByNameResponse{} } -func (m *SearchFilesByNameResponse) String() string { return proto.CompactTextString(m) } -func (*SearchFilesByNameResponse) ProtoMessage() {} -func (*SearchFilesByNameResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{69} + Files [][]byte `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` } -func (m *SearchFilesByNameResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SearchFilesByNameResponse.Unmarshal(m, b) -} -func (m *SearchFilesByNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SearchFilesByNameResponse.Marshal(b, m, deterministic) -} -func (m *SearchFilesByNameResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchFilesByNameResponse.Merge(m, src) +func (x *SearchFilesByNameResponse) Reset() { + *x = SearchFilesByNameResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SearchFilesByNameResponse) XXX_Size() int { - return xxx_messageInfo_SearchFilesByNameResponse.Size(m) + +func (x *SearchFilesByNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SearchFilesByNameResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SearchFilesByNameResponse.DiscardUnknown(m) + +func (*SearchFilesByNameResponse) ProtoMessage() {} + +func (x *SearchFilesByNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[69] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SearchFilesByNameResponse proto.InternalMessageInfo +// Deprecated: Use SearchFilesByNameResponse.ProtoReflect.Descriptor instead. +func (*SearchFilesByNameResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{69} +} -func (m *SearchFilesByNameResponse) GetFiles() [][]byte { - if m != nil { - return m.Files +func (x *SearchFilesByNameResponse) GetFiles() [][]byte { + if x != nil { + return x.Files } return nil } type SearchFilesByContentRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` - Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` - ChunkedResponse bool `protobuf:"varint,4,opt,name=chunked_response,json=chunkedResponse,proto3" json:"chunked_response,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SearchFilesByContentRequest) Reset() { *m = SearchFilesByContentRequest{} } -func (m *SearchFilesByContentRequest) String() string { return proto.CompactTextString(m) } -func (*SearchFilesByContentRequest) ProtoMessage() {} -func (*SearchFilesByContentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{70} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SearchFilesByContentRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SearchFilesByContentRequest.Unmarshal(m, b) -} -func (m *SearchFilesByContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SearchFilesByContentRequest.Marshal(b, m, deterministic) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` + Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` + ChunkedResponse bool `protobuf:"varint,4,opt,name=chunked_response,json=chunkedResponse,proto3" json:"chunked_response,omitempty"` } -func (m *SearchFilesByContentRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchFilesByContentRequest.Merge(m, src) + +func (x *SearchFilesByContentRequest) Reset() { + *x = SearchFilesByContentRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SearchFilesByContentRequest) XXX_Size() int { - return xxx_messageInfo_SearchFilesByContentRequest.Size(m) + +func (x *SearchFilesByContentRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SearchFilesByContentRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SearchFilesByContentRequest.DiscardUnknown(m) + +func (*SearchFilesByContentRequest) ProtoMessage() {} + +func (x *SearchFilesByContentRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[70] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SearchFilesByContentRequest proto.InternalMessageInfo +// Deprecated: Use SearchFilesByContentRequest.ProtoReflect.Descriptor instead. +func (*SearchFilesByContentRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{70} +} -func (m *SearchFilesByContentRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *SearchFilesByContentRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *SearchFilesByContentRequest) GetQuery() string { - if m != nil { - return m.Query +func (x *SearchFilesByContentRequest) GetQuery() string { + if x != nil { + return x.Query } return "" } -func (m *SearchFilesByContentRequest) GetRef() []byte { - if m != nil { - return m.Ref +func (x *SearchFilesByContentRequest) GetRef() []byte { + if x != nil { + return x.Ref } return nil } -func (m *SearchFilesByContentRequest) GetChunkedResponse() bool { - if m != nil { - return m.ChunkedResponse +func (x *SearchFilesByContentRequest) GetChunkedResponse() bool { + if x != nil { + return x.ChunkedResponse } return false } type SearchFilesByContentResponse struct { - Matches [][]byte `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` - MatchData []byte `protobuf:"bytes,2,opt,name=match_data,json=matchData,proto3" json:"match_data,omitempty"` - EndOfMatch bool `protobuf:"varint,3,opt,name=end_of_match,json=endOfMatch,proto3" json:"end_of_match,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SearchFilesByContentResponse) Reset() { *m = SearchFilesByContentResponse{} } -func (m *SearchFilesByContentResponse) String() string { return proto.CompactTextString(m) } -func (*SearchFilesByContentResponse) ProtoMessage() {} -func (*SearchFilesByContentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{71} + Matches [][]byte `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` + MatchData []byte `protobuf:"bytes,2,opt,name=match_data,json=matchData,proto3" json:"match_data,omitempty"` + EndOfMatch bool `protobuf:"varint,3,opt,name=end_of_match,json=endOfMatch,proto3" json:"end_of_match,omitempty"` } -func (m *SearchFilesByContentResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SearchFilesByContentResponse.Unmarshal(m, b) -} -func (m *SearchFilesByContentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SearchFilesByContentResponse.Marshal(b, m, deterministic) -} -func (m *SearchFilesByContentResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchFilesByContentResponse.Merge(m, src) +func (x *SearchFilesByContentResponse) Reset() { + *x = SearchFilesByContentResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SearchFilesByContentResponse) XXX_Size() int { - return xxx_messageInfo_SearchFilesByContentResponse.Size(m) + +func (x *SearchFilesByContentResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SearchFilesByContentResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SearchFilesByContentResponse.DiscardUnknown(m) + +func (*SearchFilesByContentResponse) ProtoMessage() {} + +func (x *SearchFilesByContentResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[71] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SearchFilesByContentResponse proto.InternalMessageInfo +// Deprecated: Use SearchFilesByContentResponse.ProtoReflect.Descriptor instead. +func (*SearchFilesByContentResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{71} +} -func (m *SearchFilesByContentResponse) GetMatches() [][]byte { - if m != nil { - return m.Matches +func (x *SearchFilesByContentResponse) GetMatches() [][]byte { + if x != nil { + return x.Matches } return nil } -func (m *SearchFilesByContentResponse) GetMatchData() []byte { - if m != nil { - return m.MatchData +func (x *SearchFilesByContentResponse) GetMatchData() []byte { + if x != nil { + return x.MatchData } return nil } -func (m *SearchFilesByContentResponse) GetEndOfMatch() bool { - if m != nil { - return m.EndOfMatch +func (x *SearchFilesByContentResponse) GetEndOfMatch() bool { + if x != nil { + return x.EndOfMatch } return false } // Remote represents a git remote repository. type Remote struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // url is the URL of the remote repository. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // http_authorization_header is the HTTP header which should be added to @@ -3481,2824 +3886,3071 @@ type Remote struct { // tags of the source repository. // // If no refspecs are given, this defaults to "all_refs". - MirrorRefmaps []string `protobuf:"bytes,4,rep,name=mirror_refmaps,json=mirrorRefmaps,proto3" json:"mirror_refmaps,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MirrorRefmaps []string `protobuf:"bytes,4,rep,name=mirror_refmaps,json=mirrorRefmaps,proto3" json:"mirror_refmaps,omitempty"` } -func (m *Remote) Reset() { *m = Remote{} } -func (m *Remote) String() string { return proto.CompactTextString(m) } -func (*Remote) ProtoMessage() {} -func (*Remote) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{72} +func (x *Remote) Reset() { + *x = Remote{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Remote) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Remote.Unmarshal(m, b) -} -func (m *Remote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Remote.Marshal(b, m, deterministic) -} -func (m *Remote) XXX_Merge(src proto.Message) { - xxx_messageInfo_Remote.Merge(m, src) -} -func (m *Remote) XXX_Size() int { - return xxx_messageInfo_Remote.Size(m) -} -func (m *Remote) XXX_DiscardUnknown() { - xxx_messageInfo_Remote.DiscardUnknown(m) +func (x *Remote) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Remote proto.InternalMessageInfo +func (*Remote) ProtoMessage() {} -func (m *Remote) GetUrl() string { - if m != nil { - return m.Url +func (x *Remote) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[72] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *Remote) GetHttpAuthorizationHeader() string { - if m != nil { - return m.HttpAuthorizationHeader - } - return "" +// Deprecated: Use Remote.ProtoReflect.Descriptor instead. +func (*Remote) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{72} } -func (m *Remote) GetMirrorRefmaps() []string { - if m != nil { - return m.MirrorRefmaps +func (x *Remote) GetUrl() string { + if x != nil { + return x.Url } - return nil -} - -type GetObjectDirectorySizeRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetObjectDirectorySizeRequest) Reset() { *m = GetObjectDirectorySizeRequest{} } -func (m *GetObjectDirectorySizeRequest) String() string { return proto.CompactTextString(m) } -func (*GetObjectDirectorySizeRequest) ProtoMessage() {} -func (*GetObjectDirectorySizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{73} + return "" } -func (m *GetObjectDirectorySizeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetObjectDirectorySizeRequest.Unmarshal(m, b) -} -func (m *GetObjectDirectorySizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetObjectDirectorySizeRequest.Marshal(b, m, deterministic) -} -func (m *GetObjectDirectorySizeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetObjectDirectorySizeRequest.Merge(m, src) -} -func (m *GetObjectDirectorySizeRequest) XXX_Size() int { - return xxx_messageInfo_GetObjectDirectorySizeRequest.Size(m) -} -func (m *GetObjectDirectorySizeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetObjectDirectorySizeRequest.DiscardUnknown(m) +func (x *Remote) GetHttpAuthorizationHeader() string { + if x != nil { + return x.HttpAuthorizationHeader + } + return "" } -var xxx_messageInfo_GetObjectDirectorySizeRequest proto.InternalMessageInfo - -func (m *GetObjectDirectorySizeRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *Remote) GetMirrorRefmaps() []string { + if x != nil { + return x.MirrorRefmaps } return nil } -type GetObjectDirectorySizeResponse struct { - // Object directory size in kilobytes - Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetObjectDirectorySizeResponse) Reset() { *m = GetObjectDirectorySizeResponse{} } -func (m *GetObjectDirectorySizeResponse) String() string { return proto.CompactTextString(m) } -func (*GetObjectDirectorySizeResponse) ProtoMessage() {} -func (*GetObjectDirectorySizeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{74} -} +type GetObjectDirectorySizeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetObjectDirectorySizeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetObjectDirectorySizeResponse.Unmarshal(m, b) -} -func (m *GetObjectDirectorySizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetObjectDirectorySizeResponse.Marshal(b, m, deterministic) -} -func (m *GetObjectDirectorySizeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetObjectDirectorySizeResponse.Merge(m, src) -} -func (m *GetObjectDirectorySizeResponse) XXX_Size() int { - return xxx_messageInfo_GetObjectDirectorySizeResponse.Size(m) -} -func (m *GetObjectDirectorySizeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetObjectDirectorySizeResponse.DiscardUnknown(m) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -var xxx_messageInfo_GetObjectDirectorySizeResponse proto.InternalMessageInfo - -func (m *GetObjectDirectorySizeResponse) GetSize() int64 { - if m != nil { - return m.Size +func (x *GetObjectDirectorySizeRequest) Reset() { + *x = GetObjectDirectorySizeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -type CloneFromPoolRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Pool *ObjectPool `protobuf:"bytes,2,opt,name=pool,proto3" json:"pool,omitempty"` - Remote *Remote `protobuf:"bytes,3,opt,name=remote,proto3" json:"remote,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GetObjectDirectorySizeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CloneFromPoolRequest) Reset() { *m = CloneFromPoolRequest{} } -func (m *CloneFromPoolRequest) String() string { return proto.CompactTextString(m) } -func (*CloneFromPoolRequest) ProtoMessage() {} -func (*CloneFromPoolRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{75} -} - -func (m *CloneFromPoolRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CloneFromPoolRequest.Unmarshal(m, b) -} -func (m *CloneFromPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CloneFromPoolRequest.Marshal(b, m, deterministic) -} -func (m *CloneFromPoolRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloneFromPoolRequest.Merge(m, src) -} -func (m *CloneFromPoolRequest) XXX_Size() int { - return xxx_messageInfo_CloneFromPoolRequest.Size(m) -} -func (m *CloneFromPoolRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CloneFromPoolRequest.DiscardUnknown(m) -} +func (*GetObjectDirectorySizeRequest) ProtoMessage() {} -var xxx_messageInfo_CloneFromPoolRequest proto.InternalMessageInfo - -func (m *CloneFromPoolRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *GetObjectDirectorySizeRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[73] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *CloneFromPoolRequest) GetPool() *ObjectPool { - if m != nil { - return m.Pool - } - return nil +// Deprecated: Use GetObjectDirectorySizeRequest.ProtoReflect.Descriptor instead. +func (*GetObjectDirectorySizeRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{73} } -func (m *CloneFromPoolRequest) GetRemote() *Remote { - if m != nil { - return m.Remote +func (x *GetObjectDirectorySizeRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -type CloneFromPoolResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CloneFromPoolResponse) Reset() { *m = CloneFromPoolResponse{} } -func (m *CloneFromPoolResponse) String() string { return proto.CompactTextString(m) } -func (*CloneFromPoolResponse) ProtoMessage() {} -func (*CloneFromPoolResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{76} -} - -func (m *CloneFromPoolResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CloneFromPoolResponse.Unmarshal(m, b) -} -func (m *CloneFromPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CloneFromPoolResponse.Marshal(b, m, deterministic) -} -func (m *CloneFromPoolResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloneFromPoolResponse.Merge(m, src) -} -func (m *CloneFromPoolResponse) XXX_Size() int { - return xxx_messageInfo_CloneFromPoolResponse.Size(m) -} -func (m *CloneFromPoolResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CloneFromPoolResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CloneFromPoolResponse proto.InternalMessageInfo +type GetObjectDirectorySizeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type CloneFromPoolInternalRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Pool *ObjectPool `protobuf:"bytes,2,opt,name=pool,proto3" json:"pool,omitempty"` - SourceRepository *Repository `protobuf:"bytes,3,opt,name=source_repository,json=sourceRepository,proto3" json:"source_repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // Object directory size in kilobytes + Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` } -func (m *CloneFromPoolInternalRequest) Reset() { *m = CloneFromPoolInternalRequest{} } -func (m *CloneFromPoolInternalRequest) String() string { return proto.CompactTextString(m) } -func (*CloneFromPoolInternalRequest) ProtoMessage() {} -func (*CloneFromPoolInternalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{77} +func (x *GetObjectDirectorySizeResponse) Reset() { + *x = GetObjectDirectorySizeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CloneFromPoolInternalRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CloneFromPoolInternalRequest.Unmarshal(m, b) -} -func (m *CloneFromPoolInternalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CloneFromPoolInternalRequest.Marshal(b, m, deterministic) -} -func (m *CloneFromPoolInternalRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloneFromPoolInternalRequest.Merge(m, src) -} -func (m *CloneFromPoolInternalRequest) XXX_Size() int { - return xxx_messageInfo_CloneFromPoolInternalRequest.Size(m) -} -func (m *CloneFromPoolInternalRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CloneFromPoolInternalRequest.DiscardUnknown(m) +func (x *GetObjectDirectorySizeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CloneFromPoolInternalRequest proto.InternalMessageInfo +func (*GetObjectDirectorySizeResponse) ProtoMessage() {} -func (m *CloneFromPoolInternalRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *GetObjectDirectorySizeResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[74] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *CloneFromPoolInternalRequest) GetPool() *ObjectPool { - if m != nil { - return m.Pool - } - return nil +// Deprecated: Use GetObjectDirectorySizeResponse.ProtoReflect.Descriptor instead. +func (*GetObjectDirectorySizeResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{74} } -func (m *CloneFromPoolInternalRequest) GetSourceRepository() *Repository { - if m != nil { - return m.SourceRepository +func (x *GetObjectDirectorySizeResponse) GetSize() int64 { + if x != nil { + return x.Size } - return nil -} - -type CloneFromPoolInternalResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CloneFromPoolInternalResponse) Reset() { *m = CloneFromPoolInternalResponse{} } -func (m *CloneFromPoolInternalResponse) String() string { return proto.CompactTextString(m) } -func (*CloneFromPoolInternalResponse) ProtoMessage() {} -func (*CloneFromPoolInternalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{78} -} - -func (m *CloneFromPoolInternalResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CloneFromPoolInternalResponse.Unmarshal(m, b) -} -func (m *CloneFromPoolInternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CloneFromPoolInternalResponse.Marshal(b, m, deterministic) -} -func (m *CloneFromPoolInternalResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloneFromPoolInternalResponse.Merge(m, src) -} -func (m *CloneFromPoolInternalResponse) XXX_Size() int { - return xxx_messageInfo_CloneFromPoolInternalResponse.Size(m) -} -func (m *CloneFromPoolInternalResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CloneFromPoolInternalResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CloneFromPoolInternalResponse proto.InternalMessageInfo - -type RemoveRepositoryRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return 0 } -func (m *RemoveRepositoryRequest) Reset() { *m = RemoveRepositoryRequest{} } -func (m *RemoveRepositoryRequest) String() string { return proto.CompactTextString(m) } -func (*RemoveRepositoryRequest) ProtoMessage() {} -func (*RemoveRepositoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{79} -} +type CloneFromPoolRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RemoveRepositoryRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoveRepositoryRequest.Unmarshal(m, b) -} -func (m *RemoveRepositoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoveRepositoryRequest.Marshal(b, m, deterministic) -} -func (m *RemoveRepositoryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveRepositoryRequest.Merge(m, src) -} -func (m *RemoveRepositoryRequest) XXX_Size() int { - return xxx_messageInfo_RemoveRepositoryRequest.Size(m) -} -func (m *RemoveRepositoryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveRepositoryRequest.DiscardUnknown(m) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Pool *ObjectPool `protobuf:"bytes,2,opt,name=pool,proto3" json:"pool,omitempty"` + Remote *Remote `protobuf:"bytes,3,opt,name=remote,proto3" json:"remote,omitempty"` } -var xxx_messageInfo_RemoveRepositoryRequest proto.InternalMessageInfo - -func (m *RemoveRepositoryRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CloneFromPoolRequest) Reset() { + *x = CloneFromPoolRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil -} - -type RemoveRepositoryResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoveRepositoryResponse) Reset() { *m = RemoveRepositoryResponse{} } -func (m *RemoveRepositoryResponse) String() string { return proto.CompactTextString(m) } -func (*RemoveRepositoryResponse) ProtoMessage() {} -func (*RemoveRepositoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{80} -} - -func (m *RemoveRepositoryResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoveRepositoryResponse.Unmarshal(m, b) -} -func (m *RemoveRepositoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoveRepositoryResponse.Marshal(b, m, deterministic) -} -func (m *RemoveRepositoryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveRepositoryResponse.Merge(m, src) -} -func (m *RemoveRepositoryResponse) XXX_Size() int { - return xxx_messageInfo_RemoveRepositoryResponse.Size(m) -} -func (m *RemoveRepositoryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveRepositoryResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoveRepositoryResponse proto.InternalMessageInfo - -type RenameRepositoryRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - RelativePath string `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *RenameRepositoryRequest) Reset() { *m = RenameRepositoryRequest{} } -func (m *RenameRepositoryRequest) String() string { return proto.CompactTextString(m) } -func (*RenameRepositoryRequest) ProtoMessage() {} -func (*RenameRepositoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{81} -} - -func (m *RenameRepositoryRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RenameRepositoryRequest.Unmarshal(m, b) -} -func (m *RenameRepositoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RenameRepositoryRequest.Marshal(b, m, deterministic) -} -func (m *RenameRepositoryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RenameRepositoryRequest.Merge(m, src) -} -func (m *RenameRepositoryRequest) XXX_Size() int { - return xxx_messageInfo_RenameRepositoryRequest.Size(m) -} -func (m *RenameRepositoryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RenameRepositoryRequest.DiscardUnknown(m) +func (x *CloneFromPoolRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RenameRepositoryRequest proto.InternalMessageInfo +func (*CloneFromPoolRequest) ProtoMessage() {} -func (m *RenameRepositoryRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CloneFromPoolRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[75] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *RenameRepositoryRequest) GetRelativePath() string { - if m != nil { - return m.RelativePath - } - return "" -} - -type RenameRepositoryResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RenameRepositoryResponse) Reset() { *m = RenameRepositoryResponse{} } -func (m *RenameRepositoryResponse) String() string { return proto.CompactTextString(m) } -func (*RenameRepositoryResponse) ProtoMessage() {} -func (*RenameRepositoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{82} -} - -func (m *RenameRepositoryResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RenameRepositoryResponse.Unmarshal(m, b) -} -func (m *RenameRepositoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RenameRepositoryResponse.Marshal(b, m, deterministic) -} -func (m *RenameRepositoryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RenameRepositoryResponse.Merge(m, src) -} -func (m *RenameRepositoryResponse) XXX_Size() int { - return xxx_messageInfo_RenameRepositoryResponse.Size(m) -} -func (m *RenameRepositoryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RenameRepositoryResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RenameRepositoryResponse proto.InternalMessageInfo - -type ReplicateRepositoryRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Source *Repository `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReplicateRepositoryRequest) Reset() { *m = ReplicateRepositoryRequest{} } -func (m *ReplicateRepositoryRequest) String() string { return proto.CompactTextString(m) } -func (*ReplicateRepositoryRequest) ProtoMessage() {} -func (*ReplicateRepositoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{83} -} - -func (m *ReplicateRepositoryRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReplicateRepositoryRequest.Unmarshal(m, b) -} -func (m *ReplicateRepositoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReplicateRepositoryRequest.Marshal(b, m, deterministic) -} -func (m *ReplicateRepositoryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicateRepositoryRequest.Merge(m, src) -} -func (m *ReplicateRepositoryRequest) XXX_Size() int { - return xxx_messageInfo_ReplicateRepositoryRequest.Size(m) -} -func (m *ReplicateRepositoryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicateRepositoryRequest.DiscardUnknown(m) +// Deprecated: Use CloneFromPoolRequest.ProtoReflect.Descriptor instead. +func (*CloneFromPoolRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{75} } -var xxx_messageInfo_ReplicateRepositoryRequest proto.InternalMessageInfo - -func (m *ReplicateRepositoryRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CloneFromPoolRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *ReplicateRepositoryRequest) GetSource() *Repository { - if m != nil { - return m.Source +func (x *CloneFromPoolRequest) GetPool() *ObjectPool { + if x != nil { + return x.Pool } return nil } -type ReplicateRepositoryResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReplicateRepositoryResponse) Reset() { *m = ReplicateRepositoryResponse{} } -func (m *ReplicateRepositoryResponse) String() string { return proto.CompactTextString(m) } -func (*ReplicateRepositoryResponse) ProtoMessage() {} -func (*ReplicateRepositoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{84} -} - -func (m *ReplicateRepositoryResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReplicateRepositoryResponse.Unmarshal(m, b) -} -func (m *ReplicateRepositoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReplicateRepositoryResponse.Marshal(b, m, deterministic) -} -func (m *ReplicateRepositoryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicateRepositoryResponse.Merge(m, src) -} -func (m *ReplicateRepositoryResponse) XXX_Size() int { - return xxx_messageInfo_ReplicateRepositoryResponse.Size(m) -} -func (m *ReplicateRepositoryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicateRepositoryResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicateRepositoryResponse proto.InternalMessageInfo - -type OptimizeRepositoryRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OptimizeRepositoryRequest) Reset() { *m = OptimizeRepositoryRequest{} } -func (m *OptimizeRepositoryRequest) String() string { return proto.CompactTextString(m) } -func (*OptimizeRepositoryRequest) ProtoMessage() {} -func (*OptimizeRepositoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{85} -} - -func (m *OptimizeRepositoryRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OptimizeRepositoryRequest.Unmarshal(m, b) -} -func (m *OptimizeRepositoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OptimizeRepositoryRequest.Marshal(b, m, deterministic) -} -func (m *OptimizeRepositoryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OptimizeRepositoryRequest.Merge(m, src) -} -func (m *OptimizeRepositoryRequest) XXX_Size() int { - return xxx_messageInfo_OptimizeRepositoryRequest.Size(m) -} -func (m *OptimizeRepositoryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_OptimizeRepositoryRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_OptimizeRepositoryRequest proto.InternalMessageInfo - -func (m *OptimizeRepositoryRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *CloneFromPoolRequest) GetRemote() *Remote { + if x != nil { + return x.Remote } return nil } -type OptimizeRepositoryResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OptimizeRepositoryResponse) Reset() { *m = OptimizeRepositoryResponse{} } -func (m *OptimizeRepositoryResponse) String() string { return proto.CompactTextString(m) } -func (*OptimizeRepositoryResponse) ProtoMessage() {} -func (*OptimizeRepositoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9b1768cf174c79b, []int{86} -} - -func (m *OptimizeRepositoryResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OptimizeRepositoryResponse.Unmarshal(m, b) -} -func (m *OptimizeRepositoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OptimizeRepositoryResponse.Marshal(b, m, deterministic) -} -func (m *OptimizeRepositoryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OptimizeRepositoryResponse.Merge(m, src) -} -func (m *OptimizeRepositoryResponse) XXX_Size() int { - return xxx_messageInfo_OptimizeRepositoryResponse.Size(m) -} -func (m *OptimizeRepositoryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_OptimizeRepositoryResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_OptimizeRepositoryResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("gitaly.WriteCommitGraphRequest_SplitStrategy", WriteCommitGraphRequest_SplitStrategy_name, WriteCommitGraphRequest_SplitStrategy_value) - proto.RegisterEnum("gitaly.GetArchiveRequest_Format", GetArchiveRequest_Format_name, GetArchiveRequest_Format_value) - proto.RegisterEnum("gitaly.GetRawChangesResponse_RawChange_Operation", GetRawChangesResponse_RawChange_Operation_name, GetRawChangesResponse_RawChange_Operation_value) - proto.RegisterType((*RepositoryExistsRequest)(nil), "gitaly.RepositoryExistsRequest") - proto.RegisterType((*RepositoryExistsResponse)(nil), "gitaly.RepositoryExistsResponse") - proto.RegisterType((*RepackIncrementalRequest)(nil), "gitaly.RepackIncrementalRequest") - proto.RegisterType((*RepackIncrementalResponse)(nil), "gitaly.RepackIncrementalResponse") - proto.RegisterType((*RepackFullRequest)(nil), "gitaly.RepackFullRequest") - proto.RegisterType((*RepackFullResponse)(nil), "gitaly.RepackFullResponse") - proto.RegisterType((*MidxRepackRequest)(nil), "gitaly.MidxRepackRequest") - proto.RegisterType((*MidxRepackResponse)(nil), "gitaly.MidxRepackResponse") - proto.RegisterType((*GarbageCollectRequest)(nil), "gitaly.GarbageCollectRequest") - proto.RegisterType((*GarbageCollectResponse)(nil), "gitaly.GarbageCollectResponse") - proto.RegisterType((*WriteCommitGraphRequest)(nil), "gitaly.WriteCommitGraphRequest") - proto.RegisterType((*WriteCommitGraphResponse)(nil), "gitaly.WriteCommitGraphResponse") - proto.RegisterType((*CleanupRequest)(nil), "gitaly.CleanupRequest") - proto.RegisterType((*CleanupResponse)(nil), "gitaly.CleanupResponse") - proto.RegisterType((*RepositorySizeRequest)(nil), "gitaly.RepositorySizeRequest") - proto.RegisterType((*RepositorySizeResponse)(nil), "gitaly.RepositorySizeResponse") - proto.RegisterType((*ApplyGitattributesRequest)(nil), "gitaly.ApplyGitattributesRequest") - proto.RegisterType((*ApplyGitattributesResponse)(nil), "gitaly.ApplyGitattributesResponse") - proto.RegisterType((*FetchRemoteRequest)(nil), "gitaly.FetchRemoteRequest") - proto.RegisterType((*FetchRemoteResponse)(nil), "gitaly.FetchRemoteResponse") - proto.RegisterType((*CreateRepositoryRequest)(nil), "gitaly.CreateRepositoryRequest") - proto.RegisterType((*CreateRepositoryResponse)(nil), "gitaly.CreateRepositoryResponse") - proto.RegisterType((*GetArchiveRequest)(nil), "gitaly.GetArchiveRequest") - proto.RegisterType((*GetArchiveResponse)(nil), "gitaly.GetArchiveResponse") - proto.RegisterType((*HasLocalBranchesRequest)(nil), "gitaly.HasLocalBranchesRequest") - proto.RegisterType((*HasLocalBranchesResponse)(nil), "gitaly.HasLocalBranchesResponse") - proto.RegisterType((*FetchSourceBranchRequest)(nil), "gitaly.FetchSourceBranchRequest") - proto.RegisterType((*FetchSourceBranchResponse)(nil), "gitaly.FetchSourceBranchResponse") - proto.RegisterType((*FsckRequest)(nil), "gitaly.FsckRequest") - proto.RegisterType((*FsckResponse)(nil), "gitaly.FsckResponse") - proto.RegisterType((*WriteRefRequest)(nil), "gitaly.WriteRefRequest") - proto.RegisterType((*WriteRefResponse)(nil), "gitaly.WriteRefResponse") - proto.RegisterType((*FindMergeBaseRequest)(nil), "gitaly.FindMergeBaseRequest") - proto.RegisterType((*FindMergeBaseResponse)(nil), "gitaly.FindMergeBaseResponse") - proto.RegisterType((*CreateForkRequest)(nil), "gitaly.CreateForkRequest") - proto.RegisterType((*CreateForkResponse)(nil), "gitaly.CreateForkResponse") - proto.RegisterType((*IsRebaseInProgressRequest)(nil), "gitaly.IsRebaseInProgressRequest") - proto.RegisterType((*IsRebaseInProgressResponse)(nil), "gitaly.IsRebaseInProgressResponse") - proto.RegisterType((*IsSquashInProgressRequest)(nil), "gitaly.IsSquashInProgressRequest") - proto.RegisterType((*IsSquashInProgressResponse)(nil), "gitaly.IsSquashInProgressResponse") - proto.RegisterType((*CreateRepositoryFromURLRequest)(nil), "gitaly.CreateRepositoryFromURLRequest") - proto.RegisterType((*CreateRepositoryFromURLResponse)(nil), "gitaly.CreateRepositoryFromURLResponse") - proto.RegisterType((*CreateBundleRequest)(nil), "gitaly.CreateBundleRequest") - proto.RegisterType((*CreateBundleResponse)(nil), "gitaly.CreateBundleResponse") - proto.RegisterType((*GetConfigRequest)(nil), "gitaly.GetConfigRequest") - proto.RegisterType((*GetConfigResponse)(nil), "gitaly.GetConfigResponse") - proto.RegisterType((*SetConfigRequest)(nil), "gitaly.SetConfigRequest") - proto.RegisterType((*SetConfigRequest_Entry)(nil), "gitaly.SetConfigRequest.Entry") - proto.RegisterType((*SetConfigResponse)(nil), "gitaly.SetConfigResponse") - proto.RegisterType((*DeleteConfigRequest)(nil), "gitaly.DeleteConfigRequest") - proto.RegisterType((*DeleteConfigResponse)(nil), "gitaly.DeleteConfigResponse") - proto.RegisterType((*RestoreCustomHooksRequest)(nil), "gitaly.RestoreCustomHooksRequest") - proto.RegisterType((*RestoreCustomHooksResponse)(nil), "gitaly.RestoreCustomHooksResponse") - proto.RegisterType((*BackupCustomHooksRequest)(nil), "gitaly.BackupCustomHooksRequest") - proto.RegisterType((*BackupCustomHooksResponse)(nil), "gitaly.BackupCustomHooksResponse") - proto.RegisterType((*CreateRepositoryFromBundleRequest)(nil), "gitaly.CreateRepositoryFromBundleRequest") - proto.RegisterType((*CreateRepositoryFromBundleResponse)(nil), "gitaly.CreateRepositoryFromBundleResponse") - proto.RegisterType((*FindLicenseRequest)(nil), "gitaly.FindLicenseRequest") - proto.RegisterType((*FindLicenseResponse)(nil), "gitaly.FindLicenseResponse") - proto.RegisterType((*GetInfoAttributesRequest)(nil), "gitaly.GetInfoAttributesRequest") - proto.RegisterType((*GetInfoAttributesResponse)(nil), "gitaly.GetInfoAttributesResponse") - proto.RegisterType((*CalculateChecksumRequest)(nil), "gitaly.CalculateChecksumRequest") - proto.RegisterType((*CalculateChecksumResponse)(nil), "gitaly.CalculateChecksumResponse") - proto.RegisterType((*GetSnapshotRequest)(nil), "gitaly.GetSnapshotRequest") - proto.RegisterType((*GetSnapshotResponse)(nil), "gitaly.GetSnapshotResponse") - proto.RegisterType((*CreateRepositoryFromSnapshotRequest)(nil), "gitaly.CreateRepositoryFromSnapshotRequest") - proto.RegisterType((*CreateRepositoryFromSnapshotResponse)(nil), "gitaly.CreateRepositoryFromSnapshotResponse") - proto.RegisterType((*GetRawChangesRequest)(nil), "gitaly.GetRawChangesRequest") - proto.RegisterType((*GetRawChangesResponse)(nil), "gitaly.GetRawChangesResponse") - proto.RegisterType((*GetRawChangesResponse_RawChange)(nil), "gitaly.GetRawChangesResponse.RawChange") - proto.RegisterType((*SearchFilesByNameRequest)(nil), "gitaly.SearchFilesByNameRequest") - proto.RegisterType((*SearchFilesByNameResponse)(nil), "gitaly.SearchFilesByNameResponse") - proto.RegisterType((*SearchFilesByContentRequest)(nil), "gitaly.SearchFilesByContentRequest") - proto.RegisterType((*SearchFilesByContentResponse)(nil), "gitaly.SearchFilesByContentResponse") - proto.RegisterType((*Remote)(nil), "gitaly.Remote") - proto.RegisterType((*GetObjectDirectorySizeRequest)(nil), "gitaly.GetObjectDirectorySizeRequest") - proto.RegisterType((*GetObjectDirectorySizeResponse)(nil), "gitaly.GetObjectDirectorySizeResponse") - proto.RegisterType((*CloneFromPoolRequest)(nil), "gitaly.CloneFromPoolRequest") - proto.RegisterType((*CloneFromPoolResponse)(nil), "gitaly.CloneFromPoolResponse") - proto.RegisterType((*CloneFromPoolInternalRequest)(nil), "gitaly.CloneFromPoolInternalRequest") - proto.RegisterType((*CloneFromPoolInternalResponse)(nil), "gitaly.CloneFromPoolInternalResponse") - proto.RegisterType((*RemoveRepositoryRequest)(nil), "gitaly.RemoveRepositoryRequest") - proto.RegisterType((*RemoveRepositoryResponse)(nil), "gitaly.RemoveRepositoryResponse") - proto.RegisterType((*RenameRepositoryRequest)(nil), "gitaly.RenameRepositoryRequest") - proto.RegisterType((*RenameRepositoryResponse)(nil), "gitaly.RenameRepositoryResponse") - proto.RegisterType((*ReplicateRepositoryRequest)(nil), "gitaly.ReplicateRepositoryRequest") - proto.RegisterType((*ReplicateRepositoryResponse)(nil), "gitaly.ReplicateRepositoryResponse") - proto.RegisterType((*OptimizeRepositoryRequest)(nil), "gitaly.OptimizeRepositoryRequest") - proto.RegisterType((*OptimizeRepositoryResponse)(nil), "gitaly.OptimizeRepositoryResponse") -} - -func init() { proto.RegisterFile("repository-service.proto", fileDescriptor_e9b1768cf174c79b) } - -var fileDescriptor_e9b1768cf174c79b = []byte{ - // 3185 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5a, 0x4b, 0x6f, 0x1b, 0xc9, - 0xf1, 0x37, 0xf5, 0xe0, 0xa3, 0x48, 0xd9, 0x54, 0x4b, 0xb6, 0xa8, 0xb1, 0x64, 0xd9, 0x63, 0xaf, - 0xd7, 0xeb, 0xf5, 0xca, 0xbb, 0xf2, 0x02, 0x7f, 0xff, 0x13, 0x04, 0x81, 0xa8, 0xb7, 0x6d, 0x3d, - 0x76, 0x28, 0x67, 0xb1, 0x06, 0x16, 0xdc, 0xe1, 0xb0, 0x29, 0x4e, 0x34, 0x9c, 0xa1, 0x7b, 0x9a, - 0x96, 0xb5, 0x40, 0x0e, 0x09, 0x90, 0x43, 0x80, 0x60, 0x4f, 0x41, 0x36, 0xc7, 0xdc, 0x02, 0xe4, - 0x13, 0xe4, 0x92, 0x43, 0x2e, 0xb9, 0xe4, 0x13, 0xec, 0x57, 0x08, 0x90, 0x2f, 0x90, 0x53, 0xd0, - 0x8f, 0x99, 0x9e, 0xe1, 0xcc, 0x70, 0x1d, 0x90, 0xd8, 0xdc, 0xa6, 0xab, 0xba, 0xab, 0xaa, 0xbb, - 0xab, 0xab, 0xbb, 0x7e, 0x35, 0x50, 0x23, 0xb8, 0xef, 0xf9, 0x36, 0xf5, 0xc8, 0xe5, 0x47, 0x3e, - 0x26, 0x6f, 0x6c, 0x0b, 0xaf, 0xf7, 0x89, 0x47, 0x3d, 0x94, 0x3f, 0xb3, 0xa9, 0xe9, 0x5c, 0x6a, - 0xe0, 0xd8, 0x2e, 0x15, 0x34, 0xad, 0xe2, 0x77, 0x4d, 0x82, 0xdb, 0xa2, 0xa5, 0x37, 0x60, 0xc9, - 0x08, 0x47, 0xef, 0xbc, 0xb5, 0x7d, 0xea, 0x1b, 0xf8, 0xf5, 0x00, 0xfb, 0x14, 0x3d, 0x05, 0x50, - 0x82, 0x6b, 0xb9, 0xdb, 0xb9, 0x07, 0xe5, 0x0d, 0xb4, 0x2e, 0x24, 0xae, 0xab, 0x41, 0xf5, 0x99, - 0x3f, 0xfc, 0xfd, 0x51, 0xce, 0x88, 0xf4, 0xd5, 0x37, 0xa0, 0x96, 0x14, 0xea, 0xf7, 0x3d, 0xd7, - 0xc7, 0xe8, 0x06, 0xe4, 0x31, 0xa7, 0x70, 0x89, 0x45, 0x43, 0xb6, 0xf4, 0x53, 0x3e, 0xc6, 0xb4, - 0xce, 0x0f, 0x5c, 0x8b, 0xe0, 0x1e, 0x76, 0xa9, 0xe9, 0x8c, 0x6f, 0xc9, 0x4d, 0x58, 0x4e, 0x91, - 0x2a, 0x4c, 0xd1, 0x09, 0xcc, 0x0b, 0xe6, 0xee, 0xc0, 0x19, 0x5f, 0x17, 0xba, 0x0b, 0x73, 0x16, - 0xc1, 0x26, 0xc5, 0xcd, 0x96, 0x4d, 0x7b, 0x66, 0xbf, 0x36, 0xc5, 0x27, 0x58, 0x11, 0xc4, 0x3a, - 0xa7, 0xe9, 0x8b, 0x80, 0xa2, 0x3a, 0xa5, 0x25, 0x87, 0x30, 0x7f, 0x68, 0xb7, 0xdf, 0x0a, 0xce, - 0xf8, 0xb3, 0x5e, 0x04, 0x14, 0x15, 0x27, 0x95, 0xfc, 0x36, 0x07, 0xd7, 0xf7, 0x4c, 0xd2, 0x32, - 0xcf, 0xf0, 0x96, 0xe7, 0x38, 0xd8, 0xa2, 0x3f, 0xcc, 0x9c, 0xd1, 0x22, 0xcc, 0xf6, 0xc9, 0xc0, - 0xc5, 0xb5, 0x69, 0xce, 0x14, 0x0d, 0xbd, 0x06, 0x37, 0x86, 0xad, 0x91, 0x86, 0xfe, 0x23, 0x07, - 0x4b, 0x9f, 0x13, 0x9b, 0xe2, 0x2d, 0xaf, 0xd7, 0xb3, 0xe9, 0x1e, 0x31, 0xfb, 0xdd, 0xf1, 0x4d, - 0x6d, 0xc0, 0x9c, 0xdf, 0x77, 0x6c, 0xda, 0xa0, 0xc4, 0xa4, 0xf8, 0xec, 0x92, 0x9b, 0x7a, 0x75, - 0xe3, 0xa3, 0x60, 0x70, 0x86, 0xc6, 0xf5, 0x46, 0x74, 0x90, 0x11, 0x97, 0xa1, 0xdf, 0x81, 0xb9, - 0x18, 0x1f, 0x55, 0xa1, 0xd2, 0xb0, 0xbf, 0xc6, 0x87, 0x03, 0x87, 0xda, 0x7d, 0x07, 0x57, 0xaf, - 0xe8, 0x1a, 0xd4, 0x92, 0xa2, 0xe5, 0x4c, 0x9f, 0xc1, 0xd5, 0x2d, 0x07, 0x9b, 0xee, 0xa0, 0x3f, - 0xfe, 0xa6, 0xcf, 0xc3, 0xb5, 0x50, 0x96, 0x14, 0xff, 0x19, 0x5c, 0x57, 0x43, 0x98, 0x59, 0xe3, - 0x6b, 0x79, 0x04, 0x37, 0x86, 0x45, 0xca, 0x83, 0x8d, 0x60, 0xc6, 0xb7, 0xbf, 0xc6, 0x5c, 0xda, - 0xb4, 0xc1, 0xbf, 0xf5, 0xd7, 0xb0, 0xbc, 0xd9, 0xef, 0x3b, 0x97, 0x7b, 0x36, 0x35, 0x29, 0x25, - 0x76, 0x6b, 0x40, 0xf1, 0xf8, 0xf1, 0x05, 0x69, 0x50, 0x24, 0xf8, 0x8d, 0xed, 0xdb, 0x9e, 0xcb, - 0x77, 0xb1, 0x62, 0x84, 0x6d, 0x7d, 0x05, 0xb4, 0x34, 0x95, 0x72, 0x45, 0xfe, 0x35, 0x05, 0x68, - 0x17, 0x53, 0xab, 0x6b, 0xe0, 0x9e, 0x47, 0xc7, 0x5f, 0x0f, 0x16, 0xce, 0x08, 0x17, 0xc5, 0x0d, - 0x29, 0x19, 0xb2, 0xc5, 0x7c, 0xbe, 0xe3, 0x11, 0x2b, 0xf4, 0x79, 0xde, 0x40, 0x4b, 0x50, 0x70, - 0xbd, 0x26, 0x35, 0xcf, 0xfc, 0xda, 0x8c, 0x88, 0x7e, 0xae, 0x77, 0x6a, 0x9e, 0xf9, 0xa8, 0x06, - 0x05, 0x6a, 0xf7, 0xb0, 0x37, 0xa0, 0xb5, 0xd9, 0xdb, 0xb9, 0x07, 0xb3, 0x46, 0xd0, 0x64, 0x43, - 0x7c, 0xbf, 0xdb, 0x3c, 0xc7, 0x97, 0xb5, 0xbc, 0xd0, 0xe0, 0xfb, 0xdd, 0xe7, 0xf8, 0x12, 0xad, - 0x41, 0xf9, 0xdc, 0xf5, 0x2e, 0xdc, 0x66, 0xd7, 0x63, 0xd1, 0xb4, 0xc0, 0x99, 0xc0, 0x49, 0xfb, - 0x8c, 0x82, 0x96, 0xa1, 0xe8, 0x7a, 0x4d, 0x71, 0xf2, 0x4a, 0x5c, 0x5b, 0xc1, 0xf5, 0x4e, 0x58, - 0x13, 0x3d, 0x81, 0x39, 0x61, 0x67, 0xb3, 0x6f, 0x12, 0xb3, 0xe7, 0xd7, 0x80, 0x4f, 0xf9, 0xaa, - 0x9a, 0x32, 0x5f, 0x9d, 0x8a, 0xe8, 0x74, 0xc2, 0xfb, 0xa0, 0x47, 0x80, 0xac, 0x2e, 0xb6, 0xce, - 0xb9, 0xfd, 0x4d, 0xab, 0x6b, 0xba, 0x67, 0xb8, 0x5d, 0x2b, 0x73, 0xc9, 0x55, 0xce, 0x61, 0x53, - 0xd9, 0x12, 0xf4, 0x67, 0x33, 0xc5, 0x62, 0xb5, 0xa4, 0x3f, 0x85, 0x85, 0xd8, 0x72, 0x4b, 0x5f, - 0xb9, 0x03, 0x95, 0x98, 0x10, 0x71, 0x15, 0x94, 0xa9, 0x1a, 0xcf, 0x2e, 0xa6, 0x2d, 0x1e, 0x44, - 0xd4, 0xf2, 0x8f, 0xef, 0xbd, 0x1a, 0xd4, 0x92, 0x42, 0xa5, 0x6b, 0xfc, 0x73, 0x0a, 0xe6, 0xf7, - 0x30, 0xdd, 0x24, 0x56, 0xd7, 0x7e, 0x33, 0x01, 0xcf, 0xb8, 0x09, 0x25, 0x8b, 0x1f, 0xf9, 0xa6, - 0xdd, 0x96, 0xce, 0x51, 0x14, 0x84, 0x83, 0x36, 0x73, 0x9b, 0x3e, 0xc1, 0x1d, 0xfb, 0x2d, 0xf7, - 0x8f, 0x92, 0x21, 0x5b, 0xe8, 0x29, 0xe4, 0x3b, 0x1e, 0xe9, 0x99, 0x94, 0xfb, 0xc7, 0xd5, 0x8d, - 0xdb, 0x81, 0xaa, 0x84, 0x65, 0xeb, 0xbb, 0xbc, 0x9f, 0x21, 0xfb, 0xb3, 0xe3, 0xd7, 0x37, 0x69, - 0x97, 0xbb, 0x4f, 0xc5, 0xe0, 0xdf, 0xcc, 0xab, 0xf0, 0x5b, 0xcb, 0x19, 0xb4, 0x71, 0x2d, 0x7f, - 0x7b, 0xfa, 0x41, 0xc5, 0x08, 0x9a, 0x68, 0x15, 0x00, 0x3b, 0x76, 0x9b, 0xed, 0x3f, 0xed, 0x72, - 0xdf, 0x29, 0x1a, 0x25, 0x4e, 0x39, 0x61, 0x03, 0x1f, 0xc2, 0xbc, 0xed, 0xf2, 0x9e, 0x4d, 0xa7, - 0xe3, 0x37, 0x5b, 0x8e, 0xd7, 0xf2, 0x6b, 0x45, 0xde, 0xeb, 0x9a, 0x64, 0xbc, 0xe8, 0xf8, 0x75, - 0x46, 0xd6, 0x9f, 0x40, 0x5e, 0x98, 0x82, 0x0a, 0x30, 0xfd, 0xea, 0xe0, 0xa4, 0x7a, 0x85, 0x7d, - 0x9c, 0x6e, 0x1a, 0xd5, 0x1c, 0x02, 0xc8, 0x9f, 0x6e, 0x1a, 0xcd, 0xbd, 0x57, 0xd5, 0x29, 0x54, - 0x86, 0x02, 0xfb, 0xae, 0xbf, 0xda, 0xa8, 0x4e, 0xeb, 0x0f, 0x00, 0x45, 0x67, 0xa4, 0x42, 0x48, - 0xdb, 0xa4, 0x26, 0x5f, 0xe6, 0x8a, 0xc1, 0xbf, 0x99, 0x1f, 0xec, 0x9b, 0xfe, 0x0b, 0xcf, 0x32, - 0x9d, 0x3a, 0x31, 0x5d, 0xab, 0x3b, 0x81, 0x00, 0xa2, 0x7f, 0x0c, 0xb5, 0xa4, 0x50, 0x69, 0xc4, - 0x22, 0xcc, 0xbe, 0x31, 0x9d, 0x01, 0x96, 0x4e, 0x29, 0x1a, 0xfa, 0x77, 0x39, 0xa8, 0x71, 0x4f, - 0x6e, 0x78, 0x03, 0x62, 0x61, 0x31, 0x6a, 0x7c, 0x27, 0xf9, 0x29, 0xcc, 0xfb, 0x5c, 0x60, 0x33, - 0x22, 0x60, 0x2a, 0x4b, 0x80, 0x51, 0x15, 0x9d, 0x8d, 0xd8, 0x05, 0x2c, 0x05, 0xb4, 0xb8, 0x49, - 0xdc, 0x9f, 0x2a, 0x46, 0xc5, 0x8f, 0x98, 0xc9, 0x76, 0x9b, 0x9a, 0xe4, 0x0c, 0xd3, 0x26, 0xc1, - 0x1d, 0xee, 0x59, 0x15, 0xa3, 0x24, 0x28, 0x06, 0xee, 0xe8, 0x4f, 0x60, 0x39, 0x65, 0x6a, 0xea, - 0xbd, 0x46, 0xb0, 0x3f, 0x70, 0x68, 0xf0, 0x5e, 0x13, 0x2d, 0x7d, 0x0f, 0xca, 0xbb, 0xfe, 0x24, - 0x1e, 0x2b, 0xf7, 0xa0, 0x22, 0x04, 0xa9, 0xf5, 0xc7, 0x84, 0x78, 0x44, 0x7a, 0x81, 0x68, 0xe8, - 0x7f, 0xc9, 0xc1, 0x35, 0x7e, 0x8d, 0x1a, 0xb8, 0x33, 0xfe, 0xb2, 0x57, 0x61, 0x9a, 0xad, 0x84, - 0xb8, 0x3b, 0xd8, 0x67, 0xec, 0x4a, 0x99, 0x8e, 0x5f, 0x29, 0x2c, 0x5a, 0x79, 0x4e, 0xbb, 0x19, - 0xf2, 0xc5, 0x02, 0x96, 0x3d, 0xa7, 0x6d, 0x04, 0x5d, 0xc2, 0x70, 0x3f, 0x1b, 0x09, 0xf7, 0xcf, - 0x66, 0x8a, 0xf9, 0x6a, 0x41, 0xaf, 0x41, 0x55, 0x59, 0x2e, 0x26, 0xf9, 0x6c, 0xa6, 0x98, 0xab, - 0x4e, 0xe9, 0x2e, 0x2c, 0xee, 0xda, 0x6e, 0xfb, 0x10, 0x93, 0x33, 0x5c, 0x37, 0xfd, 0x09, 0x04, - 0x9d, 0x15, 0x28, 0x05, 0x66, 0xfa, 0xb5, 0x29, 0x7e, 0xe6, 0x15, 0x41, 0xff, 0x10, 0xae, 0x0f, - 0xe9, 0x53, 0x07, 0xaf, 0x65, 0xfa, 0xc2, 0xe5, 0x4b, 0x06, 0xff, 0xd6, 0xbf, 0xc9, 0xc1, 0xbc, - 0x08, 0x96, 0xbb, 0x1e, 0x39, 0xff, 0xdf, 0xbb, 0x3a, 0x7b, 0xd5, 0x46, 0xed, 0x09, 0x1f, 0xf1, - 0xcb, 0x07, 0xbe, 0x81, 0x99, 0xc9, 0x07, 0xee, 0x09, 0xf1, 0xce, 0x08, 0xf6, 0xfd, 0x89, 0x44, - 0x6f, 0xc2, 0x85, 0x46, 0xa2, 0xb7, 0x20, 0x1c, 0xb4, 0xf5, 0x9f, 0x80, 0x96, 0xa6, 0x53, 0x2e, - 0xe6, 0x1a, 0x94, 0x6d, 0xb7, 0xd9, 0x97, 0x64, 0x79, 0x6c, 0xc0, 0x0e, 0x3b, 0x0a, 0x93, 0x1b, - 0xaf, 0x07, 0xa6, 0xdf, 0x9d, 0xb0, 0xc9, 0x3e, 0x17, 0x1a, 0x31, 0x59, 0x10, 0x02, 0x93, 0x93, - 0x3a, 0xdf, 0xd5, 0x64, 0x07, 0x6e, 0x0d, 0x5f, 0x9c, 0xbb, 0xc4, 0xeb, 0xbd, 0x34, 0x5e, 0x4c, - 0xe4, 0x30, 0x0e, 0x88, 0x23, 0x2d, 0x66, 0x9f, 0xfa, 0x1d, 0x58, 0xcb, 0xd4, 0x26, 0xb7, 0xfd, - 0x18, 0x16, 0x44, 0x97, 0xfa, 0xc0, 0x6d, 0x3b, 0x13, 0x78, 0xd8, 0x3e, 0x84, 0xc5, 0xb8, 0xc0, - 0x11, 0x77, 0xd2, 0x0b, 0xa8, 0xee, 0x61, 0xba, 0xe5, 0xb9, 0x1d, 0xfb, 0x6c, 0x7c, 0xcd, 0xef, - 0xf3, 0x77, 0x47, 0x20, 0x6d, 0x84, 0xda, 0x6f, 0xa6, 0xa0, 0xda, 0x98, 0x98, 0x5e, 0xf4, 0x14, - 0x0a, 0xd8, 0xa5, 0xc4, 0xc6, 0x22, 0x52, 0x94, 0x37, 0x6e, 0x05, 0xc3, 0x86, 0x95, 0xac, 0xef, - 0xb8, 0x94, 0x5c, 0x1a, 0x41, 0x77, 0xed, 0xd7, 0x39, 0x98, 0xe5, 0x24, 0xb6, 0x77, 0xec, 0x65, - 0x2a, 0xe2, 0x06, 0xfb, 0x44, 0xab, 0x50, 0xe2, 0x37, 0x66, 0xd3, 0xa7, 0x44, 0xec, 0xe9, 0xfe, - 0x15, 0xa3, 0xc8, 0x49, 0x0d, 0x4a, 0xd0, 0x1d, 0x28, 0x0b, 0xb6, 0xed, 0xd2, 0x27, 0x1b, 0x3c, - 0xd4, 0xce, 0xee, 0x5f, 0x31, 0x80, 0x13, 0x0f, 0x18, 0x0d, 0xad, 0x81, 0x68, 0x35, 0x5b, 0x9e, - 0xe7, 0x88, 0x77, 0xf2, 0xfe, 0x15, 0x43, 0x48, 0xad, 0x7b, 0x9e, 0x53, 0x2f, 0xc8, 0x1b, 0x5a, - 0x5f, 0x80, 0xf9, 0xc6, 0xf0, 0xca, 0xe9, 0x16, 0x2c, 0x6c, 0x63, 0x07, 0xb3, 0x84, 0x6b, 0x32, - 0xeb, 0x84, 0x60, 0xe6, 0x1c, 0x5f, 0x8a, 0x45, 0x2a, 0x19, 0xfc, 0x5b, 0xbf, 0x01, 0x8b, 0x71, - 0x25, 0x52, 0xb9, 0x0d, 0xcb, 0x06, 0xf6, 0xa9, 0x47, 0xf0, 0xd6, 0xc0, 0xa7, 0x5e, 0x6f, 0xdf, - 0xf3, 0xce, 0xfd, 0x89, 0x98, 0xc0, 0xbd, 0x61, 0x2a, 0xe2, 0x0d, 0x2b, 0xa0, 0xa5, 0xa9, 0x92, - 0x86, 0x9c, 0x42, 0xad, 0x6e, 0x5a, 0xe7, 0x83, 0xfe, 0x24, 0xed, 0xd0, 0x1f, 0xc3, 0x72, 0x8a, - 0xd4, 0x11, 0x2e, 0xfb, 0x1a, 0xee, 0xa4, 0x9d, 0xe4, 0x09, 0x1d, 0xda, 0xd4, 0x75, 0xb9, 0x07, - 0xfa, 0x28, 0x95, 0x72, 0x7d, 0x8e, 0x00, 0xb1, 0xab, 0xf0, 0x85, 0x6d, 0x61, 0x77, 0x02, 0x17, - 0xaf, 0xbe, 0x05, 0x0b, 0x31, 0x79, 0x72, 0x4d, 0x1e, 0x01, 0x72, 0x04, 0xa9, 0xe9, 0x77, 0x3d, - 0x42, 0x9b, 0xae, 0xd9, 0x0b, 0xae, 0xd9, 0xaa, 0xe4, 0x34, 0x18, 0xe3, 0xc8, 0xec, 0xf1, 0x4d, - 0xdb, 0xc3, 0xf4, 0xc0, 0xed, 0x78, 0x9b, 0x93, 0xcb, 0x96, 0xf5, 0x1f, 0xc3, 0x72, 0x8a, 0x54, - 0x69, 0xe0, 0x2d, 0x00, 0x95, 0x26, 0xcb, 0xad, 0x8b, 0x50, 0x98, 0x49, 0x5b, 0xa6, 0x63, 0x0d, - 0x1c, 0x93, 0xe2, 0x2d, 0x96, 0xe3, 0xf9, 0x83, 0xde, 0xf8, 0x26, 0xfd, 0x1f, 0x2c, 0xa7, 0x48, - 0x95, 0x26, 0x69, 0x50, 0xb4, 0x24, 0x4d, 0xae, 0x54, 0xd8, 0x66, 0xdb, 0xb6, 0x87, 0x69, 0xc3, - 0x35, 0xfb, 0x7e, 0xd7, 0x1b, 0x1f, 0xbf, 0xd2, 0x3f, 0x80, 0x85, 0x98, 0xbc, 0x11, 0xae, 0xfc, - 0x6d, 0x0e, 0xee, 0xa6, 0x39, 0xd6, 0xc4, 0x8c, 0x61, 0x09, 0x7b, 0x97, 0xd2, 0x7e, 0x53, 0xdd, - 0x86, 0x05, 0xd6, 0x7e, 0x49, 0x1c, 0x76, 0xb7, 0x73, 0x96, 0x39, 0xa0, 0x5d, 0x99, 0x32, 0xf2, - 0xbe, 0x9b, 0x03, 0xda, 0xd5, 0xef, 0xc3, 0xbd, 0xd1, 0x86, 0x49, 0x9f, 0xff, 0x7d, 0x0e, 0x16, - 0xf7, 0x30, 0x35, 0xcc, 0x0b, 0x91, 0x64, 0xfb, 0x13, 0xc1, 0xff, 0x3a, 0xc4, 0xeb, 0x35, 0x63, - 0x70, 0x4c, 0xc9, 0xa8, 0x30, 0x62, 0xf8, 0x38, 0x5e, 0x83, 0x32, 0xf5, 0x9a, 0xb1, 0xe7, 0x75, - 0xc9, 0x00, 0xea, 0x05, 0x1d, 0xf4, 0xbf, 0xce, 0xc0, 0xf5, 0x21, 0xc3, 0xe4, 0x46, 0xec, 0x43, - 0x99, 0x98, 0x17, 0x12, 0x27, 0x60, 0xfe, 0xc9, 0xee, 0xa9, 0xf7, 0x23, 0x49, 0x71, 0x72, 0xcc, - 0x7a, 0x48, 0x32, 0x80, 0x84, 0x5c, 0xed, 0xbb, 0x69, 0x28, 0x85, 0x1c, 0xb4, 0x04, 0x05, 0x96, - 0xd4, 0xb2, 0x97, 0x92, 0x70, 0xb1, 0x3c, 0x6b, 0x1e, 0xb4, 0x43, 0x14, 0x6b, 0x4a, 0xa1, 0x58, - 0x68, 0x15, 0x8a, 0x2e, 0xbe, 0x10, 0xa9, 0x32, 0x37, 0xbe, 0x3e, 0x55, 0xcb, 0x19, 0x05, 0x17, - 0x5f, 0xf0, 0x64, 0x79, 0x15, 0x8a, 0x2c, 0x3d, 0xe0, 0xec, 0x19, 0xc5, 0xf6, 0x9c, 0x36, 0x67, - 0x1f, 0x43, 0xc9, 0xeb, 0x63, 0x62, 0x52, 0x36, 0xf7, 0x59, 0x9e, 0xd5, 0x7f, 0xf2, 0x8e, 0x13, - 0x58, 0x3f, 0x0e, 0x06, 0x1a, 0x4a, 0x06, 0x5b, 0x73, 0xb6, 0x26, 0x4a, 0xa8, 0xc0, 0x85, 0x2a, - 0xc4, 0xbc, 0x08, 0xfb, 0x33, 0x5f, 0x62, 0x46, 0xf5, 0xbc, 0x36, 0xe6, 0xe9, 0xfd, 0x2c, 0x37, - 0xe8, 0xd0, 0x6b, 0x63, 0x8e, 0x0b, 0xe1, 0x0b, 0xc1, 0x2a, 0x0a, 0x96, 0x8b, 0x2f, 0x38, 0xeb, - 0x1e, 0x5c, 0x0d, 0x66, 0xda, 0x6c, 0x5d, 0xb2, 0x88, 0x50, 0x12, 0xe9, 0xa4, 0x9c, 0x6b, 0x9d, - 0xd1, 0x58, 0xaf, 0x60, 0xc2, 0xb2, 0x17, 0x88, 0x5e, 0x72, 0xca, 0xbc, 0x97, 0x6e, 0x43, 0x49, - 0x99, 0x53, 0x86, 0xc2, 0xcb, 0xa3, 0xe7, 0x47, 0xc7, 0x9f, 0x1f, 0x55, 0xaf, 0xa0, 0x12, 0xcc, - 0x6e, 0x6e, 0x6f, 0xef, 0x6c, 0x0b, 0x80, 0x60, 0xeb, 0xf8, 0xe4, 0x60, 0x67, 0x5b, 0x00, 0x04, - 0xdb, 0x3b, 0x2f, 0x76, 0x4e, 0x77, 0xb6, 0xab, 0xd3, 0xa8, 0x02, 0xc5, 0xc3, 0xe3, 0xed, 0x83, - 0x5d, 0xc6, 0x9a, 0x61, 0x2c, 0x63, 0xe7, 0x68, 0xf3, 0x70, 0x67, 0xbb, 0x3a, 0x8b, 0xaa, 0x50, - 0x39, 0xfd, 0xe2, 0x64, 0xa7, 0xb9, 0xb5, 0xbf, 0x79, 0xb4, 0xb7, 0xb3, 0x5d, 0xcd, 0xeb, 0xbf, - 0xcb, 0x41, 0xad, 0x81, 0x4d, 0x62, 0x75, 0x77, 0x6d, 0x07, 0xfb, 0xf5, 0x4b, 0x16, 0x4d, 0xc7, - 0x77, 0xee, 0x45, 0x98, 0x7d, 0x3d, 0xc0, 0x32, 0x4b, 0x29, 0x19, 0xa2, 0x11, 0xe4, 0x8e, 0xd3, - 0x2a, 0x77, 0xbc, 0x01, 0xf9, 0x8e, 0xed, 0x50, 0x4c, 0xc4, 0xf6, 0x1b, 0xb2, 0xa5, 0x7f, 0x02, - 0xcb, 0x29, 0x56, 0xa9, 0x34, 0xb7, 0xc3, 0xc8, 0xdc, 0xa7, 0x2b, 0x86, 0x68, 0xe8, 0x7f, 0xce, - 0xc1, 0xcd, 0xd8, 0x98, 0x2d, 0xcf, 0xa5, 0xd8, 0xa5, 0x3f, 0xdc, 0x64, 0x3e, 0x80, 0xaa, 0xd5, - 0x1d, 0xb8, 0xe7, 0x98, 0x25, 0xbc, 0xc2, 0x56, 0x89, 0x55, 0x5e, 0x93, 0xf4, 0x30, 0x9e, 0x5c, - 0xc2, 0x4a, 0xba, 0xad, 0x72, 0x8a, 0x35, 0x28, 0xf4, 0x4c, 0x6a, 0x75, 0xc3, 0x49, 0x06, 0x4d, - 0xb4, 0x0a, 0xc0, 0x3f, 0x9b, 0x91, 0xdb, 0xbb, 0xc4, 0x29, 0xdb, 0x26, 0x35, 0xd1, 0x6d, 0xa8, - 0x60, 0xb7, 0xdd, 0xf4, 0x3a, 0x4d, 0x4e, 0x93, 0x18, 0x2a, 0x60, 0xb7, 0x7d, 0xdc, 0x39, 0x64, - 0x14, 0xfd, 0x37, 0x39, 0xc8, 0x0b, 0x4c, 0x31, 0x48, 0x1f, 0x72, 0x61, 0xfa, 0x80, 0x7e, 0x04, - 0xcb, 0x61, 0xb0, 0xf4, 0x88, 0xfd, 0x35, 0x77, 0xc1, 0x66, 0x17, 0x9b, 0x6d, 0x4c, 0x64, 0xf4, - 0x59, 0x0a, 0x82, 0x67, 0xc8, 0xdf, 0xe7, 0x6c, 0xf4, 0x1e, 0x5c, 0xed, 0xd9, 0x84, 0x78, 0xa4, - 0x49, 0x70, 0xa7, 0x67, 0xf6, 0xfd, 0xda, 0x0c, 0x7f, 0xf6, 0xcd, 0x09, 0xaa, 0x21, 0x88, 0xcf, - 0x66, 0x8a, 0x53, 0xd5, 0x69, 0x63, 0x86, 0xdd, 0xe6, 0xfa, 0x17, 0xb0, 0xba, 0x87, 0xe9, 0x71, - 0xeb, 0xe7, 0xd8, 0xa2, 0xdb, 0x36, 0xc1, 0xd6, 0xe4, 0xd0, 0xf6, 0x4f, 0xe1, 0x56, 0x96, 0xe8, - 0x11, 0xa8, 0xfb, 0x1f, 0x73, 0xb0, 0xb8, 0xe5, 0x78, 0x2e, 0x66, 0xb7, 0xc0, 0x89, 0xe7, 0x4d, - 0xa0, 0xb6, 0x75, 0x1f, 0x66, 0xfa, 0xec, 0x35, 0x3e, 0x94, 0xaf, 0x0b, 0xcb, 0xb8, 0x0a, 0xce, - 0x47, 0xf7, 0x43, 0x38, 0x7c, 0x3a, 0x15, 0x51, 0x96, 0x5c, 0x7d, 0x09, 0xae, 0x0f, 0x59, 0x28, - 0x7d, 0xea, 0x6f, 0x39, 0x58, 0x89, 0x71, 0x0e, 0x5c, 0x8a, 0x89, 0x6b, 0xfe, 0x80, 0x73, 0x48, - 0x05, 0x2a, 0xa6, 0xff, 0x0b, 0xa0, 0x62, 0x0d, 0x56, 0x33, 0xa6, 0x20, 0x27, 0xc9, 0x8b, 0xae, - 0x3d, 0xef, 0xcd, 0xa4, 0xb1, 0xed, 0xa4, 0x50, 0xa9, 0xf0, 0x2d, 0x53, 0xe8, 0xf2, 0xf0, 0x33, - 0x31, 0x85, 0xfc, 0x1e, 0xc2, 0x8e, 0x49, 0xed, 0x37, 0x12, 0x46, 0x96, 0x77, 0x7f, 0x40, 0x64, - 0x57, 0x81, 0xb0, 0x6a, 0x58, 0xb3, 0xb4, 0xea, 0x57, 0x39, 0x96, 0xc2, 0xf4, 0x1d, 0xdb, 0x9a, - 0x2c, 0xcc, 0x8f, 0x1e, 0x42, 0x5e, 0x6c, 0xca, 0x08, 0x7c, 0x49, 0xf6, 0xd0, 0x57, 0xe1, 0x66, - 0xaa, 0x0d, 0xd2, 0xc6, 0x97, 0xb0, 0x7c, 0xdc, 0xa7, 0x76, 0x8f, 0x9f, 0xb9, 0xc9, 0x6d, 0xd6, - 0x0a, 0x68, 0x69, 0x62, 0x85, 0xd2, 0x8d, 0x3f, 0xad, 0xf1, 0xca, 0x74, 0x50, 0x65, 0x13, 0x25, - 0x7d, 0xf4, 0x25, 0x54, 0x87, 0xab, 0xea, 0x68, 0x2d, 0xa9, 0x2d, 0x56, 0xc4, 0xd7, 0x6e, 0x67, - 0x77, 0x90, 0x33, 0xcc, 0xff, 0xfb, 0xdb, 0x07, 0x53, 0xc5, 0x29, 0xf4, 0x55, 0x50, 0x0d, 0x8f, - 0x94, 0xca, 0x51, 0x74, 0x78, 0x6a, 0x6d, 0x5e, 0xbb, 0x33, 0xa2, 0x47, 0x4c, 0x43, 0x0e, 0x3d, - 0x07, 0x50, 0xb5, 0x6f, 0xb4, 0x1c, 0x1f, 0x18, 0xa9, 0xc1, 0x6b, 0x5a, 0x1a, 0x2b, 0x29, 0x4c, - 0xd5, 0xb8, 0x95, 0xb0, 0x44, 0x19, 0x5d, 0x09, 0x4b, 0x29, 0x89, 0x07, 0xc2, 0x3e, 0x87, 0xab, - 0xf1, 0x5a, 0x34, 0x5a, 0x0d, 0x9f, 0x68, 0x69, 0x15, 0x73, 0xed, 0x56, 0x16, 0x7b, 0x48, 0xf0, - 0x97, 0x12, 0xfb, 0x8d, 0x14, 0x7f, 0xd5, 0x9e, 0x65, 0x54, 0x9c, 0xd5, 0x9e, 0x65, 0xd6, 0x8d, - 0x23, 0x76, 0xc7, 0xab, 0xb1, 0xca, 0xee, 0xd4, 0xc2, 0xaf, 0xb2, 0x3b, 0xbd, 0x88, 0x1b, 0x3a, - 0x83, 0x05, 0x28, 0x59, 0x45, 0x45, 0xe1, 0x5e, 0x67, 0x16, 0x75, 0x35, 0x7d, 0x54, 0x97, 0x21, - 0xeb, 0x8f, 0xa0, 0x1c, 0x29, 0x0e, 0xa2, 0x70, 0xa3, 0x92, 0x05, 0x5a, 0xed, 0x66, 0x2a, 0x2f, - 0xb9, 0xd8, 0xc3, 0x79, 0x90, 0x5a, 0xec, 0x8c, 0x62, 0xa2, 0x5a, 0xec, 0xcc, 0xc2, 0x60, 0x20, - 0xfe, 0x10, 0x40, 0xd5, 0xac, 0x94, 0xc7, 0x25, 0x2a, 0x73, 0xca, 0xe3, 0x92, 0x25, 0xae, 0x60, - 0x81, 0x3f, 0xe6, 0xd6, 0x0e, 0xd7, 0xa0, 0x94, 0xb5, 0x19, 0x25, 0x2f, 0x65, 0x6d, 0x56, 0xf9, - 0x2a, 0x7a, 0x9c, 0x13, 0x45, 0x1d, 0x75, 0x9c, 0xb3, 0x4a, 0x59, 0xea, 0x38, 0x67, 0x56, 0x84, - 0xc2, 0xf5, 0xf8, 0x7f, 0x98, 0xd9, 0xf5, 0xad, 0x73, 0xb4, 0x10, 0x0e, 0x51, 0xf5, 0x20, 0x6d, - 0x31, 0x4e, 0x1c, 0x32, 0x6e, 0x07, 0x8a, 0x41, 0x49, 0x04, 0x2d, 0xc5, 0xbc, 0x5d, 0x95, 0x77, - 0xb4, 0x5a, 0x92, 0x31, 0x64, 0xc1, 0x29, 0xcc, 0xc5, 0xea, 0x19, 0x68, 0x25, 0xd4, 0x9a, 0x52, - 0x56, 0xd1, 0x56, 0x33, 0xb8, 0x43, 0xc6, 0x3d, 0x07, 0x50, 0x75, 0x06, 0xb5, 0xcf, 0x89, 0x5a, - 0x88, 0xda, 0xe7, 0x94, 0xb2, 0x44, 0x60, 0xa2, 0x05, 0x28, 0x59, 0x2a, 0x50, 0x07, 0x29, 0xb3, - 0x74, 0xa1, 0x0e, 0x52, 0x76, 0xa5, 0x21, 0x7a, 0x5a, 0x93, 0xe0, 0x7e, 0x54, 0x49, 0x46, 0xb1, - 0x21, 0xaa, 0x24, 0xab, 0x36, 0x10, 0x2a, 0x21, 0xc9, 0x82, 0xbc, 0x04, 0xe5, 0xd1, 0xfd, 0xac, - 0x33, 0x14, 0xaf, 0x11, 0x68, 0xef, 0x7f, 0x6f, 0xbf, 0xa1, 0xd5, 0x6b, 0x40, 0x25, 0x0a, 0xca, - 0xa3, 0x9b, 0x71, 0x01, 0x31, 0x18, 0x51, 0x5b, 0x49, 0x67, 0x26, 0x0e, 0xde, 0x2f, 0x40, 0xcb, - 0x06, 0x08, 0xd1, 0x07, 0xa3, 0x6c, 0x8c, 0x2b, 0x7c, 0xf8, 0x2e, 0x5d, 0xe3, 0x33, 0x7a, 0x90, - 0x43, 0xcf, 0xa0, 0x14, 0xc2, 0xfd, 0xa8, 0x16, 0x09, 0x15, 0x31, 0xbc, 0x5a, 0x5b, 0x4e, 0xe1, - 0x24, 0xa6, 0xb2, 0x0f, 0xa5, 0x46, 0x52, 0x56, 0x23, 0x53, 0x56, 0x23, 0x43, 0x56, 0x0e, 0x7d, - 0x06, 0x95, 0x28, 0xa0, 0xad, 0x56, 0x3a, 0x05, 0x4b, 0x57, 0x2b, 0x9d, 0x8a, 0x81, 0x47, 0xc3, - 0xbb, 0x82, 0x44, 0x23, 0xe1, 0x3d, 0x81, 0xbb, 0x46, 0xc2, 0x7b, 0x12, 0x43, 0x0d, 0x1d, 0xb0, - 0xc5, 0xeb, 0x24, 0x71, 0x1c, 0x13, 0x45, 0x7f, 0x90, 0x48, 0x05, 0x4e, 0x55, 0x44, 0xcb, 0x04, - 0x41, 0x23, 0x0b, 0xfa, 0x15, 0xcc, 0x27, 0x80, 0x49, 0xa5, 0x23, 0x0b, 0x09, 0x55, 0x3a, 0x32, - 0x51, 0xcd, 0x70, 0x16, 0x75, 0x28, 0xc8, 0xdf, 0xb4, 0xd0, 0x8d, 0x70, 0x54, 0xec, 0x1f, 0x30, - 0x6d, 0x29, 0x41, 0x1f, 0x5a, 0xd9, 0x13, 0x28, 0x47, 0x50, 0x4b, 0x14, 0xbd, 0x6f, 0x86, 0xd0, - 0x48, 0xb5, 0xb2, 0x29, 0x30, 0x67, 0x64, 0xde, 0xbf, 0x64, 0x69, 0xd7, 0x08, 0x0c, 0x11, 0x7d, - 0x38, 0xca, 0xd7, 0x87, 0x95, 0x3e, 0x7a, 0xb7, 0xce, 0x43, 0xb3, 0xfa, 0x19, 0xcc, 0xc5, 0xf0, - 0x30, 0x15, 0xcd, 0xd3, 0x40, 0x4b, 0x15, 0xcd, 0x53, 0x41, 0xb4, 0xc8, 0xdc, 0xce, 0x61, 0x31, - 0x0d, 0xa6, 0x40, 0x77, 0xd5, 0xa9, 0xc8, 0x04, 0x5c, 0xb4, 0x7b, 0xa3, 0x3b, 0x25, 0x94, 0xb5, - 0x60, 0x3e, 0x81, 0xf9, 0x28, 0x07, 0xca, 0x02, 0xa9, 0x94, 0x03, 0x65, 0x02, 0x46, 0x11, 0x1d, - 0x18, 0x50, 0xb2, 0xf2, 0x83, 0x22, 0x0f, 0xf1, 0x8c, 0x02, 0x94, 0x0a, 0xf7, 0x23, 0x0a, 0x47, - 0x2a, 0x50, 0xb5, 0x60, 0x3e, 0x51, 0xec, 0x51, 0x53, 0xc9, 0xaa, 0x2e, 0xa9, 0xa9, 0x64, 0x56, - 0x8a, 0x22, 0x53, 0xf1, 0xe0, 0x46, 0x3a, 0xc0, 0x81, 0xde, 0x8b, 0x6c, 0x6f, 0x36, 0xb6, 0xa2, - 0xdd, 0xff, 0xbe, 0x6e, 0x43, 0xc7, 0xef, 0x14, 0xe6, 0x62, 0xb9, 0xb9, 0x72, 0xb2, 0x34, 0xc4, - 0x44, 0x39, 0x59, 0x3a, 0x5a, 0x11, 0xb8, 0xae, 0x33, 0x04, 0x67, 0x04, 0x19, 0x3f, 0xba, 0x97, - 0x3a, 0x7e, 0x08, 0xd3, 0xd0, 0xde, 0xfb, 0x9e, 0x5e, 0xc9, 0x77, 0xee, 0x70, 0xa6, 0x1f, 0x4d, - 0x04, 0x53, 0x81, 0x85, 0x68, 0x22, 0x98, 0x01, 0x12, 0xc4, 0xc4, 0xc7, 0x53, 0xf6, 0xa8, 0xf8, - 0x54, 0x18, 0x21, 0x2a, 0x3e, 0x23, 0xdb, 0x0f, 0xc4, 0x77, 0x60, 0x21, 0x25, 0xe1, 0x46, 0x11, - 0xdf, 0xcc, 0x42, 0x04, 0xb4, 0xbb, 0x23, 0xfb, 0x24, 0x5f, 0x5e, 0xc9, 0x14, 0x5b, 0x9d, 0x92, - 0xcc, 0xac, 0x5e, 0x9d, 0x92, 0xec, 0x0c, 0x3d, 0x50, 0x52, 0xff, 0xf4, 0xd5, 0xc6, 0x99, 0x4d, - 0x1d, 0xb3, 0xb5, 0x6e, 0x79, 0xbd, 0xc7, 0xe2, 0xf3, 0x23, 0x8f, 0x9c, 0x3d, 0x16, 0x22, 0x1e, - 0xbf, 0xf9, 0xe4, 0xd3, 0xc7, 0xfc, 0x47, 0xfb, 0xc7, 0x67, 0x9e, 0xa4, 0xf5, 0x5b, 0xad, 0x3c, - 0x27, 0x3d, 0xf9, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x24, 0x49, 0x14, 0x33, 0xb9, 0x2f, 0x00, - 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// RepositoryServiceClient is the client API for RepositoryService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RepositoryServiceClient interface { - RepositoryExists(ctx context.Context, in *RepositoryExistsRequest, opts ...grpc.CallOption) (*RepositoryExistsResponse, error) - RepackIncremental(ctx context.Context, in *RepackIncrementalRequest, opts ...grpc.CallOption) (*RepackIncrementalResponse, error) - RepackFull(ctx context.Context, in *RepackFullRequest, opts ...grpc.CallOption) (*RepackFullResponse, error) - MidxRepack(ctx context.Context, in *MidxRepackRequest, opts ...grpc.CallOption) (*MidxRepackResponse, error) - GarbageCollect(ctx context.Context, in *GarbageCollectRequest, opts ...grpc.CallOption) (*GarbageCollectResponse, error) - WriteCommitGraph(ctx context.Context, in *WriteCommitGraphRequest, opts ...grpc.CallOption) (*WriteCommitGraphResponse, error) - RepositorySize(ctx context.Context, in *RepositorySizeRequest, opts ...grpc.CallOption) (*RepositorySizeResponse, error) - ApplyGitattributes(ctx context.Context, in *ApplyGitattributesRequest, opts ...grpc.CallOption) (*ApplyGitattributesResponse, error) - // FetchRemote fetches references from a remote repository into the local - // repository. - FetchRemote(ctx context.Context, in *FetchRemoteRequest, opts ...grpc.CallOption) (*FetchRemoteResponse, error) - CreateRepository(ctx context.Context, in *CreateRepositoryRequest, opts ...grpc.CallOption) (*CreateRepositoryResponse, error) - GetArchive(ctx context.Context, in *GetArchiveRequest, opts ...grpc.CallOption) (RepositoryService_GetArchiveClient, error) - HasLocalBranches(ctx context.Context, in *HasLocalBranchesRequest, opts ...grpc.CallOption) (*HasLocalBranchesResponse, error) - // FetchSourceBranch fetches a branch from a second (potentially remote) - // repository into the given repository. - FetchSourceBranch(ctx context.Context, in *FetchSourceBranchRequest, opts ...grpc.CallOption) (*FetchSourceBranchResponse, error) - Fsck(ctx context.Context, in *FsckRequest, opts ...grpc.CallOption) (*FsckResponse, error) - WriteRef(ctx context.Context, in *WriteRefRequest, opts ...grpc.CallOption) (*WriteRefResponse, error) - FindMergeBase(ctx context.Context, in *FindMergeBaseRequest, opts ...grpc.CallOption) (*FindMergeBaseResponse, error) - CreateFork(ctx context.Context, in *CreateForkRequest, opts ...grpc.CallOption) (*CreateForkResponse, error) - IsRebaseInProgress(ctx context.Context, in *IsRebaseInProgressRequest, opts ...grpc.CallOption) (*IsRebaseInProgressResponse, error) - IsSquashInProgress(ctx context.Context, in *IsSquashInProgressRequest, opts ...grpc.CallOption) (*IsSquashInProgressResponse, error) - CreateRepositoryFromURL(ctx context.Context, in *CreateRepositoryFromURLRequest, opts ...grpc.CallOption) (*CreateRepositoryFromURLResponse, error) - CreateBundle(ctx context.Context, in *CreateBundleRequest, opts ...grpc.CallOption) (RepositoryService_CreateBundleClient, error) - CreateRepositoryFromBundle(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_CreateRepositoryFromBundleClient, error) - // GetConfig reads the target repository's gitconfig and streams its contents - // back. Returns a NotFound error in case no gitconfig was found. - GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (RepositoryService_GetConfigClient, error) - SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) - DeleteConfig(ctx context.Context, in *DeleteConfigRequest, opts ...grpc.CallOption) (*DeleteConfigResponse, error) - FindLicense(ctx context.Context, in *FindLicenseRequest, opts ...grpc.CallOption) (*FindLicenseResponse, error) - GetInfoAttributes(ctx context.Context, in *GetInfoAttributesRequest, opts ...grpc.CallOption) (RepositoryService_GetInfoAttributesClient, error) - CalculateChecksum(ctx context.Context, in *CalculateChecksumRequest, opts ...grpc.CallOption) (*CalculateChecksumResponse, error) - Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, error) - GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (RepositoryService_GetSnapshotClient, error) - CreateRepositoryFromSnapshot(ctx context.Context, in *CreateRepositoryFromSnapshotRequest, opts ...grpc.CallOption) (*CreateRepositoryFromSnapshotResponse, error) - GetRawChanges(ctx context.Context, in *GetRawChangesRequest, opts ...grpc.CallOption) (RepositoryService_GetRawChangesClient, error) - SearchFilesByContent(ctx context.Context, in *SearchFilesByContentRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByContentClient, error) - SearchFilesByName(ctx context.Context, in *SearchFilesByNameRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByNameClient, error) - RestoreCustomHooks(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_RestoreCustomHooksClient, error) - BackupCustomHooks(ctx context.Context, in *BackupCustomHooksRequest, opts ...grpc.CallOption) (RepositoryService_BackupCustomHooksClient, error) - GetObjectDirectorySize(ctx context.Context, in *GetObjectDirectorySizeRequest, opts ...grpc.CallOption) (*GetObjectDirectorySizeResponse, error) - CloneFromPool(ctx context.Context, in *CloneFromPoolRequest, opts ...grpc.CallOption) (*CloneFromPoolResponse, error) - CloneFromPoolInternal(ctx context.Context, in *CloneFromPoolInternalRequest, opts ...grpc.CallOption) (*CloneFromPoolInternalResponse, error) - // RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and - // eventually remove it. This ensures that even on networked filesystems the - // data is actually removed even if there's someone still handling the data. - RemoveRepository(ctx context.Context, in *RemoveRepositoryRequest, opts ...grpc.CallOption) (*RemoveRepositoryResponse, error) - RenameRepository(ctx context.Context, in *RenameRepositoryRequest, opts ...grpc.CallOption) (*RenameRepositoryResponse, error) - ReplicateRepository(ctx context.Context, in *ReplicateRepositoryRequest, opts ...grpc.CallOption) (*ReplicateRepositoryResponse, error) - OptimizeRepository(ctx context.Context, in *OptimizeRepositoryRequest, opts ...grpc.CallOption) (*OptimizeRepositoryResponse, error) -} - -type repositoryServiceClient struct { - cc *grpc.ClientConn -} - -func NewRepositoryServiceClient(cc *grpc.ClientConn) RepositoryServiceClient { - return &repositoryServiceClient{cc} -} - -func (c *repositoryServiceClient) RepositoryExists(ctx context.Context, in *RepositoryExistsRequest, opts ...grpc.CallOption) (*RepositoryExistsResponse, error) { - out := new(RepositoryExistsResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/RepositoryExists", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) RepackIncremental(ctx context.Context, in *RepackIncrementalRequest, opts ...grpc.CallOption) (*RepackIncrementalResponse, error) { - out := new(RepackIncrementalResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/RepackIncremental", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) RepackFull(ctx context.Context, in *RepackFullRequest, opts ...grpc.CallOption) (*RepackFullResponse, error) { - out := new(RepackFullResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/RepackFull", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type CloneFromPoolResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (c *repositoryServiceClient) MidxRepack(ctx context.Context, in *MidxRepackRequest, opts ...grpc.CallOption) (*MidxRepackResponse, error) { - out := new(MidxRepackResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/MidxRepack", in, out, opts...) - if err != nil { - return nil, err +func (x *CloneFromPoolResponse) Reset() { + *x = CloneFromPoolResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil } -func (c *repositoryServiceClient) GarbageCollect(ctx context.Context, in *GarbageCollectRequest, opts ...grpc.CallOption) (*GarbageCollectResponse, error) { - out := new(GarbageCollectResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/GarbageCollect", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *CloneFromPoolResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *repositoryServiceClient) WriteCommitGraph(ctx context.Context, in *WriteCommitGraphRequest, opts ...grpc.CallOption) (*WriteCommitGraphResponse, error) { - out := new(WriteCommitGraphResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/WriteCommitGraph", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*CloneFromPoolResponse) ProtoMessage() {} -func (c *repositoryServiceClient) RepositorySize(ctx context.Context, in *RepositorySizeRequest, opts ...grpc.CallOption) (*RepositorySizeResponse, error) { - out := new(RepositorySizeResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/RepositorySize", in, out, opts...) - if err != nil { - return nil, err +func (x *CloneFromPoolResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[76] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *repositoryServiceClient) ApplyGitattributes(ctx context.Context, in *ApplyGitattributesRequest, opts ...grpc.CallOption) (*ApplyGitattributesResponse, error) { - out := new(ApplyGitattributesResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/ApplyGitattributes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use CloneFromPoolResponse.ProtoReflect.Descriptor instead. +func (*CloneFromPoolResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{76} } -func (c *repositoryServiceClient) FetchRemote(ctx context.Context, in *FetchRemoteRequest, opts ...grpc.CallOption) (*FetchRemoteResponse, error) { - out := new(FetchRemoteResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/FetchRemote", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +type CloneFromPoolInternalRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (c *repositoryServiceClient) CreateRepository(ctx context.Context, in *CreateRepositoryRequest, opts ...grpc.CallOption) (*CreateRepositoryResponse, error) { - out := new(CreateRepositoryResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CreateRepository", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Pool *ObjectPool `protobuf:"bytes,2,opt,name=pool,proto3" json:"pool,omitempty"` + SourceRepository *Repository `protobuf:"bytes,3,opt,name=source_repository,json=sourceRepository,proto3" json:"source_repository,omitempty"` } -func (c *repositoryServiceClient) GetArchive(ctx context.Context, in *GetArchiveRequest, opts ...grpc.CallOption) (RepositoryService_GetArchiveClient, error) { - stream, err := c.cc.NewStream(ctx, &_RepositoryService_serviceDesc.Streams[0], "/gitaly.RepositoryService/GetArchive", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceGetArchiveClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *CloneFromPoolInternalRequest) Reset() { + *x = CloneFromPoolInternalRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return x, nil } -type RepositoryService_GetArchiveClient interface { - Recv() (*GetArchiveResponse, error) - grpc.ClientStream +func (x *CloneFromPoolInternalRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type repositoryServiceGetArchiveClient struct { - grpc.ClientStream -} - -func (x *repositoryServiceGetArchiveClient) Recv() (*GetArchiveResponse, error) { - m := new(GetArchiveResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +func (*CloneFromPoolInternalRequest) ProtoMessage() {} -func (c *repositoryServiceClient) HasLocalBranches(ctx context.Context, in *HasLocalBranchesRequest, opts ...grpc.CallOption) (*HasLocalBranchesResponse, error) { - out := new(HasLocalBranchesResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/HasLocalBranches", in, out, opts...) - if err != nil { - return nil, err +func (x *CloneFromPoolInternalRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[77] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *repositoryServiceClient) FetchSourceBranch(ctx context.Context, in *FetchSourceBranchRequest, opts ...grpc.CallOption) (*FetchSourceBranchResponse, error) { - out := new(FetchSourceBranchResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/FetchSourceBranch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use CloneFromPoolInternalRequest.ProtoReflect.Descriptor instead. +func (*CloneFromPoolInternalRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{77} } -func (c *repositoryServiceClient) Fsck(ctx context.Context, in *FsckRequest, opts ...grpc.CallOption) (*FsckResponse, error) { - out := new(FsckResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/Fsck", in, out, opts...) - if err != nil { - return nil, err +func (x *CloneFromPoolInternalRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return out, nil + return nil } -func (c *repositoryServiceClient) WriteRef(ctx context.Context, in *WriteRefRequest, opts ...grpc.CallOption) (*WriteRefResponse, error) { - out := new(WriteRefResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/WriteRef", in, out, opts...) - if err != nil { - return nil, err +func (x *CloneFromPoolInternalRequest) GetPool() *ObjectPool { + if x != nil { + return x.Pool } - return out, nil + return nil } -func (c *repositoryServiceClient) FindMergeBase(ctx context.Context, in *FindMergeBaseRequest, opts ...grpc.CallOption) (*FindMergeBaseResponse, error) { - out := new(FindMergeBaseResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/FindMergeBase", in, out, opts...) - if err != nil { - return nil, err +func (x *CloneFromPoolInternalRequest) GetSourceRepository() *Repository { + if x != nil { + return x.SourceRepository } - return out, nil + return nil } -func (c *repositoryServiceClient) CreateFork(ctx context.Context, in *CreateForkRequest, opts ...grpc.CallOption) (*CreateForkResponse, error) { - out := new(CreateForkResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CreateFork", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type CloneFromPoolInternalResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (c *repositoryServiceClient) IsRebaseInProgress(ctx context.Context, in *IsRebaseInProgressRequest, opts ...grpc.CallOption) (*IsRebaseInProgressResponse, error) { - out := new(IsRebaseInProgressResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/IsRebaseInProgress", in, out, opts...) - if err != nil { - return nil, err +func (x *CloneFromPoolInternalResponse) Reset() { + *x = CloneFromPoolInternalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil } -func (c *repositoryServiceClient) IsSquashInProgress(ctx context.Context, in *IsSquashInProgressRequest, opts ...grpc.CallOption) (*IsSquashInProgressResponse, error) { - out := new(IsSquashInProgressResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/IsSquashInProgress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *CloneFromPoolInternalResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *repositoryServiceClient) CreateRepositoryFromURL(ctx context.Context, in *CreateRepositoryFromURLRequest, opts ...grpc.CallOption) (*CreateRepositoryFromURLResponse, error) { - out := new(CreateRepositoryFromURLResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CreateRepositoryFromURL", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*CloneFromPoolInternalResponse) ProtoMessage() {} -func (c *repositoryServiceClient) CreateBundle(ctx context.Context, in *CreateBundleRequest, opts ...grpc.CallOption) (RepositoryService_CreateBundleClient, error) { - stream, err := c.cc.NewStream(ctx, &_RepositoryService_serviceDesc.Streams[1], "/gitaly.RepositoryService/CreateBundle", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceCreateBundleClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *CloneFromPoolInternalResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[78] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil + return mi.MessageOf(x) } -type RepositoryService_CreateBundleClient interface { - Recv() (*CreateBundleResponse, error) - grpc.ClientStream +// Deprecated: Use CloneFromPoolInternalResponse.ProtoReflect.Descriptor instead. +func (*CloneFromPoolInternalResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{78} } -type repositoryServiceCreateBundleClient struct { - grpc.ClientStream -} +type RemoveRepositoryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *repositoryServiceCreateBundleClient) Recv() (*CreateBundleResponse, error) { - m := new(CreateBundleResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (c *repositoryServiceClient) CreateRepositoryFromBundle(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_CreateRepositoryFromBundleClient, error) { - stream, err := c.cc.NewStream(ctx, &_RepositoryService_serviceDesc.Streams[2], "/gitaly.RepositoryService/CreateRepositoryFromBundle", opts...) - if err != nil { - return nil, err +func (x *RemoveRepositoryRequest) Reset() { + *x = RemoveRepositoryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - x := &repositoryServiceCreateRepositoryFromBundleClient{stream} - return x, nil -} - -type RepositoryService_CreateRepositoryFromBundleClient interface { - Send(*CreateRepositoryFromBundleRequest) error - CloseAndRecv() (*CreateRepositoryFromBundleResponse, error) - grpc.ClientStream } -type repositoryServiceCreateRepositoryFromBundleClient struct { - grpc.ClientStream +func (x *RemoveRepositoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *repositoryServiceCreateRepositoryFromBundleClient) Send(m *CreateRepositoryFromBundleRequest) error { - return x.ClientStream.SendMsg(m) -} +func (*RemoveRepositoryRequest) ProtoMessage() {} -func (x *repositoryServiceCreateRepositoryFromBundleClient) CloseAndRecv() (*CreateRepositoryFromBundleResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *RemoveRepositoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[79] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - m := new(CreateRepositoryFromBundleResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + return mi.MessageOf(x) } -func (c *repositoryServiceClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (RepositoryService_GetConfigClient, error) { - stream, err := c.cc.NewStream(ctx, &_RepositoryService_serviceDesc.Streams[3], "/gitaly.RepositoryService/GetConfig", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceGetConfigClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil +// Deprecated: Use RemoveRepositoryRequest.ProtoReflect.Descriptor instead. +func (*RemoveRepositoryRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{79} } -type RepositoryService_GetConfigClient interface { - Recv() (*GetConfigResponse, error) - grpc.ClientStream +func (x *RemoveRepositoryRequest) GetRepository() *Repository { + if x != nil { + return x.Repository + } + return nil } -type repositoryServiceGetConfigClient struct { - grpc.ClientStream +type RemoveRepositoryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (x *repositoryServiceGetConfigClient) Recv() (*GetConfigResponse, error) { - m := new(GetConfigResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *RemoveRepositoryResponse) Reset() { + *x = RemoveRepositoryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -func (c *repositoryServiceClient) SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) { - out := new(SetConfigResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/SetConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *RemoveRepositoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *repositoryServiceClient) DeleteConfig(ctx context.Context, in *DeleteConfigRequest, opts ...grpc.CallOption) (*DeleteConfigResponse, error) { - out := new(DeleteConfigResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/DeleteConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*RemoveRepositoryResponse) ProtoMessage() {} -func (c *repositoryServiceClient) FindLicense(ctx context.Context, in *FindLicenseRequest, opts ...grpc.CallOption) (*FindLicenseResponse, error) { - out := new(FindLicenseResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/FindLicense", in, out, opts...) - if err != nil { - return nil, err +func (x *RemoveRepositoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[80] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *repositoryServiceClient) GetInfoAttributes(ctx context.Context, in *GetInfoAttributesRequest, opts ...grpc.CallOption) (RepositoryService_GetInfoAttributesClient, error) { - stream, err := c.cc.NewStream(ctx, &_RepositoryService_serviceDesc.Streams[4], "/gitaly.RepositoryService/GetInfoAttributes", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceGetInfoAttributesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil +// Deprecated: Use RemoveRepositoryResponse.ProtoReflect.Descriptor instead. +func (*RemoveRepositoryResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{80} } -type RepositoryService_GetInfoAttributesClient interface { - Recv() (*GetInfoAttributesResponse, error) - grpc.ClientStream -} +type RenameRepositoryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type repositoryServiceGetInfoAttributesClient struct { - grpc.ClientStream + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + RelativePath string `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` } -func (x *repositoryServiceGetInfoAttributesClient) Recv() (*GetInfoAttributesResponse, error) { - m := new(GetInfoAttributesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *RenameRepositoryRequest) Reset() { + *x = RenameRepositoryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -func (c *repositoryServiceClient) CalculateChecksum(ctx context.Context, in *CalculateChecksumRequest, opts ...grpc.CallOption) (*CalculateChecksumResponse, error) { - out := new(CalculateChecksumResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CalculateChecksum", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *RenameRepositoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *repositoryServiceClient) Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, error) { - out := new(CleanupResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/Cleanup", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*RenameRepositoryRequest) ProtoMessage() {} -func (c *repositoryServiceClient) GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (RepositoryService_GetSnapshotClient, error) { - stream, err := c.cc.NewStream(ctx, &_RepositoryService_serviceDesc.Streams[5], "/gitaly.RepositoryService/GetSnapshot", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceGetSnapshotClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *RenameRepositoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[81] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RepositoryService_GetSnapshotClient interface { - Recv() (*GetSnapshotResponse, error) - grpc.ClientStream + return mi.MessageOf(x) } -type repositoryServiceGetSnapshotClient struct { - grpc.ClientStream -} - -func (x *repositoryServiceGetSnapshotClient) Recv() (*GetSnapshotResponse, error) { - m := new(GetSnapshotResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +// Deprecated: Use RenameRepositoryRequest.ProtoReflect.Descriptor instead. +func (*RenameRepositoryRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{81} } -func (c *repositoryServiceClient) CreateRepositoryFromSnapshot(ctx context.Context, in *CreateRepositoryFromSnapshotRequest, opts ...grpc.CallOption) (*CreateRepositoryFromSnapshotResponse, error) { - out := new(CreateRepositoryFromSnapshotResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CreateRepositoryFromSnapshot", in, out, opts...) - if err != nil { - return nil, err +func (x *RenameRepositoryRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return out, nil + return nil } -func (c *repositoryServiceClient) GetRawChanges(ctx context.Context, in *GetRawChangesRequest, opts ...grpc.CallOption) (RepositoryService_GetRawChangesClient, error) { - stream, err := c.cc.NewStream(ctx, &_RepositoryService_serviceDesc.Streams[6], "/gitaly.RepositoryService/GetRawChanges", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceGetRawChangesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *RenameRepositoryRequest) GetRelativePath() string { + if x != nil { + return x.RelativePath } - return x, nil -} - -type RepositoryService_GetRawChangesClient interface { - Recv() (*GetRawChangesResponse, error) - grpc.ClientStream -} - -type repositoryServiceGetRawChangesClient struct { - grpc.ClientStream + return "" } -func (x *repositoryServiceGetRawChangesClient) Recv() (*GetRawChangesResponse, error) { - m := new(GetRawChangesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +type RenameRepositoryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (c *repositoryServiceClient) SearchFilesByContent(ctx context.Context, in *SearchFilesByContentRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByContentClient, error) { - stream, err := c.cc.NewStream(ctx, &_RepositoryService_serviceDesc.Streams[7], "/gitaly.RepositoryService/SearchFilesByContent", opts...) - if err != nil { - return nil, err +func (x *RenameRepositoryResponse) Reset() { + *x = RenameRepositoryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - x := &repositoryServiceSearchFilesByContentClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RepositoryService_SearchFilesByContentClient interface { - Recv() (*SearchFilesByContentResponse, error) - grpc.ClientStream } -type repositoryServiceSearchFilesByContentClient struct { - grpc.ClientStream +func (x *RenameRepositoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *repositoryServiceSearchFilesByContentClient) Recv() (*SearchFilesByContentResponse, error) { - m := new(SearchFilesByContentResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +func (*RenameRepositoryResponse) ProtoMessage() {} -func (c *repositoryServiceClient) SearchFilesByName(ctx context.Context, in *SearchFilesByNameRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByNameClient, error) { - stream, err := c.cc.NewStream(ctx, &_RepositoryService_serviceDesc.Streams[8], "/gitaly.RepositoryService/SearchFilesByName", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceSearchFilesByNameClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *RenameRepositoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[82] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil + return mi.MessageOf(x) } -type RepositoryService_SearchFilesByNameClient interface { - Recv() (*SearchFilesByNameResponse, error) - grpc.ClientStream +// Deprecated: Use RenameRepositoryResponse.ProtoReflect.Descriptor instead. +func (*RenameRepositoryResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{82} } -type repositoryServiceSearchFilesByNameClient struct { - grpc.ClientStream -} +type ReplicateRepositoryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *repositoryServiceSearchFilesByNameClient) Recv() (*SearchFilesByNameResponse, error) { - m := new(SearchFilesByNameResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Source *Repository `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` } -func (c *repositoryServiceClient) RestoreCustomHooks(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_RestoreCustomHooksClient, error) { - stream, err := c.cc.NewStream(ctx, &_RepositoryService_serviceDesc.Streams[9], "/gitaly.RepositoryService/RestoreCustomHooks", opts...) - if err != nil { - return nil, err +func (x *ReplicateRepositoryRequest) Reset() { + *x = ReplicateRepositoryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - x := &repositoryServiceRestoreCustomHooksClient{stream} - return x, nil } -type RepositoryService_RestoreCustomHooksClient interface { - Send(*RestoreCustomHooksRequest) error - CloseAndRecv() (*RestoreCustomHooksResponse, error) - grpc.ClientStream +func (x *ReplicateRepositoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type repositoryServiceRestoreCustomHooksClient struct { - grpc.ClientStream -} +func (*ReplicateRepositoryRequest) ProtoMessage() {} -func (x *repositoryServiceRestoreCustomHooksClient) Send(m *RestoreCustomHooksRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *repositoryServiceRestoreCustomHooksClient) CloseAndRecv() (*RestoreCustomHooksResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(RestoreCustomHooksResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *ReplicateRepositoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[83] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -func (c *repositoryServiceClient) BackupCustomHooks(ctx context.Context, in *BackupCustomHooksRequest, opts ...grpc.CallOption) (RepositoryService_BackupCustomHooksClient, error) { - stream, err := c.cc.NewStream(ctx, &_RepositoryService_serviceDesc.Streams[10], "/gitaly.RepositoryService/BackupCustomHooks", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceBackupCustomHooksClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RepositoryService_BackupCustomHooksClient interface { - Recv() (*BackupCustomHooksResponse, error) - grpc.ClientStream -} - -type repositoryServiceBackupCustomHooksClient struct { - grpc.ClientStream -} - -func (x *repositoryServiceBackupCustomHooksClient) Recv() (*BackupCustomHooksResponse, error) { - m := new(BackupCustomHooksResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +// Deprecated: Use ReplicateRepositoryRequest.ProtoReflect.Descriptor instead. +func (*ReplicateRepositoryRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{83} } -func (c *repositoryServiceClient) GetObjectDirectorySize(ctx context.Context, in *GetObjectDirectorySizeRequest, opts ...grpc.CallOption) (*GetObjectDirectorySizeResponse, error) { - out := new(GetObjectDirectorySizeResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/GetObjectDirectorySize", in, out, opts...) - if err != nil { - return nil, err +func (x *ReplicateRepositoryRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return out, nil + return nil } -func (c *repositoryServiceClient) CloneFromPool(ctx context.Context, in *CloneFromPoolRequest, opts ...grpc.CallOption) (*CloneFromPoolResponse, error) { - out := new(CloneFromPoolResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CloneFromPool", in, out, opts...) - if err != nil { - return nil, err +func (x *ReplicateRepositoryRequest) GetSource() *Repository { + if x != nil { + return x.Source } - return out, nil + return nil } -func (c *repositoryServiceClient) CloneFromPoolInternal(ctx context.Context, in *CloneFromPoolInternalRequest, opts ...grpc.CallOption) (*CloneFromPoolInternalResponse, error) { - out := new(CloneFromPoolInternalResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CloneFromPoolInternal", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type ReplicateRepositoryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (c *repositoryServiceClient) RemoveRepository(ctx context.Context, in *RemoveRepositoryRequest, opts ...grpc.CallOption) (*RemoveRepositoryResponse, error) { - out := new(RemoveRepositoryResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/RemoveRepository", in, out, opts...) - if err != nil { - return nil, err +func (x *ReplicateRepositoryResponse) Reset() { + *x = ReplicateRepositoryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil } -func (c *repositoryServiceClient) RenameRepository(ctx context.Context, in *RenameRepositoryRequest, opts ...grpc.CallOption) (*RenameRepositoryResponse, error) { - out := new(RenameRepositoryResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/RenameRepository", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *ReplicateRepositoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *repositoryServiceClient) ReplicateRepository(ctx context.Context, in *ReplicateRepositoryRequest, opts ...grpc.CallOption) (*ReplicateRepositoryResponse, error) { - out := new(ReplicateRepositoryResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/ReplicateRepository", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*ReplicateRepositoryResponse) ProtoMessage() {} -func (c *repositoryServiceClient) OptimizeRepository(ctx context.Context, in *OptimizeRepositoryRequest, opts ...grpc.CallOption) (*OptimizeRepositoryResponse, error) { - out := new(OptimizeRepositoryResponse) - err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/OptimizeRepository", in, out, opts...) - if err != nil { - return nil, err +func (x *ReplicateRepositoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[84] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil -} - -// RepositoryServiceServer is the server API for RepositoryService service. -type RepositoryServiceServer interface { - RepositoryExists(context.Context, *RepositoryExistsRequest) (*RepositoryExistsResponse, error) - RepackIncremental(context.Context, *RepackIncrementalRequest) (*RepackIncrementalResponse, error) - RepackFull(context.Context, *RepackFullRequest) (*RepackFullResponse, error) - MidxRepack(context.Context, *MidxRepackRequest) (*MidxRepackResponse, error) - GarbageCollect(context.Context, *GarbageCollectRequest) (*GarbageCollectResponse, error) - WriteCommitGraph(context.Context, *WriteCommitGraphRequest) (*WriteCommitGraphResponse, error) - RepositorySize(context.Context, *RepositorySizeRequest) (*RepositorySizeResponse, error) - ApplyGitattributes(context.Context, *ApplyGitattributesRequest) (*ApplyGitattributesResponse, error) - // FetchRemote fetches references from a remote repository into the local - // repository. - FetchRemote(context.Context, *FetchRemoteRequest) (*FetchRemoteResponse, error) - CreateRepository(context.Context, *CreateRepositoryRequest) (*CreateRepositoryResponse, error) - GetArchive(*GetArchiveRequest, RepositoryService_GetArchiveServer) error - HasLocalBranches(context.Context, *HasLocalBranchesRequest) (*HasLocalBranchesResponse, error) - // FetchSourceBranch fetches a branch from a second (potentially remote) - // repository into the given repository. - FetchSourceBranch(context.Context, *FetchSourceBranchRequest) (*FetchSourceBranchResponse, error) - Fsck(context.Context, *FsckRequest) (*FsckResponse, error) - WriteRef(context.Context, *WriteRefRequest) (*WriteRefResponse, error) - FindMergeBase(context.Context, *FindMergeBaseRequest) (*FindMergeBaseResponse, error) - CreateFork(context.Context, *CreateForkRequest) (*CreateForkResponse, error) - IsRebaseInProgress(context.Context, *IsRebaseInProgressRequest) (*IsRebaseInProgressResponse, error) - IsSquashInProgress(context.Context, *IsSquashInProgressRequest) (*IsSquashInProgressResponse, error) - CreateRepositoryFromURL(context.Context, *CreateRepositoryFromURLRequest) (*CreateRepositoryFromURLResponse, error) - CreateBundle(*CreateBundleRequest, RepositoryService_CreateBundleServer) error - CreateRepositoryFromBundle(RepositoryService_CreateRepositoryFromBundleServer) error - // GetConfig reads the target repository's gitconfig and streams its contents - // back. Returns a NotFound error in case no gitconfig was found. - GetConfig(*GetConfigRequest, RepositoryService_GetConfigServer) error - SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error) - DeleteConfig(context.Context, *DeleteConfigRequest) (*DeleteConfigResponse, error) - FindLicense(context.Context, *FindLicenseRequest) (*FindLicenseResponse, error) - GetInfoAttributes(*GetInfoAttributesRequest, RepositoryService_GetInfoAttributesServer) error - CalculateChecksum(context.Context, *CalculateChecksumRequest) (*CalculateChecksumResponse, error) - Cleanup(context.Context, *CleanupRequest) (*CleanupResponse, error) - GetSnapshot(*GetSnapshotRequest, RepositoryService_GetSnapshotServer) error - CreateRepositoryFromSnapshot(context.Context, *CreateRepositoryFromSnapshotRequest) (*CreateRepositoryFromSnapshotResponse, error) - GetRawChanges(*GetRawChangesRequest, RepositoryService_GetRawChangesServer) error - SearchFilesByContent(*SearchFilesByContentRequest, RepositoryService_SearchFilesByContentServer) error - SearchFilesByName(*SearchFilesByNameRequest, RepositoryService_SearchFilesByNameServer) error - RestoreCustomHooks(RepositoryService_RestoreCustomHooksServer) error - BackupCustomHooks(*BackupCustomHooksRequest, RepositoryService_BackupCustomHooksServer) error - GetObjectDirectorySize(context.Context, *GetObjectDirectorySizeRequest) (*GetObjectDirectorySizeResponse, error) - CloneFromPool(context.Context, *CloneFromPoolRequest) (*CloneFromPoolResponse, error) - CloneFromPoolInternal(context.Context, *CloneFromPoolInternalRequest) (*CloneFromPoolInternalResponse, error) - // RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and - // eventually remove it. This ensures that even on networked filesystems the - // data is actually removed even if there's someone still handling the data. - RemoveRepository(context.Context, *RemoveRepositoryRequest) (*RemoveRepositoryResponse, error) - RenameRepository(context.Context, *RenameRepositoryRequest) (*RenameRepositoryResponse, error) - ReplicateRepository(context.Context, *ReplicateRepositoryRequest) (*ReplicateRepositoryResponse, error) - OptimizeRepository(context.Context, *OptimizeRepositoryRequest) (*OptimizeRepositoryResponse, error) + return mi.MessageOf(x) } -// UnimplementedRepositoryServiceServer can be embedded to have forward compatible implementations. -type UnimplementedRepositoryServiceServer struct { +// Deprecated: Use ReplicateRepositoryResponse.ProtoReflect.Descriptor instead. +func (*ReplicateRepositoryResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{84} } -func (*UnimplementedRepositoryServiceServer) RepositoryExists(ctx context.Context, req *RepositoryExistsRequest) (*RepositoryExistsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RepositoryExists not implemented") -} -func (*UnimplementedRepositoryServiceServer) RepackIncremental(ctx context.Context, req *RepackIncrementalRequest) (*RepackIncrementalResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RepackIncremental not implemented") -} -func (*UnimplementedRepositoryServiceServer) RepackFull(ctx context.Context, req *RepackFullRequest) (*RepackFullResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RepackFull not implemented") -} -func (*UnimplementedRepositoryServiceServer) MidxRepack(ctx context.Context, req *MidxRepackRequest) (*MidxRepackResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MidxRepack not implemented") -} -func (*UnimplementedRepositoryServiceServer) GarbageCollect(ctx context.Context, req *GarbageCollectRequest) (*GarbageCollectResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GarbageCollect not implemented") -} -func (*UnimplementedRepositoryServiceServer) WriteCommitGraph(ctx context.Context, req *WriteCommitGraphRequest) (*WriteCommitGraphResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method WriteCommitGraph not implemented") -} -func (*UnimplementedRepositoryServiceServer) RepositorySize(ctx context.Context, req *RepositorySizeRequest) (*RepositorySizeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RepositorySize not implemented") -} -func (*UnimplementedRepositoryServiceServer) ApplyGitattributes(ctx context.Context, req *ApplyGitattributesRequest) (*ApplyGitattributesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApplyGitattributes not implemented") -} -func (*UnimplementedRepositoryServiceServer) FetchRemote(ctx context.Context, req *FetchRemoteRequest) (*FetchRemoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FetchRemote not implemented") -} -func (*UnimplementedRepositoryServiceServer) CreateRepository(ctx context.Context, req *CreateRepositoryRequest) (*CreateRepositoryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateRepository not implemented") -} -func (*UnimplementedRepositoryServiceServer) GetArchive(req *GetArchiveRequest, srv RepositoryService_GetArchiveServer) error { - return status.Errorf(codes.Unimplemented, "method GetArchive not implemented") -} -func (*UnimplementedRepositoryServiceServer) HasLocalBranches(ctx context.Context, req *HasLocalBranchesRequest) (*HasLocalBranchesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HasLocalBranches not implemented") -} -func (*UnimplementedRepositoryServiceServer) FetchSourceBranch(ctx context.Context, req *FetchSourceBranchRequest) (*FetchSourceBranchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FetchSourceBranch not implemented") -} -func (*UnimplementedRepositoryServiceServer) Fsck(ctx context.Context, req *FsckRequest) (*FsckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Fsck not implemented") -} -func (*UnimplementedRepositoryServiceServer) WriteRef(ctx context.Context, req *WriteRefRequest) (*WriteRefResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method WriteRef not implemented") -} -func (*UnimplementedRepositoryServiceServer) FindMergeBase(ctx context.Context, req *FindMergeBaseRequest) (*FindMergeBaseResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindMergeBase not implemented") -} -func (*UnimplementedRepositoryServiceServer) CreateFork(ctx context.Context, req *CreateForkRequest) (*CreateForkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateFork not implemented") -} -func (*UnimplementedRepositoryServiceServer) IsRebaseInProgress(ctx context.Context, req *IsRebaseInProgressRequest) (*IsRebaseInProgressResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsRebaseInProgress not implemented") -} -func (*UnimplementedRepositoryServiceServer) IsSquashInProgress(ctx context.Context, req *IsSquashInProgressRequest) (*IsSquashInProgressResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsSquashInProgress not implemented") -} -func (*UnimplementedRepositoryServiceServer) CreateRepositoryFromURL(ctx context.Context, req *CreateRepositoryFromURLRequest) (*CreateRepositoryFromURLResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateRepositoryFromURL not implemented") -} -func (*UnimplementedRepositoryServiceServer) CreateBundle(req *CreateBundleRequest, srv RepositoryService_CreateBundleServer) error { - return status.Errorf(codes.Unimplemented, "method CreateBundle not implemented") -} -func (*UnimplementedRepositoryServiceServer) CreateRepositoryFromBundle(srv RepositoryService_CreateRepositoryFromBundleServer) error { - return status.Errorf(codes.Unimplemented, "method CreateRepositoryFromBundle not implemented") -} -func (*UnimplementedRepositoryServiceServer) GetConfig(req *GetConfigRequest, srv RepositoryService_GetConfigServer) error { - return status.Errorf(codes.Unimplemented, "method GetConfig not implemented") -} -func (*UnimplementedRepositoryServiceServer) SetConfig(ctx context.Context, req *SetConfigRequest) (*SetConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetConfig not implemented") -} -func (*UnimplementedRepositoryServiceServer) DeleteConfig(ctx context.Context, req *DeleteConfigRequest) (*DeleteConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteConfig not implemented") -} -func (*UnimplementedRepositoryServiceServer) FindLicense(ctx context.Context, req *FindLicenseRequest) (*FindLicenseResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindLicense not implemented") -} -func (*UnimplementedRepositoryServiceServer) GetInfoAttributes(req *GetInfoAttributesRequest, srv RepositoryService_GetInfoAttributesServer) error { - return status.Errorf(codes.Unimplemented, "method GetInfoAttributes not implemented") -} -func (*UnimplementedRepositoryServiceServer) CalculateChecksum(ctx context.Context, req *CalculateChecksumRequest) (*CalculateChecksumResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CalculateChecksum not implemented") -} -func (*UnimplementedRepositoryServiceServer) Cleanup(ctx context.Context, req *CleanupRequest) (*CleanupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Cleanup not implemented") -} -func (*UnimplementedRepositoryServiceServer) GetSnapshot(req *GetSnapshotRequest, srv RepositoryService_GetSnapshotServer) error { - return status.Errorf(codes.Unimplemented, "method GetSnapshot not implemented") -} -func (*UnimplementedRepositoryServiceServer) CreateRepositoryFromSnapshot(ctx context.Context, req *CreateRepositoryFromSnapshotRequest) (*CreateRepositoryFromSnapshotResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateRepositoryFromSnapshot not implemented") -} -func (*UnimplementedRepositoryServiceServer) GetRawChanges(req *GetRawChangesRequest, srv RepositoryService_GetRawChangesServer) error { - return status.Errorf(codes.Unimplemented, "method GetRawChanges not implemented") -} -func (*UnimplementedRepositoryServiceServer) SearchFilesByContent(req *SearchFilesByContentRequest, srv RepositoryService_SearchFilesByContentServer) error { - return status.Errorf(codes.Unimplemented, "method SearchFilesByContent not implemented") -} -func (*UnimplementedRepositoryServiceServer) SearchFilesByName(req *SearchFilesByNameRequest, srv RepositoryService_SearchFilesByNameServer) error { - return status.Errorf(codes.Unimplemented, "method SearchFilesByName not implemented") -} -func (*UnimplementedRepositoryServiceServer) RestoreCustomHooks(srv RepositoryService_RestoreCustomHooksServer) error { - return status.Errorf(codes.Unimplemented, "method RestoreCustomHooks not implemented") -} -func (*UnimplementedRepositoryServiceServer) BackupCustomHooks(req *BackupCustomHooksRequest, srv RepositoryService_BackupCustomHooksServer) error { - return status.Errorf(codes.Unimplemented, "method BackupCustomHooks not implemented") -} -func (*UnimplementedRepositoryServiceServer) GetObjectDirectorySize(ctx context.Context, req *GetObjectDirectorySizeRequest) (*GetObjectDirectorySizeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetObjectDirectorySize not implemented") -} -func (*UnimplementedRepositoryServiceServer) CloneFromPool(ctx context.Context, req *CloneFromPoolRequest) (*CloneFromPoolResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CloneFromPool not implemented") -} -func (*UnimplementedRepositoryServiceServer) CloneFromPoolInternal(ctx context.Context, req *CloneFromPoolInternalRequest) (*CloneFromPoolInternalResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CloneFromPoolInternal not implemented") -} -func (*UnimplementedRepositoryServiceServer) RemoveRepository(ctx context.Context, req *RemoveRepositoryRequest) (*RemoveRepositoryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveRepository not implemented") -} -func (*UnimplementedRepositoryServiceServer) RenameRepository(ctx context.Context, req *RenameRepositoryRequest) (*RenameRepositoryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RenameRepository not implemented") -} -func (*UnimplementedRepositoryServiceServer) ReplicateRepository(ctx context.Context, req *ReplicateRepositoryRequest) (*ReplicateRepositoryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReplicateRepository not implemented") -} -func (*UnimplementedRepositoryServiceServer) OptimizeRepository(ctx context.Context, req *OptimizeRepositoryRequest) (*OptimizeRepositoryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OptimizeRepository not implemented") -} +type OptimizeRepositoryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func RegisterRepositoryServiceServer(s *grpc.Server, srv RepositoryServiceServer) { - s.RegisterService(&_RepositoryService_serviceDesc, srv) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func _RepositoryService_RepositoryExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RepositoryExistsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).RepositoryExists(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/RepositoryExists", +func (x *OptimizeRepositoryRequest) Reset() { + *x = OptimizeRepositoryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).RepositoryExists(ctx, req.(*RepositoryExistsRequest)) - } - return interceptor(ctx, in, info, handler) } -func _RepositoryService_RepackIncremental_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RepackIncrementalRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).RepackIncremental(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/RepackIncremental", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).RepackIncremental(ctx, req.(*RepackIncrementalRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *OptimizeRepositoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func _RepositoryService_RepackFull_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RepackFullRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).RepackFull(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/RepackFull", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).RepackFull(ctx, req.(*RepackFullRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*OptimizeRepositoryRequest) ProtoMessage() {} -func _RepositoryService_MidxRepack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MidxRepackRequest) - if err := dec(in); err != nil { - return nil, err +func (x *OptimizeRepositoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[85] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if interceptor == nil { - return srv.(RepositoryServiceServer).MidxRepack(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/MidxRepack", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).MidxRepack(ctx, req.(*MidxRepackRequest)) - } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _RepositoryService_GarbageCollect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GarbageCollectRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).GarbageCollect(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/GarbageCollect", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).GarbageCollect(ctx, req.(*GarbageCollectRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use OptimizeRepositoryRequest.ProtoReflect.Descriptor instead. +func (*OptimizeRepositoryRequest) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{85} } -func _RepositoryService_WriteCommitGraph_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WriteCommitGraphRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).WriteCommitGraph(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/WriteCommitGraph", +func (x *OptimizeRepositoryRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).WriteCommitGraph(ctx, req.(*WriteCommitGraphRequest)) - } - return interceptor(ctx, in, info, handler) + return nil } -func _RepositoryService_RepositorySize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RepositorySizeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).RepositorySize(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/RepositorySize", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).RepositorySize(ctx, req.(*RepositorySizeRequest)) - } - return interceptor(ctx, in, info, handler) +type OptimizeRepositoryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func _RepositoryService_ApplyGitattributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplyGitattributesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).ApplyGitattributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/ApplyGitattributes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).ApplyGitattributes(ctx, req.(*ApplyGitattributesRequest)) +func (x *OptimizeRepositoryResponse) Reset() { + *x = OptimizeRepositoryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return interceptor(ctx, in, info, handler) } -func _RepositoryService_FetchRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FetchRemoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).FetchRemote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/FetchRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).FetchRemote(ctx, req.(*FetchRemoteRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *OptimizeRepositoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func _RepositoryService_CreateRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRepositoryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).CreateRepository(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/CreateRepository", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).CreateRepository(ctx, req.(*CreateRepositoryRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*OptimizeRepositoryResponse) ProtoMessage() {} -func _RepositoryService_GetArchive_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetArchiveRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *OptimizeRepositoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[86] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(RepositoryServiceServer).GetArchive(m, &repositoryServiceGetArchiveServer{stream}) + return mi.MessageOf(x) } -type RepositoryService_GetArchiveServer interface { - Send(*GetArchiveResponse) error - grpc.ServerStream +// Deprecated: Use OptimizeRepositoryResponse.ProtoReflect.Descriptor instead. +func (*OptimizeRepositoryResponse) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{86} } -type repositoryServiceGetArchiveServer struct { - grpc.ServerStream -} +type SetConfigRequest_Entry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *repositoryServiceGetArchiveServer) Send(m *GetArchiveResponse) error { - return x.ServerStream.SendMsg(m) + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // Types that are assignable to Value: + // *SetConfigRequest_Entry_ValueStr + // *SetConfigRequest_Entry_ValueInt32 + // *SetConfigRequest_Entry_ValueBool + Value isSetConfigRequest_Entry_Value `protobuf_oneof:"value"` } -func _RepositoryService_HasLocalBranches_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(HasLocalBranchesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).HasLocalBranches(ctx, in) +func (x *SetConfigRequest_Entry) Reset() { + *x = SetConfigRequest_Entry{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/HasLocalBranches", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).HasLocalBranches(ctx, req.(*HasLocalBranchesRequest)) - } - return interceptor(ctx, in, info, handler) } -func _RepositoryService_FetchSourceBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FetchSourceBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).FetchSourceBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/FetchSourceBranch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).FetchSourceBranch(ctx, req.(*FetchSourceBranchRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *SetConfigRequest_Entry) String() string { + return protoimpl.X.MessageStringOf(x) } -func _RepositoryService_Fsck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FsckRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).Fsck(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/Fsck", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).Fsck(ctx, req.(*FsckRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*SetConfigRequest_Entry) ProtoMessage() {} -func _RepositoryService_WriteRef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WriteRefRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).WriteRef(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/WriteRef", +func (x *SetConfigRequest_Entry) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[87] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).WriteRef(ctx, req.(*WriteRefRequest)) - } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _RepositoryService_FindMergeBase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindMergeBaseRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).FindMergeBase(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/FindMergeBase", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).FindMergeBase(ctx, req.(*FindMergeBaseRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use SetConfigRequest_Entry.ProtoReflect.Descriptor instead. +func (*SetConfigRequest_Entry) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{46, 0} } -func _RepositoryService_CreateFork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateForkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).CreateFork(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/CreateFork", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).CreateFork(ctx, req.(*CreateForkRequest)) +func (x *SetConfigRequest_Entry) GetKey() string { + if x != nil { + return x.Key } - return interceptor(ctx, in, info, handler) + return "" } -func _RepositoryService_IsRebaseInProgress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IsRebaseInProgressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).IsRebaseInProgress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/IsRebaseInProgress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).IsRebaseInProgress(ctx, req.(*IsRebaseInProgressRequest)) +func (m *SetConfigRequest_Entry) GetValue() isSetConfigRequest_Entry_Value { + if m != nil { + return m.Value } - return interceptor(ctx, in, info, handler) + return nil } -func _RepositoryService_IsSquashInProgress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IsSquashInProgressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).IsSquashInProgress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/IsSquashInProgress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).IsSquashInProgress(ctx, req.(*IsSquashInProgressRequest)) +func (x *SetConfigRequest_Entry) GetValueStr() string { + if x, ok := x.GetValue().(*SetConfigRequest_Entry_ValueStr); ok { + return x.ValueStr } - return interceptor(ctx, in, info, handler) + return "" } -func _RepositoryService_CreateRepositoryFromURL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRepositoryFromURLRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).CreateRepositoryFromURL(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/CreateRepositoryFromURL", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).CreateRepositoryFromURL(ctx, req.(*CreateRepositoryFromURLRequest)) +func (x *SetConfigRequest_Entry) GetValueInt32() int32 { + if x, ok := x.GetValue().(*SetConfigRequest_Entry_ValueInt32); ok { + return x.ValueInt32 } - return interceptor(ctx, in, info, handler) + return 0 } -func _RepositoryService_CreateBundle_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CreateBundleRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *SetConfigRequest_Entry) GetValueBool() bool { + if x, ok := x.GetValue().(*SetConfigRequest_Entry_ValueBool); ok { + return x.ValueBool } - return srv.(RepositoryServiceServer).CreateBundle(m, &repositoryServiceCreateBundleServer{stream}) -} - -type RepositoryService_CreateBundleServer interface { - Send(*CreateBundleResponse) error - grpc.ServerStream -} - -type repositoryServiceCreateBundleServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceCreateBundleServer) Send(m *CreateBundleResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RepositoryService_CreateRepositoryFromBundle_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(RepositoryServiceServer).CreateRepositoryFromBundle(&repositoryServiceCreateRepositoryFromBundleServer{stream}) -} - -type RepositoryService_CreateRepositoryFromBundleServer interface { - SendAndClose(*CreateRepositoryFromBundleResponse) error - Recv() (*CreateRepositoryFromBundleRequest, error) - grpc.ServerStream -} - -type repositoryServiceCreateRepositoryFromBundleServer struct { - grpc.ServerStream + return false } -func (x *repositoryServiceCreateRepositoryFromBundleServer) SendAndClose(m *CreateRepositoryFromBundleResponse) error { - return x.ServerStream.SendMsg(m) +type isSetConfigRequest_Entry_Value interface { + isSetConfigRequest_Entry_Value() } -func (x *repositoryServiceCreateRepositoryFromBundleServer) Recv() (*CreateRepositoryFromBundleRequest, error) { - m := new(CreateRepositoryFromBundleRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +type SetConfigRequest_Entry_ValueStr struct { + ValueStr string `protobuf:"bytes,2,opt,name=value_str,json=valueStr,proto3,oneof"` } -func _RepositoryService_GetConfig_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetConfigRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RepositoryServiceServer).GetConfig(m, &repositoryServiceGetConfigServer{stream}) +type SetConfigRequest_Entry_ValueInt32 struct { + ValueInt32 int32 `protobuf:"varint,3,opt,name=value_int32,json=valueInt32,proto3,oneof"` } -type RepositoryService_GetConfigServer interface { - Send(*GetConfigResponse) error - grpc.ServerStream +type SetConfigRequest_Entry_ValueBool struct { + ValueBool bool `protobuf:"varint,4,opt,name=value_bool,json=valueBool,proto3,oneof"` } -type repositoryServiceGetConfigServer struct { - grpc.ServerStream -} +func (*SetConfigRequest_Entry_ValueStr) isSetConfigRequest_Entry_Value() {} -func (x *repositoryServiceGetConfigServer) Send(m *GetConfigResponse) error { - return x.ServerStream.SendMsg(m) -} +func (*SetConfigRequest_Entry_ValueInt32) isSetConfigRequest_Entry_Value() {} -func _RepositoryService_SetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).SetConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/SetConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).SetConfig(ctx, req.(*SetConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*SetConfigRequest_Entry_ValueBool) isSetConfigRequest_Entry_Value() {} -func _RepositoryService_DeleteConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).DeleteConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/DeleteConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).DeleteConfig(ctx, req.(*DeleteConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} +type GetRawChangesResponse_RawChange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func _RepositoryService_FindLicense_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindLicenseRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).FindLicense(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/FindLicense", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).FindLicense(ctx, req.(*FindLicenseRequest)) - } - return interceptor(ctx, in, info, handler) + BlobId string `protobuf:"bytes,1,opt,name=blob_id,json=blobId,proto3" json:"blob_id,omitempty"` + Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + // use fields 9 and 10 in place of 3 and 4 (respectively) + // + // Deprecated: Do not use. + NewPath string `protobuf:"bytes,3,opt,name=new_path,json=newPath,proto3" json:"new_path,omitempty"` + // Deprecated: Do not use. + OldPath string `protobuf:"bytes,4,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"` + Operation GetRawChangesResponse_RawChange_Operation `protobuf:"varint,5,opt,name=operation,proto3,enum=gitaly.GetRawChangesResponse_RawChange_Operation" json:"operation,omitempty"` + RawOperation string `protobuf:"bytes,6,opt,name=raw_operation,json=rawOperation,proto3" json:"raw_operation,omitempty"` + OldMode int32 `protobuf:"varint,7,opt,name=old_mode,json=oldMode,proto3" json:"old_mode,omitempty"` + NewMode int32 `protobuf:"varint,8,opt,name=new_mode,json=newMode,proto3" json:"new_mode,omitempty"` + // the following fields, 9 and 10, will eventually replace 3 and 4 + NewPathBytes []byte `protobuf:"bytes,9,opt,name=new_path_bytes,json=newPathBytes,proto3" json:"new_path_bytes,omitempty"` + OldPathBytes []byte `protobuf:"bytes,10,opt,name=old_path_bytes,json=oldPathBytes,proto3" json:"old_path_bytes,omitempty"` } -func _RepositoryService_GetInfoAttributes_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetInfoAttributesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *GetRawChangesResponse_RawChange) Reset() { + *x = GetRawChangesResponse_RawChange{} + if protoimpl.UnsafeEnabled { + mi := &file_repository_service_proto_msgTypes[88] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(RepositoryServiceServer).GetInfoAttributes(m, &repositoryServiceGetInfoAttributesServer{stream}) } -type RepositoryService_GetInfoAttributesServer interface { - Send(*GetInfoAttributesResponse) error - grpc.ServerStream +func (x *GetRawChangesResponse_RawChange) String() string { + return protoimpl.X.MessageStringOf(x) } -type repositoryServiceGetInfoAttributesServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceGetInfoAttributesServer) Send(m *GetInfoAttributesResponse) error { - return x.ServerStream.SendMsg(m) -} +func (*GetRawChangesResponse_RawChange) ProtoMessage() {} -func _RepositoryService_CalculateChecksum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CalculateChecksumRequest) - if err := dec(in); err != nil { - return nil, err +func (x *GetRawChangesResponse_RawChange) ProtoReflect() protoreflect.Message { + mi := &file_repository_service_proto_msgTypes[88] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if interceptor == nil { - return srv.(RepositoryServiceServer).CalculateChecksum(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/CalculateChecksum", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).CalculateChecksum(ctx, req.(*CalculateChecksumRequest)) - } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _RepositoryService_Cleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CleanupRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).Cleanup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/Cleanup", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).Cleanup(ctx, req.(*CleanupRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_GetSnapshot_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetSnapshotRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RepositoryServiceServer).GetSnapshot(m, &repositoryServiceGetSnapshotServer{stream}) -} - -type RepositoryService_GetSnapshotServer interface { - Send(*GetSnapshotResponse) error - grpc.ServerStream -} - -type repositoryServiceGetSnapshotServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceGetSnapshotServer) Send(m *GetSnapshotResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RepositoryService_CreateRepositoryFromSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRepositoryFromSnapshotRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).CreateRepositoryFromSnapshot(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/CreateRepositoryFromSnapshot", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).CreateRepositoryFromSnapshot(ctx, req.(*CreateRepositoryFromSnapshotRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use GetRawChangesResponse_RawChange.ProtoReflect.Descriptor instead. +func (*GetRawChangesResponse_RawChange) Descriptor() ([]byte, []int) { + return file_repository_service_proto_rawDescGZIP(), []int{67, 0} } -func _RepositoryService_GetRawChanges_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetRawChangesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *GetRawChangesResponse_RawChange) GetBlobId() string { + if x != nil { + return x.BlobId } - return srv.(RepositoryServiceServer).GetRawChanges(m, &repositoryServiceGetRawChangesServer{stream}) -} - -type RepositoryService_GetRawChangesServer interface { - Send(*GetRawChangesResponse) error - grpc.ServerStream -} - -type repositoryServiceGetRawChangesServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceGetRawChangesServer) Send(m *GetRawChangesResponse) error { - return x.ServerStream.SendMsg(m) + return "" } -func _RepositoryService_SearchFilesByContent_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(SearchFilesByContentRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *GetRawChangesResponse_RawChange) GetSize() int64 { + if x != nil { + return x.Size } - return srv.(RepositoryServiceServer).SearchFilesByContent(m, &repositoryServiceSearchFilesByContentServer{stream}) -} - -type RepositoryService_SearchFilesByContentServer interface { - Send(*SearchFilesByContentResponse) error - grpc.ServerStream -} - -type repositoryServiceSearchFilesByContentServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceSearchFilesByContentServer) Send(m *SearchFilesByContentResponse) error { - return x.ServerStream.SendMsg(m) + return 0 } -func _RepositoryService_SearchFilesByName_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(SearchFilesByNameRequest) - if err := stream.RecvMsg(m); err != nil { - return err +// Deprecated: Do not use. +func (x *GetRawChangesResponse_RawChange) GetNewPath() string { + if x != nil { + return x.NewPath } - return srv.(RepositoryServiceServer).SearchFilesByName(m, &repositoryServiceSearchFilesByNameServer{stream}) -} - -type RepositoryService_SearchFilesByNameServer interface { - Send(*SearchFilesByNameResponse) error - grpc.ServerStream -} - -type repositoryServiceSearchFilesByNameServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceSearchFilesByNameServer) Send(m *SearchFilesByNameResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RepositoryService_RestoreCustomHooks_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(RepositoryServiceServer).RestoreCustomHooks(&repositoryServiceRestoreCustomHooksServer{stream}) -} - -type RepositoryService_RestoreCustomHooksServer interface { - SendAndClose(*RestoreCustomHooksResponse) error - Recv() (*RestoreCustomHooksRequest, error) - grpc.ServerStream -} - -type repositoryServiceRestoreCustomHooksServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceRestoreCustomHooksServer) SendAndClose(m *RestoreCustomHooksResponse) error { - return x.ServerStream.SendMsg(m) + return "" } -func (x *repositoryServiceRestoreCustomHooksServer) Recv() (*RestoreCustomHooksRequest, error) { - m := new(RestoreCustomHooksRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +// Deprecated: Do not use. +func (x *GetRawChangesResponse_RawChange) GetOldPath() string { + if x != nil { + return x.OldPath } - return m, nil + return "" } -func _RepositoryService_BackupCustomHooks_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(BackupCustomHooksRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *GetRawChangesResponse_RawChange) GetOperation() GetRawChangesResponse_RawChange_Operation { + if x != nil { + return x.Operation } - return srv.(RepositoryServiceServer).BackupCustomHooks(m, &repositoryServiceBackupCustomHooksServer{stream}) -} - -type RepositoryService_BackupCustomHooksServer interface { - Send(*BackupCustomHooksResponse) error - grpc.ServerStream -} - -type repositoryServiceBackupCustomHooksServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceBackupCustomHooksServer) Send(m *BackupCustomHooksResponse) error { - return x.ServerStream.SendMsg(m) + return GetRawChangesResponse_RawChange_UNKNOWN } -func _RepositoryService_GetObjectDirectorySize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetObjectDirectorySizeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).GetObjectDirectorySize(ctx, in) +func (x *GetRawChangesResponse_RawChange) GetRawOperation() string { + if x != nil { + return x.RawOperation } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/GetObjectDirectorySize", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).GetObjectDirectorySize(ctx, req.(*GetObjectDirectorySizeRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _RepositoryService_CloneFromPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CloneFromPoolRequest) - if err := dec(in); err != nil { - return nil, err +func (x *GetRawChangesResponse_RawChange) GetOldMode() int32 { + if x != nil { + return x.OldMode } - if interceptor == nil { - return srv.(RepositoryServiceServer).CloneFromPool(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/CloneFromPool", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).CloneFromPool(ctx, req.(*CloneFromPoolRequest)) - } - return interceptor(ctx, in, info, handler) + return 0 } -func _RepositoryService_CloneFromPoolInternal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CloneFromPoolInternalRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).CloneFromPoolInternal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/CloneFromPoolInternal", +func (x *GetRawChangesResponse_RawChange) GetNewMode() int32 { + if x != nil { + return x.NewMode } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).CloneFromPoolInternal(ctx, req.(*CloneFromPoolInternalRequest)) - } - return interceptor(ctx, in, info, handler) + return 0 } -func _RepositoryService_RemoveRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveRepositoryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).RemoveRepository(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/RemoveRepository", +func (x *GetRawChangesResponse_RawChange) GetNewPathBytes() []byte { + if x != nil { + return x.NewPathBytes } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).RemoveRepository(ctx, req.(*RemoveRepositoryRequest)) - } - return interceptor(ctx, in, info, handler) + return nil } -func _RepositoryService_RenameRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RenameRepositoryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).RenameRepository(ctx, in) +func (x *GetRawChangesResponse_RawChange) GetOldPathBytes() []byte { + if x != nil { + return x.OldPathBytes } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/RenameRepository", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).RenameRepository(ctx, req.(*RenameRepositoryRequest)) - } - return interceptor(ctx, in, info, handler) + return nil } -func _RepositoryService_ReplicateRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReplicateRepositoryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).ReplicateRepository(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/ReplicateRepository", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).ReplicateRepository(ctx, req.(*ReplicateRepositoryRequest)) - } - return interceptor(ctx, in, info, handler) -} +var File_repository_service_proto protoreflect.FileDescriptor + +var file_repository_service_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x2d, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x53, 0x0a, 0x17, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, + 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x22, 0x32, 0x0a, 0x18, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x45, + 0x78, 0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, + 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x54, 0x0a, 0x18, 0x52, 0x65, 0x70, 0x61, 0x63, 0x6b, 0x49, + 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x1b, 0x0a, 0x19, 0x52, + 0x65, 0x70, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x72, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x61, + 0x63, 0x6b, 0x46, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x5f, 0x62, 0x69, 0x74, 0x6d, 0x61, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x69, 0x74, 0x6d, 0x61, 0x70, 0x22, 0x14, 0x0a, 0x12, + 0x52, 0x65, 0x70, 0x61, 0x63, 0x6b, 0x46, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x4d, 0x0a, 0x11, 0x4d, 0x69, 0x64, 0x78, 0x52, 0x65, 0x70, 0x61, 0x63, 0x6b, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, + 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x22, 0x14, 0x0a, 0x12, 0x4d, 0x69, 0x64, 0x78, 0x52, 0x65, 0x70, 0x61, 0x63, 0x6b, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x15, 0x47, 0x61, 0x72, 0x62, + 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x69, 0x74, 0x6d, 0x61, 0x70, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x69, 0x74, 0x6d, 0x61, 0x70, + 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x75, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x05, 0x70, 0x72, 0x75, 0x6e, 0x65, 0x22, 0x18, 0x0a, 0x16, 0x47, 0x61, 0x72, 0x62, 0x61, 0x67, + 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0xcb, 0x01, 0x0a, 0x17, 0x57, 0x72, 0x69, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x53, 0x0a, 0x0d, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x53, + 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, + 0x70, 0x6c, 0x69, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0d, 0x73, 0x70, + 0x6c, 0x69, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x22, 0x21, 0x0a, 0x0d, 0x53, + 0x70, 0x6c, 0x69, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x10, 0x0a, 0x0c, + 0x53, 0x69, 0x7a, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x10, 0x00, 0x22, 0x1a, + 0x0a, 0x18, 0x57, 0x72, 0x69, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x47, 0x72, 0x61, + 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x0a, 0x0e, 0x43, 0x6c, + 0x65, 0x61, 0x6e, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x11, 0x0a, 0x0f, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, + 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x0a, 0x15, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x2c, 0x0a, 0x16, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x71, 0x0a, 0x19, 0x41, 0x70, + 0x70, 0x6c, 0x79, 0x47, 0x69, 0x74, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, + 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x1c, 0x0a, + 0x1a, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x47, 0x69, 0x74, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xed, 0x02, 0x0a, 0x12, + 0x46, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, + 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, + 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, + 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6e, 0x6f, 0x54, + 0x61, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x17, 0x0a, + 0x07, 0x73, 0x73, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x73, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, + 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6b, 0x6e, 0x6f, + 0x77, 0x6e, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x6f, 0x5f, 0x70, 0x72, + 0x75, 0x6e, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x6e, 0x6f, 0x50, 0x72, 0x75, + 0x6e, 0x65, 0x12, 0x33, 0x0a, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x5f, 0x74, 0x61, 0x67, 0x73, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x61, 0x67, 0x73, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x64, 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, 0x22, 0x38, 0x0a, 0x13, 0x46, + 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x61, 0x67, 0x73, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x74, 0x61, 0x67, 0x73, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x64, 0x22, 0x53, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x1a, 0x0a, 0x18, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xea, 0x02, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x72, + 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x38, 0x0a, 0x06, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x63, + 0x6c, 0x75, 0x64, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x65, 0x78, 0x63, 0x6c, + 0x75, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6c, 0x69, 0x64, 0x65, 0x5f, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x6c, 0x69, 0x64, 0x65, 0x50, 0x61, + 0x74, 0x68, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x6c, 0x66, + 0x73, 0x5f, 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, + 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4c, 0x66, 0x73, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x22, 0x33, + 0x0a, 0x06, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x07, 0x0a, 0x03, 0x5a, 0x49, 0x50, 0x10, + 0x00, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x41, + 0x52, 0x5f, 0x47, 0x5a, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x41, 0x52, 0x5f, 0x42, 0x5a, + 0x32, 0x10, 0x03, 0x22, 0x28, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x53, 0x0a, + 0x17, 0x48, 0x61, 0x73, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x22, 0x30, 0x0a, 0x18, 0x48, 0x61, 0x73, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x42, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x22, 0xd9, 0x01, 0x0a, 0x18, 0x46, 0x65, 0x74, 0x63, 0x68, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x3f, 0x0a, 0x11, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x10, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x0a, 0x0d, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, + 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x66, + 0x22, 0x33, 0x0a, 0x19, 0x46, 0x65, 0x74, 0x63, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x47, 0x0a, 0x0b, 0x46, 0x73, 0x63, 0x6b, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, + 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x24, + 0x0a, 0x0c, 0x46, 0x73, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x22, 0xb8, 0x01, 0x0a, 0x0f, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, + 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x03, 0x72, 0x65, 0x66, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x6c, 0x64, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x76, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x22, + 0x18, 0x0a, 0x10, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0x6e, 0x0a, 0x14, 0x46, 0x69, 0x6e, + 0x64, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, + 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, + 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2b, 0x0a, 0x15, 0x46, 0x69, 0x6e, + 0x64, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x62, 0x61, 0x73, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x46, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x3f, 0x0a, 0x11, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x14, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x46, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x72, 0x0a, + 0x19, 0x49, 0x73, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x62, 0x61, 0x73, 0x65, 0x49, + 0x64, 0x22, 0x3d, 0x0a, 0x1a, 0x49, 0x73, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x50, + 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x22, 0x72, 0x0a, 0x19, 0x49, 0x73, 0x53, 0x71, 0x75, 0x61, 0x73, 0x68, 0x49, 0x6e, 0x50, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x71, 0x75, 0x61, 0x73, + 0x68, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x71, 0x75, 0x61, + 0x73, 0x68, 0x49, 0x64, 0x22, 0x3d, 0x0a, 0x1a, 0x49, 0x73, 0x53, 0x71, 0x75, 0x61, 0x73, 0x68, + 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x22, 0x6c, 0x0a, 0x1e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x55, 0x52, 0x4c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, + 0x6c, 0x22, 0x21, 0x0a, 0x1f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x2a, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x22, 0x4c, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, + 0x27, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8e, 0x02, 0x0a, 0x10, 0x53, 0x65, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x38, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, + 0x73, 0x1a, 0x85, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1d, 0x0a, + 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x08, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x74, 0x72, 0x12, 0x21, 0x0a, 0x0b, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x05, 0x48, 0x00, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, + 0x1f, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x6f, 0x6f, 0x6c, + 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x65, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, + 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, + 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, + 0x65, 0x79, 0x73, 0x22, 0x16, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x69, 0x0a, 0x19, 0x52, + 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x48, 0x6f, 0x6f, 0x6b, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x1c, 0x0a, 0x1a, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x0a, 0x18, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x43, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x2f, 0x0a, 0x19, 0x42, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x71, 0x0a, 0x21, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, + 0x72, 0x6f, 0x6d, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x24, + 0x0a, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x0a, 0x12, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x69, 0x63, 0x65, + 0x6e, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x22, 0x43, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x69, 0x63, 0x65, + 0x6e, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x6c, + 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, + 0x53, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x54, 0x0a, 0x18, 0x47, 0x65, 0x74, + 0x49, 0x6e, 0x66, 0x6f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, + 0x3b, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x54, 0x0a, 0x18, + 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, + 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x22, 0x37, 0x0a, 0x19, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x22, 0x4e, 0x0a, 0x12, 0x47, + 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x29, 0x0a, 0x13, 0x47, + 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x97, 0x01, 0x0a, 0x23, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x53, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x74, 0x74, 0x70, + 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x74, 0x74, 0x70, + 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x61, 0x75, 0x74, 0x68, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x74, 0x74, 0x70, 0x41, 0x75, 0x74, 0x68, + 0x22, 0x26, 0x0a, 0x24, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, + 0x52, 0x61, 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x66, + 0x72, 0x6f, 0x6d, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x6f, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x22, 0xbd, 0x04, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x72, + 0x61, 0x77, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x52, 0x61, 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0a, 0x72, 0x61, 0x77, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x73, 0x1a, 0xd9, 0x03, 0x0a, 0x09, 0x52, 0x61, 0x77, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x62, 0x6c, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x12, 0x1d, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x50, 0x61, 0x74, 0x68, 0x12, + 0x1d, 0x0a, 0x08, 0x6f, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x6f, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x4f, + 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x31, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, + 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x52, 0x61, 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x23, 0x0a, 0x0d, 0x72, 0x61, 0x77, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x61, 0x77, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x6c, 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x65, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6f, 0x6c, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x12, + 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, + 0x77, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x50, 0x61, 0x74, 0x68, 0x42, 0x79, 0x74, 0x65, 0x73, + 0x12, 0x24, 0x0a, 0x0e, 0x6f, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x62, 0x79, 0x74, + 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x6f, 0x6c, 0x64, 0x50, 0x61, 0x74, + 0x68, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x69, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x44, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, + 0x4f, 0x50, 0x49, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x4c, 0x45, 0x54, + 0x45, 0x44, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x4f, 0x44, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x4e, 0x41, 0x4d, 0x45, 0x44, 0x10, 0x05, 0x12, + 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x44, 0x10, + 0x06, 0x22, 0x94, 0x01, 0x0a, 0x18, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x65, + 0x73, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x72, 0x65, 0x66, + 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x31, 0x0a, 0x19, 0x53, 0x65, 0x61, 0x72, + 0x63, 0x68, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0c, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0xaa, 0x01, 0x0a, 0x1b, + 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x72, + 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x29, 0x0a, + 0x10, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x79, 0x0a, 0x1c, 0x53, 0x65, 0x61, 0x72, + 0x63, 0x68, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, + 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x20, 0x0a, 0x0c, 0x65, 0x6e, 0x64, 0x5f, 0x6f, 0x66, 0x5f, 0x6d, 0x61, 0x74, 0x63, + 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x65, 0x6e, 0x64, 0x4f, 0x66, 0x4d, 0x61, + 0x74, 0x63, 0x68, 0x22, 0x89, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x10, + 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, + 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x74, 0x74, 0x70, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, + 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x66, 0x6d, 0x61, 0x70, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x66, 0x6d, + 0x61, 0x70, 0x73, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0x59, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x69, 0x72, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x34, 0x0a, 0x1e, 0x47, 0x65, + 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, + 0x53, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x22, 0xa0, 0x01, 0x0a, 0x14, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x6f, + 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x12, 0x26, 0x0a, 0x06, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x06, 0x72, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x46, 0x72, 0x6f, 0x6d, + 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc1, 0x01, 0x0a, + 0x1c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x12, + 0x3f, 0x0a, 0x11, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x10, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x22, 0x1f, 0x0a, 0x1d, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x6f, 0x6f, + 0x6c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x53, 0x0a, 0x17, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x1a, 0x0a, 0x18, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x78, 0x0a, 0x17, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x74, + 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0x1a, 0x0a, 0x18, + 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x82, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, + 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x1d, 0x0a, + 0x1b, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x0a, 0x19, + 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x22, 0x1c, 0x0a, 0x1a, 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x32, 0xa7, 0x1f, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5d, 0x0a, 0x10, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x45, + 0x78, 0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, + 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x60, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x61, 0x63, 0x6b, + 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x12, 0x20, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x63, 0x72, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x63, + 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x4b, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x61, + 0x63, 0x6b, 0x46, 0x75, 0x6c, 0x6c, 0x12, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x70, 0x61, 0x63, 0x6b, 0x46, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x61, 0x63, + 0x6b, 0x46, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, + 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x4b, 0x0a, 0x0a, 0x4d, 0x69, 0x64, 0x78, 0x52, 0x65, 0x70, + 0x61, 0x63, 0x6b, 0x12, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4d, 0x69, 0x64, + 0x78, 0x52, 0x65, 0x70, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4d, 0x69, 0x64, 0x78, 0x52, 0x65, 0x70, 0x61, + 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, + 0x08, 0x01, 0x12, 0x57, 0x0a, 0x0e, 0x47, 0x61, 0x72, 0x62, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x61, + 0x72, 0x62, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x61, 0x72, + 0x62, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5d, 0x0a, 0x10, 0x57, + 0x72, 0x69, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x12, + 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x57, 0x0a, 0x0e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x53, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, + 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x02, 0x12, 0x63, 0x0a, 0x12, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x47, 0x69, 0x74, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x47, 0x69, 0x74, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x47, 0x69, 0x74, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x4e, 0x0a, 0x0b, 0x46, 0x65, 0x74, 0x63, + 0x68, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x65, 0x74, + 0x63, 0x68, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5d, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x4d, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x41, 0x72, + 0x63, 0x68, 0x69, 0x76, 0x65, 0x12, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, + 0x65, 0x74, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, + 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x5d, 0x0a, 0x10, 0x48, 0x61, 0x73, 0x4c, 0x6f, 0x63, + 0x61, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12, 0x1f, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x48, 0x61, 0x73, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x61, 0x6e, + 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x48, 0x61, 0x73, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, + 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x60, 0x0a, 0x11, 0x46, 0x65, 0x74, 0x63, 0x68, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x39, 0x0a, 0x04, 0x46, 0x73, 0x63, 0x6b, 0x12, + 0x13, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x73, 0x63, 0x6b, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x73, + 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, + 0x08, 0x02, 0x12, 0x45, 0x0a, 0x08, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x66, 0x12, 0x17, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x66, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x54, 0x0a, 0x0d, 0x46, 0x69, 0x6e, + 0x64, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x61, 0x73, 0x65, 0x12, 0x1c, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x61, 0x73, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x61, 0x73, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, + 0x4b, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x6b, 0x12, 0x19, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6f, 0x72, + 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x63, 0x0a, 0x12, + 0x49, 0x73, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x49, 0x73, 0x52, 0x65, + 0x62, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x49, + 0x73, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, + 0x02, 0x12, 0x63, 0x0a, 0x12, 0x49, 0x73, 0x53, 0x71, 0x75, 0x61, 0x73, 0x68, 0x49, 0x6e, 0x50, + 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x49, 0x73, 0x53, 0x71, 0x75, 0x61, 0x73, 0x68, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x49, 0x73, 0x53, 0x71, 0x75, 0x61, 0x73, 0x68, 0x49, 0x6e, 0x50, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, + 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x72, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x55, 0x52, + 0x4c, 0x12, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x55, + 0x52, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x53, 0x0a, 0x0c, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x1b, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, + 0x7d, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x29, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x28, 0x01, 0x12, 0x4a, + 0x0a, 0x09, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, + 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x48, 0x0a, 0x09, 0x53, 0x65, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, + 0x28, 0x02, 0x08, 0x01, 0x12, 0x51, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x4e, 0x0a, 0x0b, 0x46, 0x69, 0x6e, 0x64, 0x4c, + 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x46, 0x69, 0x6e, 0x64, + 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x62, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x49, 0x6e, + 0x66, 0x6f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x60, 0x0a, 0x11, 0x43, + 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, + 0x12, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, + 0x61, 0x74, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x61, 0x6c, 0x63, + 0x75, 0x6c, 0x61, 0x74, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x42, 0x0a, + 0x07, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x12, 0x16, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x17, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, + 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, + 0x01, 0x12, 0x50, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, + 0x12, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, + 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, + 0x02, 0x30, 0x01, 0x12, 0x81, 0x01, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x53, 0x6e, 0x61, 0x70, + 0x73, 0x68, 0x6f, 0x74, 0x12, 0x2b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x72, + 0x6f, 0x6d, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x53, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x56, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x52, 0x61, + 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, + 0x6b, 0x0a, 0x14, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x42, 0x79, + 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x65, + 0x73, 0x42, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x62, 0x0a, 0x11, + 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x42, 0x79, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, + 0x68, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x65, 0x61, + 0x72, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, + 0x12, 0x65, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x12, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x48, 0x6f, 0x6f, + 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, + 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, + 0x97, 0x28, 0x02, 0x08, 0x01, 0x28, 0x01, 0x12, 0x62, 0x0a, 0x11, 0x42, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x12, 0x20, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x43, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x43, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x6f, 0x0a, 0x16, 0x47, + 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x79, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, + 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x79, 0x53, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, + 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x54, 0x0a, 0x0d, + 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x1c, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x46, 0x72, 0x6f, 0x6d, + 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x6f, + 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, + 0x08, 0x01, 0x12, 0x6c, 0x0a, 0x15, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x50, + 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x24, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x6f, + 0x6f, 0x6c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, + 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, + 0x12, 0x5d, 0x0a, 0x10, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, + 0x5d, 0x0a, 0x10, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x6e, + 0x61, 0x6d, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x66, + 0x0a, 0x13, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, + 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x63, 0x0a, 0x12, 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, + 0x7a, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x21, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x22, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, + 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, + 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, + 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, + 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_repository_service_proto_rawDescOnce sync.Once + file_repository_service_proto_rawDescData = file_repository_service_proto_rawDesc +) -func _RepositoryService_OptimizeRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OptimizeRepositoryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).OptimizeRepository(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/OptimizeRepository", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).OptimizeRepository(ctx, req.(*OptimizeRepositoryRequest)) +func file_repository_service_proto_rawDescGZIP() []byte { + file_repository_service_proto_rawDescOnce.Do(func() { + file_repository_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_repository_service_proto_rawDescData) + }) + return file_repository_service_proto_rawDescData +} + +var file_repository_service_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_repository_service_proto_msgTypes = make([]protoimpl.MessageInfo, 89) +var file_repository_service_proto_goTypes = []interface{}{ + (WriteCommitGraphRequest_SplitStrategy)(0), // 0: gitaly.WriteCommitGraphRequest.SplitStrategy + (GetArchiveRequest_Format)(0), // 1: gitaly.GetArchiveRequest.Format + (GetRawChangesResponse_RawChange_Operation)(0), // 2: gitaly.GetRawChangesResponse.RawChange.Operation + (*RepositoryExistsRequest)(nil), // 3: gitaly.RepositoryExistsRequest + (*RepositoryExistsResponse)(nil), // 4: gitaly.RepositoryExistsResponse + (*RepackIncrementalRequest)(nil), // 5: gitaly.RepackIncrementalRequest + (*RepackIncrementalResponse)(nil), // 6: gitaly.RepackIncrementalResponse + (*RepackFullRequest)(nil), // 7: gitaly.RepackFullRequest + (*RepackFullResponse)(nil), // 8: gitaly.RepackFullResponse + (*MidxRepackRequest)(nil), // 9: gitaly.MidxRepackRequest + (*MidxRepackResponse)(nil), // 10: gitaly.MidxRepackResponse + (*GarbageCollectRequest)(nil), // 11: gitaly.GarbageCollectRequest + (*GarbageCollectResponse)(nil), // 12: gitaly.GarbageCollectResponse + (*WriteCommitGraphRequest)(nil), // 13: gitaly.WriteCommitGraphRequest + (*WriteCommitGraphResponse)(nil), // 14: gitaly.WriteCommitGraphResponse + (*CleanupRequest)(nil), // 15: gitaly.CleanupRequest + (*CleanupResponse)(nil), // 16: gitaly.CleanupResponse + (*RepositorySizeRequest)(nil), // 17: gitaly.RepositorySizeRequest + (*RepositorySizeResponse)(nil), // 18: gitaly.RepositorySizeResponse + (*ApplyGitattributesRequest)(nil), // 19: gitaly.ApplyGitattributesRequest + (*ApplyGitattributesResponse)(nil), // 20: gitaly.ApplyGitattributesResponse + (*FetchRemoteRequest)(nil), // 21: gitaly.FetchRemoteRequest + (*FetchRemoteResponse)(nil), // 22: gitaly.FetchRemoteResponse + (*CreateRepositoryRequest)(nil), // 23: gitaly.CreateRepositoryRequest + (*CreateRepositoryResponse)(nil), // 24: gitaly.CreateRepositoryResponse + (*GetArchiveRequest)(nil), // 25: gitaly.GetArchiveRequest + (*GetArchiveResponse)(nil), // 26: gitaly.GetArchiveResponse + (*HasLocalBranchesRequest)(nil), // 27: gitaly.HasLocalBranchesRequest + (*HasLocalBranchesResponse)(nil), // 28: gitaly.HasLocalBranchesResponse + (*FetchSourceBranchRequest)(nil), // 29: gitaly.FetchSourceBranchRequest + (*FetchSourceBranchResponse)(nil), // 30: gitaly.FetchSourceBranchResponse + (*FsckRequest)(nil), // 31: gitaly.FsckRequest + (*FsckResponse)(nil), // 32: gitaly.FsckResponse + (*WriteRefRequest)(nil), // 33: gitaly.WriteRefRequest + (*WriteRefResponse)(nil), // 34: gitaly.WriteRefResponse + (*FindMergeBaseRequest)(nil), // 35: gitaly.FindMergeBaseRequest + (*FindMergeBaseResponse)(nil), // 36: gitaly.FindMergeBaseResponse + (*CreateForkRequest)(nil), // 37: gitaly.CreateForkRequest + (*CreateForkResponse)(nil), // 38: gitaly.CreateForkResponse + (*IsRebaseInProgressRequest)(nil), // 39: gitaly.IsRebaseInProgressRequest + (*IsRebaseInProgressResponse)(nil), // 40: gitaly.IsRebaseInProgressResponse + (*IsSquashInProgressRequest)(nil), // 41: gitaly.IsSquashInProgressRequest + (*IsSquashInProgressResponse)(nil), // 42: gitaly.IsSquashInProgressResponse + (*CreateRepositoryFromURLRequest)(nil), // 43: gitaly.CreateRepositoryFromURLRequest + (*CreateRepositoryFromURLResponse)(nil), // 44: gitaly.CreateRepositoryFromURLResponse + (*CreateBundleRequest)(nil), // 45: gitaly.CreateBundleRequest + (*CreateBundleResponse)(nil), // 46: gitaly.CreateBundleResponse + (*GetConfigRequest)(nil), // 47: gitaly.GetConfigRequest + (*GetConfigResponse)(nil), // 48: gitaly.GetConfigResponse + (*SetConfigRequest)(nil), // 49: gitaly.SetConfigRequest + (*SetConfigResponse)(nil), // 50: gitaly.SetConfigResponse + (*DeleteConfigRequest)(nil), // 51: gitaly.DeleteConfigRequest + (*DeleteConfigResponse)(nil), // 52: gitaly.DeleteConfigResponse + (*RestoreCustomHooksRequest)(nil), // 53: gitaly.RestoreCustomHooksRequest + (*RestoreCustomHooksResponse)(nil), // 54: gitaly.RestoreCustomHooksResponse + (*BackupCustomHooksRequest)(nil), // 55: gitaly.BackupCustomHooksRequest + (*BackupCustomHooksResponse)(nil), // 56: gitaly.BackupCustomHooksResponse + (*CreateRepositoryFromBundleRequest)(nil), // 57: gitaly.CreateRepositoryFromBundleRequest + (*CreateRepositoryFromBundleResponse)(nil), // 58: gitaly.CreateRepositoryFromBundleResponse + (*FindLicenseRequest)(nil), // 59: gitaly.FindLicenseRequest + (*FindLicenseResponse)(nil), // 60: gitaly.FindLicenseResponse + (*GetInfoAttributesRequest)(nil), // 61: gitaly.GetInfoAttributesRequest + (*GetInfoAttributesResponse)(nil), // 62: gitaly.GetInfoAttributesResponse + (*CalculateChecksumRequest)(nil), // 63: gitaly.CalculateChecksumRequest + (*CalculateChecksumResponse)(nil), // 64: gitaly.CalculateChecksumResponse + (*GetSnapshotRequest)(nil), // 65: gitaly.GetSnapshotRequest + (*GetSnapshotResponse)(nil), // 66: gitaly.GetSnapshotResponse + (*CreateRepositoryFromSnapshotRequest)(nil), // 67: gitaly.CreateRepositoryFromSnapshotRequest + (*CreateRepositoryFromSnapshotResponse)(nil), // 68: gitaly.CreateRepositoryFromSnapshotResponse + (*GetRawChangesRequest)(nil), // 69: gitaly.GetRawChangesRequest + (*GetRawChangesResponse)(nil), // 70: gitaly.GetRawChangesResponse + (*SearchFilesByNameRequest)(nil), // 71: gitaly.SearchFilesByNameRequest + (*SearchFilesByNameResponse)(nil), // 72: gitaly.SearchFilesByNameResponse + (*SearchFilesByContentRequest)(nil), // 73: gitaly.SearchFilesByContentRequest + (*SearchFilesByContentResponse)(nil), // 74: gitaly.SearchFilesByContentResponse + (*Remote)(nil), // 75: gitaly.Remote + (*GetObjectDirectorySizeRequest)(nil), // 76: gitaly.GetObjectDirectorySizeRequest + (*GetObjectDirectorySizeResponse)(nil), // 77: gitaly.GetObjectDirectorySizeResponse + (*CloneFromPoolRequest)(nil), // 78: gitaly.CloneFromPoolRequest + (*CloneFromPoolResponse)(nil), // 79: gitaly.CloneFromPoolResponse + (*CloneFromPoolInternalRequest)(nil), // 80: gitaly.CloneFromPoolInternalRequest + (*CloneFromPoolInternalResponse)(nil), // 81: gitaly.CloneFromPoolInternalResponse + (*RemoveRepositoryRequest)(nil), // 82: gitaly.RemoveRepositoryRequest + (*RemoveRepositoryResponse)(nil), // 83: gitaly.RemoveRepositoryResponse + (*RenameRepositoryRequest)(nil), // 84: gitaly.RenameRepositoryRequest + (*RenameRepositoryResponse)(nil), // 85: gitaly.RenameRepositoryResponse + (*ReplicateRepositoryRequest)(nil), // 86: gitaly.ReplicateRepositoryRequest + (*ReplicateRepositoryResponse)(nil), // 87: gitaly.ReplicateRepositoryResponse + (*OptimizeRepositoryRequest)(nil), // 88: gitaly.OptimizeRepositoryRequest + (*OptimizeRepositoryResponse)(nil), // 89: gitaly.OptimizeRepositoryResponse + (*SetConfigRequest_Entry)(nil), // 90: gitaly.SetConfigRequest.Entry + (*GetRawChangesResponse_RawChange)(nil), // 91: gitaly.GetRawChangesResponse.RawChange + (*Repository)(nil), // 92: gitaly.Repository + (*ObjectPool)(nil), // 93: gitaly.ObjectPool +} +var file_repository_service_proto_depIdxs = []int32{ + 92, // 0: gitaly.RepositoryExistsRequest.repository:type_name -> gitaly.Repository + 92, // 1: gitaly.RepackIncrementalRequest.repository:type_name -> gitaly.Repository + 92, // 2: gitaly.RepackFullRequest.repository:type_name -> gitaly.Repository + 92, // 3: gitaly.MidxRepackRequest.repository:type_name -> gitaly.Repository + 92, // 4: gitaly.GarbageCollectRequest.repository:type_name -> gitaly.Repository + 92, // 5: gitaly.WriteCommitGraphRequest.repository:type_name -> gitaly.Repository + 0, // 6: gitaly.WriteCommitGraphRequest.splitStrategy:type_name -> gitaly.WriteCommitGraphRequest.SplitStrategy + 92, // 7: gitaly.CleanupRequest.repository:type_name -> gitaly.Repository + 92, // 8: gitaly.RepositorySizeRequest.repository:type_name -> gitaly.Repository + 92, // 9: gitaly.ApplyGitattributesRequest.repository:type_name -> gitaly.Repository + 92, // 10: gitaly.FetchRemoteRequest.repository:type_name -> gitaly.Repository + 75, // 11: gitaly.FetchRemoteRequest.remote_params:type_name -> gitaly.Remote + 92, // 12: gitaly.CreateRepositoryRequest.repository:type_name -> gitaly.Repository + 92, // 13: gitaly.GetArchiveRequest.repository:type_name -> gitaly.Repository + 1, // 14: gitaly.GetArchiveRequest.format:type_name -> gitaly.GetArchiveRequest.Format + 92, // 15: gitaly.HasLocalBranchesRequest.repository:type_name -> gitaly.Repository + 92, // 16: gitaly.FetchSourceBranchRequest.repository:type_name -> gitaly.Repository + 92, // 17: gitaly.FetchSourceBranchRequest.source_repository:type_name -> gitaly.Repository + 92, // 18: gitaly.FsckRequest.repository:type_name -> gitaly.Repository + 92, // 19: gitaly.WriteRefRequest.repository:type_name -> gitaly.Repository + 92, // 20: gitaly.FindMergeBaseRequest.repository:type_name -> gitaly.Repository + 92, // 21: gitaly.CreateForkRequest.repository:type_name -> gitaly.Repository + 92, // 22: gitaly.CreateForkRequest.source_repository:type_name -> gitaly.Repository + 92, // 23: gitaly.IsRebaseInProgressRequest.repository:type_name -> gitaly.Repository + 92, // 24: gitaly.IsSquashInProgressRequest.repository:type_name -> gitaly.Repository + 92, // 25: gitaly.CreateRepositoryFromURLRequest.repository:type_name -> gitaly.Repository + 92, // 26: gitaly.CreateBundleRequest.repository:type_name -> gitaly.Repository + 92, // 27: gitaly.GetConfigRequest.repository:type_name -> gitaly.Repository + 92, // 28: gitaly.SetConfigRequest.repository:type_name -> gitaly.Repository + 90, // 29: gitaly.SetConfigRequest.entries:type_name -> gitaly.SetConfigRequest.Entry + 92, // 30: gitaly.DeleteConfigRequest.repository:type_name -> gitaly.Repository + 92, // 31: gitaly.RestoreCustomHooksRequest.repository:type_name -> gitaly.Repository + 92, // 32: gitaly.BackupCustomHooksRequest.repository:type_name -> gitaly.Repository + 92, // 33: gitaly.CreateRepositoryFromBundleRequest.repository:type_name -> gitaly.Repository + 92, // 34: gitaly.FindLicenseRequest.repository:type_name -> gitaly.Repository + 92, // 35: gitaly.GetInfoAttributesRequest.repository:type_name -> gitaly.Repository + 92, // 36: gitaly.CalculateChecksumRequest.repository:type_name -> gitaly.Repository + 92, // 37: gitaly.GetSnapshotRequest.repository:type_name -> gitaly.Repository + 92, // 38: gitaly.CreateRepositoryFromSnapshotRequest.repository:type_name -> gitaly.Repository + 92, // 39: gitaly.GetRawChangesRequest.repository:type_name -> gitaly.Repository + 91, // 40: gitaly.GetRawChangesResponse.raw_changes:type_name -> gitaly.GetRawChangesResponse.RawChange + 92, // 41: gitaly.SearchFilesByNameRequest.repository:type_name -> gitaly.Repository + 92, // 42: gitaly.SearchFilesByContentRequest.repository:type_name -> gitaly.Repository + 92, // 43: gitaly.GetObjectDirectorySizeRequest.repository:type_name -> gitaly.Repository + 92, // 44: gitaly.CloneFromPoolRequest.repository:type_name -> gitaly.Repository + 93, // 45: gitaly.CloneFromPoolRequest.pool:type_name -> gitaly.ObjectPool + 75, // 46: gitaly.CloneFromPoolRequest.remote:type_name -> gitaly.Remote + 92, // 47: gitaly.CloneFromPoolInternalRequest.repository:type_name -> gitaly.Repository + 93, // 48: gitaly.CloneFromPoolInternalRequest.pool:type_name -> gitaly.ObjectPool + 92, // 49: gitaly.CloneFromPoolInternalRequest.source_repository:type_name -> gitaly.Repository + 92, // 50: gitaly.RemoveRepositoryRequest.repository:type_name -> gitaly.Repository + 92, // 51: gitaly.RenameRepositoryRequest.repository:type_name -> gitaly.Repository + 92, // 52: gitaly.ReplicateRepositoryRequest.repository:type_name -> gitaly.Repository + 92, // 53: gitaly.ReplicateRepositoryRequest.source:type_name -> gitaly.Repository + 92, // 54: gitaly.OptimizeRepositoryRequest.repository:type_name -> gitaly.Repository + 2, // 55: gitaly.GetRawChangesResponse.RawChange.operation:type_name -> gitaly.GetRawChangesResponse.RawChange.Operation + 3, // 56: gitaly.RepositoryService.RepositoryExists:input_type -> gitaly.RepositoryExistsRequest + 5, // 57: gitaly.RepositoryService.RepackIncremental:input_type -> gitaly.RepackIncrementalRequest + 7, // 58: gitaly.RepositoryService.RepackFull:input_type -> gitaly.RepackFullRequest + 9, // 59: gitaly.RepositoryService.MidxRepack:input_type -> gitaly.MidxRepackRequest + 11, // 60: gitaly.RepositoryService.GarbageCollect:input_type -> gitaly.GarbageCollectRequest + 13, // 61: gitaly.RepositoryService.WriteCommitGraph:input_type -> gitaly.WriteCommitGraphRequest + 17, // 62: gitaly.RepositoryService.RepositorySize:input_type -> gitaly.RepositorySizeRequest + 19, // 63: gitaly.RepositoryService.ApplyGitattributes:input_type -> gitaly.ApplyGitattributesRequest + 21, // 64: gitaly.RepositoryService.FetchRemote:input_type -> gitaly.FetchRemoteRequest + 23, // 65: gitaly.RepositoryService.CreateRepository:input_type -> gitaly.CreateRepositoryRequest + 25, // 66: gitaly.RepositoryService.GetArchive:input_type -> gitaly.GetArchiveRequest + 27, // 67: gitaly.RepositoryService.HasLocalBranches:input_type -> gitaly.HasLocalBranchesRequest + 29, // 68: gitaly.RepositoryService.FetchSourceBranch:input_type -> gitaly.FetchSourceBranchRequest + 31, // 69: gitaly.RepositoryService.Fsck:input_type -> gitaly.FsckRequest + 33, // 70: gitaly.RepositoryService.WriteRef:input_type -> gitaly.WriteRefRequest + 35, // 71: gitaly.RepositoryService.FindMergeBase:input_type -> gitaly.FindMergeBaseRequest + 37, // 72: gitaly.RepositoryService.CreateFork:input_type -> gitaly.CreateForkRequest + 39, // 73: gitaly.RepositoryService.IsRebaseInProgress:input_type -> gitaly.IsRebaseInProgressRequest + 41, // 74: gitaly.RepositoryService.IsSquashInProgress:input_type -> gitaly.IsSquashInProgressRequest + 43, // 75: gitaly.RepositoryService.CreateRepositoryFromURL:input_type -> gitaly.CreateRepositoryFromURLRequest + 45, // 76: gitaly.RepositoryService.CreateBundle:input_type -> gitaly.CreateBundleRequest + 57, // 77: gitaly.RepositoryService.CreateRepositoryFromBundle:input_type -> gitaly.CreateRepositoryFromBundleRequest + 47, // 78: gitaly.RepositoryService.GetConfig:input_type -> gitaly.GetConfigRequest + 49, // 79: gitaly.RepositoryService.SetConfig:input_type -> gitaly.SetConfigRequest + 51, // 80: gitaly.RepositoryService.DeleteConfig:input_type -> gitaly.DeleteConfigRequest + 59, // 81: gitaly.RepositoryService.FindLicense:input_type -> gitaly.FindLicenseRequest + 61, // 82: gitaly.RepositoryService.GetInfoAttributes:input_type -> gitaly.GetInfoAttributesRequest + 63, // 83: gitaly.RepositoryService.CalculateChecksum:input_type -> gitaly.CalculateChecksumRequest + 15, // 84: gitaly.RepositoryService.Cleanup:input_type -> gitaly.CleanupRequest + 65, // 85: gitaly.RepositoryService.GetSnapshot:input_type -> gitaly.GetSnapshotRequest + 67, // 86: gitaly.RepositoryService.CreateRepositoryFromSnapshot:input_type -> gitaly.CreateRepositoryFromSnapshotRequest + 69, // 87: gitaly.RepositoryService.GetRawChanges:input_type -> gitaly.GetRawChangesRequest + 73, // 88: gitaly.RepositoryService.SearchFilesByContent:input_type -> gitaly.SearchFilesByContentRequest + 71, // 89: gitaly.RepositoryService.SearchFilesByName:input_type -> gitaly.SearchFilesByNameRequest + 53, // 90: gitaly.RepositoryService.RestoreCustomHooks:input_type -> gitaly.RestoreCustomHooksRequest + 55, // 91: gitaly.RepositoryService.BackupCustomHooks:input_type -> gitaly.BackupCustomHooksRequest + 76, // 92: gitaly.RepositoryService.GetObjectDirectorySize:input_type -> gitaly.GetObjectDirectorySizeRequest + 78, // 93: gitaly.RepositoryService.CloneFromPool:input_type -> gitaly.CloneFromPoolRequest + 80, // 94: gitaly.RepositoryService.CloneFromPoolInternal:input_type -> gitaly.CloneFromPoolInternalRequest + 82, // 95: gitaly.RepositoryService.RemoveRepository:input_type -> gitaly.RemoveRepositoryRequest + 84, // 96: gitaly.RepositoryService.RenameRepository:input_type -> gitaly.RenameRepositoryRequest + 86, // 97: gitaly.RepositoryService.ReplicateRepository:input_type -> gitaly.ReplicateRepositoryRequest + 88, // 98: gitaly.RepositoryService.OptimizeRepository:input_type -> gitaly.OptimizeRepositoryRequest + 4, // 99: gitaly.RepositoryService.RepositoryExists:output_type -> gitaly.RepositoryExistsResponse + 6, // 100: gitaly.RepositoryService.RepackIncremental:output_type -> gitaly.RepackIncrementalResponse + 8, // 101: gitaly.RepositoryService.RepackFull:output_type -> gitaly.RepackFullResponse + 10, // 102: gitaly.RepositoryService.MidxRepack:output_type -> gitaly.MidxRepackResponse + 12, // 103: gitaly.RepositoryService.GarbageCollect:output_type -> gitaly.GarbageCollectResponse + 14, // 104: gitaly.RepositoryService.WriteCommitGraph:output_type -> gitaly.WriteCommitGraphResponse + 18, // 105: gitaly.RepositoryService.RepositorySize:output_type -> gitaly.RepositorySizeResponse + 20, // 106: gitaly.RepositoryService.ApplyGitattributes:output_type -> gitaly.ApplyGitattributesResponse + 22, // 107: gitaly.RepositoryService.FetchRemote:output_type -> gitaly.FetchRemoteResponse + 24, // 108: gitaly.RepositoryService.CreateRepository:output_type -> gitaly.CreateRepositoryResponse + 26, // 109: gitaly.RepositoryService.GetArchive:output_type -> gitaly.GetArchiveResponse + 28, // 110: gitaly.RepositoryService.HasLocalBranches:output_type -> gitaly.HasLocalBranchesResponse + 30, // 111: gitaly.RepositoryService.FetchSourceBranch:output_type -> gitaly.FetchSourceBranchResponse + 32, // 112: gitaly.RepositoryService.Fsck:output_type -> gitaly.FsckResponse + 34, // 113: gitaly.RepositoryService.WriteRef:output_type -> gitaly.WriteRefResponse + 36, // 114: gitaly.RepositoryService.FindMergeBase:output_type -> gitaly.FindMergeBaseResponse + 38, // 115: gitaly.RepositoryService.CreateFork:output_type -> gitaly.CreateForkResponse + 40, // 116: gitaly.RepositoryService.IsRebaseInProgress:output_type -> gitaly.IsRebaseInProgressResponse + 42, // 117: gitaly.RepositoryService.IsSquashInProgress:output_type -> gitaly.IsSquashInProgressResponse + 44, // 118: gitaly.RepositoryService.CreateRepositoryFromURL:output_type -> gitaly.CreateRepositoryFromURLResponse + 46, // 119: gitaly.RepositoryService.CreateBundle:output_type -> gitaly.CreateBundleResponse + 58, // 120: gitaly.RepositoryService.CreateRepositoryFromBundle:output_type -> gitaly.CreateRepositoryFromBundleResponse + 48, // 121: gitaly.RepositoryService.GetConfig:output_type -> gitaly.GetConfigResponse + 50, // 122: gitaly.RepositoryService.SetConfig:output_type -> gitaly.SetConfigResponse + 52, // 123: gitaly.RepositoryService.DeleteConfig:output_type -> gitaly.DeleteConfigResponse + 60, // 124: gitaly.RepositoryService.FindLicense:output_type -> gitaly.FindLicenseResponse + 62, // 125: gitaly.RepositoryService.GetInfoAttributes:output_type -> gitaly.GetInfoAttributesResponse + 64, // 126: gitaly.RepositoryService.CalculateChecksum:output_type -> gitaly.CalculateChecksumResponse + 16, // 127: gitaly.RepositoryService.Cleanup:output_type -> gitaly.CleanupResponse + 66, // 128: gitaly.RepositoryService.GetSnapshot:output_type -> gitaly.GetSnapshotResponse + 68, // 129: gitaly.RepositoryService.CreateRepositoryFromSnapshot:output_type -> gitaly.CreateRepositoryFromSnapshotResponse + 70, // 130: gitaly.RepositoryService.GetRawChanges:output_type -> gitaly.GetRawChangesResponse + 74, // 131: gitaly.RepositoryService.SearchFilesByContent:output_type -> gitaly.SearchFilesByContentResponse + 72, // 132: gitaly.RepositoryService.SearchFilesByName:output_type -> gitaly.SearchFilesByNameResponse + 54, // 133: gitaly.RepositoryService.RestoreCustomHooks:output_type -> gitaly.RestoreCustomHooksResponse + 56, // 134: gitaly.RepositoryService.BackupCustomHooks:output_type -> gitaly.BackupCustomHooksResponse + 77, // 135: gitaly.RepositoryService.GetObjectDirectorySize:output_type -> gitaly.GetObjectDirectorySizeResponse + 79, // 136: gitaly.RepositoryService.CloneFromPool:output_type -> gitaly.CloneFromPoolResponse + 81, // 137: gitaly.RepositoryService.CloneFromPoolInternal:output_type -> gitaly.CloneFromPoolInternalResponse + 83, // 138: gitaly.RepositoryService.RemoveRepository:output_type -> gitaly.RemoveRepositoryResponse + 85, // 139: gitaly.RepositoryService.RenameRepository:output_type -> gitaly.RenameRepositoryResponse + 87, // 140: gitaly.RepositoryService.ReplicateRepository:output_type -> gitaly.ReplicateRepositoryResponse + 89, // 141: gitaly.RepositoryService.OptimizeRepository:output_type -> gitaly.OptimizeRepositoryResponse + 99, // [99:142] is the sub-list for method output_type + 56, // [56:99] is the sub-list for method input_type + 56, // [56:56] is the sub-list for extension type_name + 56, // [56:56] is the sub-list for extension extendee + 0, // [0:56] is the sub-list for field type_name +} + +func init() { file_repository_service_proto_init() } +func file_repository_service_proto_init() { + if File_repository_service_proto != nil { + return + } + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_repository_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RepositoryExistsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RepositoryExistsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RepackIncrementalRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RepackIncrementalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RepackFullRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RepackFullResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MidxRepackRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MidxRepackResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GarbageCollectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GarbageCollectResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteCommitGraphRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteCommitGraphResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CleanupRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CleanupResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RepositorySizeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RepositorySizeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplyGitattributesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplyGitattributesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchRemoteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchRemoteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateRepositoryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateRepositoryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetArchiveRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetArchiveResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HasLocalBranchesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HasLocalBranchesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchSourceBranchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchSourceBranchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FsckRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FsckResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteRefRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteRefResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindMergeBaseRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindMergeBaseResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateForkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateForkResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IsRebaseInProgressRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IsRebaseInProgressResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IsSquashInProgressRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IsSquashInProgressResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateRepositoryFromURLRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateRepositoryFromURLResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateBundleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateBundleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RestoreCustomHooksRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RestoreCustomHooksResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BackupCustomHooksRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BackupCustomHooksResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateRepositoryFromBundleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateRepositoryFromBundleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindLicenseRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindLicenseResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetInfoAttributesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetInfoAttributesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CalculateChecksumRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CalculateChecksumResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSnapshotRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSnapshotResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateRepositoryFromSnapshotRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateRepositoryFromSnapshotResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetRawChangesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetRawChangesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SearchFilesByNameRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SearchFilesByNameResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SearchFilesByContentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SearchFilesByContentResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Remote); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetObjectDirectorySizeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetObjectDirectorySizeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloneFromPoolRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloneFromPoolResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloneFromPoolInternalRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloneFromPoolInternalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveRepositoryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveRepositoryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RenameRepositoryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RenameRepositoryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicateRepositoryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicateRepositoryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OptimizeRepositoryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OptimizeRepositoryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetConfigRequest_Entry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_repository_service_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetRawChangesResponse_RawChange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_repository_service_proto_msgTypes[87].OneofWrappers = []interface{}{ + (*SetConfigRequest_Entry_ValueStr)(nil), + (*SetConfigRequest_Entry_ValueInt32)(nil), + (*SetConfigRequest_Entry_ValueBool)(nil), } - return interceptor(ctx, in, info, handler) -} - -var _RepositoryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.RepositoryService", - HandlerType: (*RepositoryServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "RepositoryExists", - Handler: _RepositoryService_RepositoryExists_Handler, - }, - { - MethodName: "RepackIncremental", - Handler: _RepositoryService_RepackIncremental_Handler, - }, - { - MethodName: "RepackFull", - Handler: _RepositoryService_RepackFull_Handler, - }, - { - MethodName: "MidxRepack", - Handler: _RepositoryService_MidxRepack_Handler, - }, - { - MethodName: "GarbageCollect", - Handler: _RepositoryService_GarbageCollect_Handler, - }, - { - MethodName: "WriteCommitGraph", - Handler: _RepositoryService_WriteCommitGraph_Handler, - }, - { - MethodName: "RepositorySize", - Handler: _RepositoryService_RepositorySize_Handler, - }, - { - MethodName: "ApplyGitattributes", - Handler: _RepositoryService_ApplyGitattributes_Handler, - }, - { - MethodName: "FetchRemote", - Handler: _RepositoryService_FetchRemote_Handler, - }, - { - MethodName: "CreateRepository", - Handler: _RepositoryService_CreateRepository_Handler, - }, - { - MethodName: "HasLocalBranches", - Handler: _RepositoryService_HasLocalBranches_Handler, - }, - { - MethodName: "FetchSourceBranch", - Handler: _RepositoryService_FetchSourceBranch_Handler, - }, - { - MethodName: "Fsck", - Handler: _RepositoryService_Fsck_Handler, - }, - { - MethodName: "WriteRef", - Handler: _RepositoryService_WriteRef_Handler, - }, - { - MethodName: "FindMergeBase", - Handler: _RepositoryService_FindMergeBase_Handler, - }, - { - MethodName: "CreateFork", - Handler: _RepositoryService_CreateFork_Handler, - }, - { - MethodName: "IsRebaseInProgress", - Handler: _RepositoryService_IsRebaseInProgress_Handler, - }, - { - MethodName: "IsSquashInProgress", - Handler: _RepositoryService_IsSquashInProgress_Handler, - }, - { - MethodName: "CreateRepositoryFromURL", - Handler: _RepositoryService_CreateRepositoryFromURL_Handler, - }, - { - MethodName: "SetConfig", - Handler: _RepositoryService_SetConfig_Handler, - }, - { - MethodName: "DeleteConfig", - Handler: _RepositoryService_DeleteConfig_Handler, - }, - { - MethodName: "FindLicense", - Handler: _RepositoryService_FindLicense_Handler, - }, - { - MethodName: "CalculateChecksum", - Handler: _RepositoryService_CalculateChecksum_Handler, - }, - { - MethodName: "Cleanup", - Handler: _RepositoryService_Cleanup_Handler, - }, - { - MethodName: "CreateRepositoryFromSnapshot", - Handler: _RepositoryService_CreateRepositoryFromSnapshot_Handler, - }, - { - MethodName: "GetObjectDirectorySize", - Handler: _RepositoryService_GetObjectDirectorySize_Handler, - }, - { - MethodName: "CloneFromPool", - Handler: _RepositoryService_CloneFromPool_Handler, - }, - { - MethodName: "CloneFromPoolInternal", - Handler: _RepositoryService_CloneFromPoolInternal_Handler, - }, - { - MethodName: "RemoveRepository", - Handler: _RepositoryService_RemoveRepository_Handler, - }, - { - MethodName: "RenameRepository", - Handler: _RepositoryService_RenameRepository_Handler, - }, - { - MethodName: "ReplicateRepository", - Handler: _RepositoryService_ReplicateRepository_Handler, - }, - { - MethodName: "OptimizeRepository", - Handler: _RepositoryService_OptimizeRepository_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "GetArchive", - Handler: _RepositoryService_GetArchive_Handler, - ServerStreams: true, - }, - { - StreamName: "CreateBundle", - Handler: _RepositoryService_CreateBundle_Handler, - ServerStreams: true, - }, - { - StreamName: "CreateRepositoryFromBundle", - Handler: _RepositoryService_CreateRepositoryFromBundle_Handler, - ClientStreams: true, - }, - { - StreamName: "GetConfig", - Handler: _RepositoryService_GetConfig_Handler, - ServerStreams: true, - }, - { - StreamName: "GetInfoAttributes", - Handler: _RepositoryService_GetInfoAttributes_Handler, - ServerStreams: true, - }, - { - StreamName: "GetSnapshot", - Handler: _RepositoryService_GetSnapshot_Handler, - ServerStreams: true, - }, - { - StreamName: "GetRawChanges", - Handler: _RepositoryService_GetRawChanges_Handler, - ServerStreams: true, - }, - { - StreamName: "SearchFilesByContent", - Handler: _RepositoryService_SearchFilesByContent_Handler, - ServerStreams: true, - }, - { - StreamName: "SearchFilesByName", - Handler: _RepositoryService_SearchFilesByName_Handler, - ServerStreams: true, - }, - { - StreamName: "RestoreCustomHooks", - Handler: _RepositoryService_RestoreCustomHooks_Handler, - ClientStreams: true, - }, - { - StreamName: "BackupCustomHooks", - Handler: _RepositoryService_BackupCustomHooks_Handler, - ServerStreams: true, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_repository_service_proto_rawDesc, + NumEnums: 3, + NumMessages: 89, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "repository-service.proto", + GoTypes: file_repository_service_proto_goTypes, + DependencyIndexes: file_repository_service_proto_depIdxs, + EnumInfos: file_repository_service_proto_enumTypes, + MessageInfos: file_repository_service_proto_msgTypes, + }.Build() + File_repository_service_proto = out.File + file_repository_service_proto_rawDesc = nil + file_repository_service_proto_goTypes = nil + file_repository_service_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/repository-service_grpc.pb.go b/proto/go/gitalypb/repository-service_grpc.pb.go new file mode 100644 index 000000000..b6391df5d --- /dev/null +++ b/proto/go/gitalypb/repository-service_grpc.pb.go @@ -0,0 +1,1943 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// RepositoryServiceClient is the client API for RepositoryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type RepositoryServiceClient interface { + RepositoryExists(ctx context.Context, in *RepositoryExistsRequest, opts ...grpc.CallOption) (*RepositoryExistsResponse, error) + RepackIncremental(ctx context.Context, in *RepackIncrementalRequest, opts ...grpc.CallOption) (*RepackIncrementalResponse, error) + RepackFull(ctx context.Context, in *RepackFullRequest, opts ...grpc.CallOption) (*RepackFullResponse, error) + MidxRepack(ctx context.Context, in *MidxRepackRequest, opts ...grpc.CallOption) (*MidxRepackResponse, error) + GarbageCollect(ctx context.Context, in *GarbageCollectRequest, opts ...grpc.CallOption) (*GarbageCollectResponse, error) + WriteCommitGraph(ctx context.Context, in *WriteCommitGraphRequest, opts ...grpc.CallOption) (*WriteCommitGraphResponse, error) + RepositorySize(ctx context.Context, in *RepositorySizeRequest, opts ...grpc.CallOption) (*RepositorySizeResponse, error) + ApplyGitattributes(ctx context.Context, in *ApplyGitattributesRequest, opts ...grpc.CallOption) (*ApplyGitattributesResponse, error) + // FetchRemote fetches references from a remote repository into the local + // repository. + FetchRemote(ctx context.Context, in *FetchRemoteRequest, opts ...grpc.CallOption) (*FetchRemoteResponse, error) + CreateRepository(ctx context.Context, in *CreateRepositoryRequest, opts ...grpc.CallOption) (*CreateRepositoryResponse, error) + GetArchive(ctx context.Context, in *GetArchiveRequest, opts ...grpc.CallOption) (RepositoryService_GetArchiveClient, error) + HasLocalBranches(ctx context.Context, in *HasLocalBranchesRequest, opts ...grpc.CallOption) (*HasLocalBranchesResponse, error) + // FetchSourceBranch fetches a branch from a second (potentially remote) + // repository into the given repository. + FetchSourceBranch(ctx context.Context, in *FetchSourceBranchRequest, opts ...grpc.CallOption) (*FetchSourceBranchResponse, error) + Fsck(ctx context.Context, in *FsckRequest, opts ...grpc.CallOption) (*FsckResponse, error) + WriteRef(ctx context.Context, in *WriteRefRequest, opts ...grpc.CallOption) (*WriteRefResponse, error) + FindMergeBase(ctx context.Context, in *FindMergeBaseRequest, opts ...grpc.CallOption) (*FindMergeBaseResponse, error) + CreateFork(ctx context.Context, in *CreateForkRequest, opts ...grpc.CallOption) (*CreateForkResponse, error) + IsRebaseInProgress(ctx context.Context, in *IsRebaseInProgressRequest, opts ...grpc.CallOption) (*IsRebaseInProgressResponse, error) + IsSquashInProgress(ctx context.Context, in *IsSquashInProgressRequest, opts ...grpc.CallOption) (*IsSquashInProgressResponse, error) + CreateRepositoryFromURL(ctx context.Context, in *CreateRepositoryFromURLRequest, opts ...grpc.CallOption) (*CreateRepositoryFromURLResponse, error) + CreateBundle(ctx context.Context, in *CreateBundleRequest, opts ...grpc.CallOption) (RepositoryService_CreateBundleClient, error) + CreateRepositoryFromBundle(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_CreateRepositoryFromBundleClient, error) + // GetConfig reads the target repository's gitconfig and streams its contents + // back. Returns a NotFound error in case no gitconfig was found. + GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (RepositoryService_GetConfigClient, error) + SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) + DeleteConfig(ctx context.Context, in *DeleteConfigRequest, opts ...grpc.CallOption) (*DeleteConfigResponse, error) + FindLicense(ctx context.Context, in *FindLicenseRequest, opts ...grpc.CallOption) (*FindLicenseResponse, error) + GetInfoAttributes(ctx context.Context, in *GetInfoAttributesRequest, opts ...grpc.CallOption) (RepositoryService_GetInfoAttributesClient, error) + CalculateChecksum(ctx context.Context, in *CalculateChecksumRequest, opts ...grpc.CallOption) (*CalculateChecksumResponse, error) + Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, error) + GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (RepositoryService_GetSnapshotClient, error) + CreateRepositoryFromSnapshot(ctx context.Context, in *CreateRepositoryFromSnapshotRequest, opts ...grpc.CallOption) (*CreateRepositoryFromSnapshotResponse, error) + GetRawChanges(ctx context.Context, in *GetRawChangesRequest, opts ...grpc.CallOption) (RepositoryService_GetRawChangesClient, error) + SearchFilesByContent(ctx context.Context, in *SearchFilesByContentRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByContentClient, error) + SearchFilesByName(ctx context.Context, in *SearchFilesByNameRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByNameClient, error) + RestoreCustomHooks(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_RestoreCustomHooksClient, error) + BackupCustomHooks(ctx context.Context, in *BackupCustomHooksRequest, opts ...grpc.CallOption) (RepositoryService_BackupCustomHooksClient, error) + GetObjectDirectorySize(ctx context.Context, in *GetObjectDirectorySizeRequest, opts ...grpc.CallOption) (*GetObjectDirectorySizeResponse, error) + CloneFromPool(ctx context.Context, in *CloneFromPoolRequest, opts ...grpc.CallOption) (*CloneFromPoolResponse, error) + CloneFromPoolInternal(ctx context.Context, in *CloneFromPoolInternalRequest, opts ...grpc.CallOption) (*CloneFromPoolInternalResponse, error) + // RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and + // eventually remove it. This ensures that even on networked filesystems the + // data is actually removed even if there's someone still handling the data. + RemoveRepository(ctx context.Context, in *RemoveRepositoryRequest, opts ...grpc.CallOption) (*RemoveRepositoryResponse, error) + RenameRepository(ctx context.Context, in *RenameRepositoryRequest, opts ...grpc.CallOption) (*RenameRepositoryResponse, error) + ReplicateRepository(ctx context.Context, in *ReplicateRepositoryRequest, opts ...grpc.CallOption) (*ReplicateRepositoryResponse, error) + OptimizeRepository(ctx context.Context, in *OptimizeRepositoryRequest, opts ...grpc.CallOption) (*OptimizeRepositoryResponse, error) +} + +type repositoryServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewRepositoryServiceClient(cc grpc.ClientConnInterface) RepositoryServiceClient { + return &repositoryServiceClient{cc} +} + +func (c *repositoryServiceClient) RepositoryExists(ctx context.Context, in *RepositoryExistsRequest, opts ...grpc.CallOption) (*RepositoryExistsResponse, error) { + out := new(RepositoryExistsResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/RepositoryExists", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) RepackIncremental(ctx context.Context, in *RepackIncrementalRequest, opts ...grpc.CallOption) (*RepackIncrementalResponse, error) { + out := new(RepackIncrementalResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/RepackIncremental", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) RepackFull(ctx context.Context, in *RepackFullRequest, opts ...grpc.CallOption) (*RepackFullResponse, error) { + out := new(RepackFullResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/RepackFull", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) MidxRepack(ctx context.Context, in *MidxRepackRequest, opts ...grpc.CallOption) (*MidxRepackResponse, error) { + out := new(MidxRepackResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/MidxRepack", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) GarbageCollect(ctx context.Context, in *GarbageCollectRequest, opts ...grpc.CallOption) (*GarbageCollectResponse, error) { + out := new(GarbageCollectResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/GarbageCollect", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) WriteCommitGraph(ctx context.Context, in *WriteCommitGraphRequest, opts ...grpc.CallOption) (*WriteCommitGraphResponse, error) { + out := new(WriteCommitGraphResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/WriteCommitGraph", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) RepositorySize(ctx context.Context, in *RepositorySizeRequest, opts ...grpc.CallOption) (*RepositorySizeResponse, error) { + out := new(RepositorySizeResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/RepositorySize", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) ApplyGitattributes(ctx context.Context, in *ApplyGitattributesRequest, opts ...grpc.CallOption) (*ApplyGitattributesResponse, error) { + out := new(ApplyGitattributesResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/ApplyGitattributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) FetchRemote(ctx context.Context, in *FetchRemoteRequest, opts ...grpc.CallOption) (*FetchRemoteResponse, error) { + out := new(FetchRemoteResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/FetchRemote", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) CreateRepository(ctx context.Context, in *CreateRepositoryRequest, opts ...grpc.CallOption) (*CreateRepositoryResponse, error) { + out := new(CreateRepositoryResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CreateRepository", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) GetArchive(ctx context.Context, in *GetArchiveRequest, opts ...grpc.CallOption) (RepositoryService_GetArchiveClient, error) { + stream, err := c.cc.NewStream(ctx, &RepositoryService_ServiceDesc.Streams[0], "/gitaly.RepositoryService/GetArchive", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceGetArchiveClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_GetArchiveClient interface { + Recv() (*GetArchiveResponse, error) + grpc.ClientStream +} + +type repositoryServiceGetArchiveClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceGetArchiveClient) Recv() (*GetArchiveResponse, error) { + m := new(GetArchiveResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) HasLocalBranches(ctx context.Context, in *HasLocalBranchesRequest, opts ...grpc.CallOption) (*HasLocalBranchesResponse, error) { + out := new(HasLocalBranchesResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/HasLocalBranches", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) FetchSourceBranch(ctx context.Context, in *FetchSourceBranchRequest, opts ...grpc.CallOption) (*FetchSourceBranchResponse, error) { + out := new(FetchSourceBranchResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/FetchSourceBranch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) Fsck(ctx context.Context, in *FsckRequest, opts ...grpc.CallOption) (*FsckResponse, error) { + out := new(FsckResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/Fsck", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) WriteRef(ctx context.Context, in *WriteRefRequest, opts ...grpc.CallOption) (*WriteRefResponse, error) { + out := new(WriteRefResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/WriteRef", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) FindMergeBase(ctx context.Context, in *FindMergeBaseRequest, opts ...grpc.CallOption) (*FindMergeBaseResponse, error) { + out := new(FindMergeBaseResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/FindMergeBase", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) CreateFork(ctx context.Context, in *CreateForkRequest, opts ...grpc.CallOption) (*CreateForkResponse, error) { + out := new(CreateForkResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CreateFork", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) IsRebaseInProgress(ctx context.Context, in *IsRebaseInProgressRequest, opts ...grpc.CallOption) (*IsRebaseInProgressResponse, error) { + out := new(IsRebaseInProgressResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/IsRebaseInProgress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) IsSquashInProgress(ctx context.Context, in *IsSquashInProgressRequest, opts ...grpc.CallOption) (*IsSquashInProgressResponse, error) { + out := new(IsSquashInProgressResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/IsSquashInProgress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) CreateRepositoryFromURL(ctx context.Context, in *CreateRepositoryFromURLRequest, opts ...grpc.CallOption) (*CreateRepositoryFromURLResponse, error) { + out := new(CreateRepositoryFromURLResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CreateRepositoryFromURL", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) CreateBundle(ctx context.Context, in *CreateBundleRequest, opts ...grpc.CallOption) (RepositoryService_CreateBundleClient, error) { + stream, err := c.cc.NewStream(ctx, &RepositoryService_ServiceDesc.Streams[1], "/gitaly.RepositoryService/CreateBundle", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceCreateBundleClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_CreateBundleClient interface { + Recv() (*CreateBundleResponse, error) + grpc.ClientStream +} + +type repositoryServiceCreateBundleClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceCreateBundleClient) Recv() (*CreateBundleResponse, error) { + m := new(CreateBundleResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) CreateRepositoryFromBundle(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_CreateRepositoryFromBundleClient, error) { + stream, err := c.cc.NewStream(ctx, &RepositoryService_ServiceDesc.Streams[2], "/gitaly.RepositoryService/CreateRepositoryFromBundle", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceCreateRepositoryFromBundleClient{stream} + return x, nil +} + +type RepositoryService_CreateRepositoryFromBundleClient interface { + Send(*CreateRepositoryFromBundleRequest) error + CloseAndRecv() (*CreateRepositoryFromBundleResponse, error) + grpc.ClientStream +} + +type repositoryServiceCreateRepositoryFromBundleClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceCreateRepositoryFromBundleClient) Send(m *CreateRepositoryFromBundleRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *repositoryServiceCreateRepositoryFromBundleClient) CloseAndRecv() (*CreateRepositoryFromBundleResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(CreateRepositoryFromBundleResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (RepositoryService_GetConfigClient, error) { + stream, err := c.cc.NewStream(ctx, &RepositoryService_ServiceDesc.Streams[3], "/gitaly.RepositoryService/GetConfig", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceGetConfigClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_GetConfigClient interface { + Recv() (*GetConfigResponse, error) + grpc.ClientStream +} + +type repositoryServiceGetConfigClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceGetConfigClient) Recv() (*GetConfigResponse, error) { + m := new(GetConfigResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) { + out := new(SetConfigResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/SetConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) DeleteConfig(ctx context.Context, in *DeleteConfigRequest, opts ...grpc.CallOption) (*DeleteConfigResponse, error) { + out := new(DeleteConfigResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/DeleteConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) FindLicense(ctx context.Context, in *FindLicenseRequest, opts ...grpc.CallOption) (*FindLicenseResponse, error) { + out := new(FindLicenseResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/FindLicense", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) GetInfoAttributes(ctx context.Context, in *GetInfoAttributesRequest, opts ...grpc.CallOption) (RepositoryService_GetInfoAttributesClient, error) { + stream, err := c.cc.NewStream(ctx, &RepositoryService_ServiceDesc.Streams[4], "/gitaly.RepositoryService/GetInfoAttributes", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceGetInfoAttributesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_GetInfoAttributesClient interface { + Recv() (*GetInfoAttributesResponse, error) + grpc.ClientStream +} + +type repositoryServiceGetInfoAttributesClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceGetInfoAttributesClient) Recv() (*GetInfoAttributesResponse, error) { + m := new(GetInfoAttributesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) CalculateChecksum(ctx context.Context, in *CalculateChecksumRequest, opts ...grpc.CallOption) (*CalculateChecksumResponse, error) { + out := new(CalculateChecksumResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CalculateChecksum", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, error) { + out := new(CleanupResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/Cleanup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (RepositoryService_GetSnapshotClient, error) { + stream, err := c.cc.NewStream(ctx, &RepositoryService_ServiceDesc.Streams[5], "/gitaly.RepositoryService/GetSnapshot", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceGetSnapshotClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_GetSnapshotClient interface { + Recv() (*GetSnapshotResponse, error) + grpc.ClientStream +} + +type repositoryServiceGetSnapshotClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceGetSnapshotClient) Recv() (*GetSnapshotResponse, error) { + m := new(GetSnapshotResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) CreateRepositoryFromSnapshot(ctx context.Context, in *CreateRepositoryFromSnapshotRequest, opts ...grpc.CallOption) (*CreateRepositoryFromSnapshotResponse, error) { + out := new(CreateRepositoryFromSnapshotResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CreateRepositoryFromSnapshot", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) GetRawChanges(ctx context.Context, in *GetRawChangesRequest, opts ...grpc.CallOption) (RepositoryService_GetRawChangesClient, error) { + stream, err := c.cc.NewStream(ctx, &RepositoryService_ServiceDesc.Streams[6], "/gitaly.RepositoryService/GetRawChanges", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceGetRawChangesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_GetRawChangesClient interface { + Recv() (*GetRawChangesResponse, error) + grpc.ClientStream +} + +type repositoryServiceGetRawChangesClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceGetRawChangesClient) Recv() (*GetRawChangesResponse, error) { + m := new(GetRawChangesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) SearchFilesByContent(ctx context.Context, in *SearchFilesByContentRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByContentClient, error) { + stream, err := c.cc.NewStream(ctx, &RepositoryService_ServiceDesc.Streams[7], "/gitaly.RepositoryService/SearchFilesByContent", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceSearchFilesByContentClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_SearchFilesByContentClient interface { + Recv() (*SearchFilesByContentResponse, error) + grpc.ClientStream +} + +type repositoryServiceSearchFilesByContentClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceSearchFilesByContentClient) Recv() (*SearchFilesByContentResponse, error) { + m := new(SearchFilesByContentResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) SearchFilesByName(ctx context.Context, in *SearchFilesByNameRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByNameClient, error) { + stream, err := c.cc.NewStream(ctx, &RepositoryService_ServiceDesc.Streams[8], "/gitaly.RepositoryService/SearchFilesByName", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceSearchFilesByNameClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_SearchFilesByNameClient interface { + Recv() (*SearchFilesByNameResponse, error) + grpc.ClientStream +} + +type repositoryServiceSearchFilesByNameClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceSearchFilesByNameClient) Recv() (*SearchFilesByNameResponse, error) { + m := new(SearchFilesByNameResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) RestoreCustomHooks(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_RestoreCustomHooksClient, error) { + stream, err := c.cc.NewStream(ctx, &RepositoryService_ServiceDesc.Streams[9], "/gitaly.RepositoryService/RestoreCustomHooks", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceRestoreCustomHooksClient{stream} + return x, nil +} + +type RepositoryService_RestoreCustomHooksClient interface { + Send(*RestoreCustomHooksRequest) error + CloseAndRecv() (*RestoreCustomHooksResponse, error) + grpc.ClientStream +} + +type repositoryServiceRestoreCustomHooksClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceRestoreCustomHooksClient) Send(m *RestoreCustomHooksRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *repositoryServiceRestoreCustomHooksClient) CloseAndRecv() (*RestoreCustomHooksResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(RestoreCustomHooksResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) BackupCustomHooks(ctx context.Context, in *BackupCustomHooksRequest, opts ...grpc.CallOption) (RepositoryService_BackupCustomHooksClient, error) { + stream, err := c.cc.NewStream(ctx, &RepositoryService_ServiceDesc.Streams[10], "/gitaly.RepositoryService/BackupCustomHooks", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceBackupCustomHooksClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_BackupCustomHooksClient interface { + Recv() (*BackupCustomHooksResponse, error) + grpc.ClientStream +} + +type repositoryServiceBackupCustomHooksClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceBackupCustomHooksClient) Recv() (*BackupCustomHooksResponse, error) { + m := new(BackupCustomHooksResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) GetObjectDirectorySize(ctx context.Context, in *GetObjectDirectorySizeRequest, opts ...grpc.CallOption) (*GetObjectDirectorySizeResponse, error) { + out := new(GetObjectDirectorySizeResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/GetObjectDirectorySize", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) CloneFromPool(ctx context.Context, in *CloneFromPoolRequest, opts ...grpc.CallOption) (*CloneFromPoolResponse, error) { + out := new(CloneFromPoolResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CloneFromPool", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) CloneFromPoolInternal(ctx context.Context, in *CloneFromPoolInternalRequest, opts ...grpc.CallOption) (*CloneFromPoolInternalResponse, error) { + out := new(CloneFromPoolInternalResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/CloneFromPoolInternal", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) RemoveRepository(ctx context.Context, in *RemoveRepositoryRequest, opts ...grpc.CallOption) (*RemoveRepositoryResponse, error) { + out := new(RemoveRepositoryResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/RemoveRepository", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) RenameRepository(ctx context.Context, in *RenameRepositoryRequest, opts ...grpc.CallOption) (*RenameRepositoryResponse, error) { + out := new(RenameRepositoryResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/RenameRepository", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) ReplicateRepository(ctx context.Context, in *ReplicateRepositoryRequest, opts ...grpc.CallOption) (*ReplicateRepositoryResponse, error) { + out := new(ReplicateRepositoryResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/ReplicateRepository", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) OptimizeRepository(ctx context.Context, in *OptimizeRepositoryRequest, opts ...grpc.CallOption) (*OptimizeRepositoryResponse, error) { + out := new(OptimizeRepositoryResponse) + err := c.cc.Invoke(ctx, "/gitaly.RepositoryService/OptimizeRepository", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RepositoryServiceServer is the server API for RepositoryService service. +// All implementations must embed UnimplementedRepositoryServiceServer +// for forward compatibility +type RepositoryServiceServer interface { + RepositoryExists(context.Context, *RepositoryExistsRequest) (*RepositoryExistsResponse, error) + RepackIncremental(context.Context, *RepackIncrementalRequest) (*RepackIncrementalResponse, error) + RepackFull(context.Context, *RepackFullRequest) (*RepackFullResponse, error) + MidxRepack(context.Context, *MidxRepackRequest) (*MidxRepackResponse, error) + GarbageCollect(context.Context, *GarbageCollectRequest) (*GarbageCollectResponse, error) + WriteCommitGraph(context.Context, *WriteCommitGraphRequest) (*WriteCommitGraphResponse, error) + RepositorySize(context.Context, *RepositorySizeRequest) (*RepositorySizeResponse, error) + ApplyGitattributes(context.Context, *ApplyGitattributesRequest) (*ApplyGitattributesResponse, error) + // FetchRemote fetches references from a remote repository into the local + // repository. + FetchRemote(context.Context, *FetchRemoteRequest) (*FetchRemoteResponse, error) + CreateRepository(context.Context, *CreateRepositoryRequest) (*CreateRepositoryResponse, error) + GetArchive(*GetArchiveRequest, RepositoryService_GetArchiveServer) error + HasLocalBranches(context.Context, *HasLocalBranchesRequest) (*HasLocalBranchesResponse, error) + // FetchSourceBranch fetches a branch from a second (potentially remote) + // repository into the given repository. + FetchSourceBranch(context.Context, *FetchSourceBranchRequest) (*FetchSourceBranchResponse, error) + Fsck(context.Context, *FsckRequest) (*FsckResponse, error) + WriteRef(context.Context, *WriteRefRequest) (*WriteRefResponse, error) + FindMergeBase(context.Context, *FindMergeBaseRequest) (*FindMergeBaseResponse, error) + CreateFork(context.Context, *CreateForkRequest) (*CreateForkResponse, error) + IsRebaseInProgress(context.Context, *IsRebaseInProgressRequest) (*IsRebaseInProgressResponse, error) + IsSquashInProgress(context.Context, *IsSquashInProgressRequest) (*IsSquashInProgressResponse, error) + CreateRepositoryFromURL(context.Context, *CreateRepositoryFromURLRequest) (*CreateRepositoryFromURLResponse, error) + CreateBundle(*CreateBundleRequest, RepositoryService_CreateBundleServer) error + CreateRepositoryFromBundle(RepositoryService_CreateRepositoryFromBundleServer) error + // GetConfig reads the target repository's gitconfig and streams its contents + // back. Returns a NotFound error in case no gitconfig was found. + GetConfig(*GetConfigRequest, RepositoryService_GetConfigServer) error + SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error) + DeleteConfig(context.Context, *DeleteConfigRequest) (*DeleteConfigResponse, error) + FindLicense(context.Context, *FindLicenseRequest) (*FindLicenseResponse, error) + GetInfoAttributes(*GetInfoAttributesRequest, RepositoryService_GetInfoAttributesServer) error + CalculateChecksum(context.Context, *CalculateChecksumRequest) (*CalculateChecksumResponse, error) + Cleanup(context.Context, *CleanupRequest) (*CleanupResponse, error) + GetSnapshot(*GetSnapshotRequest, RepositoryService_GetSnapshotServer) error + CreateRepositoryFromSnapshot(context.Context, *CreateRepositoryFromSnapshotRequest) (*CreateRepositoryFromSnapshotResponse, error) + GetRawChanges(*GetRawChangesRequest, RepositoryService_GetRawChangesServer) error + SearchFilesByContent(*SearchFilesByContentRequest, RepositoryService_SearchFilesByContentServer) error + SearchFilesByName(*SearchFilesByNameRequest, RepositoryService_SearchFilesByNameServer) error + RestoreCustomHooks(RepositoryService_RestoreCustomHooksServer) error + BackupCustomHooks(*BackupCustomHooksRequest, RepositoryService_BackupCustomHooksServer) error + GetObjectDirectorySize(context.Context, *GetObjectDirectorySizeRequest) (*GetObjectDirectorySizeResponse, error) + CloneFromPool(context.Context, *CloneFromPoolRequest) (*CloneFromPoolResponse, error) + CloneFromPoolInternal(context.Context, *CloneFromPoolInternalRequest) (*CloneFromPoolInternalResponse, error) + // RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and + // eventually remove it. This ensures that even on networked filesystems the + // data is actually removed even if there's someone still handling the data. + RemoveRepository(context.Context, *RemoveRepositoryRequest) (*RemoveRepositoryResponse, error) + RenameRepository(context.Context, *RenameRepositoryRequest) (*RenameRepositoryResponse, error) + ReplicateRepository(context.Context, *ReplicateRepositoryRequest) (*ReplicateRepositoryResponse, error) + OptimizeRepository(context.Context, *OptimizeRepositoryRequest) (*OptimizeRepositoryResponse, error) + mustEmbedUnimplementedRepositoryServiceServer() +} + +// UnimplementedRepositoryServiceServer must be embedded to have forward compatible implementations. +type UnimplementedRepositoryServiceServer struct { +} + +func (UnimplementedRepositoryServiceServer) RepositoryExists(context.Context, *RepositoryExistsRequest) (*RepositoryExistsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RepositoryExists not implemented") +} +func (UnimplementedRepositoryServiceServer) RepackIncremental(context.Context, *RepackIncrementalRequest) (*RepackIncrementalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RepackIncremental not implemented") +} +func (UnimplementedRepositoryServiceServer) RepackFull(context.Context, *RepackFullRequest) (*RepackFullResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RepackFull not implemented") +} +func (UnimplementedRepositoryServiceServer) MidxRepack(context.Context, *MidxRepackRequest) (*MidxRepackResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MidxRepack not implemented") +} +func (UnimplementedRepositoryServiceServer) GarbageCollect(context.Context, *GarbageCollectRequest) (*GarbageCollectResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GarbageCollect not implemented") +} +func (UnimplementedRepositoryServiceServer) WriteCommitGraph(context.Context, *WriteCommitGraphRequest) (*WriteCommitGraphResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WriteCommitGraph not implemented") +} +func (UnimplementedRepositoryServiceServer) RepositorySize(context.Context, *RepositorySizeRequest) (*RepositorySizeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RepositorySize not implemented") +} +func (UnimplementedRepositoryServiceServer) ApplyGitattributes(context.Context, *ApplyGitattributesRequest) (*ApplyGitattributesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ApplyGitattributes not implemented") +} +func (UnimplementedRepositoryServiceServer) FetchRemote(context.Context, *FetchRemoteRequest) (*FetchRemoteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchRemote not implemented") +} +func (UnimplementedRepositoryServiceServer) CreateRepository(context.Context, *CreateRepositoryRequest) (*CreateRepositoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateRepository not implemented") +} +func (UnimplementedRepositoryServiceServer) GetArchive(*GetArchiveRequest, RepositoryService_GetArchiveServer) error { + return status.Errorf(codes.Unimplemented, "method GetArchive not implemented") +} +func (UnimplementedRepositoryServiceServer) HasLocalBranches(context.Context, *HasLocalBranchesRequest) (*HasLocalBranchesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method HasLocalBranches not implemented") +} +func (UnimplementedRepositoryServiceServer) FetchSourceBranch(context.Context, *FetchSourceBranchRequest) (*FetchSourceBranchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchSourceBranch not implemented") +} +func (UnimplementedRepositoryServiceServer) Fsck(context.Context, *FsckRequest) (*FsckResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Fsck not implemented") +} +func (UnimplementedRepositoryServiceServer) WriteRef(context.Context, *WriteRefRequest) (*WriteRefResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WriteRef not implemented") +} +func (UnimplementedRepositoryServiceServer) FindMergeBase(context.Context, *FindMergeBaseRequest) (*FindMergeBaseResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindMergeBase not implemented") +} +func (UnimplementedRepositoryServiceServer) CreateFork(context.Context, *CreateForkRequest) (*CreateForkResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateFork not implemented") +} +func (UnimplementedRepositoryServiceServer) IsRebaseInProgress(context.Context, *IsRebaseInProgressRequest) (*IsRebaseInProgressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsRebaseInProgress not implemented") +} +func (UnimplementedRepositoryServiceServer) IsSquashInProgress(context.Context, *IsSquashInProgressRequest) (*IsSquashInProgressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsSquashInProgress not implemented") +} +func (UnimplementedRepositoryServiceServer) CreateRepositoryFromURL(context.Context, *CreateRepositoryFromURLRequest) (*CreateRepositoryFromURLResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateRepositoryFromURL not implemented") +} +func (UnimplementedRepositoryServiceServer) CreateBundle(*CreateBundleRequest, RepositoryService_CreateBundleServer) error { + return status.Errorf(codes.Unimplemented, "method CreateBundle not implemented") +} +func (UnimplementedRepositoryServiceServer) CreateRepositoryFromBundle(RepositoryService_CreateRepositoryFromBundleServer) error { + return status.Errorf(codes.Unimplemented, "method CreateRepositoryFromBundle not implemented") +} +func (UnimplementedRepositoryServiceServer) GetConfig(*GetConfigRequest, RepositoryService_GetConfigServer) error { + return status.Errorf(codes.Unimplemented, "method GetConfig not implemented") +} +func (UnimplementedRepositoryServiceServer) SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetConfig not implemented") +} +func (UnimplementedRepositoryServiceServer) DeleteConfig(context.Context, *DeleteConfigRequest) (*DeleteConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteConfig not implemented") +} +func (UnimplementedRepositoryServiceServer) FindLicense(context.Context, *FindLicenseRequest) (*FindLicenseResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindLicense not implemented") +} +func (UnimplementedRepositoryServiceServer) GetInfoAttributes(*GetInfoAttributesRequest, RepositoryService_GetInfoAttributesServer) error { + return status.Errorf(codes.Unimplemented, "method GetInfoAttributes not implemented") +} +func (UnimplementedRepositoryServiceServer) CalculateChecksum(context.Context, *CalculateChecksumRequest) (*CalculateChecksumResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CalculateChecksum not implemented") +} +func (UnimplementedRepositoryServiceServer) Cleanup(context.Context, *CleanupRequest) (*CleanupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Cleanup not implemented") +} +func (UnimplementedRepositoryServiceServer) GetSnapshot(*GetSnapshotRequest, RepositoryService_GetSnapshotServer) error { + return status.Errorf(codes.Unimplemented, "method GetSnapshot not implemented") +} +func (UnimplementedRepositoryServiceServer) CreateRepositoryFromSnapshot(context.Context, *CreateRepositoryFromSnapshotRequest) (*CreateRepositoryFromSnapshotResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateRepositoryFromSnapshot not implemented") +} +func (UnimplementedRepositoryServiceServer) GetRawChanges(*GetRawChangesRequest, RepositoryService_GetRawChangesServer) error { + return status.Errorf(codes.Unimplemented, "method GetRawChanges not implemented") +} +func (UnimplementedRepositoryServiceServer) SearchFilesByContent(*SearchFilesByContentRequest, RepositoryService_SearchFilesByContentServer) error { + return status.Errorf(codes.Unimplemented, "method SearchFilesByContent not implemented") +} +func (UnimplementedRepositoryServiceServer) SearchFilesByName(*SearchFilesByNameRequest, RepositoryService_SearchFilesByNameServer) error { + return status.Errorf(codes.Unimplemented, "method SearchFilesByName not implemented") +} +func (UnimplementedRepositoryServiceServer) RestoreCustomHooks(RepositoryService_RestoreCustomHooksServer) error { + return status.Errorf(codes.Unimplemented, "method RestoreCustomHooks not implemented") +} +func (UnimplementedRepositoryServiceServer) BackupCustomHooks(*BackupCustomHooksRequest, RepositoryService_BackupCustomHooksServer) error { + return status.Errorf(codes.Unimplemented, "method BackupCustomHooks not implemented") +} +func (UnimplementedRepositoryServiceServer) GetObjectDirectorySize(context.Context, *GetObjectDirectorySizeRequest) (*GetObjectDirectorySizeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetObjectDirectorySize not implemented") +} +func (UnimplementedRepositoryServiceServer) CloneFromPool(context.Context, *CloneFromPoolRequest) (*CloneFromPoolResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloneFromPool not implemented") +} +func (UnimplementedRepositoryServiceServer) CloneFromPoolInternal(context.Context, *CloneFromPoolInternalRequest) (*CloneFromPoolInternalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloneFromPoolInternal not implemented") +} +func (UnimplementedRepositoryServiceServer) RemoveRepository(context.Context, *RemoveRepositoryRequest) (*RemoveRepositoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveRepository not implemented") +} +func (UnimplementedRepositoryServiceServer) RenameRepository(context.Context, *RenameRepositoryRequest) (*RenameRepositoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RenameRepository not implemented") +} +func (UnimplementedRepositoryServiceServer) ReplicateRepository(context.Context, *ReplicateRepositoryRequest) (*ReplicateRepositoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReplicateRepository not implemented") +} +func (UnimplementedRepositoryServiceServer) OptimizeRepository(context.Context, *OptimizeRepositoryRequest) (*OptimizeRepositoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OptimizeRepository not implemented") +} +func (UnimplementedRepositoryServiceServer) mustEmbedUnimplementedRepositoryServiceServer() {} + +// UnsafeRepositoryServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to RepositoryServiceServer will +// result in compilation errors. +type UnsafeRepositoryServiceServer interface { + mustEmbedUnimplementedRepositoryServiceServer() +} + +func RegisterRepositoryServiceServer(s grpc.ServiceRegistrar, srv RepositoryServiceServer) { + s.RegisterService(&RepositoryService_ServiceDesc, srv) +} + +func _RepositoryService_RepositoryExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RepositoryExistsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).RepositoryExists(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/RepositoryExists", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).RepositoryExists(ctx, req.(*RepositoryExistsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_RepackIncremental_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RepackIncrementalRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).RepackIncremental(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/RepackIncremental", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).RepackIncremental(ctx, req.(*RepackIncrementalRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_RepackFull_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RepackFullRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).RepackFull(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/RepackFull", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).RepackFull(ctx, req.(*RepackFullRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_MidxRepack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MidxRepackRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).MidxRepack(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/MidxRepack", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).MidxRepack(ctx, req.(*MidxRepackRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_GarbageCollect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GarbageCollectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).GarbageCollect(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/GarbageCollect", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).GarbageCollect(ctx, req.(*GarbageCollectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_WriteCommitGraph_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WriteCommitGraphRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).WriteCommitGraph(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/WriteCommitGraph", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).WriteCommitGraph(ctx, req.(*WriteCommitGraphRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_RepositorySize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RepositorySizeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).RepositorySize(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/RepositorySize", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).RepositorySize(ctx, req.(*RepositorySizeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_ApplyGitattributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ApplyGitattributesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).ApplyGitattributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/ApplyGitattributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).ApplyGitattributes(ctx, req.(*ApplyGitattributesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_FetchRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FetchRemoteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).FetchRemote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/FetchRemote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).FetchRemote(ctx, req.(*FetchRemoteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_CreateRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateRepositoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).CreateRepository(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/CreateRepository", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).CreateRepository(ctx, req.(*CreateRepositoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_GetArchive_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetArchiveRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).GetArchive(m, &repositoryServiceGetArchiveServer{stream}) +} + +type RepositoryService_GetArchiveServer interface { + Send(*GetArchiveResponse) error + grpc.ServerStream +} + +type repositoryServiceGetArchiveServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceGetArchiveServer) Send(m *GetArchiveResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_HasLocalBranches_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(HasLocalBranchesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).HasLocalBranches(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/HasLocalBranches", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).HasLocalBranches(ctx, req.(*HasLocalBranchesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_FetchSourceBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FetchSourceBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).FetchSourceBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/FetchSourceBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).FetchSourceBranch(ctx, req.(*FetchSourceBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_Fsck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FsckRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).Fsck(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/Fsck", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).Fsck(ctx, req.(*FsckRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_WriteRef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WriteRefRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).WriteRef(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/WriteRef", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).WriteRef(ctx, req.(*WriteRefRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_FindMergeBase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindMergeBaseRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).FindMergeBase(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/FindMergeBase", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).FindMergeBase(ctx, req.(*FindMergeBaseRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_CreateFork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateForkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).CreateFork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/CreateFork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).CreateFork(ctx, req.(*CreateForkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_IsRebaseInProgress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IsRebaseInProgressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).IsRebaseInProgress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/IsRebaseInProgress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).IsRebaseInProgress(ctx, req.(*IsRebaseInProgressRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_IsSquashInProgress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IsSquashInProgressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).IsSquashInProgress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/IsSquashInProgress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).IsSquashInProgress(ctx, req.(*IsSquashInProgressRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_CreateRepositoryFromURL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateRepositoryFromURLRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).CreateRepositoryFromURL(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/CreateRepositoryFromURL", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).CreateRepositoryFromURL(ctx, req.(*CreateRepositoryFromURLRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_CreateBundle_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(CreateBundleRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).CreateBundle(m, &repositoryServiceCreateBundleServer{stream}) +} + +type RepositoryService_CreateBundleServer interface { + Send(*CreateBundleResponse) error + grpc.ServerStream +} + +type repositoryServiceCreateBundleServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceCreateBundleServer) Send(m *CreateBundleResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_CreateRepositoryFromBundle_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(RepositoryServiceServer).CreateRepositoryFromBundle(&repositoryServiceCreateRepositoryFromBundleServer{stream}) +} + +type RepositoryService_CreateRepositoryFromBundleServer interface { + SendAndClose(*CreateRepositoryFromBundleResponse) error + Recv() (*CreateRepositoryFromBundleRequest, error) + grpc.ServerStream +} + +type repositoryServiceCreateRepositoryFromBundleServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceCreateRepositoryFromBundleServer) SendAndClose(m *CreateRepositoryFromBundleResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *repositoryServiceCreateRepositoryFromBundleServer) Recv() (*CreateRepositoryFromBundleRequest, error) { + m := new(CreateRepositoryFromBundleRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _RepositoryService_GetConfig_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetConfigRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).GetConfig(m, &repositoryServiceGetConfigServer{stream}) +} + +type RepositoryService_GetConfigServer interface { + Send(*GetConfigResponse) error + grpc.ServerStream +} + +type repositoryServiceGetConfigServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceGetConfigServer) Send(m *GetConfigResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_SetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).SetConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/SetConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).SetConfig(ctx, req.(*SetConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_DeleteConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).DeleteConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/DeleteConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).DeleteConfig(ctx, req.(*DeleteConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_FindLicense_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindLicenseRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).FindLicense(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/FindLicense", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).FindLicense(ctx, req.(*FindLicenseRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_GetInfoAttributes_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetInfoAttributesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).GetInfoAttributes(m, &repositoryServiceGetInfoAttributesServer{stream}) +} + +type RepositoryService_GetInfoAttributesServer interface { + Send(*GetInfoAttributesResponse) error + grpc.ServerStream +} + +type repositoryServiceGetInfoAttributesServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceGetInfoAttributesServer) Send(m *GetInfoAttributesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_CalculateChecksum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CalculateChecksumRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).CalculateChecksum(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/CalculateChecksum", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).CalculateChecksum(ctx, req.(*CalculateChecksumRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_Cleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CleanupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).Cleanup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/Cleanup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).Cleanup(ctx, req.(*CleanupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_GetSnapshot_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetSnapshotRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).GetSnapshot(m, &repositoryServiceGetSnapshotServer{stream}) +} + +type RepositoryService_GetSnapshotServer interface { + Send(*GetSnapshotResponse) error + grpc.ServerStream +} + +type repositoryServiceGetSnapshotServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceGetSnapshotServer) Send(m *GetSnapshotResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_CreateRepositoryFromSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateRepositoryFromSnapshotRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).CreateRepositoryFromSnapshot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/CreateRepositoryFromSnapshot", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).CreateRepositoryFromSnapshot(ctx, req.(*CreateRepositoryFromSnapshotRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_GetRawChanges_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetRawChangesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).GetRawChanges(m, &repositoryServiceGetRawChangesServer{stream}) +} + +type RepositoryService_GetRawChangesServer interface { + Send(*GetRawChangesResponse) error + grpc.ServerStream +} + +type repositoryServiceGetRawChangesServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceGetRawChangesServer) Send(m *GetRawChangesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_SearchFilesByContent_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SearchFilesByContentRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).SearchFilesByContent(m, &repositoryServiceSearchFilesByContentServer{stream}) +} + +type RepositoryService_SearchFilesByContentServer interface { + Send(*SearchFilesByContentResponse) error + grpc.ServerStream +} + +type repositoryServiceSearchFilesByContentServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceSearchFilesByContentServer) Send(m *SearchFilesByContentResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_SearchFilesByName_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SearchFilesByNameRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).SearchFilesByName(m, &repositoryServiceSearchFilesByNameServer{stream}) +} + +type RepositoryService_SearchFilesByNameServer interface { + Send(*SearchFilesByNameResponse) error + grpc.ServerStream +} + +type repositoryServiceSearchFilesByNameServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceSearchFilesByNameServer) Send(m *SearchFilesByNameResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_RestoreCustomHooks_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(RepositoryServiceServer).RestoreCustomHooks(&repositoryServiceRestoreCustomHooksServer{stream}) +} + +type RepositoryService_RestoreCustomHooksServer interface { + SendAndClose(*RestoreCustomHooksResponse) error + Recv() (*RestoreCustomHooksRequest, error) + grpc.ServerStream +} + +type repositoryServiceRestoreCustomHooksServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceRestoreCustomHooksServer) SendAndClose(m *RestoreCustomHooksResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *repositoryServiceRestoreCustomHooksServer) Recv() (*RestoreCustomHooksRequest, error) { + m := new(RestoreCustomHooksRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _RepositoryService_BackupCustomHooks_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(BackupCustomHooksRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).BackupCustomHooks(m, &repositoryServiceBackupCustomHooksServer{stream}) +} + +type RepositoryService_BackupCustomHooksServer interface { + Send(*BackupCustomHooksResponse) error + grpc.ServerStream +} + +type repositoryServiceBackupCustomHooksServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceBackupCustomHooksServer) Send(m *BackupCustomHooksResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_GetObjectDirectorySize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetObjectDirectorySizeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).GetObjectDirectorySize(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/GetObjectDirectorySize", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).GetObjectDirectorySize(ctx, req.(*GetObjectDirectorySizeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_CloneFromPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloneFromPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).CloneFromPool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/CloneFromPool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).CloneFromPool(ctx, req.(*CloneFromPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_CloneFromPoolInternal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloneFromPoolInternalRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).CloneFromPoolInternal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/CloneFromPoolInternal", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).CloneFromPoolInternal(ctx, req.(*CloneFromPoolInternalRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_RemoveRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveRepositoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).RemoveRepository(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/RemoveRepository", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).RemoveRepository(ctx, req.(*RemoveRepositoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_RenameRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RenameRepositoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).RenameRepository(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/RenameRepository", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).RenameRepository(ctx, req.(*RenameRepositoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_ReplicateRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReplicateRepositoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).ReplicateRepository(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/ReplicateRepository", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).ReplicateRepository(ctx, req.(*ReplicateRepositoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_OptimizeRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OptimizeRepositoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).OptimizeRepository(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/OptimizeRepository", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).OptimizeRepository(ctx, req.(*OptimizeRepositoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// RepositoryService_ServiceDesc is the grpc.ServiceDesc for RepositoryService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var RepositoryService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.RepositoryService", + HandlerType: (*RepositoryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "RepositoryExists", + Handler: _RepositoryService_RepositoryExists_Handler, + }, + { + MethodName: "RepackIncremental", + Handler: _RepositoryService_RepackIncremental_Handler, + }, + { + MethodName: "RepackFull", + Handler: _RepositoryService_RepackFull_Handler, + }, + { + MethodName: "MidxRepack", + Handler: _RepositoryService_MidxRepack_Handler, + }, + { + MethodName: "GarbageCollect", + Handler: _RepositoryService_GarbageCollect_Handler, + }, + { + MethodName: "WriteCommitGraph", + Handler: _RepositoryService_WriteCommitGraph_Handler, + }, + { + MethodName: "RepositorySize", + Handler: _RepositoryService_RepositorySize_Handler, + }, + { + MethodName: "ApplyGitattributes", + Handler: _RepositoryService_ApplyGitattributes_Handler, + }, + { + MethodName: "FetchRemote", + Handler: _RepositoryService_FetchRemote_Handler, + }, + { + MethodName: "CreateRepository", + Handler: _RepositoryService_CreateRepository_Handler, + }, + { + MethodName: "HasLocalBranches", + Handler: _RepositoryService_HasLocalBranches_Handler, + }, + { + MethodName: "FetchSourceBranch", + Handler: _RepositoryService_FetchSourceBranch_Handler, + }, + { + MethodName: "Fsck", + Handler: _RepositoryService_Fsck_Handler, + }, + { + MethodName: "WriteRef", + Handler: _RepositoryService_WriteRef_Handler, + }, + { + MethodName: "FindMergeBase", + Handler: _RepositoryService_FindMergeBase_Handler, + }, + { + MethodName: "CreateFork", + Handler: _RepositoryService_CreateFork_Handler, + }, + { + MethodName: "IsRebaseInProgress", + Handler: _RepositoryService_IsRebaseInProgress_Handler, + }, + { + MethodName: "IsSquashInProgress", + Handler: _RepositoryService_IsSquashInProgress_Handler, + }, + { + MethodName: "CreateRepositoryFromURL", + Handler: _RepositoryService_CreateRepositoryFromURL_Handler, + }, + { + MethodName: "SetConfig", + Handler: _RepositoryService_SetConfig_Handler, + }, + { + MethodName: "DeleteConfig", + Handler: _RepositoryService_DeleteConfig_Handler, + }, + { + MethodName: "FindLicense", + Handler: _RepositoryService_FindLicense_Handler, + }, + { + MethodName: "CalculateChecksum", + Handler: _RepositoryService_CalculateChecksum_Handler, + }, + { + MethodName: "Cleanup", + Handler: _RepositoryService_Cleanup_Handler, + }, + { + MethodName: "CreateRepositoryFromSnapshot", + Handler: _RepositoryService_CreateRepositoryFromSnapshot_Handler, + }, + { + MethodName: "GetObjectDirectorySize", + Handler: _RepositoryService_GetObjectDirectorySize_Handler, + }, + { + MethodName: "CloneFromPool", + Handler: _RepositoryService_CloneFromPool_Handler, + }, + { + MethodName: "CloneFromPoolInternal", + Handler: _RepositoryService_CloneFromPoolInternal_Handler, + }, + { + MethodName: "RemoveRepository", + Handler: _RepositoryService_RemoveRepository_Handler, + }, + { + MethodName: "RenameRepository", + Handler: _RepositoryService_RenameRepository_Handler, + }, + { + MethodName: "ReplicateRepository", + Handler: _RepositoryService_ReplicateRepository_Handler, + }, + { + MethodName: "OptimizeRepository", + Handler: _RepositoryService_OptimizeRepository_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "GetArchive", + Handler: _RepositoryService_GetArchive_Handler, + ServerStreams: true, + }, + { + StreamName: "CreateBundle", + Handler: _RepositoryService_CreateBundle_Handler, + ServerStreams: true, + }, + { + StreamName: "CreateRepositoryFromBundle", + Handler: _RepositoryService_CreateRepositoryFromBundle_Handler, + ClientStreams: true, + }, + { + StreamName: "GetConfig", + Handler: _RepositoryService_GetConfig_Handler, + ServerStreams: true, + }, + { + StreamName: "GetInfoAttributes", + Handler: _RepositoryService_GetInfoAttributes_Handler, + ServerStreams: true, + }, + { + StreamName: "GetSnapshot", + Handler: _RepositoryService_GetSnapshot_Handler, + ServerStreams: true, + }, + { + StreamName: "GetRawChanges", + Handler: _RepositoryService_GetRawChanges_Handler, + ServerStreams: true, + }, + { + StreamName: "SearchFilesByContent", + Handler: _RepositoryService_SearchFilesByContent_Handler, + ServerStreams: true, + }, + { + StreamName: "SearchFilesByName", + Handler: _RepositoryService_SearchFilesByName_Handler, + ServerStreams: true, + }, + { + StreamName: "RestoreCustomHooks", + Handler: _RepositoryService_RestoreCustomHooks_Handler, + ClientStreams: true, + }, + { + StreamName: "BackupCustomHooks", + Handler: _RepositoryService_BackupCustomHooks_Handler, + ServerStreams: true, + }, + }, + Metadata: "repository-service.proto", +} diff --git a/proto/go/gitalypb/server.pb.go b/proto/go/gitalypb/server.pb.go index 0bb93dc62..4b0a76293 100644 --- a/proto/go/gitalypb/server.pb.go +++ b/proto/go/gitalypb/server.pb.go @@ -1,477 +1,558 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: server.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ServerInfoRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ServerInfoRequest) Reset() { *m = ServerInfoRequest{} } -func (m *ServerInfoRequest) String() string { return proto.CompactTextString(m) } -func (*ServerInfoRequest) ProtoMessage() {} -func (*ServerInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{0} +func (x *ServerInfoRequest) Reset() { + *x = ServerInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerInfoRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerInfoRequest.Unmarshal(m, b) -} -func (m *ServerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerInfoRequest.Marshal(b, m, deterministic) -} -func (m *ServerInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerInfoRequest.Merge(m, src) -} -func (m *ServerInfoRequest) XXX_Size() int { - return xxx_messageInfo_ServerInfoRequest.Size(m) +func (x *ServerInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ServerInfoRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ServerInfoRequest proto.InternalMessageInfo -type ServerInfoResponse struct { - ServerVersion string `protobuf:"bytes,1,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"` - GitVersion string `protobuf:"bytes,2,opt,name=git_version,json=gitVersion,proto3" json:"git_version,omitempty"` - StorageStatuses []*ServerInfoResponse_StorageStatus `protobuf:"bytes,3,rep,name=storage_statuses,json=storageStatuses,proto3" json:"storage_statuses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*ServerInfoRequest) ProtoMessage() {} -func (m *ServerInfoResponse) Reset() { *m = ServerInfoResponse{} } -func (m *ServerInfoResponse) String() string { return proto.CompactTextString(m) } -func (*ServerInfoResponse) ProtoMessage() {} -func (*ServerInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{1} +func (x *ServerInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ServerInfoResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerInfoResponse.Unmarshal(m, b) -} -func (m *ServerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerInfoResponse.Marshal(b, m, deterministic) -} -func (m *ServerInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerInfoResponse.Merge(m, src) -} -func (m *ServerInfoResponse) XXX_Size() int { - return xxx_messageInfo_ServerInfoResponse.Size(m) -} -func (m *ServerInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ServerInfoResponse.DiscardUnknown(m) +// Deprecated: Use ServerInfoRequest.ProtoReflect.Descriptor instead. +func (*ServerInfoRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{0} } -var xxx_messageInfo_ServerInfoResponse proto.InternalMessageInfo +type ServerInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ServerInfoResponse) GetServerVersion() string { - if m != nil { - return m.ServerVersion - } - return "" + ServerVersion string `protobuf:"bytes,1,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"` + GitVersion string `protobuf:"bytes,2,opt,name=git_version,json=gitVersion,proto3" json:"git_version,omitempty"` + StorageStatuses []*ServerInfoResponse_StorageStatus `protobuf:"bytes,3,rep,name=storage_statuses,json=storageStatuses,proto3" json:"storage_statuses,omitempty"` } -func (m *ServerInfoResponse) GetGitVersion() string { - if m != nil { - return m.GitVersion +func (x *ServerInfoResponse) Reset() { + *x = ServerInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *ServerInfoResponse) GetStorageStatuses() []*ServerInfoResponse_StorageStatus { - if m != nil { - return m.StorageStatuses - } - return nil +func (x *ServerInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type ServerInfoResponse_StorageStatus struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Readable bool `protobuf:"varint,2,opt,name=readable,proto3" json:"readable,omitempty"` - Writeable bool `protobuf:"varint,3,opt,name=writeable,proto3" json:"writeable,omitempty"` - FsType string `protobuf:"bytes,4,opt,name=fs_type,json=fsType,proto3" json:"fs_type,omitempty"` - FilesystemId string `protobuf:"bytes,5,opt,name=filesystem_id,json=filesystemId,proto3" json:"filesystem_id,omitempty"` - ReplicationFactor uint32 `protobuf:"varint,6,opt,name=replication_factor,json=replicationFactor,proto3" json:"replication_factor,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ServerInfoResponse_StorageStatus) Reset() { *m = ServerInfoResponse_StorageStatus{} } -func (m *ServerInfoResponse_StorageStatus) String() string { return proto.CompactTextString(m) } -func (*ServerInfoResponse_StorageStatus) ProtoMessage() {} -func (*ServerInfoResponse_StorageStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{1, 0} -} +func (*ServerInfoResponse) ProtoMessage() {} -func (m *ServerInfoResponse_StorageStatus) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerInfoResponse_StorageStatus.Unmarshal(m, b) -} -func (m *ServerInfoResponse_StorageStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerInfoResponse_StorageStatus.Marshal(b, m, deterministic) -} -func (m *ServerInfoResponse_StorageStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerInfoResponse_StorageStatus.Merge(m, src) -} -func (m *ServerInfoResponse_StorageStatus) XXX_Size() int { - return xxx_messageInfo_ServerInfoResponse_StorageStatus.Size(m) -} -func (m *ServerInfoResponse_StorageStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ServerInfoResponse_StorageStatus.DiscardUnknown(m) +func (x *ServerInfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerInfoResponse_StorageStatus proto.InternalMessageInfo +// Deprecated: Use ServerInfoResponse.ProtoReflect.Descriptor instead. +func (*ServerInfoResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{1} +} -func (m *ServerInfoResponse_StorageStatus) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *ServerInfoResponse) GetServerVersion() string { + if x != nil { + return x.ServerVersion } return "" } -func (m *ServerInfoResponse_StorageStatus) GetReadable() bool { - if m != nil { - return m.Readable +func (x *ServerInfoResponse) GetGitVersion() string { + if x != nil { + return x.GitVersion } - return false + return "" } -func (m *ServerInfoResponse_StorageStatus) GetWriteable() bool { - if m != nil { - return m.Writeable +func (x *ServerInfoResponse) GetStorageStatuses() []*ServerInfoResponse_StorageStatus { + if x != nil { + return x.StorageStatuses } - return false + return nil } -func (m *ServerInfoResponse_StorageStatus) GetFsType() string { - if m != nil { - return m.FsType - } - return "" +type DiskStatisticsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ServerInfoResponse_StorageStatus) GetFilesystemId() string { - if m != nil { - return m.FilesystemId +func (x *DiskStatisticsRequest) Reset() { + *x = DiskStatisticsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *ServerInfoResponse_StorageStatus) GetReplicationFactor() uint32 { - if m != nil { - return m.ReplicationFactor - } - return 0 +func (x *DiskStatisticsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type DiskStatisticsRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (*DiskStatisticsRequest) ProtoMessage() {} + +func (x *DiskStatisticsRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *DiskStatisticsRequest) Reset() { *m = DiskStatisticsRequest{} } -func (m *DiskStatisticsRequest) String() string { return proto.CompactTextString(m) } -func (*DiskStatisticsRequest) ProtoMessage() {} +// Deprecated: Use DiskStatisticsRequest.ProtoReflect.Descriptor instead. func (*DiskStatisticsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{2} + return file_server_proto_rawDescGZIP(), []int{2} } -func (m *DiskStatisticsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DiskStatisticsRequest.Unmarshal(m, b) -} -func (m *DiskStatisticsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DiskStatisticsRequest.Marshal(b, m, deterministic) -} -func (m *DiskStatisticsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DiskStatisticsRequest.Merge(m, src) +type DiskStatisticsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageStatuses []*DiskStatisticsResponse_StorageStatus `protobuf:"bytes,1,rep,name=storage_statuses,json=storageStatuses,proto3" json:"storage_statuses,omitempty"` } -func (m *DiskStatisticsRequest) XXX_Size() int { - return xxx_messageInfo_DiskStatisticsRequest.Size(m) + +func (x *DiskStatisticsResponse) Reset() { + *x = DiskStatisticsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DiskStatisticsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DiskStatisticsRequest.DiscardUnknown(m) + +func (x *DiskStatisticsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_DiskStatisticsRequest proto.InternalMessageInfo +func (*DiskStatisticsResponse) ProtoMessage() {} -type DiskStatisticsResponse struct { - StorageStatuses []*DiskStatisticsResponse_StorageStatus `protobuf:"bytes,1,rep,name=storage_statuses,json=storageStatuses,proto3" json:"storage_statuses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DiskStatisticsResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *DiskStatisticsResponse) Reset() { *m = DiskStatisticsResponse{} } -func (m *DiskStatisticsResponse) String() string { return proto.CompactTextString(m) } -func (*DiskStatisticsResponse) ProtoMessage() {} +// Deprecated: Use DiskStatisticsResponse.ProtoReflect.Descriptor instead. func (*DiskStatisticsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{3} + return file_server_proto_rawDescGZIP(), []int{3} } -func (m *DiskStatisticsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DiskStatisticsResponse.Unmarshal(m, b) -} -func (m *DiskStatisticsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DiskStatisticsResponse.Marshal(b, m, deterministic) -} -func (m *DiskStatisticsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DiskStatisticsResponse.Merge(m, src) +func (x *DiskStatisticsResponse) GetStorageStatuses() []*DiskStatisticsResponse_StorageStatus { + if x != nil { + return x.StorageStatuses + } + return nil } -func (m *DiskStatisticsResponse) XXX_Size() int { - return xxx_messageInfo_DiskStatisticsResponse.Size(m) + +type ServerInfoResponse_StorageStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` + Readable bool `protobuf:"varint,2,opt,name=readable,proto3" json:"readable,omitempty"` + Writeable bool `protobuf:"varint,3,opt,name=writeable,proto3" json:"writeable,omitempty"` + FsType string `protobuf:"bytes,4,opt,name=fs_type,json=fsType,proto3" json:"fs_type,omitempty"` + FilesystemId string `protobuf:"bytes,5,opt,name=filesystem_id,json=filesystemId,proto3" json:"filesystem_id,omitempty"` + ReplicationFactor uint32 `protobuf:"varint,6,opt,name=replication_factor,json=replicationFactor,proto3" json:"replication_factor,omitempty"` +} + +func (x *ServerInfoResponse_StorageStatus) Reset() { + *x = ServerInfoResponse_StorageStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DiskStatisticsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DiskStatisticsResponse.DiscardUnknown(m) + +func (x *ServerInfoResponse_StorageStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_DiskStatisticsResponse proto.InternalMessageInfo +func (*ServerInfoResponse_StorageStatus) ProtoMessage() {} -func (m *DiskStatisticsResponse) GetStorageStatuses() []*DiskStatisticsResponse_StorageStatus { - if m != nil { - return m.StorageStatuses +func (x *ServerInfoResponse_StorageStatus) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type DiskStatisticsResponse_StorageStatus struct { - // When both available and used fields are equal 0 that means that - // Gitaly was unable to determine storage stats. - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Available int64 `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"` - Used int64 `protobuf:"varint,3,opt,name=used,proto3" json:"used,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use ServerInfoResponse_StorageStatus.ProtoReflect.Descriptor instead. +func (*ServerInfoResponse_StorageStatus) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{1, 0} } -func (m *DiskStatisticsResponse_StorageStatus) Reset() { *m = DiskStatisticsResponse_StorageStatus{} } -func (m *DiskStatisticsResponse_StorageStatus) String() string { return proto.CompactTextString(m) } -func (*DiskStatisticsResponse_StorageStatus) ProtoMessage() {} -func (*DiskStatisticsResponse_StorageStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{3, 0} +func (x *ServerInfoResponse_StorageStatus) GetStorageName() string { + if x != nil { + return x.StorageName + } + return "" } -func (m *DiskStatisticsResponse_StorageStatus) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DiskStatisticsResponse_StorageStatus.Unmarshal(m, b) -} -func (m *DiskStatisticsResponse_StorageStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DiskStatisticsResponse_StorageStatus.Marshal(b, m, deterministic) -} -func (m *DiskStatisticsResponse_StorageStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_DiskStatisticsResponse_StorageStatus.Merge(m, src) -} -func (m *DiskStatisticsResponse_StorageStatus) XXX_Size() int { - return xxx_messageInfo_DiskStatisticsResponse_StorageStatus.Size(m) -} -func (m *DiskStatisticsResponse_StorageStatus) XXX_DiscardUnknown() { - xxx_messageInfo_DiskStatisticsResponse_StorageStatus.DiscardUnknown(m) +func (x *ServerInfoResponse_StorageStatus) GetReadable() bool { + if x != nil { + return x.Readable + } + return false } -var xxx_messageInfo_DiskStatisticsResponse_StorageStatus proto.InternalMessageInfo +func (x *ServerInfoResponse_StorageStatus) GetWriteable() bool { + if x != nil { + return x.Writeable + } + return false +} -func (m *DiskStatisticsResponse_StorageStatus) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *ServerInfoResponse_StorageStatus) GetFsType() string { + if x != nil { + return x.FsType } return "" } -func (m *DiskStatisticsResponse_StorageStatus) GetAvailable() int64 { - if m != nil { - return m.Available +func (x *ServerInfoResponse_StorageStatus) GetFilesystemId() string { + if x != nil { + return x.FilesystemId } - return 0 + return "" } -func (m *DiskStatisticsResponse_StorageStatus) GetUsed() int64 { - if m != nil { - return m.Used +func (x *ServerInfoResponse_StorageStatus) GetReplicationFactor() uint32 { + if x != nil { + return x.ReplicationFactor } return 0 } -func init() { - proto.RegisterType((*ServerInfoRequest)(nil), "gitaly.ServerInfoRequest") - proto.RegisterType((*ServerInfoResponse)(nil), "gitaly.ServerInfoResponse") - proto.RegisterType((*ServerInfoResponse_StorageStatus)(nil), "gitaly.ServerInfoResponse.StorageStatus") - proto.RegisterType((*DiskStatisticsRequest)(nil), "gitaly.DiskStatisticsRequest") - proto.RegisterType((*DiskStatisticsResponse)(nil), "gitaly.DiskStatisticsResponse") - proto.RegisterType((*DiskStatisticsResponse_StorageStatus)(nil), "gitaly.DiskStatisticsResponse.StorageStatus") -} - -func init() { proto.RegisterFile("server.proto", fileDescriptor_ad098daeda4239f7) } - -var fileDescriptor_ad098daeda4239f7 = []byte{ - // 460 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x5f, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0x65, 0x1c, 0x42, 0x33, 0x49, 0x0a, 0x1d, 0x04, 0x35, 0x56, 0x81, 0x10, 0x84, 0xe4, - 0x07, 0x6a, 0x8b, 0xd0, 0x13, 0x00, 0x42, 0xea, 0x0b, 0x48, 0x0e, 0x02, 0x89, 0x17, 0x6b, 0x63, - 0x8f, 0xad, 0x15, 0x8e, 0xd7, 0xec, 0x6c, 0x82, 0x72, 0x08, 0x9e, 0x39, 0x04, 0x07, 0x42, 0xdc, - 0x82, 0x23, 0xa0, 0xac, 0xf3, 0xaf, 0x90, 0x82, 0xd4, 0x17, 0x6b, 0xf7, 0xfb, 0x66, 0x76, 0x67, - 0x7f, 0x33, 0x86, 0x1e, 0x93, 0x9e, 0x93, 0x0e, 0x6b, 0xad, 0x8c, 0xc2, 0x76, 0x21, 0x8d, 0x28, - 0x17, 0x3e, 0x94, 0xb2, 0x32, 0x8d, 0x36, 0xbc, 0x0d, 0x47, 0x63, 0x1b, 0x73, 0x5e, 0xe5, 0x2a, - 0xa6, 0xcf, 0x33, 0x62, 0x33, 0xfc, 0xea, 0x02, 0xee, 0xaa, 0x5c, 0xab, 0x8a, 0x09, 0x9f, 0xc0, - 0x61, 0x73, 0x5e, 0x32, 0x27, 0xcd, 0x52, 0x55, 0x9e, 0x33, 0x70, 0x82, 0x4e, 0xdc, 0x6f, 0xd4, - 0xf7, 0x8d, 0x88, 0x0f, 0xa1, 0x5b, 0x48, 0xb3, 0x89, 0xb9, 0x66, 0x63, 0xa0, 0x90, 0x66, 0x1d, - 0x30, 0x86, 0x5b, 0x6c, 0x94, 0x16, 0x05, 0x25, 0x6c, 0x84, 0x99, 0x31, 0xb1, 0xe7, 0x0e, 0xdc, - 0xa0, 0x3b, 0x0a, 0xc2, 0xa6, 0xc4, 0xf0, 0xef, 0xdb, 0xc3, 0x71, 0x93, 0x32, 0xb6, 0x19, 0xf1, - 0x4d, 0xde, 0xdd, 0x12, 0xfb, 0x3f, 0x1d, 0xe8, 0x5f, 0x08, 0xc1, 0x47, 0xd0, 0x5b, 0x5f, 0x53, - 0x89, 0x29, 0xad, 0x8a, 0xed, 0xae, 0xb4, 0x37, 0x62, 0x4a, 0xe8, 0xc3, 0x81, 0x26, 0x91, 0x89, - 0x49, 0x49, 0xb6, 0xce, 0x83, 0x78, 0xb3, 0xc7, 0x13, 0xe8, 0x7c, 0xd1, 0xd2, 0x90, 0x35, 0x5d, - 0x6b, 0x6e, 0x05, 0x3c, 0x86, 0x1b, 0x39, 0x27, 0x66, 0x51, 0x93, 0xd7, 0xb2, 0xe7, 0xb6, 0x73, - 0x7e, 0xb7, 0xa8, 0x09, 0x1f, 0x43, 0x3f, 0x97, 0x25, 0xf1, 0x82, 0x0d, 0x4d, 0x13, 0x99, 0x79, - 0xd7, 0xad, 0xdd, 0xdb, 0x8a, 0xe7, 0x19, 0x9e, 0x02, 0x6a, 0xaa, 0x4b, 0x99, 0x0a, 0x23, 0x55, - 0x95, 0xe4, 0x22, 0x35, 0x4a, 0x7b, 0xed, 0x81, 0x13, 0xf4, 0xe3, 0xa3, 0x1d, 0xe7, 0xb5, 0x35, - 0x86, 0xc7, 0x70, 0xe7, 0x95, 0xe4, 0x4f, 0xcb, 0x77, 0x49, 0x36, 0x32, 0xe5, 0x75, 0xa3, 0x7e, - 0x38, 0x70, 0xf7, 0x4f, 0x67, 0xd5, 0xac, 0x0f, 0x7b, 0x20, 0x3b, 0x16, 0xf2, 0xd3, 0x35, 0xe4, - 0xfd, 0x99, 0xff, 0x03, 0x9d, 0x5d, 0x81, 0xf3, 0x09, 0x74, 0xc4, 0x5c, 0xc8, 0x72, 0x03, 0xda, - 0x8d, 0xb7, 0x02, 0x22, 0xb4, 0x66, 0x4c, 0x99, 0x85, 0xec, 0xc6, 0x76, 0x3d, 0xfa, 0xbe, 0x6c, - 0xa7, 0x1d, 0x82, 0xe5, 0x57, 0xa6, 0x84, 0x2f, 0x01, 0xb6, 0x53, 0x81, 0xf7, 0xf6, 0x4d, 0x8a, - 0x85, 0xe2, 0xfb, 0x97, 0x0f, 0x11, 0xbe, 0x85, 0xc3, 0x8b, 0xaf, 0xc6, 0xfb, 0x97, 0xd1, 0x68, - 0x0e, 0x7b, 0xf0, 0x6f, 0x58, 0x7e, 0xeb, 0xd7, 0xb7, 0xc0, 0x79, 0x71, 0xf6, 0x71, 0x54, 0x48, - 0x53, 0x8a, 0x49, 0x98, 0xaa, 0x69, 0xd4, 0x2c, 0x4f, 0x95, 0x2e, 0xa2, 0x26, 0x39, 0x9a, 0x3f, - 0x3b, 0x8b, 0xec, 0xff, 0x16, 0x15, 0x6a, 0xa5, 0xd5, 0x93, 0x49, 0xdb, 0x4a, 0xcf, 0x7f, 0x07, - 0x00, 0x00, 0xff, 0xff, 0x62, 0x79, 0xb4, 0x17, 0xa6, 0x03, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// ServerServiceClient is the client API for ServerService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ServerServiceClient interface { - ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) - DiskStatistics(ctx context.Context, in *DiskStatisticsRequest, opts ...grpc.CallOption) (*DiskStatisticsResponse, error) -} - -type serverServiceClient struct { - cc *grpc.ClientConn -} - -func NewServerServiceClient(cc *grpc.ClientConn) ServerServiceClient { - return &serverServiceClient{cc} -} - -func (c *serverServiceClient) ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) { - out := new(ServerInfoResponse) - err := c.cc.Invoke(ctx, "/gitaly.ServerService/ServerInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type DiskStatisticsResponse_StorageStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // When both available and used fields are equal 0 that means that + // Gitaly was unable to determine storage stats. + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` + Available int64 `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"` + Used int64 `protobuf:"varint,3,opt,name=used,proto3" json:"used,omitempty"` } -func (c *serverServiceClient) DiskStatistics(ctx context.Context, in *DiskStatisticsRequest, opts ...grpc.CallOption) (*DiskStatisticsResponse, error) { - out := new(DiskStatisticsResponse) - err := c.cc.Invoke(ctx, "/gitaly.ServerService/DiskStatistics", in, out, opts...) - if err != nil { - return nil, err +func (x *DiskStatisticsResponse_StorageStatus) Reset() { + *x = DiskStatisticsResponse_StorageStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil } -// ServerServiceServer is the server API for ServerService service. -type ServerServiceServer interface { - ServerInfo(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error) - DiskStatistics(context.Context, *DiskStatisticsRequest) (*DiskStatisticsResponse, error) +func (x *DiskStatisticsResponse_StorageStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -// UnimplementedServerServiceServer can be embedded to have forward compatible implementations. -type UnimplementedServerServiceServer struct { -} +func (*DiskStatisticsResponse_StorageStatus) ProtoMessage() {} -func (*UnimplementedServerServiceServer) ServerInfo(ctx context.Context, req *ServerInfoRequest) (*ServerInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ServerInfo not implemented") -} -func (*UnimplementedServerServiceServer) DiskStatistics(ctx context.Context, req *DiskStatisticsRequest) (*DiskStatisticsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DiskStatistics not implemented") +func (x *DiskStatisticsResponse_StorageStatus) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func RegisterServerServiceServer(s *grpc.Server, srv ServerServiceServer) { - s.RegisterService(&_ServerService_serviceDesc, srv) +// Deprecated: Use DiskStatisticsResponse_StorageStatus.ProtoReflect.Descriptor instead. +func (*DiskStatisticsResponse_StorageStatus) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{3, 0} } -func _ServerService_ServerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ServerInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ServerServiceServer).ServerInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.ServerService/ServerInfo", +func (x *DiskStatisticsResponse_StorageStatus) GetStorageName() string { + if x != nil { + return x.StorageName } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ServerServiceServer).ServerInfo(ctx, req.(*ServerInfoRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _ServerService_DiskStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DiskStatisticsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ServerServiceServer).DiskStatistics(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.ServerService/DiskStatistics", +func (x *DiskStatisticsResponse_StorageStatus) GetAvailable() int64 { + if x != nil { + return x.Available } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ServerServiceServer).DiskStatistics(ctx, req.(*DiskStatisticsRequest)) + return 0 +} + +func (x *DiskStatisticsResponse_StorageStatus) GetUsed() int64 { + if x != nil { + return x.Used } - return interceptor(ctx, in, info, handler) + return 0 } -var _ServerService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.ServerService", - HandlerType: (*ServerServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ServerInfo", - Handler: _ServerService_ServerInfo_Handler, - }, - { - MethodName: "DiskStatistics", - Handler: _ServerService_DiskStatistics_Handler, +var File_server_proto protoreflect.FileDescriptor + +var file_server_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x8d, 0x03, 0x0a, 0x12, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, + 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x69, 0x74, 0x5f, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x69, 0x74, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x53, 0x0a, 0x10, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x28, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0f, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x1a, 0xd9, 0x01, 0x0a, 0x0d, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, + 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x77, 0x72, 0x69, 0x74, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x09, 0x77, 0x72, 0x69, 0x74, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x73, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x73, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x69, 0x6c, 0x65, + 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x17, 0x0a, 0x15, 0x44, 0x69, 0x73, 0x6b, 0x53, + 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x22, 0xd7, 0x01, 0x0a, 0x16, 0x44, 0x69, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x10, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, + 0x69, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x0f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x65, 0x73, 0x1a, 0x64, 0x0a, 0x0d, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x69, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x75, 0x73, 0x65, 0x64, 0x32, 0xab, 0x01, 0x0a, 0x0d, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x0a, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x44, 0x69, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x12, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x69, 0x73, + 0x6b, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x69, 0x73, 0x6b, + 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x1a, 0x04, 0xf0, 0x97, 0x28, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, + 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, + 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_server_proto_rawDescOnce sync.Once + file_server_proto_rawDescData = file_server_proto_rawDesc +) + +func file_server_proto_rawDescGZIP() []byte { + file_server_proto_rawDescOnce.Do(func() { + file_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_server_proto_rawDescData) + }) + return file_server_proto_rawDescData +} + +var file_server_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_server_proto_goTypes = []interface{}{ + (*ServerInfoRequest)(nil), // 0: gitaly.ServerInfoRequest + (*ServerInfoResponse)(nil), // 1: gitaly.ServerInfoResponse + (*DiskStatisticsRequest)(nil), // 2: gitaly.DiskStatisticsRequest + (*DiskStatisticsResponse)(nil), // 3: gitaly.DiskStatisticsResponse + (*ServerInfoResponse_StorageStatus)(nil), // 4: gitaly.ServerInfoResponse.StorageStatus + (*DiskStatisticsResponse_StorageStatus)(nil), // 5: gitaly.DiskStatisticsResponse.StorageStatus +} +var file_server_proto_depIdxs = []int32{ + 4, // 0: gitaly.ServerInfoResponse.storage_statuses:type_name -> gitaly.ServerInfoResponse.StorageStatus + 5, // 1: gitaly.DiskStatisticsResponse.storage_statuses:type_name -> gitaly.DiskStatisticsResponse.StorageStatus + 0, // 2: gitaly.ServerService.ServerInfo:input_type -> gitaly.ServerInfoRequest + 2, // 3: gitaly.ServerService.DiskStatistics:input_type -> gitaly.DiskStatisticsRequest + 1, // 4: gitaly.ServerService.ServerInfo:output_type -> gitaly.ServerInfoResponse + 3, // 5: gitaly.ServerService.DiskStatistics:output_type -> gitaly.DiskStatisticsResponse + 4, // [4:6] is the sub-list for method output_type + 2, // [2:4] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_server_proto_init() } +func file_server_proto_init() { + if File_server_proto != nil { + return + } + file_lint_proto_init() + if !protoimpl.UnsafeEnabled { + file_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerInfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DiskStatisticsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DiskStatisticsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerInfoResponse_StorageStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DiskStatisticsResponse_StorageStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_server_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "server.proto", + GoTypes: file_server_proto_goTypes, + DependencyIndexes: file_server_proto_depIdxs, + MessageInfos: file_server_proto_msgTypes, + }.Build() + File_server_proto = out.File + file_server_proto_rawDesc = nil + file_server_proto_goTypes = nil + file_server_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/server_grpc.pb.go b/proto/go/gitalypb/server_grpc.pb.go new file mode 100644 index 000000000..9cbeb67c6 --- /dev/null +++ b/proto/go/gitalypb/server_grpc.pb.go @@ -0,0 +1,137 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// ServerServiceClient is the client API for ServerService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ServerServiceClient interface { + ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) + DiskStatistics(ctx context.Context, in *DiskStatisticsRequest, opts ...grpc.CallOption) (*DiskStatisticsResponse, error) +} + +type serverServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewServerServiceClient(cc grpc.ClientConnInterface) ServerServiceClient { + return &serverServiceClient{cc} +} + +func (c *serverServiceClient) ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) { + out := new(ServerInfoResponse) + err := c.cc.Invoke(ctx, "/gitaly.ServerService/ServerInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serverServiceClient) DiskStatistics(ctx context.Context, in *DiskStatisticsRequest, opts ...grpc.CallOption) (*DiskStatisticsResponse, error) { + out := new(DiskStatisticsResponse) + err := c.cc.Invoke(ctx, "/gitaly.ServerService/DiskStatistics", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ServerServiceServer is the server API for ServerService service. +// All implementations must embed UnimplementedServerServiceServer +// for forward compatibility +type ServerServiceServer interface { + ServerInfo(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error) + DiskStatistics(context.Context, *DiskStatisticsRequest) (*DiskStatisticsResponse, error) + mustEmbedUnimplementedServerServiceServer() +} + +// UnimplementedServerServiceServer must be embedded to have forward compatible implementations. +type UnimplementedServerServiceServer struct { +} + +func (UnimplementedServerServiceServer) ServerInfo(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ServerInfo not implemented") +} +func (UnimplementedServerServiceServer) DiskStatistics(context.Context, *DiskStatisticsRequest) (*DiskStatisticsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DiskStatistics not implemented") +} +func (UnimplementedServerServiceServer) mustEmbedUnimplementedServerServiceServer() {} + +// UnsafeServerServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ServerServiceServer will +// result in compilation errors. +type UnsafeServerServiceServer interface { + mustEmbedUnimplementedServerServiceServer() +} + +func RegisterServerServiceServer(s grpc.ServiceRegistrar, srv ServerServiceServer) { + s.RegisterService(&ServerService_ServiceDesc, srv) +} + +func _ServerService_ServerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ServerInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServiceServer).ServerInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ServerService/ServerInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServiceServer).ServerInfo(ctx, req.(*ServerInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServerService_DiskStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DiskStatisticsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServiceServer).DiskStatistics(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ServerService/DiskStatistics", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServiceServer).DiskStatistics(ctx, req.(*DiskStatisticsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ServerService_ServiceDesc is the grpc.ServiceDesc for ServerService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ServerService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.ServerService", + HandlerType: (*ServerServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ServerInfo", + Handler: _ServerService_ServerInfo_Handler, + }, + { + MethodName: "DiskStatistics", + Handler: _ServerService_DiskStatistics_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "server.proto", +} diff --git a/proto/go/gitalypb/shared.pb.go b/proto/go/gitalypb/shared.pb.go index 2664d34d7..e1d040014 100644 --- a/proto/go/gitalypb/shared.pb.go +++ b/proto/go/gitalypb/shared.pb.go @@ -1,25 +1,25 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: shared.proto package gitalypb import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ObjectType int32 @@ -31,28 +31,49 @@ const ( ObjectType_TAG ObjectType = 4 ) -var ObjectType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "COMMIT", - 2: "BLOB", - 3: "TREE", - 4: "TAG", -} +// Enum value maps for ObjectType. +var ( + ObjectType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "COMMIT", + 2: "BLOB", + 3: "TREE", + 4: "TAG", + } + ObjectType_value = map[string]int32{ + "UNKNOWN": 0, + "COMMIT": 1, + "BLOB": 2, + "TREE": 3, + "TAG": 4, + } +) -var ObjectType_value = map[string]int32{ - "UNKNOWN": 0, - "COMMIT": 1, - "BLOB": 2, - "TREE": 3, - "TAG": 4, +func (x ObjectType) Enum() *ObjectType { + p := new(ObjectType) + *p = x + return p } func (x ObjectType) String() string { - return proto.EnumName(ObjectType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (ObjectType) Descriptor() protoreflect.EnumDescriptor { + return file_shared_proto_enumTypes[0].Descriptor() +} + +func (ObjectType) Type() protoreflect.EnumType { + return &file_shared_proto_enumTypes[0] +} + +func (x ObjectType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ObjectType.Descriptor instead. func (ObjectType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d8a4e87e678c5ced, []int{0} + return file_shared_proto_rawDescGZIP(), []int{0} } type SignatureType int32 @@ -60,30 +81,55 @@ type SignatureType int32 const ( SignatureType_NONE SignatureType = 0 SignatureType_PGP SignatureType = 1 - SignatureType_X509 SignatureType = 2 + SignatureType_X509 SignatureType = 2 // maybe add X509+TSA or other combinations at a later step ) -var SignatureType_name = map[int32]string{ - 0: "NONE", - 1: "PGP", - 2: "X509", -} +// Enum value maps for SignatureType. +var ( + SignatureType_name = map[int32]string{ + 0: "NONE", + 1: "PGP", + 2: "X509", + } + SignatureType_value = map[string]int32{ + "NONE": 0, + "PGP": 1, + "X509": 2, + } +) -var SignatureType_value = map[string]int32{ - "NONE": 0, - "PGP": 1, - "X509": 2, +func (x SignatureType) Enum() *SignatureType { + p := new(SignatureType) + *p = x + return p } func (x SignatureType) String() string { - return proto.EnumName(SignatureType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SignatureType) Descriptor() protoreflect.EnumDescriptor { + return file_shared_proto_enumTypes[1].Descriptor() } +func (SignatureType) Type() protoreflect.EnumType { + return &file_shared_proto_enumTypes[1] +} + +func (x SignatureType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SignatureType.Descriptor instead. func (SignatureType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d8a4e87e678c5ced, []int{1} + return file_shared_proto_rawDescGZIP(), []int{1} } type Repository struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` RelativePath string `protobuf:"bytes,3,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` // Sets the GIT_OBJECT_DIRECTORY envvar on git commands to the value of this field. @@ -101,75 +147,79 @@ type Repository struct { // path on disk. The name can change over time (e.g. when a project is // renamed). This is primarily used for logging/debugging at the // moment. - GlProjectPath string `protobuf:"bytes,8,opt,name=gl_project_path,json=glProjectPath,proto3" json:"gl_project_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GlProjectPath string `protobuf:"bytes,8,opt,name=gl_project_path,json=glProjectPath,proto3" json:"gl_project_path,omitempty"` } -func (m *Repository) Reset() { *m = Repository{} } -func (m *Repository) String() string { return proto.CompactTextString(m) } -func (*Repository) ProtoMessage() {} -func (*Repository) Descriptor() ([]byte, []int) { - return fileDescriptor_d8a4e87e678c5ced, []int{0} +func (x *Repository) Reset() { + *x = Repository{} + if protoimpl.UnsafeEnabled { + mi := &file_shared_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Repository) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Repository.Unmarshal(m, b) -} -func (m *Repository) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Repository.Marshal(b, m, deterministic) -} -func (m *Repository) XXX_Merge(src proto.Message) { - xxx_messageInfo_Repository.Merge(m, src) +func (x *Repository) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Repository) XXX_Size() int { - return xxx_messageInfo_Repository.Size(m) -} -func (m *Repository) XXX_DiscardUnknown() { - xxx_messageInfo_Repository.DiscardUnknown(m) + +func (*Repository) ProtoMessage() {} + +func (x *Repository) ProtoReflect() protoreflect.Message { + mi := &file_shared_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Repository proto.InternalMessageInfo +// Deprecated: Use Repository.ProtoReflect.Descriptor instead. +func (*Repository) Descriptor() ([]byte, []int) { + return file_shared_proto_rawDescGZIP(), []int{0} +} -func (m *Repository) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *Repository) GetStorageName() string { + if x != nil { + return x.StorageName } return "" } -func (m *Repository) GetRelativePath() string { - if m != nil { - return m.RelativePath +func (x *Repository) GetRelativePath() string { + if x != nil { + return x.RelativePath } return "" } -func (m *Repository) GetGitObjectDirectory() string { - if m != nil { - return m.GitObjectDirectory +func (x *Repository) GetGitObjectDirectory() string { + if x != nil { + return x.GitObjectDirectory } return "" } -func (m *Repository) GetGitAlternateObjectDirectories() []string { - if m != nil { - return m.GitAlternateObjectDirectories +func (x *Repository) GetGitAlternateObjectDirectories() []string { + if x != nil { + return x.GitAlternateObjectDirectories } return nil } -func (m *Repository) GetGlRepository() string { - if m != nil { - return m.GlRepository +func (x *Repository) GetGlRepository() string { + if x != nil { + return x.GlRepository } return "" } -func (m *Repository) GetGlProjectPath() string { - if m != nil { - return m.GlProjectPath +func (x *Repository) GetGlProjectPath() string { + if x != nil { + return x.GlProjectPath } return "" } @@ -177,56 +227,68 @@ func (m *Repository) GetGlProjectPath() string { // A single Git trailer (https://git-scm.com/docs/git-interpret-trailers) // key-value pair. type CommitTrailer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The key of the trailer, such as `Signed-off-by`. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // The value of the trailer, such as `Alice <alice@gmail.com>`. - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -func (m *CommitTrailer) Reset() { *m = CommitTrailer{} } -func (m *CommitTrailer) String() string { return proto.CompactTextString(m) } -func (*CommitTrailer) ProtoMessage() {} -func (*CommitTrailer) Descriptor() ([]byte, []int) { - return fileDescriptor_d8a4e87e678c5ced, []int{1} +func (x *CommitTrailer) Reset() { + *x = CommitTrailer{} + if protoimpl.UnsafeEnabled { + mi := &file_shared_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitTrailer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitTrailer.Unmarshal(m, b) +func (x *CommitTrailer) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitTrailer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitTrailer.Marshal(b, m, deterministic) -} -func (m *CommitTrailer) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitTrailer.Merge(m, src) -} -func (m *CommitTrailer) XXX_Size() int { - return xxx_messageInfo_CommitTrailer.Size(m) -} -func (m *CommitTrailer) XXX_DiscardUnknown() { - xxx_messageInfo_CommitTrailer.DiscardUnknown(m) + +func (*CommitTrailer) ProtoMessage() {} + +func (x *CommitTrailer) ProtoReflect() protoreflect.Message { + mi := &file_shared_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitTrailer proto.InternalMessageInfo +// Deprecated: Use CommitTrailer.ProtoReflect.Descriptor instead. +func (*CommitTrailer) Descriptor() ([]byte, []int) { + return file_shared_proto_rawDescGZIP(), []int{1} +} -func (m *CommitTrailer) GetKey() []byte { - if m != nil { - return m.Key +func (x *CommitTrailer) GetKey() []byte { + if x != nil { + return x.Key } return nil } -func (m *CommitTrailer) GetValue() []byte { - if m != nil { - return m.Value +func (x *CommitTrailer) GetValue() []byte { + if x != nil { + return x.Value } return nil } // Corresponds to Gitlab::Git::Commit type GitCommit struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Subject []byte `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` @@ -246,450 +308,506 @@ type GitCommit struct { // found in this commit's message. The number of trailers and their key/value // sizes are limited. If a trailer exceeds these size limits, it and any // trailers that follow it are not included. - Trailers []*CommitTrailer `protobuf:"bytes,10,rep,name=trailers,proto3" json:"trailers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Trailers []*CommitTrailer `protobuf:"bytes,10,rep,name=trailers,proto3" json:"trailers,omitempty"` } -func (m *GitCommit) Reset() { *m = GitCommit{} } -func (m *GitCommit) String() string { return proto.CompactTextString(m) } -func (*GitCommit) ProtoMessage() {} -func (*GitCommit) Descriptor() ([]byte, []int) { - return fileDescriptor_d8a4e87e678c5ced, []int{2} +func (x *GitCommit) Reset() { + *x = GitCommit{} + if protoimpl.UnsafeEnabled { + mi := &file_shared_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GitCommit) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GitCommit.Unmarshal(m, b) -} -func (m *GitCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GitCommit.Marshal(b, m, deterministic) -} -func (m *GitCommit) XXX_Merge(src proto.Message) { - xxx_messageInfo_GitCommit.Merge(m, src) +func (x *GitCommit) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GitCommit) XXX_Size() int { - return xxx_messageInfo_GitCommit.Size(m) -} -func (m *GitCommit) XXX_DiscardUnknown() { - xxx_messageInfo_GitCommit.DiscardUnknown(m) + +func (*GitCommit) ProtoMessage() {} + +func (x *GitCommit) ProtoReflect() protoreflect.Message { + mi := &file_shared_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GitCommit proto.InternalMessageInfo +// Deprecated: Use GitCommit.ProtoReflect.Descriptor instead. +func (*GitCommit) Descriptor() ([]byte, []int) { + return file_shared_proto_rawDescGZIP(), []int{2} +} -func (m *GitCommit) GetId() string { - if m != nil { - return m.Id +func (x *GitCommit) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *GitCommit) GetSubject() []byte { - if m != nil { - return m.Subject +func (x *GitCommit) GetSubject() []byte { + if x != nil { + return x.Subject } return nil } -func (m *GitCommit) GetBody() []byte { - if m != nil { - return m.Body +func (x *GitCommit) GetBody() []byte { + if x != nil { + return x.Body } return nil } -func (m *GitCommit) GetAuthor() *CommitAuthor { - if m != nil { - return m.Author +func (x *GitCommit) GetAuthor() *CommitAuthor { + if x != nil { + return x.Author } return nil } -func (m *GitCommit) GetCommitter() *CommitAuthor { - if m != nil { - return m.Committer +func (x *GitCommit) GetCommitter() *CommitAuthor { + if x != nil { + return x.Committer } return nil } -func (m *GitCommit) GetParentIds() []string { - if m != nil { - return m.ParentIds +func (x *GitCommit) GetParentIds() []string { + if x != nil { + return x.ParentIds } return nil } -func (m *GitCommit) GetBodySize() int64 { - if m != nil { - return m.BodySize +func (x *GitCommit) GetBodySize() int64 { + if x != nil { + return x.BodySize } return 0 } -func (m *GitCommit) GetSignatureType() SignatureType { - if m != nil { - return m.SignatureType +func (x *GitCommit) GetSignatureType() SignatureType { + if x != nil { + return x.SignatureType } return SignatureType_NONE } -func (m *GitCommit) GetTreeId() string { - if m != nil { - return m.TreeId +func (x *GitCommit) GetTreeId() string { + if x != nil { + return x.TreeId } return "" } -func (m *GitCommit) GetTrailers() []*CommitTrailer { - if m != nil { - return m.Trailers +func (x *GitCommit) GetTrailers() []*CommitTrailer { + if x != nil { + return x.Trailers } return nil } type CommitAuthor struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - Date *timestamp.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` - Timezone []byte `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommitAuthor) Reset() { *m = CommitAuthor{} } -func (m *CommitAuthor) String() string { return proto.CompactTextString(m) } -func (*CommitAuthor) ProtoMessage() {} -func (*CommitAuthor) Descriptor() ([]byte, []int) { - return fileDescriptor_d8a4e87e678c5ced, []int{3} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + Date *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` + Timezone []byte `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty"` +} + +func (x *CommitAuthor) Reset() { + *x = CommitAuthor{} + if protoimpl.UnsafeEnabled { + mi := &file_shared_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CommitAuthor) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CommitAuthor.Unmarshal(m, b) -} -func (m *CommitAuthor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CommitAuthor.Marshal(b, m, deterministic) -} -func (m *CommitAuthor) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitAuthor.Merge(m, src) -} -func (m *CommitAuthor) XXX_Size() int { - return xxx_messageInfo_CommitAuthor.Size(m) +func (x *CommitAuthor) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CommitAuthor) XXX_DiscardUnknown() { - xxx_messageInfo_CommitAuthor.DiscardUnknown(m) + +func (*CommitAuthor) ProtoMessage() {} + +func (x *CommitAuthor) ProtoReflect() protoreflect.Message { + mi := &file_shared_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CommitAuthor proto.InternalMessageInfo +// Deprecated: Use CommitAuthor.ProtoReflect.Descriptor instead. +func (*CommitAuthor) Descriptor() ([]byte, []int) { + return file_shared_proto_rawDescGZIP(), []int{3} +} -func (m *CommitAuthor) GetName() []byte { - if m != nil { - return m.Name +func (x *CommitAuthor) GetName() []byte { + if x != nil { + return x.Name } return nil } -func (m *CommitAuthor) GetEmail() []byte { - if m != nil { - return m.Email +func (x *CommitAuthor) GetEmail() []byte { + if x != nil { + return x.Email } return nil } -func (m *CommitAuthor) GetDate() *timestamp.Timestamp { - if m != nil { - return m.Date +func (x *CommitAuthor) GetDate() *timestamppb.Timestamp { + if x != nil { + return x.Date } return nil } -func (m *CommitAuthor) GetTimezone() []byte { - if m != nil { - return m.Timezone +func (x *CommitAuthor) GetTimezone() []byte { + if x != nil { + return x.Timezone } return nil } type ExitStatus struct { - Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ExitStatus) Reset() { *m = ExitStatus{} } -func (m *ExitStatus) String() string { return proto.CompactTextString(m) } -func (*ExitStatus) ProtoMessage() {} -func (*ExitStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_d8a4e87e678c5ced, []int{4} + Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` } -func (m *ExitStatus) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExitStatus.Unmarshal(m, b) -} -func (m *ExitStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExitStatus.Marshal(b, m, deterministic) -} -func (m *ExitStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExitStatus.Merge(m, src) +func (x *ExitStatus) Reset() { + *x = ExitStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_shared_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ExitStatus) XXX_Size() int { - return xxx_messageInfo_ExitStatus.Size(m) + +func (x *ExitStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExitStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ExitStatus.DiscardUnknown(m) + +func (*ExitStatus) ProtoMessage() {} + +func (x *ExitStatus) ProtoReflect() protoreflect.Message { + mi := &file_shared_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ExitStatus proto.InternalMessageInfo +// Deprecated: Use ExitStatus.ProtoReflect.Descriptor instead. +func (*ExitStatus) Descriptor() ([]byte, []int) { + return file_shared_proto_rawDescGZIP(), []int{4} +} -func (m *ExitStatus) GetValue() int32 { - if m != nil { - return m.Value +func (x *ExitStatus) GetValue() int32 { + if x != nil { + return x.Value } return 0 } // Corresponds to Gitlab::Git::Branch type Branch struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - TargetCommit *GitCommit `protobuf:"bytes,2,opt,name=target_commit,json=targetCommit,proto3" json:"target_commit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Branch) Reset() { *m = Branch{} } -func (m *Branch) String() string { return proto.CompactTextString(m) } -func (*Branch) ProtoMessage() {} -func (*Branch) Descriptor() ([]byte, []int) { - return fileDescriptor_d8a4e87e678c5ced, []int{5} + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + TargetCommit *GitCommit `protobuf:"bytes,2,opt,name=target_commit,json=targetCommit,proto3" json:"target_commit,omitempty"` } -func (m *Branch) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Branch.Unmarshal(m, b) -} -func (m *Branch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Branch.Marshal(b, m, deterministic) -} -func (m *Branch) XXX_Merge(src proto.Message) { - xxx_messageInfo_Branch.Merge(m, src) +func (x *Branch) Reset() { + *x = Branch{} + if protoimpl.UnsafeEnabled { + mi := &file_shared_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Branch) XXX_Size() int { - return xxx_messageInfo_Branch.Size(m) + +func (x *Branch) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Branch) XXX_DiscardUnknown() { - xxx_messageInfo_Branch.DiscardUnknown(m) + +func (*Branch) ProtoMessage() {} + +func (x *Branch) ProtoReflect() protoreflect.Message { + mi := &file_shared_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Branch proto.InternalMessageInfo +// Deprecated: Use Branch.ProtoReflect.Descriptor instead. +func (*Branch) Descriptor() ([]byte, []int) { + return file_shared_proto_rawDescGZIP(), []int{5} +} -func (m *Branch) GetName() []byte { - if m != nil { - return m.Name +func (x *Branch) GetName() []byte { + if x != nil { + return x.Name } return nil } -func (m *Branch) GetTargetCommit() *GitCommit { - if m != nil { - return m.TargetCommit +func (x *Branch) GetTargetCommit() *GitCommit { + if x != nil { + return x.TargetCommit } return nil } type Tag struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` TargetCommit *GitCommit `protobuf:"bytes,3,opt,name=target_commit,json=targetCommit,proto3" json:"target_commit,omitempty"` // If message exceeds a certain threshold, it will be nullified, // but its size will be set in message_size so we can know if // a tag had a message in the first place. - Message []byte `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` - MessageSize int64 `protobuf:"varint,5,opt,name=message_size,json=messageSize,proto3" json:"message_size,omitempty"` - Tagger *CommitAuthor `protobuf:"bytes,6,opt,name=tagger,proto3" json:"tagger,omitempty"` - SignatureType SignatureType `protobuf:"varint,7,opt,name=signature_type,json=signatureType,proto3,enum=gitaly.SignatureType" json:"signature_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Tag) Reset() { *m = Tag{} } -func (m *Tag) String() string { return proto.CompactTextString(m) } -func (*Tag) ProtoMessage() {} -func (*Tag) Descriptor() ([]byte, []int) { - return fileDescriptor_d8a4e87e678c5ced, []int{6} + Message []byte `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` + MessageSize int64 `protobuf:"varint,5,opt,name=message_size,json=messageSize,proto3" json:"message_size,omitempty"` + Tagger *CommitAuthor `protobuf:"bytes,6,opt,name=tagger,proto3" json:"tagger,omitempty"` + SignatureType SignatureType `protobuf:"varint,7,opt,name=signature_type,json=signatureType,proto3,enum=gitaly.SignatureType" json:"signature_type,omitempty"` +} + +func (x *Tag) Reset() { + *x = Tag{} + if protoimpl.UnsafeEnabled { + mi := &file_shared_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Tag) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Tag.Unmarshal(m, b) -} -func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Tag.Marshal(b, m, deterministic) +func (x *Tag) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Tag) XXX_Merge(src proto.Message) { - xxx_messageInfo_Tag.Merge(m, src) -} -func (m *Tag) XXX_Size() int { - return xxx_messageInfo_Tag.Size(m) -} -func (m *Tag) XXX_DiscardUnknown() { - xxx_messageInfo_Tag.DiscardUnknown(m) + +func (*Tag) ProtoMessage() {} + +func (x *Tag) ProtoReflect() protoreflect.Message { + mi := &file_shared_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Tag proto.InternalMessageInfo +// Deprecated: Use Tag.ProtoReflect.Descriptor instead. +func (*Tag) Descriptor() ([]byte, []int) { + return file_shared_proto_rawDescGZIP(), []int{6} +} -func (m *Tag) GetName() []byte { - if m != nil { - return m.Name +func (x *Tag) GetName() []byte { + if x != nil { + return x.Name } return nil } -func (m *Tag) GetId() string { - if m != nil { - return m.Id +func (x *Tag) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Tag) GetTargetCommit() *GitCommit { - if m != nil { - return m.TargetCommit +func (x *Tag) GetTargetCommit() *GitCommit { + if x != nil { + return x.TargetCommit } return nil } -func (m *Tag) GetMessage() []byte { - if m != nil { - return m.Message +func (x *Tag) GetMessage() []byte { + if x != nil { + return x.Message } return nil } -func (m *Tag) GetMessageSize() int64 { - if m != nil { - return m.MessageSize +func (x *Tag) GetMessageSize() int64 { + if x != nil { + return x.MessageSize } return 0 } -func (m *Tag) GetTagger() *CommitAuthor { - if m != nil { - return m.Tagger +func (x *Tag) GetTagger() *CommitAuthor { + if x != nil { + return x.Tagger } return nil } -func (m *Tag) GetSignatureType() SignatureType { - if m != nil { - return m.SignatureType +func (x *Tag) GetSignatureType() SignatureType { + if x != nil { + return x.SignatureType } return SignatureType_NONE } type User struct { - GlId string `protobuf:"bytes,1,opt,name=gl_id,json=glId,proto3" json:"gl_id,omitempty"` - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Email []byte `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` - GlUsername string `protobuf:"bytes,4,opt,name=gl_username,json=glUsername,proto3" json:"gl_username,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *User) Reset() { *m = User{} } -func (m *User) String() string { return proto.CompactTextString(m) } -func (*User) ProtoMessage() {} -func (*User) Descriptor() ([]byte, []int) { - return fileDescriptor_d8a4e87e678c5ced, []int{7} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GlId string `protobuf:"bytes,1,opt,name=gl_id,json=glId,proto3" json:"gl_id,omitempty"` + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Email []byte `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + GlUsername string `protobuf:"bytes,4,opt,name=gl_username,json=glUsername,proto3" json:"gl_username,omitempty"` +} + +func (x *User) Reset() { + *x = User{} + if protoimpl.UnsafeEnabled { + mi := &file_shared_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *User) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_User.Unmarshal(m, b) +func (x *User) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_User.Marshal(b, m, deterministic) -} -func (m *User) XXX_Merge(src proto.Message) { - xxx_messageInfo_User.Merge(m, src) -} -func (m *User) XXX_Size() int { - return xxx_messageInfo_User.Size(m) -} -func (m *User) XXX_DiscardUnknown() { - xxx_messageInfo_User.DiscardUnknown(m) + +func (*User) ProtoMessage() {} + +func (x *User) ProtoReflect() protoreflect.Message { + mi := &file_shared_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_User proto.InternalMessageInfo +// Deprecated: Use User.ProtoReflect.Descriptor instead. +func (*User) Descriptor() ([]byte, []int) { + return file_shared_proto_rawDescGZIP(), []int{7} +} -func (m *User) GetGlId() string { - if m != nil { - return m.GlId +func (x *User) GetGlId() string { + if x != nil { + return x.GlId } return "" } -func (m *User) GetName() []byte { - if m != nil { - return m.Name +func (x *User) GetName() []byte { + if x != nil { + return x.Name } return nil } -func (m *User) GetEmail() []byte { - if m != nil { - return m.Email +func (x *User) GetEmail() []byte { + if x != nil { + return x.Email } return nil } -func (m *User) GetGlUsername() string { - if m != nil { - return m.GlUsername +func (x *User) GetGlUsername() string { + if x != nil { + return x.GlUsername } return "" } type ObjectPool struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ObjectPool) Reset() { *m = ObjectPool{} } -func (m *ObjectPool) String() string { return proto.CompactTextString(m) } -func (*ObjectPool) ProtoMessage() {} -func (*ObjectPool) Descriptor() ([]byte, []int) { - return fileDescriptor_d8a4e87e678c5ced, []int{8} + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (m *ObjectPool) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ObjectPool.Unmarshal(m, b) -} -func (m *ObjectPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ObjectPool.Marshal(b, m, deterministic) -} -func (m *ObjectPool) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectPool.Merge(m, src) +func (x *ObjectPool) Reset() { + *x = ObjectPool{} + if protoimpl.UnsafeEnabled { + mi := &file_shared_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ObjectPool) XXX_Size() int { - return xxx_messageInfo_ObjectPool.Size(m) + +func (x *ObjectPool) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ObjectPool) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectPool.DiscardUnknown(m) + +func (*ObjectPool) ProtoMessage() {} + +func (x *ObjectPool) ProtoReflect() protoreflect.Message { + mi := &file_shared_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ObjectPool proto.InternalMessageInfo +// Deprecated: Use ObjectPool.ProtoReflect.Descriptor instead. +func (*ObjectPool) Descriptor() ([]byte, []int) { + return file_shared_proto_rawDescGZIP(), []int{8} +} -func (m *ObjectPool) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *ObjectPool) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } type PaginationParameter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Instructs pagination to start sending results after the provided page // token appears. A page token allows for a generic pattern to uniquely // identify a result or 'page'. Each paginated RPC may interpret a page @@ -702,169 +820,428 @@ type PaginationParameter struct { // When the limit is smaller than 0, it will be normalized to 2147483647 // on the server side. When limit is not set, it defaults to 0, and no // results are send in the response. - Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` } -func (m *PaginationParameter) Reset() { *m = PaginationParameter{} } -func (m *PaginationParameter) String() string { return proto.CompactTextString(m) } -func (*PaginationParameter) ProtoMessage() {} -func (*PaginationParameter) Descriptor() ([]byte, []int) { - return fileDescriptor_d8a4e87e678c5ced, []int{9} +func (x *PaginationParameter) Reset() { + *x = PaginationParameter{} + if protoimpl.UnsafeEnabled { + mi := &file_shared_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PaginationParameter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PaginationParameter.Unmarshal(m, b) -} -func (m *PaginationParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PaginationParameter.Marshal(b, m, deterministic) +func (x *PaginationParameter) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PaginationParameter) XXX_Merge(src proto.Message) { - xxx_messageInfo_PaginationParameter.Merge(m, src) -} -func (m *PaginationParameter) XXX_Size() int { - return xxx_messageInfo_PaginationParameter.Size(m) -} -func (m *PaginationParameter) XXX_DiscardUnknown() { - xxx_messageInfo_PaginationParameter.DiscardUnknown(m) + +func (*PaginationParameter) ProtoMessage() {} + +func (x *PaginationParameter) ProtoReflect() protoreflect.Message { + mi := &file_shared_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PaginationParameter proto.InternalMessageInfo +// Deprecated: Use PaginationParameter.ProtoReflect.Descriptor instead. +func (*PaginationParameter) Descriptor() ([]byte, []int) { + return file_shared_proto_rawDescGZIP(), []int{9} +} -func (m *PaginationParameter) GetPageToken() string { - if m != nil { - return m.PageToken +func (x *PaginationParameter) GetPageToken() string { + if x != nil { + return x.PageToken } return "" } -func (m *PaginationParameter) GetLimit() int32 { - if m != nil { - return m.Limit +func (x *PaginationParameter) GetLimit() int32 { + if x != nil { + return x.Limit } return 0 } // https://git-scm.com/docs/git/#_options type GlobalOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Treat pathspecs literally (i.e. no globbing, no pathspec magic) - LiteralPathspecs bool `protobuf:"varint,1,opt,name=literal_pathspecs,json=literalPathspecs,proto3" json:"literal_pathspecs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + LiteralPathspecs bool `protobuf:"varint,1,opt,name=literal_pathspecs,json=literalPathspecs,proto3" json:"literal_pathspecs,omitempty"` } -func (m *GlobalOptions) Reset() { *m = GlobalOptions{} } -func (m *GlobalOptions) String() string { return proto.CompactTextString(m) } -func (*GlobalOptions) ProtoMessage() {} -func (*GlobalOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_d8a4e87e678c5ced, []int{10} +func (x *GlobalOptions) Reset() { + *x = GlobalOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_shared_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GlobalOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GlobalOptions.Unmarshal(m, b) -} -func (m *GlobalOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GlobalOptions.Marshal(b, m, deterministic) -} -func (m *GlobalOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_GlobalOptions.Merge(m, src) -} -func (m *GlobalOptions) XXX_Size() int { - return xxx_messageInfo_GlobalOptions.Size(m) +func (x *GlobalOptions) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GlobalOptions) XXX_DiscardUnknown() { - xxx_messageInfo_GlobalOptions.DiscardUnknown(m) + +func (*GlobalOptions) ProtoMessage() {} + +func (x *GlobalOptions) ProtoReflect() protoreflect.Message { + mi := &file_shared_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GlobalOptions proto.InternalMessageInfo +// Deprecated: Use GlobalOptions.ProtoReflect.Descriptor instead. +func (*GlobalOptions) Descriptor() ([]byte, []int) { + return file_shared_proto_rawDescGZIP(), []int{10} +} -func (m *GlobalOptions) GetLiteralPathspecs() bool { - if m != nil { - return m.LiteralPathspecs +func (x *GlobalOptions) GetLiteralPathspecs() bool { + if x != nil { + return x.LiteralPathspecs } return false } -func init() { - proto.RegisterEnum("gitaly.ObjectType", ObjectType_name, ObjectType_value) - proto.RegisterEnum("gitaly.SignatureType", SignatureType_name, SignatureType_value) - proto.RegisterType((*Repository)(nil), "gitaly.Repository") - proto.RegisterType((*CommitTrailer)(nil), "gitaly.CommitTrailer") - proto.RegisterType((*GitCommit)(nil), "gitaly.GitCommit") - proto.RegisterType((*CommitAuthor)(nil), "gitaly.CommitAuthor") - proto.RegisterType((*ExitStatus)(nil), "gitaly.ExitStatus") - proto.RegisterType((*Branch)(nil), "gitaly.Branch") - proto.RegisterType((*Tag)(nil), "gitaly.Tag") - proto.RegisterType((*User)(nil), "gitaly.User") - proto.RegisterType((*ObjectPool)(nil), "gitaly.ObjectPool") - proto.RegisterType((*PaginationParameter)(nil), "gitaly.PaginationParameter") - proto.RegisterType((*GlobalOptions)(nil), "gitaly.GlobalOptions") -} - -func init() { proto.RegisterFile("shared.proto", fileDescriptor_d8a4e87e678c5ced) } - -var fileDescriptor_d8a4e87e678c5ced = []byte{ - // 940 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x5d, 0x6f, 0xdb, 0x36, - 0x17, 0xae, 0x65, 0xf9, 0xeb, 0xd8, 0xce, 0xab, 0xb2, 0x79, 0x31, 0x21, 0x43, 0x51, 0x4f, 0x03, - 0x86, 0xa0, 0xcb, 0xec, 0xd6, 0xeb, 0xbe, 0x80, 0xde, 0xc4, 0x5d, 0x16, 0x24, 0x5b, 0x6d, 0x43, - 0x71, 0xb0, 0x61, 0x37, 0x02, 0x6d, 0xb1, 0x0c, 0x57, 0x4a, 0x14, 0x48, 0x3a, 0x98, 0x73, 0xbd, - 0xab, 0x5d, 0xed, 0x97, 0xec, 0x67, 0xec, 0xff, 0xec, 0x1f, 0x0c, 0x24, 0x25, 0xc7, 0xd9, 0xb2, - 0xa1, 0x77, 0x3c, 0x0f, 0x1f, 0x1e, 0x9d, 0x8f, 0xe7, 0x1c, 0x41, 0x4f, 0x5d, 0x61, 0x49, 0xd2, - 0x61, 0x21, 0x85, 0x16, 0xa8, 0x49, 0x99, 0xc6, 0x7c, 0x73, 0xf0, 0x84, 0x0a, 0x41, 0x39, 0x19, - 0x59, 0x74, 0xb9, 0x7e, 0x33, 0xd2, 0x2c, 0x23, 0x4a, 0xe3, 0xac, 0x70, 0xc4, 0x03, 0xe0, 0x2c, - 0xd7, 0xee, 0x1c, 0xfd, 0xee, 0x01, 0xc4, 0xa4, 0x10, 0x8a, 0x69, 0x21, 0x37, 0xe8, 0x03, 0xe8, - 0x29, 0x2d, 0x24, 0xa6, 0x24, 0xc9, 0x71, 0x46, 0x42, 0x6f, 0x50, 0x3b, 0xec, 0xc4, 0xdd, 0x12, - 0x9b, 0xe2, 0x8c, 0xa0, 0x0f, 0xa1, 0x2f, 0x09, 0xc7, 0x9a, 0x5d, 0x93, 0xa4, 0xc0, 0xfa, 0x2a, - 0xac, 0x5b, 0x4e, 0xaf, 0x02, 0xe7, 0x58, 0x5f, 0xa1, 0x67, 0xb0, 0x4f, 0x99, 0x4e, 0xc4, 0xf2, - 0x27, 0xb2, 0xd2, 0x49, 0xca, 0x24, 0x59, 0x19, 0xff, 0xa1, 0x6f, 0xb9, 0x88, 0x32, 0x3d, 0xb3, - 0x57, 0x5f, 0x57, 0x37, 0xe8, 0x14, 0x06, 0xe6, 0x05, 0xe6, 0x9a, 0xc8, 0x1c, 0x6b, 0xf2, 0xf7, - 0xb7, 0x8c, 0xa8, 0xb0, 0x31, 0xa8, 0x1f, 0x76, 0xe2, 0xc7, 0x94, 0xe9, 0xe3, 0x8a, 0x76, 0xd7, - 0x0d, 0x23, 0xca, 0xc4, 0x47, 0x79, 0x22, 0xb7, 0x39, 0x85, 0x4d, 0x17, 0x1f, 0xe5, 0x3b, 0x79, - 0x7e, 0x04, 0xff, 0xa3, 0x3c, 0x29, 0xa4, 0xb0, 0xdf, 0xb0, 0x69, 0xb4, 0x2d, 0xad, 0x4f, 0xf9, - 0xdc, 0xa1, 0x26, 0x8f, 0x73, 0xbf, 0x5d, 0x0b, 0xbc, 0x73, 0xbf, 0xdd, 0x0a, 0xda, 0xb1, 0x6f, - 0x68, 0xd1, 0x17, 0xd0, 0x7f, 0x25, 0xb2, 0x8c, 0xe9, 0x85, 0xc4, 0x8c, 0x13, 0x89, 0x02, 0xa8, - 0xbf, 0x25, 0x9b, 0xb0, 0x36, 0xa8, 0x1d, 0xf6, 0x62, 0x73, 0x44, 0xfb, 0xd0, 0xb8, 0xc6, 0x7c, - 0xed, 0xaa, 0xd7, 0x8b, 0x9d, 0x11, 0xfd, 0xe9, 0x41, 0xe7, 0x94, 0x69, 0xf7, 0x18, 0xed, 0x81, - 0xc7, 0x52, 0xfb, 0xa8, 0x13, 0x7b, 0x2c, 0x45, 0x21, 0xb4, 0xd4, 0xda, 0xe6, 0x52, 0xbe, 0xaa, - 0x4c, 0x84, 0xc0, 0x5f, 0x8a, 0x74, 0x63, 0xcb, 0xdc, 0x8b, 0xed, 0x19, 0x1d, 0x41, 0x13, 0xaf, - 0xf5, 0x95, 0x90, 0xb6, 0xa0, 0xdd, 0xf1, 0xfe, 0xd0, 0xf5, 0x7e, 0xe8, 0xbc, 0x1f, 0xdb, 0xbb, - 0xb8, 0xe4, 0xa0, 0x31, 0x74, 0x56, 0x16, 0xd7, 0x44, 0x86, 0x8d, 0xff, 0x78, 0x70, 0x4b, 0x43, - 0x8f, 0x01, 0x0a, 0x2c, 0x49, 0xae, 0x13, 0x96, 0xaa, 0xb0, 0x69, 0x0b, 0xdf, 0x71, 0xc8, 0x59, - 0xaa, 0xd0, 0xfb, 0xd0, 0x31, 0x81, 0x24, 0x8a, 0xdd, 0x90, 0xb0, 0x35, 0xa8, 0x1d, 0xd6, 0xe3, - 0xb6, 0x01, 0x2e, 0xd8, 0x0d, 0x41, 0x2f, 0x61, 0x4f, 0x31, 0x9a, 0x63, 0xbd, 0x96, 0x24, 0xd1, - 0x9b, 0x82, 0xd8, 0xda, 0xee, 0x8d, 0xff, 0x5f, 0x7d, 0xf4, 0xa2, 0xba, 0x5d, 0x6c, 0x0a, 0x12, - 0xf7, 0xd5, 0xae, 0x89, 0xde, 0x83, 0x96, 0x96, 0x84, 0x24, 0x2c, 0x0d, 0x3b, 0xb6, 0x3c, 0x4d, - 0x63, 0x9e, 0xa5, 0xe8, 0x39, 0xb4, 0xb5, 0xab, 0xb9, 0x0a, 0x61, 0x50, 0x3f, 0xec, 0xde, 0x3a, - 0xbc, 0xd3, 0x91, 0x78, 0x4b, 0x8b, 0x7e, 0xa9, 0x41, 0x6f, 0x37, 0x43, 0x53, 0x4c, 0xab, 0x6b, - 0xd7, 0x2d, 0x7b, 0x36, 0xed, 0x22, 0x19, 0x66, 0xbc, 0x6a, 0x97, 0x35, 0xd0, 0x10, 0xfc, 0x14, - 0x6b, 0x62, 0xcb, 0xde, 0x1d, 0x1f, 0x0c, 0xdd, 0x50, 0x0d, 0xab, 0xa1, 0x1a, 0x2e, 0xaa, 0xa1, - 0x8a, 0x2d, 0x0f, 0x1d, 0x40, 0xdb, 0xcc, 0xd9, 0x8d, 0xc8, 0x89, 0x6d, 0x4a, 0x2f, 0xde, 0xda, - 0x51, 0x04, 0x70, 0xf2, 0x33, 0xd3, 0x17, 0x1a, 0xeb, 0xb5, 0xba, 0x95, 0x87, 0x09, 0xa2, 0x51, - 0xc9, 0x63, 0x01, 0xcd, 0x89, 0xc4, 0xf9, 0xea, 0xea, 0xde, 0x18, 0x3f, 0x87, 0xbe, 0xc6, 0x92, - 0x12, 0x9d, 0xb8, 0x16, 0xd9, 0x58, 0xbb, 0xe3, 0x87, 0x55, 0x01, 0xb6, 0xc2, 0x8a, 0x7b, 0x8e, - 0xe7, 0xac, 0xe8, 0x57, 0x0f, 0xea, 0x0b, 0x4c, 0xef, 0xf5, 0xe9, 0x24, 0xe8, 0x6d, 0x25, 0xf8, - 0x8f, 0x6f, 0xd4, 0xdf, 0xe9, 0x1b, 0x46, 0xba, 0x19, 0x51, 0x0a, 0xd3, 0x2a, 0xf1, 0xca, 0x34, - 0xdb, 0xa4, 0x3c, 0x3a, 0xa1, 0x34, 0xac, 0x50, 0xba, 0x25, 0x66, 0xb5, 0x72, 0x04, 0x4d, 0x8d, - 0x29, 0x25, 0xd2, 0x8e, 0xe9, 0xbf, 0x2a, 0xd9, 0x71, 0xee, 0x51, 0x56, 0xeb, 0xdd, 0x95, 0x15, - 0xbd, 0x01, 0xff, 0x52, 0x11, 0x89, 0x1e, 0x41, 0x83, 0xf2, 0x64, 0x3b, 0x7e, 0x3e, 0xe5, 0x67, - 0xe9, 0xb6, 0x42, 0xde, 0x7d, 0xca, 0xa8, 0xef, 0x2a, 0xe3, 0x09, 0x74, 0x29, 0x4f, 0xd6, 0xca, - 0x2c, 0xa0, 0x8c, 0x94, 0x2b, 0x0d, 0x28, 0xbf, 0x2c, 0x91, 0xe8, 0x1b, 0x00, 0xb7, 0x96, 0xe6, - 0x42, 0x70, 0xf4, 0x25, 0xc0, 0xce, 0x32, 0xaa, 0xd9, 0x2c, 0x51, 0x15, 0xef, 0xed, 0x4a, 0x9a, - 0xf8, 0xbf, 0xfd, 0x71, 0x54, 0x8b, 0x77, 0xb8, 0xd1, 0x39, 0x3c, 0x9a, 0x63, 0xca, 0x72, 0xac, - 0x99, 0xc8, 0xe7, 0x58, 0xe2, 0x8c, 0x6c, 0x47, 0x93, 0x92, 0x44, 0x8b, 0xb7, 0x24, 0x2f, 0x73, - 0xe8, 0x18, 0x64, 0x61, 0x00, 0x13, 0x34, 0x67, 0x95, 0x44, 0x1a, 0xb1, 0x33, 0xa2, 0x97, 0xd0, - 0x3f, 0xe5, 0x62, 0x89, 0xf9, 0xac, 0x30, 0xde, 0x14, 0xfa, 0x18, 0x1e, 0x72, 0xa6, 0x89, 0xc4, - 0xdc, 0xae, 0x3f, 0x55, 0x90, 0x95, 0xb2, 0xce, 0xda, 0x71, 0x50, 0x5e, 0xcc, 0x2b, 0xfc, 0xe9, - 0xa4, 0xca, 0xc8, 0x4e, 0x68, 0x17, 0x5a, 0x97, 0xd3, 0x6f, 0xa7, 0xb3, 0xef, 0xa7, 0xc1, 0x03, - 0x04, 0xd0, 0x7c, 0x35, 0x7b, 0xfd, 0xfa, 0x6c, 0x11, 0xd4, 0x50, 0x1b, 0xfc, 0xc9, 0x77, 0xb3, - 0x49, 0xe0, 0x99, 0xd3, 0x22, 0x3e, 0x39, 0x09, 0xea, 0xa8, 0x05, 0xf5, 0xc5, 0xf1, 0x69, 0xe0, - 0x3f, 0x3d, 0x82, 0xfe, 0x9d, 0xee, 0x18, 0xce, 0x74, 0x36, 0x3d, 0x09, 0x1e, 0x18, 0xce, 0xfc, - 0x74, 0xee, 0x1c, 0xfc, 0xf0, 0xd9, 0xb3, 0xaf, 0x02, 0x6f, 0xf2, 0xe2, 0xc7, 0x31, 0x65, 0x9a, - 0xe3, 0xe5, 0x70, 0x25, 0xb2, 0x91, 0x3b, 0x7e, 0x22, 0x24, 0x1d, 0xb9, 0xc2, 0x8d, 0xae, 0x9f, - 0xbf, 0x70, 0x3f, 0xb8, 0x11, 0x15, 0x25, 0x56, 0x2c, 0x97, 0x4d, 0x0b, 0x7d, 0xfa, 0x57, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xc2, 0x95, 0x47, 0xc7, 0x19, 0x07, 0x00, 0x00, +var File_shared_proto protoreflect.FileDescriptor + +var file_shared_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x02, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, + 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, + 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x30, 0x0a, 0x14, 0x67, 0x69, + 0x74, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x67, 0x69, 0x74, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x47, 0x0a, 0x20, + 0x67, 0x69, 0x74, 0x5f, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x1d, 0x67, 0x69, 0x74, 0x41, 0x6c, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x67, 0x6c, 0x5f, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x67, 0x6c, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x67, 0x6c, + 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x67, 0x6c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x61, + 0x74, 0x68, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x52, 0x04, + 0x70, 0x61, 0x74, 0x68, 0x22, 0x37, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x72, + 0x61, 0x69, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xf1, 0x02, + 0x0a, 0x09, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, + 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x75, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x2c, 0x0a, 0x06, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x52, + 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x32, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x6f, + 0x64, 0x79, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x62, + 0x6f, 0x64, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x3c, 0x0a, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x15, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x72, 0x65, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x72, 0x65, 0x65, 0x49, 0x64, 0x12, 0x31, + 0x0a, 0x08, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x54, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x52, 0x08, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, + 0x73, 0x22, 0x84, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2e, 0x0a, 0x04, + 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, + 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x45, 0x78, 0x69, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x54, 0x0a, 0x06, + 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x0d, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x22, 0x8a, 0x02, 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x36, + 0x0a, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, + 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x74, 0x61, 0x67, 0x67, 0x65, 0x72, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x52, 0x06, 0x74, 0x61, 0x67, 0x67, 0x65, + 0x72, 0x12, 0x3c, 0x0a, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x0d, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, + 0x66, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x13, 0x0a, 0x05, 0x67, 0x6c, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x67, 0x6c, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x6c, 0x5f, 0x75, 0x73, 0x65, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x6c, 0x55, + 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x46, 0x0a, 0x0a, 0x4f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x90, + 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, + 0x4a, 0x0a, 0x13, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x3c, 0x0a, 0x0d, 0x47, + 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x11, + 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x73, 0x70, 0x65, 0x63, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, + 0x50, 0x61, 0x74, 0x68, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2a, 0x42, 0x0a, 0x0a, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, + 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x01, + 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4c, 0x4f, 0x42, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x52, + 0x45, 0x45, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x04, 0x2a, 0x2c, 0x0a, + 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, + 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x47, 0x50, 0x10, + 0x01, 0x12, 0x08, 0x0a, 0x04, 0x58, 0x35, 0x30, 0x39, 0x10, 0x02, 0x42, 0x34, 0x5a, 0x32, 0x67, + 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, + 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, + 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_shared_proto_rawDescOnce sync.Once + file_shared_proto_rawDescData = file_shared_proto_rawDesc +) + +func file_shared_proto_rawDescGZIP() []byte { + file_shared_proto_rawDescOnce.Do(func() { + file_shared_proto_rawDescData = protoimpl.X.CompressGZIP(file_shared_proto_rawDescData) + }) + return file_shared_proto_rawDescData +} + +var file_shared_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_shared_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_shared_proto_goTypes = []interface{}{ + (ObjectType)(0), // 0: gitaly.ObjectType + (SignatureType)(0), // 1: gitaly.SignatureType + (*Repository)(nil), // 2: gitaly.Repository + (*CommitTrailer)(nil), // 3: gitaly.CommitTrailer + (*GitCommit)(nil), // 4: gitaly.GitCommit + (*CommitAuthor)(nil), // 5: gitaly.CommitAuthor + (*ExitStatus)(nil), // 6: gitaly.ExitStatus + (*Branch)(nil), // 7: gitaly.Branch + (*Tag)(nil), // 8: gitaly.Tag + (*User)(nil), // 9: gitaly.User + (*ObjectPool)(nil), // 10: gitaly.ObjectPool + (*PaginationParameter)(nil), // 11: gitaly.PaginationParameter + (*GlobalOptions)(nil), // 12: gitaly.GlobalOptions + (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp +} +var file_shared_proto_depIdxs = []int32{ + 5, // 0: gitaly.GitCommit.author:type_name -> gitaly.CommitAuthor + 5, // 1: gitaly.GitCommit.committer:type_name -> gitaly.CommitAuthor + 1, // 2: gitaly.GitCommit.signature_type:type_name -> gitaly.SignatureType + 3, // 3: gitaly.GitCommit.trailers:type_name -> gitaly.CommitTrailer + 13, // 4: gitaly.CommitAuthor.date:type_name -> google.protobuf.Timestamp + 4, // 5: gitaly.Branch.target_commit:type_name -> gitaly.GitCommit + 4, // 6: gitaly.Tag.target_commit:type_name -> gitaly.GitCommit + 5, // 7: gitaly.Tag.tagger:type_name -> gitaly.CommitAuthor + 1, // 8: gitaly.Tag.signature_type:type_name -> gitaly.SignatureType + 2, // 9: gitaly.ObjectPool.repository:type_name -> gitaly.Repository + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_shared_proto_init() } +func file_shared_proto_init() { + if File_shared_proto != nil { + return + } + file_lint_proto_init() + if !protoimpl.UnsafeEnabled { + file_shared_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Repository); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_shared_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitTrailer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_shared_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GitCommit); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_shared_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitAuthor); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_shared_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExitStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_shared_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Branch); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_shared_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Tag); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_shared_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_shared_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ObjectPool); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_shared_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PaginationParameter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_shared_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GlobalOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_shared_proto_rawDesc, + NumEnums: 2, + NumMessages: 11, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_shared_proto_goTypes, + DependencyIndexes: file_shared_proto_depIdxs, + EnumInfos: file_shared_proto_enumTypes, + MessageInfos: file_shared_proto_msgTypes, + }.Build() + File_shared_proto = out.File + file_shared_proto_rawDesc = nil + file_shared_proto_goTypes = nil + file_shared_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/smarthttp.pb.go b/proto/go/gitalypb/smarthttp.pb.go index 4c3d48884..bbedd31b2 100644 --- a/proto/go/gitalypb/smarthttp.pb.go +++ b/proto/go/gitalypb/smarthttp.pb.go @@ -1,126 +1,142 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: smarthttp.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type InfoRefsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Parameters to use with git -c (key=value pairs) GitConfigOptions []string `protobuf:"bytes,2,rep,name=git_config_options,json=gitConfigOptions,proto3" json:"git_config_options,omitempty"` // Git protocol version - GitProtocol string `protobuf:"bytes,3,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GitProtocol string `protobuf:"bytes,3,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"` } -func (m *InfoRefsRequest) Reset() { *m = InfoRefsRequest{} } -func (m *InfoRefsRequest) String() string { return proto.CompactTextString(m) } -func (*InfoRefsRequest) ProtoMessage() {} -func (*InfoRefsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7da929f3b109874f, []int{0} +func (x *InfoRefsRequest) Reset() { + *x = InfoRefsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_smarthttp_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InfoRefsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InfoRefsRequest.Unmarshal(m, b) +func (x *InfoRefsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InfoRefsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InfoRefsRequest.Marshal(b, m, deterministic) -} -func (m *InfoRefsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InfoRefsRequest.Merge(m, src) -} -func (m *InfoRefsRequest) XXX_Size() int { - return xxx_messageInfo_InfoRefsRequest.Size(m) -} -func (m *InfoRefsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InfoRefsRequest.DiscardUnknown(m) + +func (*InfoRefsRequest) ProtoMessage() {} + +func (x *InfoRefsRequest) ProtoReflect() protoreflect.Message { + mi := &file_smarthttp_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_InfoRefsRequest proto.InternalMessageInfo +// Deprecated: Use InfoRefsRequest.ProtoReflect.Descriptor instead. +func (*InfoRefsRequest) Descriptor() ([]byte, []int) { + return file_smarthttp_proto_rawDescGZIP(), []int{0} +} -func (m *InfoRefsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *InfoRefsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *InfoRefsRequest) GetGitConfigOptions() []string { - if m != nil { - return m.GitConfigOptions +func (x *InfoRefsRequest) GetGitConfigOptions() []string { + if x != nil { + return x.GitConfigOptions } return nil } -func (m *InfoRefsRequest) GetGitProtocol() string { - if m != nil { - return m.GitProtocol +func (x *InfoRefsRequest) GetGitProtocol() string { + if x != nil { + return x.GitProtocol } return "" } type InfoRefsResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *InfoRefsResponse) Reset() { *m = InfoRefsResponse{} } -func (m *InfoRefsResponse) String() string { return proto.CompactTextString(m) } -func (*InfoRefsResponse) ProtoMessage() {} -func (*InfoRefsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7da929f3b109874f, []int{1} + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } -func (m *InfoRefsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InfoRefsResponse.Unmarshal(m, b) -} -func (m *InfoRefsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InfoRefsResponse.Marshal(b, m, deterministic) -} -func (m *InfoRefsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_InfoRefsResponse.Merge(m, src) +func (x *InfoRefsResponse) Reset() { + *x = InfoRefsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_smarthttp_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InfoRefsResponse) XXX_Size() int { - return xxx_messageInfo_InfoRefsResponse.Size(m) + +func (x *InfoRefsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InfoRefsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_InfoRefsResponse.DiscardUnknown(m) + +func (*InfoRefsResponse) ProtoMessage() {} + +func (x *InfoRefsResponse) ProtoReflect() protoreflect.Message { + mi := &file_smarthttp_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_InfoRefsResponse proto.InternalMessageInfo +// Deprecated: Use InfoRefsResponse.ProtoReflect.Descriptor instead. +func (*InfoRefsResponse) Descriptor() ([]byte, []int) { + return file_smarthttp_proto_rawDescGZIP(), []int{1} +} -func (m *InfoRefsResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *InfoRefsResponse) GetData() []byte { + if x != nil { + return x.Data } return nil } type PostUploadPackRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // repository should only be present in the first message of the stream Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Raw data to be copied to stdin of 'git upload-pack' @@ -128,106 +144,122 @@ type PostUploadPackRequest struct { // Parameters to use with git -c (key=value pairs) GitConfigOptions []string `protobuf:"bytes,3,rep,name=git_config_options,json=gitConfigOptions,proto3" json:"git_config_options,omitempty"` // Git protocol version - GitProtocol string `protobuf:"bytes,4,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GitProtocol string `protobuf:"bytes,4,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"` } -func (m *PostUploadPackRequest) Reset() { *m = PostUploadPackRequest{} } -func (m *PostUploadPackRequest) String() string { return proto.CompactTextString(m) } -func (*PostUploadPackRequest) ProtoMessage() {} -func (*PostUploadPackRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7da929f3b109874f, []int{2} +func (x *PostUploadPackRequest) Reset() { + *x = PostUploadPackRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_smarthttp_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PostUploadPackRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostUploadPackRequest.Unmarshal(m, b) -} -func (m *PostUploadPackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostUploadPackRequest.Marshal(b, m, deterministic) -} -func (m *PostUploadPackRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostUploadPackRequest.Merge(m, src) -} -func (m *PostUploadPackRequest) XXX_Size() int { - return xxx_messageInfo_PostUploadPackRequest.Size(m) +func (x *PostUploadPackRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PostUploadPackRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PostUploadPackRequest.DiscardUnknown(m) + +func (*PostUploadPackRequest) ProtoMessage() {} + +func (x *PostUploadPackRequest) ProtoReflect() protoreflect.Message { + mi := &file_smarthttp_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PostUploadPackRequest proto.InternalMessageInfo +// Deprecated: Use PostUploadPackRequest.ProtoReflect.Descriptor instead. +func (*PostUploadPackRequest) Descriptor() ([]byte, []int) { + return file_smarthttp_proto_rawDescGZIP(), []int{2} +} -func (m *PostUploadPackRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *PostUploadPackRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *PostUploadPackRequest) GetData() []byte { - if m != nil { - return m.Data +func (x *PostUploadPackRequest) GetData() []byte { + if x != nil { + return x.Data } return nil } -func (m *PostUploadPackRequest) GetGitConfigOptions() []string { - if m != nil { - return m.GitConfigOptions +func (x *PostUploadPackRequest) GetGitConfigOptions() []string { + if x != nil { + return x.GitConfigOptions } return nil } -func (m *PostUploadPackRequest) GetGitProtocol() string { - if m != nil { - return m.GitProtocol +func (x *PostUploadPackRequest) GetGitProtocol() string { + if x != nil { + return x.GitProtocol } return "" } type PostUploadPackResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Raw data from stdout of 'git upload-pack' - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } -func (m *PostUploadPackResponse) Reset() { *m = PostUploadPackResponse{} } -func (m *PostUploadPackResponse) String() string { return proto.CompactTextString(m) } -func (*PostUploadPackResponse) ProtoMessage() {} -func (*PostUploadPackResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7da929f3b109874f, []int{3} +func (x *PostUploadPackResponse) Reset() { + *x = PostUploadPackResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_smarthttp_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PostUploadPackResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostUploadPackResponse.Unmarshal(m, b) -} -func (m *PostUploadPackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostUploadPackResponse.Marshal(b, m, deterministic) -} -func (m *PostUploadPackResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostUploadPackResponse.Merge(m, src) +func (x *PostUploadPackResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PostUploadPackResponse) XXX_Size() int { - return xxx_messageInfo_PostUploadPackResponse.Size(m) -} -func (m *PostUploadPackResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PostUploadPackResponse.DiscardUnknown(m) + +func (*PostUploadPackResponse) ProtoMessage() {} + +func (x *PostUploadPackResponse) ProtoReflect() protoreflect.Message { + mi := &file_smarthttp_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PostUploadPackResponse proto.InternalMessageInfo +// Deprecated: Use PostUploadPackResponse.ProtoReflect.Descriptor instead. +func (*PostUploadPackResponse) Descriptor() ([]byte, []int) { + return file_smarthttp_proto_rawDescGZIP(), []int{3} +} -func (m *PostUploadPackResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *PostUploadPackResponse) GetData() []byte { + if x != nil { + return x.Data } return nil } type PostReceivePackRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // repository should only be present in the first message of the stream Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Raw data to be copied to stdin of 'git receive-pack' @@ -240,490 +272,359 @@ type PostReceivePackRequest struct { // Git protocol version GitProtocol string `protobuf:"bytes,6,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"` // Parameters to use with git -c (key=value pairs) - GitConfigOptions []string `protobuf:"bytes,7,rep,name=git_config_options,json=gitConfigOptions,proto3" json:"git_config_options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GitConfigOptions []string `protobuf:"bytes,7,rep,name=git_config_options,json=gitConfigOptions,proto3" json:"git_config_options,omitempty"` } -func (m *PostReceivePackRequest) Reset() { *m = PostReceivePackRequest{} } -func (m *PostReceivePackRequest) String() string { return proto.CompactTextString(m) } -func (*PostReceivePackRequest) ProtoMessage() {} -func (*PostReceivePackRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7da929f3b109874f, []int{4} +func (x *PostReceivePackRequest) Reset() { + *x = PostReceivePackRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_smarthttp_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PostReceivePackRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostReceivePackRequest.Unmarshal(m, b) -} -func (m *PostReceivePackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostReceivePackRequest.Marshal(b, m, deterministic) +func (x *PostReceivePackRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PostReceivePackRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostReceivePackRequest.Merge(m, src) -} -func (m *PostReceivePackRequest) XXX_Size() int { - return xxx_messageInfo_PostReceivePackRequest.Size(m) -} -func (m *PostReceivePackRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PostReceivePackRequest.DiscardUnknown(m) + +func (*PostReceivePackRequest) ProtoMessage() {} + +func (x *PostReceivePackRequest) ProtoReflect() protoreflect.Message { + mi := &file_smarthttp_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PostReceivePackRequest proto.InternalMessageInfo +// Deprecated: Use PostReceivePackRequest.ProtoReflect.Descriptor instead. +func (*PostReceivePackRequest) Descriptor() ([]byte, []int) { + return file_smarthttp_proto_rawDescGZIP(), []int{4} +} -func (m *PostReceivePackRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *PostReceivePackRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *PostReceivePackRequest) GetData() []byte { - if m != nil { - return m.Data +func (x *PostReceivePackRequest) GetData() []byte { + if x != nil { + return x.Data } return nil } -func (m *PostReceivePackRequest) GetGlId() string { - if m != nil { - return m.GlId +func (x *PostReceivePackRequest) GetGlId() string { + if x != nil { + return x.GlId } return "" } -func (m *PostReceivePackRequest) GetGlRepository() string { - if m != nil { - return m.GlRepository +func (x *PostReceivePackRequest) GetGlRepository() string { + if x != nil { + return x.GlRepository } return "" } -func (m *PostReceivePackRequest) GetGlUsername() string { - if m != nil { - return m.GlUsername +func (x *PostReceivePackRequest) GetGlUsername() string { + if x != nil { + return x.GlUsername } return "" } -func (m *PostReceivePackRequest) GetGitProtocol() string { - if m != nil { - return m.GitProtocol +func (x *PostReceivePackRequest) GetGitProtocol() string { + if x != nil { + return x.GitProtocol } return "" } -func (m *PostReceivePackRequest) GetGitConfigOptions() []string { - if m != nil { - return m.GitConfigOptions +func (x *PostReceivePackRequest) GetGitConfigOptions() []string { + if x != nil { + return x.GitConfigOptions } return nil } type PostReceivePackResponse struct { - // Raw data from stdout of 'git receive-pack' - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PostReceivePackResponse) Reset() { *m = PostReceivePackResponse{} } -func (m *PostReceivePackResponse) String() string { return proto.CompactTextString(m) } -func (*PostReceivePackResponse) ProtoMessage() {} -func (*PostReceivePackResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7da929f3b109874f, []int{5} -} - -func (m *PostReceivePackResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostReceivePackResponse.Unmarshal(m, b) -} -func (m *PostReceivePackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostReceivePackResponse.Marshal(b, m, deterministic) -} -func (m *PostReceivePackResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostReceivePackResponse.Merge(m, src) -} -func (m *PostReceivePackResponse) XXX_Size() int { - return xxx_messageInfo_PostReceivePackResponse.Size(m) -} -func (m *PostReceivePackResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PostReceivePackResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PostReceivePackResponse proto.InternalMessageInfo - -func (m *PostReceivePackResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -func init() { - proto.RegisterType((*InfoRefsRequest)(nil), "gitaly.InfoRefsRequest") - proto.RegisterType((*InfoRefsResponse)(nil), "gitaly.InfoRefsResponse") - proto.RegisterType((*PostUploadPackRequest)(nil), "gitaly.PostUploadPackRequest") - proto.RegisterType((*PostUploadPackResponse)(nil), "gitaly.PostUploadPackResponse") - proto.RegisterType((*PostReceivePackRequest)(nil), "gitaly.PostReceivePackRequest") - proto.RegisterType((*PostReceivePackResponse)(nil), "gitaly.PostReceivePackResponse") -} - -func init() { proto.RegisterFile("smarthttp.proto", fileDescriptor_7da929f3b109874f) } - -var fileDescriptor_7da929f3b109874f = []byte{ - // 481 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0x41, 0x6f, 0xd3, 0x30, - 0x14, 0x96, 0xd3, 0xae, 0xb0, 0xd7, 0x42, 0x2b, 0x4f, 0xb0, 0x28, 0x12, 0xac, 0x04, 0x09, 0xe5, - 0xd0, 0x35, 0xa3, 0xec, 0xc0, 0x79, 0x5c, 0xd8, 0x89, 0xe2, 0x6d, 0x17, 0x90, 0x88, 0xdc, 0xc4, - 0xf5, 0x2c, 0xdc, 0x38, 0xc4, 0x5e, 0xa5, 0xfd, 0x0d, 0x2e, 0x70, 0xe0, 0x77, 0xf0, 0x13, 0xf8, - 0x49, 0x1c, 0x38, 0xa1, 0xc6, 0xed, 0xb2, 0x36, 0x0b, 0x42, 0x9a, 0x76, 0x4b, 0xbe, 0xef, 0xf9, - 0x7b, 0xef, 0xfb, 0xfc, 0x0c, 0x5d, 0x3d, 0xa3, 0xb9, 0x39, 0x37, 0x26, 0x1b, 0x66, 0xb9, 0x32, - 0x0a, 0xb7, 0xb8, 0x30, 0x54, 0x5e, 0x7a, 0x20, 0x45, 0x6a, 0x2c, 0xe6, 0x75, 0xf4, 0x39, 0xcd, - 0x59, 0x62, 0xff, 0xfc, 0x1f, 0x08, 0xba, 0xc7, 0xe9, 0x54, 0x11, 0x36, 0xd5, 0x84, 0x7d, 0xb9, - 0x60, 0xda, 0xe0, 0xd7, 0x00, 0x39, 0xcb, 0x94, 0x16, 0x46, 0xe5, 0x97, 0x2e, 0xea, 0xa3, 0xa0, - 0x3d, 0xc2, 0x43, 0x2b, 0x35, 0x24, 0x57, 0xcc, 0x51, 0xf3, 0xfb, 0xaf, 0x01, 0x22, 0xd7, 0x6a, - 0xf1, 0x00, 0x30, 0x17, 0x26, 0x8a, 0x55, 0x3a, 0x15, 0x3c, 0x52, 0x99, 0x11, 0x2a, 0xd5, 0xae, - 0xd3, 0x6f, 0x04, 0xdb, 0xa4, 0xc7, 0x85, 0x79, 0x53, 0x10, 0xef, 0x2c, 0x8e, 0x9f, 0x41, 0x67, - 0x51, 0x5d, 0x0c, 0x12, 0x2b, 0xe9, 0x36, 0xfa, 0x28, 0xd8, 0x26, 0x6d, 0x2e, 0xcc, 0x78, 0x09, - 0xf9, 0x2f, 0xa0, 0x57, 0x4e, 0xa7, 0x33, 0x95, 0x6a, 0x86, 0x31, 0x34, 0x13, 0x6a, 0x68, 0x31, - 0x58, 0x87, 0x14, 0xdf, 0xfe, 0x4f, 0x04, 0x8f, 0xc6, 0x4a, 0x9b, 0xb3, 0x4c, 0x2a, 0x9a, 0x8c, - 0x69, 0xfc, 0xf9, 0xf6, 0x66, 0x56, 0x7d, 0x9c, 0xb2, 0x4f, 0x8d, 0xc1, 0xc6, 0x7f, 0x1a, 0x6c, - 0x56, 0x0d, 0x0e, 0xe0, 0xf1, 0xe6, 0xdc, 0xff, 0xb0, 0xf9, 0xd5, 0xb1, 0xe5, 0x84, 0xc5, 0x4c, - 0xcc, 0xd9, 0xdd, 0xf9, 0xdc, 0x81, 0x2d, 0x2e, 0x23, 0x91, 0x2c, 0xef, 0xa4, 0xc9, 0xe5, 0x71, - 0x82, 0x9f, 0xc3, 0x03, 0x2e, 0xa3, 0x6b, 0x5d, 0xac, 0x9f, 0x0e, 0x97, 0xa5, 0x3e, 0xde, 0x83, - 0x36, 0x97, 0xd1, 0x85, 0x66, 0x79, 0x4a, 0x67, 0xcc, 0xdd, 0x2a, 0x4a, 0x80, 0xcb, 0xb3, 0x25, - 0x52, 0x09, 0xa5, 0x55, 0x09, 0xa5, 0x26, 0xe5, 0x7b, 0x37, 0xa7, 0xec, 0xef, 0xc3, 0x6e, 0x25, - 0x93, 0xfa, 0x0c, 0x47, 0xbf, 0x1d, 0xe8, 0x9d, 0x2c, 0xde, 0xc9, 0xdb, 0xd3, 0xd3, 0xf1, 0x09, - 0xcb, 0xe7, 0x22, 0x66, 0xf8, 0x3d, 0xe0, 0xd5, 0x9e, 0x95, 0x57, 0x81, 0x77, 0x57, 0xf9, 0x6d, - 0xbc, 0x10, 0xcf, 0xad, 0x12, 0xb6, 0xa3, 0xdf, 0xfa, 0xf3, 0x2d, 0x70, 0xee, 0x3b, 0x07, 0x08, - 0x13, 0xd8, 0x29, 0xd9, 0xab, 0xd1, 0x6e, 0xa7, 0xf9, 0x11, 0x1e, 0xae, 0x6f, 0x0b, 0x7e, 0xb2, - 0x3a, 0x75, 0xe3, 0xf6, 0x7b, 0x4f, 0xeb, 0xe8, 0x75, 0xe9, 0x00, 0x1d, 0x20, 0xfc, 0x09, 0xba, - 0x1b, 0x39, 0xe2, 0xb5, 0xe3, 0xd5, 0xa5, 0xf3, 0xf6, 0x6a, 0xf9, 0x35, 0x7d, 0xb4, 0xd0, 0x3f, - 0x3a, 0xfc, 0x30, 0xe2, 0xc2, 0x48, 0x3a, 0x19, 0xc6, 0x6a, 0x16, 0xda, 0xcf, 0x7d, 0x95, 0xf3, - 0xd0, 0x6a, 0x84, 0xf3, 0x97, 0x87, 0x61, 0xb1, 0x15, 0x21, 0x57, 0x4b, 0x2c, 0x9b, 0x4c, 0x5a, - 0x05, 0xf4, 0xea, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x27, 0x3a, 0x56, 0xdc, 0x04, 0x00, - 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// SmartHTTPServiceClient is the client API for SmartHTTPService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type SmartHTTPServiceClient interface { - // The response body for GET /info/refs?service=git-upload-pack - // Will be invoked when the user executes a `git fetch`, meaning the server - // will upload the packs to that user. The user doesn't upload new objects. - InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsUploadPackClient, error) - // The response body for GET /info/refs?service=git-receive-pack - // Will be invoked when the user executes a `git push`, but only advertises - // references to the user. - InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsReceivePackClient, error) - // Request and response body for POST /upload-pack - PostUploadPack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostUploadPackClient, error) - // Request and response body for POST /receive-pack - PostReceivePack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostReceivePackClient, error) -} - -type smartHTTPServiceClient struct { - cc *grpc.ClientConn -} - -func NewSmartHTTPServiceClient(cc *grpc.ClientConn) SmartHTTPServiceClient { - return &smartHTTPServiceClient{cc} -} - -func (c *smartHTTPServiceClient) InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsUploadPackClient, error) { - stream, err := c.cc.NewStream(ctx, &_SmartHTTPService_serviceDesc.Streams[0], "/gitaly.SmartHTTPService/InfoRefsUploadPack", opts...) - if err != nil { - return nil, err - } - x := &smartHTTPServiceInfoRefsUploadPackClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type SmartHTTPService_InfoRefsUploadPackClient interface { - Recv() (*InfoRefsResponse, error) - grpc.ClientStream -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type smartHTTPServiceInfoRefsUploadPackClient struct { - grpc.ClientStream -} - -func (x *smartHTTPServiceInfoRefsUploadPackClient) Recv() (*InfoRefsResponse, error) { - m := new(InfoRefsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *smartHTTPServiceClient) InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsReceivePackClient, error) { - stream, err := c.cc.NewStream(ctx, &_SmartHTTPService_serviceDesc.Streams[1], "/gitaly.SmartHTTPService/InfoRefsReceivePack", opts...) - if err != nil { - return nil, err - } - x := &smartHTTPServiceInfoRefsReceivePackClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type SmartHTTPService_InfoRefsReceivePackClient interface { - Recv() (*InfoRefsResponse, error) - grpc.ClientStream -} - -type smartHTTPServiceInfoRefsReceivePackClient struct { - grpc.ClientStream -} - -func (x *smartHTTPServiceInfoRefsReceivePackClient) Recv() (*InfoRefsResponse, error) { - m := new(InfoRefsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *smartHTTPServiceClient) PostUploadPack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostUploadPackClient, error) { - stream, err := c.cc.NewStream(ctx, &_SmartHTTPService_serviceDesc.Streams[2], "/gitaly.SmartHTTPService/PostUploadPack", opts...) - if err != nil { - return nil, err - } - x := &smartHTTPServicePostUploadPackClient{stream} - return x, nil -} - -type SmartHTTPService_PostUploadPackClient interface { - Send(*PostUploadPackRequest) error - Recv() (*PostUploadPackResponse, error) - grpc.ClientStream -} - -type smartHTTPServicePostUploadPackClient struct { - grpc.ClientStream -} - -func (x *smartHTTPServicePostUploadPackClient) Send(m *PostUploadPackRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *smartHTTPServicePostUploadPackClient) Recv() (*PostUploadPackResponse, error) { - m := new(PostUploadPackResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *smartHTTPServiceClient) PostReceivePack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostReceivePackClient, error) { - stream, err := c.cc.NewStream(ctx, &_SmartHTTPService_serviceDesc.Streams[3], "/gitaly.SmartHTTPService/PostReceivePack", opts...) - if err != nil { - return nil, err - } - x := &smartHTTPServicePostReceivePackClient{stream} - return x, nil -} - -type SmartHTTPService_PostReceivePackClient interface { - Send(*PostReceivePackRequest) error - Recv() (*PostReceivePackResponse, error) - grpc.ClientStream -} - -type smartHTTPServicePostReceivePackClient struct { - grpc.ClientStream -} - -func (x *smartHTTPServicePostReceivePackClient) Send(m *PostReceivePackRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *smartHTTPServicePostReceivePackClient) Recv() (*PostReceivePackResponse, error) { - m := new(PostReceivePackResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// SmartHTTPServiceServer is the server API for SmartHTTPService service. -type SmartHTTPServiceServer interface { - // The response body for GET /info/refs?service=git-upload-pack - // Will be invoked when the user executes a `git fetch`, meaning the server - // will upload the packs to that user. The user doesn't upload new objects. - InfoRefsUploadPack(*InfoRefsRequest, SmartHTTPService_InfoRefsUploadPackServer) error - // The response body for GET /info/refs?service=git-receive-pack - // Will be invoked when the user executes a `git push`, but only advertises - // references to the user. - InfoRefsReceivePack(*InfoRefsRequest, SmartHTTPService_InfoRefsReceivePackServer) error - // Request and response body for POST /upload-pack - PostUploadPack(SmartHTTPService_PostUploadPackServer) error - // Request and response body for POST /receive-pack - PostReceivePack(SmartHTTPService_PostReceivePackServer) error -} - -// UnimplementedSmartHTTPServiceServer can be embedded to have forward compatible implementations. -type UnimplementedSmartHTTPServiceServer struct { -} - -func (*UnimplementedSmartHTTPServiceServer) InfoRefsUploadPack(req *InfoRefsRequest, srv SmartHTTPService_InfoRefsUploadPackServer) error { - return status.Errorf(codes.Unimplemented, "method InfoRefsUploadPack not implemented") -} -func (*UnimplementedSmartHTTPServiceServer) InfoRefsReceivePack(req *InfoRefsRequest, srv SmartHTTPService_InfoRefsReceivePackServer) error { - return status.Errorf(codes.Unimplemented, "method InfoRefsReceivePack not implemented") -} -func (*UnimplementedSmartHTTPServiceServer) PostUploadPack(srv SmartHTTPService_PostUploadPackServer) error { - return status.Errorf(codes.Unimplemented, "method PostUploadPack not implemented") -} -func (*UnimplementedSmartHTTPServiceServer) PostReceivePack(srv SmartHTTPService_PostReceivePackServer) error { - return status.Errorf(codes.Unimplemented, "method PostReceivePack not implemented") -} - -func RegisterSmartHTTPServiceServer(s *grpc.Server, srv SmartHTTPServiceServer) { - s.RegisterService(&_SmartHTTPService_serviceDesc, srv) + // Raw data from stdout of 'git receive-pack' + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } -func _SmartHTTPService_InfoRefsUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(InfoRefsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *PostReceivePackResponse) Reset() { + *x = PostReceivePackResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_smarthttp_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(SmartHTTPServiceServer).InfoRefsUploadPack(m, &smartHTTPServiceInfoRefsUploadPackServer{stream}) } -type SmartHTTPService_InfoRefsUploadPackServer interface { - Send(*InfoRefsResponse) error - grpc.ServerStream +func (x *PostReceivePackResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type smartHTTPServiceInfoRefsUploadPackServer struct { - grpc.ServerStream -} +func (*PostReceivePackResponse) ProtoMessage() {} -func (x *smartHTTPServiceInfoRefsUploadPackServer) Send(m *InfoRefsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _SmartHTTPService_InfoRefsReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(InfoRefsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *PostReceivePackResponse) ProtoReflect() protoreflect.Message { + mi := &file_smarthttp_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(SmartHTTPServiceServer).InfoRefsReceivePack(m, &smartHTTPServiceInfoRefsReceivePackServer{stream}) -} - -type SmartHTTPService_InfoRefsReceivePackServer interface { - Send(*InfoRefsResponse) error - grpc.ServerStream -} - -type smartHTTPServiceInfoRefsReceivePackServer struct { - grpc.ServerStream -} - -func (x *smartHTTPServiceInfoRefsReceivePackServer) Send(m *InfoRefsResponse) error { - return x.ServerStream.SendMsg(m) + return mi.MessageOf(x) } -func _SmartHTTPService_PostUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SmartHTTPServiceServer).PostUploadPack(&smartHTTPServicePostUploadPackServer{stream}) -} - -type SmartHTTPService_PostUploadPackServer interface { - Send(*PostUploadPackResponse) error - Recv() (*PostUploadPackRequest, error) - grpc.ServerStream -} - -type smartHTTPServicePostUploadPackServer struct { - grpc.ServerStream -} - -func (x *smartHTTPServicePostUploadPackServer) Send(m *PostUploadPackResponse) error { - return x.ServerStream.SendMsg(m) +// Deprecated: Use PostReceivePackResponse.ProtoReflect.Descriptor instead. +func (*PostReceivePackResponse) Descriptor() ([]byte, []int) { + return file_smarthttp_proto_rawDescGZIP(), []int{5} } -func (x *smartHTTPServicePostUploadPackServer) Recv() (*PostUploadPackRequest, error) { - m := new(PostUploadPackRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func (x *PostReceivePackResponse) GetData() []byte { + if x != nil { + return x.Data } - return m, nil -} - -func _SmartHTTPService_PostReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SmartHTTPServiceServer).PostReceivePack(&smartHTTPServicePostReceivePackServer{stream}) -} - -type SmartHTTPService_PostReceivePackServer interface { - Send(*PostReceivePackResponse) error - Recv() (*PostReceivePackRequest, error) - grpc.ServerStream -} - -type smartHTTPServicePostReceivePackServer struct { - grpc.ServerStream + return nil } -func (x *smartHTTPServicePostReceivePackServer) Send(m *PostReceivePackResponse) error { - return x.ServerStream.SendMsg(m) -} +var File_smarthttp_proto protoreflect.FileDescriptor + +var file_smarthttp_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x73, 0x6d, 0x61, 0x72, 0x74, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x06, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x01, 0x0a, 0x0f, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x66, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, + 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x12, 0x2c, 0x0a, 0x12, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, + 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x67, + 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x21, 0x0a, 0x0c, 0x67, 0x69, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x67, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x22, 0x26, 0x0a, 0x10, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x66, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xb6, 0x01, 0x0a, 0x15, 0x50, + 0x6f, 0x73, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, + 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, + 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x2c, 0x0a, 0x12, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, + 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x21, 0x0a, 0x0c, 0x67, 0x69, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x67, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x22, 0x2c, 0x0a, 0x16, 0x50, 0x6f, 0x73, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, + 0x64, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x22, 0x92, 0x02, 0x0a, 0x16, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x13, 0x0a, 0x05, 0x67, 0x6c, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x67, 0x6c, 0x49, 0x64, 0x12, + 0x23, 0x0a, 0x0d, 0x67, 0x6c, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x67, 0x6c, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x6c, 0x55, 0x73, 0x65, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x67, 0x69, 0x74, 0x5f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x67, 0x69, 0x74, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x2c, 0x0a, 0x12, 0x67, 0x69, 0x74, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2d, 0x0a, 0x17, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xf6, 0x02, 0x0a, 0x10, 0x53, 0x6d, 0x61, 0x72, 0x74, 0x48, + 0x54, 0x54, 0x50, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x51, 0x0a, 0x12, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x65, 0x66, 0x73, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, + 0x12, 0x17, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, + 0x66, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x66, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x52, 0x0a, + 0x13, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x66, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x50, 0x61, 0x63, 0x6b, 0x12, 0x17, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x65, 0x66, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x66, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, + 0x01, 0x12, 0x5b, 0x0a, 0x0e, 0x50, 0x6f, 0x73, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x50, + 0x61, 0x63, 0x6b, 0x12, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x50, 0x6f, 0x73, + 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, + 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x28, 0x01, 0x30, 0x01, 0x12, 0x5e, + 0x0a, 0x0f, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x61, 0x63, + 0x6b, 0x12, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x28, 0x01, 0x30, 0x01, 0x42, 0x34, + 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, + 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, + 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_smarthttp_proto_rawDescOnce sync.Once + file_smarthttp_proto_rawDescData = file_smarthttp_proto_rawDesc +) -func (x *smartHTTPServicePostReceivePackServer) Recv() (*PostReceivePackRequest, error) { - m := new(PostReceivePackRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -var _SmartHTTPService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.SmartHTTPService", - HandlerType: (*SmartHTTPServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "InfoRefsUploadPack", - Handler: _SmartHTTPService_InfoRefsUploadPack_Handler, - ServerStreams: true, - }, - { - StreamName: "InfoRefsReceivePack", - Handler: _SmartHTTPService_InfoRefsReceivePack_Handler, - ServerStreams: true, - }, - { - StreamName: "PostUploadPack", - Handler: _SmartHTTPService_PostUploadPack_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "PostReceivePack", - Handler: _SmartHTTPService_PostReceivePack_Handler, - ServerStreams: true, - ClientStreams: true, +func file_smarthttp_proto_rawDescGZIP() []byte { + file_smarthttp_proto_rawDescOnce.Do(func() { + file_smarthttp_proto_rawDescData = protoimpl.X.CompressGZIP(file_smarthttp_proto_rawDescData) + }) + return file_smarthttp_proto_rawDescData +} + +var file_smarthttp_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_smarthttp_proto_goTypes = []interface{}{ + (*InfoRefsRequest)(nil), // 0: gitaly.InfoRefsRequest + (*InfoRefsResponse)(nil), // 1: gitaly.InfoRefsResponse + (*PostUploadPackRequest)(nil), // 2: gitaly.PostUploadPackRequest + (*PostUploadPackResponse)(nil), // 3: gitaly.PostUploadPackResponse + (*PostReceivePackRequest)(nil), // 4: gitaly.PostReceivePackRequest + (*PostReceivePackResponse)(nil), // 5: gitaly.PostReceivePackResponse + (*Repository)(nil), // 6: gitaly.Repository +} +var file_smarthttp_proto_depIdxs = []int32{ + 6, // 0: gitaly.InfoRefsRequest.repository:type_name -> gitaly.Repository + 6, // 1: gitaly.PostUploadPackRequest.repository:type_name -> gitaly.Repository + 6, // 2: gitaly.PostReceivePackRequest.repository:type_name -> gitaly.Repository + 0, // 3: gitaly.SmartHTTPService.InfoRefsUploadPack:input_type -> gitaly.InfoRefsRequest + 0, // 4: gitaly.SmartHTTPService.InfoRefsReceivePack:input_type -> gitaly.InfoRefsRequest + 2, // 5: gitaly.SmartHTTPService.PostUploadPack:input_type -> gitaly.PostUploadPackRequest + 4, // 6: gitaly.SmartHTTPService.PostReceivePack:input_type -> gitaly.PostReceivePackRequest + 1, // 7: gitaly.SmartHTTPService.InfoRefsUploadPack:output_type -> gitaly.InfoRefsResponse + 1, // 8: gitaly.SmartHTTPService.InfoRefsReceivePack:output_type -> gitaly.InfoRefsResponse + 3, // 9: gitaly.SmartHTTPService.PostUploadPack:output_type -> gitaly.PostUploadPackResponse + 5, // 10: gitaly.SmartHTTPService.PostReceivePack:output_type -> gitaly.PostReceivePackResponse + 7, // [7:11] is the sub-list for method output_type + 3, // [3:7] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_smarthttp_proto_init() } +func file_smarthttp_proto_init() { + if File_smarthttp_proto != nil { + return + } + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_smarthttp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InfoRefsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_smarthttp_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InfoRefsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_smarthttp_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostUploadPackRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_smarthttp_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostUploadPackResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_smarthttp_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostReceivePackRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_smarthttp_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostReceivePackResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_smarthttp_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "smarthttp.proto", + GoTypes: file_smarthttp_proto_goTypes, + DependencyIndexes: file_smarthttp_proto_depIdxs, + MessageInfos: file_smarthttp_proto_msgTypes, + }.Build() + File_smarthttp_proto = out.File + file_smarthttp_proto_rawDesc = nil + file_smarthttp_proto_goTypes = nil + file_smarthttp_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/smarthttp_grpc.pb.go b/proto/go/gitalypb/smarthttp_grpc.pb.go new file mode 100644 index 000000000..da3528e32 --- /dev/null +++ b/proto/go/gitalypb/smarthttp_grpc.pb.go @@ -0,0 +1,343 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// SmartHTTPServiceClient is the client API for SmartHTTPService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type SmartHTTPServiceClient interface { + // The response body for GET /info/refs?service=git-upload-pack + // Will be invoked when the user executes a `git fetch`, meaning the server + // will upload the packs to that user. The user doesn't upload new objects. + InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsUploadPackClient, error) + // The response body for GET /info/refs?service=git-receive-pack + // Will be invoked when the user executes a `git push`, but only advertises + // references to the user. + InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsReceivePackClient, error) + // Request and response body for POST /upload-pack + PostUploadPack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostUploadPackClient, error) + // Request and response body for POST /receive-pack + PostReceivePack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostReceivePackClient, error) +} + +type smartHTTPServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSmartHTTPServiceClient(cc grpc.ClientConnInterface) SmartHTTPServiceClient { + return &smartHTTPServiceClient{cc} +} + +func (c *smartHTTPServiceClient) InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsUploadPackClient, error) { + stream, err := c.cc.NewStream(ctx, &SmartHTTPService_ServiceDesc.Streams[0], "/gitaly.SmartHTTPService/InfoRefsUploadPack", opts...) + if err != nil { + return nil, err + } + x := &smartHTTPServiceInfoRefsUploadPackClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type SmartHTTPService_InfoRefsUploadPackClient interface { + Recv() (*InfoRefsResponse, error) + grpc.ClientStream +} + +type smartHTTPServiceInfoRefsUploadPackClient struct { + grpc.ClientStream +} + +func (x *smartHTTPServiceInfoRefsUploadPackClient) Recv() (*InfoRefsResponse, error) { + m := new(InfoRefsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *smartHTTPServiceClient) InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsReceivePackClient, error) { + stream, err := c.cc.NewStream(ctx, &SmartHTTPService_ServiceDesc.Streams[1], "/gitaly.SmartHTTPService/InfoRefsReceivePack", opts...) + if err != nil { + return nil, err + } + x := &smartHTTPServiceInfoRefsReceivePackClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type SmartHTTPService_InfoRefsReceivePackClient interface { + Recv() (*InfoRefsResponse, error) + grpc.ClientStream +} + +type smartHTTPServiceInfoRefsReceivePackClient struct { + grpc.ClientStream +} + +func (x *smartHTTPServiceInfoRefsReceivePackClient) Recv() (*InfoRefsResponse, error) { + m := new(InfoRefsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *smartHTTPServiceClient) PostUploadPack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostUploadPackClient, error) { + stream, err := c.cc.NewStream(ctx, &SmartHTTPService_ServiceDesc.Streams[2], "/gitaly.SmartHTTPService/PostUploadPack", opts...) + if err != nil { + return nil, err + } + x := &smartHTTPServicePostUploadPackClient{stream} + return x, nil +} + +type SmartHTTPService_PostUploadPackClient interface { + Send(*PostUploadPackRequest) error + Recv() (*PostUploadPackResponse, error) + grpc.ClientStream +} + +type smartHTTPServicePostUploadPackClient struct { + grpc.ClientStream +} + +func (x *smartHTTPServicePostUploadPackClient) Send(m *PostUploadPackRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *smartHTTPServicePostUploadPackClient) Recv() (*PostUploadPackResponse, error) { + m := new(PostUploadPackResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *smartHTTPServiceClient) PostReceivePack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostReceivePackClient, error) { + stream, err := c.cc.NewStream(ctx, &SmartHTTPService_ServiceDesc.Streams[3], "/gitaly.SmartHTTPService/PostReceivePack", opts...) + if err != nil { + return nil, err + } + x := &smartHTTPServicePostReceivePackClient{stream} + return x, nil +} + +type SmartHTTPService_PostReceivePackClient interface { + Send(*PostReceivePackRequest) error + Recv() (*PostReceivePackResponse, error) + grpc.ClientStream +} + +type smartHTTPServicePostReceivePackClient struct { + grpc.ClientStream +} + +func (x *smartHTTPServicePostReceivePackClient) Send(m *PostReceivePackRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *smartHTTPServicePostReceivePackClient) Recv() (*PostReceivePackResponse, error) { + m := new(PostReceivePackResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// SmartHTTPServiceServer is the server API for SmartHTTPService service. +// All implementations must embed UnimplementedSmartHTTPServiceServer +// for forward compatibility +type SmartHTTPServiceServer interface { + // The response body for GET /info/refs?service=git-upload-pack + // Will be invoked when the user executes a `git fetch`, meaning the server + // will upload the packs to that user. The user doesn't upload new objects. + InfoRefsUploadPack(*InfoRefsRequest, SmartHTTPService_InfoRefsUploadPackServer) error + // The response body for GET /info/refs?service=git-receive-pack + // Will be invoked when the user executes a `git push`, but only advertises + // references to the user. + InfoRefsReceivePack(*InfoRefsRequest, SmartHTTPService_InfoRefsReceivePackServer) error + // Request and response body for POST /upload-pack + PostUploadPack(SmartHTTPService_PostUploadPackServer) error + // Request and response body for POST /receive-pack + PostReceivePack(SmartHTTPService_PostReceivePackServer) error + mustEmbedUnimplementedSmartHTTPServiceServer() +} + +// UnimplementedSmartHTTPServiceServer must be embedded to have forward compatible implementations. +type UnimplementedSmartHTTPServiceServer struct { +} + +func (UnimplementedSmartHTTPServiceServer) InfoRefsUploadPack(*InfoRefsRequest, SmartHTTPService_InfoRefsUploadPackServer) error { + return status.Errorf(codes.Unimplemented, "method InfoRefsUploadPack not implemented") +} +func (UnimplementedSmartHTTPServiceServer) InfoRefsReceivePack(*InfoRefsRequest, SmartHTTPService_InfoRefsReceivePackServer) error { + return status.Errorf(codes.Unimplemented, "method InfoRefsReceivePack not implemented") +} +func (UnimplementedSmartHTTPServiceServer) PostUploadPack(SmartHTTPService_PostUploadPackServer) error { + return status.Errorf(codes.Unimplemented, "method PostUploadPack not implemented") +} +func (UnimplementedSmartHTTPServiceServer) PostReceivePack(SmartHTTPService_PostReceivePackServer) error { + return status.Errorf(codes.Unimplemented, "method PostReceivePack not implemented") +} +func (UnimplementedSmartHTTPServiceServer) mustEmbedUnimplementedSmartHTTPServiceServer() {} + +// UnsafeSmartHTTPServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SmartHTTPServiceServer will +// result in compilation errors. +type UnsafeSmartHTTPServiceServer interface { + mustEmbedUnimplementedSmartHTTPServiceServer() +} + +func RegisterSmartHTTPServiceServer(s grpc.ServiceRegistrar, srv SmartHTTPServiceServer) { + s.RegisterService(&SmartHTTPService_ServiceDesc, srv) +} + +func _SmartHTTPService_InfoRefsUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(InfoRefsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SmartHTTPServiceServer).InfoRefsUploadPack(m, &smartHTTPServiceInfoRefsUploadPackServer{stream}) +} + +type SmartHTTPService_InfoRefsUploadPackServer interface { + Send(*InfoRefsResponse) error + grpc.ServerStream +} + +type smartHTTPServiceInfoRefsUploadPackServer struct { + grpc.ServerStream +} + +func (x *smartHTTPServiceInfoRefsUploadPackServer) Send(m *InfoRefsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _SmartHTTPService_InfoRefsReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(InfoRefsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SmartHTTPServiceServer).InfoRefsReceivePack(m, &smartHTTPServiceInfoRefsReceivePackServer{stream}) +} + +type SmartHTTPService_InfoRefsReceivePackServer interface { + Send(*InfoRefsResponse) error + grpc.ServerStream +} + +type smartHTTPServiceInfoRefsReceivePackServer struct { + grpc.ServerStream +} + +func (x *smartHTTPServiceInfoRefsReceivePackServer) Send(m *InfoRefsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _SmartHTTPService_PostUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SmartHTTPServiceServer).PostUploadPack(&smartHTTPServicePostUploadPackServer{stream}) +} + +type SmartHTTPService_PostUploadPackServer interface { + Send(*PostUploadPackResponse) error + Recv() (*PostUploadPackRequest, error) + grpc.ServerStream +} + +type smartHTTPServicePostUploadPackServer struct { + grpc.ServerStream +} + +func (x *smartHTTPServicePostUploadPackServer) Send(m *PostUploadPackResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *smartHTTPServicePostUploadPackServer) Recv() (*PostUploadPackRequest, error) { + m := new(PostUploadPackRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _SmartHTTPService_PostReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SmartHTTPServiceServer).PostReceivePack(&smartHTTPServicePostReceivePackServer{stream}) +} + +type SmartHTTPService_PostReceivePackServer interface { + Send(*PostReceivePackResponse) error + Recv() (*PostReceivePackRequest, error) + grpc.ServerStream +} + +type smartHTTPServicePostReceivePackServer struct { + grpc.ServerStream +} + +func (x *smartHTTPServicePostReceivePackServer) Send(m *PostReceivePackResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *smartHTTPServicePostReceivePackServer) Recv() (*PostReceivePackRequest, error) { + m := new(PostReceivePackRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// SmartHTTPService_ServiceDesc is the grpc.ServiceDesc for SmartHTTPService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SmartHTTPService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.SmartHTTPService", + HandlerType: (*SmartHTTPServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "InfoRefsUploadPack", + Handler: _SmartHTTPService_InfoRefsUploadPack_Handler, + ServerStreams: true, + }, + { + StreamName: "InfoRefsReceivePack", + Handler: _SmartHTTPService_InfoRefsReceivePack_Handler, + ServerStreams: true, + }, + { + StreamName: "PostUploadPack", + Handler: _SmartHTTPService_PostUploadPack_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "PostReceivePack", + Handler: _SmartHTTPService_PostReceivePack_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "smarthttp.proto", +} diff --git a/proto/go/gitalypb/ssh.pb.go b/proto/go/gitalypb/ssh.pb.go index 5ab181086..c524ea2eb 100644 --- a/proto/go/gitalypb/ssh.pb.go +++ b/proto/go/gitalypb/ssh.pb.go @@ -1,30 +1,30 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: ssh.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type SSHUploadPackRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // 'repository' must be present in the first message. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // A chunk of raw data to be copied to 'git upload-pack' standard input @@ -32,125 +32,141 @@ type SSHUploadPackRequest struct { // Parameters to use with git -c (key=value pairs) GitConfigOptions []string `protobuf:"bytes,4,rep,name=git_config_options,json=gitConfigOptions,proto3" json:"git_config_options,omitempty"` // Git protocol version - GitProtocol string `protobuf:"bytes,5,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GitProtocol string `protobuf:"bytes,5,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"` } -func (m *SSHUploadPackRequest) Reset() { *m = SSHUploadPackRequest{} } -func (m *SSHUploadPackRequest) String() string { return proto.CompactTextString(m) } -func (*SSHUploadPackRequest) ProtoMessage() {} -func (*SSHUploadPackRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ef0eae71e2e883eb, []int{0} +func (x *SSHUploadPackRequest) Reset() { + *x = SSHUploadPackRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ssh_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SSHUploadPackRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SSHUploadPackRequest.Unmarshal(m, b) +func (x *SSHUploadPackRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SSHUploadPackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SSHUploadPackRequest.Marshal(b, m, deterministic) -} -func (m *SSHUploadPackRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SSHUploadPackRequest.Merge(m, src) -} -func (m *SSHUploadPackRequest) XXX_Size() int { - return xxx_messageInfo_SSHUploadPackRequest.Size(m) -} -func (m *SSHUploadPackRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SSHUploadPackRequest.DiscardUnknown(m) + +func (*SSHUploadPackRequest) ProtoMessage() {} + +func (x *SSHUploadPackRequest) ProtoReflect() protoreflect.Message { + mi := &file_ssh_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SSHUploadPackRequest proto.InternalMessageInfo +// Deprecated: Use SSHUploadPackRequest.ProtoReflect.Descriptor instead. +func (*SSHUploadPackRequest) Descriptor() ([]byte, []int) { + return file_ssh_proto_rawDescGZIP(), []int{0} +} -func (m *SSHUploadPackRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *SSHUploadPackRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *SSHUploadPackRequest) GetStdin() []byte { - if m != nil { - return m.Stdin +func (x *SSHUploadPackRequest) GetStdin() []byte { + if x != nil { + return x.Stdin } return nil } -func (m *SSHUploadPackRequest) GetGitConfigOptions() []string { - if m != nil { - return m.GitConfigOptions +func (x *SSHUploadPackRequest) GetGitConfigOptions() []string { + if x != nil { + return x.GitConfigOptions } return nil } -func (m *SSHUploadPackRequest) GetGitProtocol() string { - if m != nil { - return m.GitProtocol +func (x *SSHUploadPackRequest) GetGitProtocol() string { + if x != nil { + return x.GitProtocol } return "" } type SSHUploadPackResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // A chunk of raw data from 'git upload-pack' standard output Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` // A chunk of raw data from 'git upload-pack' standard error Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` // This field may be nil. This is intentional: only when the remote // command has finished can we return its exit status. - ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` } -func (m *SSHUploadPackResponse) Reset() { *m = SSHUploadPackResponse{} } -func (m *SSHUploadPackResponse) String() string { return proto.CompactTextString(m) } -func (*SSHUploadPackResponse) ProtoMessage() {} -func (*SSHUploadPackResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ef0eae71e2e883eb, []int{1} +func (x *SSHUploadPackResponse) Reset() { + *x = SSHUploadPackResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ssh_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SSHUploadPackResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SSHUploadPackResponse.Unmarshal(m, b) -} -func (m *SSHUploadPackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SSHUploadPackResponse.Marshal(b, m, deterministic) -} -func (m *SSHUploadPackResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SSHUploadPackResponse.Merge(m, src) +func (x *SSHUploadPackResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SSHUploadPackResponse) XXX_Size() int { - return xxx_messageInfo_SSHUploadPackResponse.Size(m) -} -func (m *SSHUploadPackResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SSHUploadPackResponse.DiscardUnknown(m) + +func (*SSHUploadPackResponse) ProtoMessage() {} + +func (x *SSHUploadPackResponse) ProtoReflect() protoreflect.Message { + mi := &file_ssh_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SSHUploadPackResponse proto.InternalMessageInfo +// Deprecated: Use SSHUploadPackResponse.ProtoReflect.Descriptor instead. +func (*SSHUploadPackResponse) Descriptor() ([]byte, []int) { + return file_ssh_proto_rawDescGZIP(), []int{1} +} -func (m *SSHUploadPackResponse) GetStdout() []byte { - if m != nil { - return m.Stdout +func (x *SSHUploadPackResponse) GetStdout() []byte { + if x != nil { + return x.Stdout } return nil } -func (m *SSHUploadPackResponse) GetStderr() []byte { - if m != nil { - return m.Stderr +func (x *SSHUploadPackResponse) GetStderr() []byte { + if x != nil { + return x.Stderr } return nil } -func (m *SSHUploadPackResponse) GetExitStatus() *ExitStatus { - if m != nil { - return m.ExitStatus +func (x *SSHUploadPackResponse) GetExitStatus() *ExitStatus { + if x != nil { + return x.ExitStatus } return nil } type SSHReceivePackRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // 'repository' must be present in the first message. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // A chunk of raw data to be copied to 'git upload-pack' standard input @@ -163,549 +179,512 @@ type SSHReceivePackRequest struct { // Git protocol version GitProtocol string `protobuf:"bytes,6,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"` // Parameters to use with git -c (key=value pairs) - GitConfigOptions []string `protobuf:"bytes,7,rep,name=git_config_options,json=gitConfigOptions,proto3" json:"git_config_options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GitConfigOptions []string `protobuf:"bytes,7,rep,name=git_config_options,json=gitConfigOptions,proto3" json:"git_config_options,omitempty"` } -func (m *SSHReceivePackRequest) Reset() { *m = SSHReceivePackRequest{} } -func (m *SSHReceivePackRequest) String() string { return proto.CompactTextString(m) } -func (*SSHReceivePackRequest) ProtoMessage() {} -func (*SSHReceivePackRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ef0eae71e2e883eb, []int{2} +func (x *SSHReceivePackRequest) Reset() { + *x = SSHReceivePackRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ssh_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SSHReceivePackRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SSHReceivePackRequest.Unmarshal(m, b) -} -func (m *SSHReceivePackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SSHReceivePackRequest.Marshal(b, m, deterministic) -} -func (m *SSHReceivePackRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SSHReceivePackRequest.Merge(m, src) -} -func (m *SSHReceivePackRequest) XXX_Size() int { - return xxx_messageInfo_SSHReceivePackRequest.Size(m) +func (x *SSHReceivePackRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SSHReceivePackRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SSHReceivePackRequest.DiscardUnknown(m) + +func (*SSHReceivePackRequest) ProtoMessage() {} + +func (x *SSHReceivePackRequest) ProtoReflect() protoreflect.Message { + mi := &file_ssh_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SSHReceivePackRequest proto.InternalMessageInfo +// Deprecated: Use SSHReceivePackRequest.ProtoReflect.Descriptor instead. +func (*SSHReceivePackRequest) Descriptor() ([]byte, []int) { + return file_ssh_proto_rawDescGZIP(), []int{2} +} -func (m *SSHReceivePackRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *SSHReceivePackRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *SSHReceivePackRequest) GetStdin() []byte { - if m != nil { - return m.Stdin +func (x *SSHReceivePackRequest) GetStdin() []byte { + if x != nil { + return x.Stdin } return nil } -func (m *SSHReceivePackRequest) GetGlId() string { - if m != nil { - return m.GlId +func (x *SSHReceivePackRequest) GetGlId() string { + if x != nil { + return x.GlId } return "" } -func (m *SSHReceivePackRequest) GetGlRepository() string { - if m != nil { - return m.GlRepository +func (x *SSHReceivePackRequest) GetGlRepository() string { + if x != nil { + return x.GlRepository } return "" } -func (m *SSHReceivePackRequest) GetGlUsername() string { - if m != nil { - return m.GlUsername +func (x *SSHReceivePackRequest) GetGlUsername() string { + if x != nil { + return x.GlUsername } return "" } -func (m *SSHReceivePackRequest) GetGitProtocol() string { - if m != nil { - return m.GitProtocol +func (x *SSHReceivePackRequest) GetGitProtocol() string { + if x != nil { + return x.GitProtocol } return "" } -func (m *SSHReceivePackRequest) GetGitConfigOptions() []string { - if m != nil { - return m.GitConfigOptions +func (x *SSHReceivePackRequest) GetGitConfigOptions() []string { + if x != nil { + return x.GitConfigOptions } return nil } type SSHReceivePackResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // A chunk of raw data from 'git receive-pack' standard output Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` // A chunk of raw data from 'git receive-pack' standard error Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` // This field may be nil. This is intentional: only when the remote // command has finished can we return its exit status. - ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` } -func (m *SSHReceivePackResponse) Reset() { *m = SSHReceivePackResponse{} } -func (m *SSHReceivePackResponse) String() string { return proto.CompactTextString(m) } -func (*SSHReceivePackResponse) ProtoMessage() {} -func (*SSHReceivePackResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ef0eae71e2e883eb, []int{3} +func (x *SSHReceivePackResponse) Reset() { + *x = SSHReceivePackResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ssh_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SSHReceivePackResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SSHReceivePackResponse.Unmarshal(m, b) -} -func (m *SSHReceivePackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SSHReceivePackResponse.Marshal(b, m, deterministic) -} -func (m *SSHReceivePackResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SSHReceivePackResponse.Merge(m, src) +func (x *SSHReceivePackResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SSHReceivePackResponse) XXX_Size() int { - return xxx_messageInfo_SSHReceivePackResponse.Size(m) -} -func (m *SSHReceivePackResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SSHReceivePackResponse.DiscardUnknown(m) + +func (*SSHReceivePackResponse) ProtoMessage() {} + +func (x *SSHReceivePackResponse) ProtoReflect() protoreflect.Message { + mi := &file_ssh_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SSHReceivePackResponse proto.InternalMessageInfo +// Deprecated: Use SSHReceivePackResponse.ProtoReflect.Descriptor instead. +func (*SSHReceivePackResponse) Descriptor() ([]byte, []int) { + return file_ssh_proto_rawDescGZIP(), []int{3} +} -func (m *SSHReceivePackResponse) GetStdout() []byte { - if m != nil { - return m.Stdout +func (x *SSHReceivePackResponse) GetStdout() []byte { + if x != nil { + return x.Stdout } return nil } -func (m *SSHReceivePackResponse) GetStderr() []byte { - if m != nil { - return m.Stderr +func (x *SSHReceivePackResponse) GetStderr() []byte { + if x != nil { + return x.Stderr } return nil } -func (m *SSHReceivePackResponse) GetExitStatus() *ExitStatus { - if m != nil { - return m.ExitStatus +func (x *SSHReceivePackResponse) GetExitStatus() *ExitStatus { + if x != nil { + return x.ExitStatus } return nil } type SSHUploadArchiveRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // 'repository' must be present in the first message. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // A chunk of raw data to be copied to 'git upload-archive' standard input - Stdin []byte `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Stdin []byte `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"` } -func (m *SSHUploadArchiveRequest) Reset() { *m = SSHUploadArchiveRequest{} } -func (m *SSHUploadArchiveRequest) String() string { return proto.CompactTextString(m) } -func (*SSHUploadArchiveRequest) ProtoMessage() {} -func (*SSHUploadArchiveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ef0eae71e2e883eb, []int{4} +func (x *SSHUploadArchiveRequest) Reset() { + *x = SSHUploadArchiveRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ssh_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SSHUploadArchiveRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SSHUploadArchiveRequest.Unmarshal(m, b) +func (x *SSHUploadArchiveRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SSHUploadArchiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SSHUploadArchiveRequest.Marshal(b, m, deterministic) -} -func (m *SSHUploadArchiveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SSHUploadArchiveRequest.Merge(m, src) -} -func (m *SSHUploadArchiveRequest) XXX_Size() int { - return xxx_messageInfo_SSHUploadArchiveRequest.Size(m) -} -func (m *SSHUploadArchiveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SSHUploadArchiveRequest.DiscardUnknown(m) + +func (*SSHUploadArchiveRequest) ProtoMessage() {} + +func (x *SSHUploadArchiveRequest) ProtoReflect() protoreflect.Message { + mi := &file_ssh_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SSHUploadArchiveRequest proto.InternalMessageInfo +// Deprecated: Use SSHUploadArchiveRequest.ProtoReflect.Descriptor instead. +func (*SSHUploadArchiveRequest) Descriptor() ([]byte, []int) { + return file_ssh_proto_rawDescGZIP(), []int{4} +} -func (m *SSHUploadArchiveRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *SSHUploadArchiveRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *SSHUploadArchiveRequest) GetStdin() []byte { - if m != nil { - return m.Stdin +func (x *SSHUploadArchiveRequest) GetStdin() []byte { + if x != nil { + return x.Stdin } return nil } type SSHUploadArchiveResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // A chunk of raw data from 'git upload-archive' standard output Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` // A chunk of raw data from 'git upload-archive' standard error Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` // This value will only be set on the last message - ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` } -func (m *SSHUploadArchiveResponse) Reset() { *m = SSHUploadArchiveResponse{} } -func (m *SSHUploadArchiveResponse) String() string { return proto.CompactTextString(m) } -func (*SSHUploadArchiveResponse) ProtoMessage() {} -func (*SSHUploadArchiveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ef0eae71e2e883eb, []int{5} -} - -func (m *SSHUploadArchiveResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SSHUploadArchiveResponse.Unmarshal(m, b) -} -func (m *SSHUploadArchiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SSHUploadArchiveResponse.Marshal(b, m, deterministic) -} -func (m *SSHUploadArchiveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SSHUploadArchiveResponse.Merge(m, src) -} -func (m *SSHUploadArchiveResponse) XXX_Size() int { - return xxx_messageInfo_SSHUploadArchiveResponse.Size(m) -} -func (m *SSHUploadArchiveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SSHUploadArchiveResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_SSHUploadArchiveResponse proto.InternalMessageInfo - -func (m *SSHUploadArchiveResponse) GetStdout() []byte { - if m != nil { - return m.Stdout +func (x *SSHUploadArchiveResponse) Reset() { + *x = SSHUploadArchiveResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ssh_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *SSHUploadArchiveResponse) GetStderr() []byte { - if m != nil { - return m.Stderr - } - return nil +func (x *SSHUploadArchiveResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SSHUploadArchiveResponse) GetExitStatus() *ExitStatus { - if m != nil { - return m.ExitStatus - } - return nil -} +func (*SSHUploadArchiveResponse) ProtoMessage() {} -func init() { - proto.RegisterType((*SSHUploadPackRequest)(nil), "gitaly.SSHUploadPackRequest") - proto.RegisterType((*SSHUploadPackResponse)(nil), "gitaly.SSHUploadPackResponse") - proto.RegisterType((*SSHReceivePackRequest)(nil), "gitaly.SSHReceivePackRequest") - proto.RegisterType((*SSHReceivePackResponse)(nil), "gitaly.SSHReceivePackResponse") - proto.RegisterType((*SSHUploadArchiveRequest)(nil), "gitaly.SSHUploadArchiveRequest") - proto.RegisterType((*SSHUploadArchiveResponse)(nil), "gitaly.SSHUploadArchiveResponse") -} - -func init() { proto.RegisterFile("ssh.proto", fileDescriptor_ef0eae71e2e883eb) } - -var fileDescriptor_ef0eae71e2e883eb = []byte{ - // 511 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x53, 0x4d, 0x6e, 0xd3, 0x40, - 0x14, 0x96, 0x13, 0x27, 0x34, 0x2f, 0x29, 0x8a, 0x86, 0xb6, 0x58, 0x11, 0xd0, 0x60, 0x36, 0x5e, - 0x94, 0x18, 0xd2, 0x2e, 0xd8, 0x52, 0x84, 0x54, 0xd8, 0x50, 0x8d, 0x55, 0x09, 0xc1, 0xc2, 0x9a, - 0xd8, 0xc3, 0x64, 0xc4, 0xc4, 0x63, 0x66, 0x26, 0x51, 0x2b, 0x81, 0x38, 0x04, 0x0b, 0x38, 0x01, - 0x47, 0xe1, 0x04, 0x9c, 0x86, 0x15, 0x62, 0x6c, 0xd2, 0x38, 0x6e, 0x96, 0xed, 0xce, 0xef, 0xfb, - 0xde, 0xbc, 0x9f, 0xef, 0xf3, 0x83, 0x8e, 0xd6, 0xd3, 0x51, 0xae, 0xa4, 0x91, 0xa8, 0xcd, 0xb8, - 0x21, 0xe2, 0x62, 0x00, 0x82, 0x67, 0xa6, 0xc0, 0x06, 0x3d, 0x3d, 0x25, 0x8a, 0xa6, 0x45, 0xe4, - 0xff, 0x76, 0x60, 0x27, 0x8a, 0x4e, 0xce, 0x72, 0x21, 0x49, 0x7a, 0x4a, 0x92, 0x8f, 0x98, 0x7e, - 0x9a, 0x53, 0x6d, 0xd0, 0x33, 0x00, 0x45, 0x73, 0xa9, 0xb9, 0x91, 0xea, 0xc2, 0x73, 0x86, 0x4e, - 0xd0, 0x1d, 0xa3, 0x51, 0x51, 0x6f, 0x84, 0x97, 0xcc, 0xb1, 0xfb, 0xe3, 0xd7, 0x81, 0x83, 0x57, - 0x72, 0xd1, 0x0e, 0xb4, 0xb4, 0x49, 0x79, 0xe6, 0x35, 0x86, 0x4e, 0xd0, 0xc3, 0x45, 0x80, 0x0e, - 0x00, 0x31, 0x6e, 0xe2, 0x44, 0x66, 0x1f, 0x38, 0x8b, 0x65, 0x6e, 0xb8, 0xcc, 0xb4, 0xe7, 0x0e, - 0x9b, 0x41, 0x07, 0xf7, 0x19, 0x37, 0x2f, 0x2c, 0xf1, 0xa6, 0xc0, 0xd1, 0x43, 0xe8, 0xfd, 0xcb, - 0xb6, 0x33, 0x26, 0x52, 0x78, 0xad, 0xa1, 0x13, 0x74, 0x70, 0x97, 0x71, 0x73, 0x5a, 0x42, 0xaf, - 0xdd, 0xad, 0x66, 0xdf, 0xc5, 0xbb, 0x2b, 0x45, 0x73, 0xa2, 0xc8, 0x8c, 0x1a, 0xaa, 0xb4, 0xff, - 0x19, 0x76, 0xd7, 0xb6, 0xd2, 0xb9, 0xcc, 0x34, 0x45, 0x7b, 0xd0, 0xd6, 0x26, 0x95, 0x73, 0x63, - 0x57, 0xea, 0xe1, 0x32, 0x2a, 0x71, 0xaa, 0x54, 0x39, 0x75, 0x19, 0xa1, 0x43, 0xe8, 0xd2, 0x73, - 0x6e, 0x62, 0x6d, 0x88, 0x99, 0x6b, 0xaf, 0x59, 0xd5, 0xe1, 0xe5, 0x39, 0x37, 0x91, 0x65, 0x30, - 0xd0, 0xe5, 0xb7, 0xff, 0xad, 0x61, 0xdb, 0x63, 0x9a, 0x50, 0xbe, 0xa0, 0xd7, 0xa9, 0xea, 0x1d, - 0x68, 0x31, 0x11, 0xf3, 0xd4, 0x0e, 0xd6, 0xc1, 0x2e, 0x13, 0xaf, 0x52, 0xf4, 0x08, 0xb6, 0x99, - 0x88, 0x57, 0xfa, 0xb8, 0x96, 0xec, 0x31, 0x71, 0xd9, 0x01, 0xed, 0x43, 0x97, 0x89, 0x78, 0xae, - 0xa9, 0xca, 0xc8, 0x8c, 0x96, 0x02, 0x03, 0x13, 0x67, 0x25, 0x52, 0xb3, 0xa0, 0x5d, 0xb3, 0x60, - 0x83, 0xa7, 0xb7, 0xae, 0xf6, 0xd4, 0xff, 0x02, 0x7b, 0xeb, 0xa2, 0xdc, 0xa4, 0x29, 0x1c, 0xee, - 0x2e, 0x7f, 0x89, 0xe7, 0x2a, 0x99, 0xf2, 0x05, 0xbd, 0x26, 0x57, 0xfc, 0xaf, 0xe0, 0xd5, 0x5b, - 0xdd, 0xe0, 0xae, 0xe3, 0x9f, 0x0d, 0x80, 0x28, 0x3a, 0x89, 0xa8, 0x5a, 0xf0, 0x84, 0xa2, 0xb7, - 0xb0, 0x5d, 0xb9, 0x06, 0x74, 0xef, 0xff, 0xfb, 0xab, 0x4e, 0x7f, 0x70, 0x7f, 0x03, 0x5b, 0x6c, - 0xe0, 0xb7, 0xff, 0x7c, 0x0f, 0x1a, 0x5b, 0x8d, 0xc0, 0x79, 0xe2, 0xa0, 0xf7, 0x70, 0xbb, 0xea, - 0x29, 0x5a, 0x7d, 0x5c, 0x3f, 0x80, 0xc1, 0x83, 0x4d, 0x74, 0xa5, 0xb8, 0x63, 0x8b, 0x13, 0xe8, - 0xaf, 0xcb, 0x88, 0xf6, 0x6b, 0xb3, 0x55, 0xbd, 0x1c, 0x0c, 0x37, 0x27, 0xd4, 0xe7, 0x3f, 0x3e, - 0x7a, 0x37, 0x66, 0xdc, 0x08, 0x32, 0x19, 0x25, 0x72, 0x16, 0x16, 0x9f, 0x8f, 0xa5, 0x62, 0x61, - 0x51, 0x24, 0x5c, 0x3c, 0x3d, 0x0a, 0xed, 0x05, 0x84, 0x4c, 0x96, 0x58, 0x3e, 0x99, 0xb4, 0x2d, - 0x74, 0xf8, 0x37, 0x00, 0x00, 0xff, 0xff, 0x23, 0x9d, 0x43, 0x32, 0x6a, 0x05, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// SSHServiceClient is the client API for SSHService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type SSHServiceClient interface { - // To forward 'git upload-pack' to Gitaly for SSH sessions - SSHUploadPack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadPackClient, error) - // To forward 'git receive-pack' to Gitaly for SSH sessions - SSHReceivePack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHReceivePackClient, error) - // To forward 'git upload-archive' to Gitaly for SSH sessions - SSHUploadArchive(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadArchiveClient, error) -} - -type sSHServiceClient struct { - cc *grpc.ClientConn -} - -func NewSSHServiceClient(cc *grpc.ClientConn) SSHServiceClient { - return &sSHServiceClient{cc} -} - -func (c *sSHServiceClient) SSHUploadPack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadPackClient, error) { - stream, err := c.cc.NewStream(ctx, &_SSHService_serviceDesc.Streams[0], "/gitaly.SSHService/SSHUploadPack", opts...) - if err != nil { - return nil, err - } - x := &sSHServiceSSHUploadPackClient{stream} - return x, nil -} - -type SSHService_SSHUploadPackClient interface { - Send(*SSHUploadPackRequest) error - Recv() (*SSHUploadPackResponse, error) - grpc.ClientStream -} - -type sSHServiceSSHUploadPackClient struct { - grpc.ClientStream -} - -func (x *sSHServiceSSHUploadPackClient) Send(m *SSHUploadPackRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *sSHServiceSSHUploadPackClient) Recv() (*SSHUploadPackResponse, error) { - m := new(SSHUploadPackResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *SSHUploadArchiveResponse) ProtoReflect() protoreflect.Message { + mi := &file_ssh_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -func (c *sSHServiceClient) SSHReceivePack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHReceivePackClient, error) { - stream, err := c.cc.NewStream(ctx, &_SSHService_serviceDesc.Streams[1], "/gitaly.SSHService/SSHReceivePack", opts...) - if err != nil { - return nil, err - } - x := &sSHServiceSSHReceivePackClient{stream} - return x, nil -} - -type SSHService_SSHReceivePackClient interface { - Send(*SSHReceivePackRequest) error - Recv() (*SSHReceivePackResponse, error) - grpc.ClientStream -} - -type sSHServiceSSHReceivePackClient struct { - grpc.ClientStream -} - -func (x *sSHServiceSSHReceivePackClient) Send(m *SSHReceivePackRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *sSHServiceSSHReceivePackClient) Recv() (*SSHReceivePackResponse, error) { - m := new(SSHReceivePackResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +// Deprecated: Use SSHUploadArchiveResponse.ProtoReflect.Descriptor instead. +func (*SSHUploadArchiveResponse) Descriptor() ([]byte, []int) { + return file_ssh_proto_rawDescGZIP(), []int{5} } -func (c *sSHServiceClient) SSHUploadArchive(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadArchiveClient, error) { - stream, err := c.cc.NewStream(ctx, &_SSHService_serviceDesc.Streams[2], "/gitaly.SSHService/SSHUploadArchive", opts...) - if err != nil { - return nil, err +func (x *SSHUploadArchiveResponse) GetStdout() []byte { + if x != nil { + return x.Stdout } - x := &sSHServiceSSHUploadArchiveClient{stream} - return x, nil -} - -type SSHService_SSHUploadArchiveClient interface { - Send(*SSHUploadArchiveRequest) error - Recv() (*SSHUploadArchiveResponse, error) - grpc.ClientStream -} - -type sSHServiceSSHUploadArchiveClient struct { - grpc.ClientStream -} - -func (x *sSHServiceSSHUploadArchiveClient) Send(m *SSHUploadArchiveRequest) error { - return x.ClientStream.SendMsg(m) + return nil } -func (x *sSHServiceSSHUploadArchiveClient) Recv() (*SSHUploadArchiveResponse, error) { - m := new(SSHUploadArchiveResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *SSHUploadArchiveResponse) GetStderr() []byte { + if x != nil { + return x.Stderr } - return m, nil -} - -// SSHServiceServer is the server API for SSHService service. -type SSHServiceServer interface { - // To forward 'git upload-pack' to Gitaly for SSH sessions - SSHUploadPack(SSHService_SSHUploadPackServer) error - // To forward 'git receive-pack' to Gitaly for SSH sessions - SSHReceivePack(SSHService_SSHReceivePackServer) error - // To forward 'git upload-archive' to Gitaly for SSH sessions - SSHUploadArchive(SSHService_SSHUploadArchiveServer) error -} - -// UnimplementedSSHServiceServer can be embedded to have forward compatible implementations. -type UnimplementedSSHServiceServer struct { -} - -func (*UnimplementedSSHServiceServer) SSHUploadPack(srv SSHService_SSHUploadPackServer) error { - return status.Errorf(codes.Unimplemented, "method SSHUploadPack not implemented") -} -func (*UnimplementedSSHServiceServer) SSHReceivePack(srv SSHService_SSHReceivePackServer) error { - return status.Errorf(codes.Unimplemented, "method SSHReceivePack not implemented") -} -func (*UnimplementedSSHServiceServer) SSHUploadArchive(srv SSHService_SSHUploadArchiveServer) error { - return status.Errorf(codes.Unimplemented, "method SSHUploadArchive not implemented") -} - -func RegisterSSHServiceServer(s *grpc.Server, srv SSHServiceServer) { - s.RegisterService(&_SSHService_serviceDesc, srv) -} - -func _SSHService_SSHUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SSHServiceServer).SSHUploadPack(&sSHServiceSSHUploadPackServer{stream}) -} - -type SSHService_SSHUploadPackServer interface { - Send(*SSHUploadPackResponse) error - Recv() (*SSHUploadPackRequest, error) - grpc.ServerStream -} - -type sSHServiceSSHUploadPackServer struct { - grpc.ServerStream -} - -func (x *sSHServiceSSHUploadPackServer) Send(m *SSHUploadPackResponse) error { - return x.ServerStream.SendMsg(m) + return nil } -func (x *sSHServiceSSHUploadPackServer) Recv() (*SSHUploadPackRequest, error) { - m := new(SSHUploadPackRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func (x *SSHUploadArchiveResponse) GetExitStatus() *ExitStatus { + if x != nil { + return x.ExitStatus } - return m, nil -} - -func _SSHService_SSHReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SSHServiceServer).SSHReceivePack(&sSHServiceSSHReceivePackServer{stream}) -} - -type SSHService_SSHReceivePackServer interface { - Send(*SSHReceivePackResponse) error - Recv() (*SSHReceivePackRequest, error) - grpc.ServerStream -} - -type sSHServiceSSHReceivePackServer struct { - grpc.ServerStream + return nil } -func (x *sSHServiceSSHReceivePackServer) Send(m *SSHReceivePackResponse) error { - return x.ServerStream.SendMsg(m) -} +var File_ssh_proto protoreflect.FileDescriptor + +var file_ssh_proto_rawDesc = []byte{ + 0x0a, 0x09, 0x73, 0x73, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd4, 0x01, + 0x0a, 0x14, 0x53, 0x53, 0x48, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, + 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x10, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x67, 0x69, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x67, 0x69, 0x74, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x52, 0x15, 0x67, + 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x22, 0x7c, 0x0a, 0x15, 0x53, 0x53, 0x48, 0x55, 0x70, 0x6c, 0x6f, 0x61, + 0x64, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, + 0x74, 0x64, 0x6f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x12, 0x33, 0x0a, + 0x0b, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x45, 0x78, 0x69, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0a, 0x65, 0x78, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x22, 0x93, 0x02, 0x0a, 0x15, 0x53, 0x53, 0x48, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x12, 0x13, 0x0a, 0x05, + 0x67, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x67, 0x6c, 0x49, + 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x67, 0x6c, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x67, 0x6c, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x6c, 0x5f, 0x75, 0x73, 0x65, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x6c, 0x55, + 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x67, 0x69, 0x74, 0x5f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x67, + 0x69, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x2c, 0x0a, 0x12, 0x67, 0x69, + 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7d, 0x0a, 0x16, 0x53, 0x53, 0x48, 0x52, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, + 0x64, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x65, + 0x72, 0x72, 0x12, 0x33, 0x0a, 0x0b, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x45, 0x78, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0a, 0x65, 0x78, 0x69, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x69, 0x0a, 0x17, 0x53, 0x53, 0x48, 0x55, 0x70, + 0x6c, 0x6f, 0x61, 0x64, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x73, 0x74, 0x64, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x74, 0x64, + 0x69, 0x6e, 0x22, 0x7f, 0x0a, 0x18, 0x53, 0x53, 0x48, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x41, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, + 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x12, 0x33, + 0x0a, 0x0b, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x45, 0x78, 0x69, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0a, 0x65, 0x78, 0x69, 0x74, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x32, 0xa6, 0x02, 0x0a, 0x0a, 0x53, 0x53, 0x48, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x58, 0x0a, 0x0d, 0x53, 0x53, 0x48, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x50, + 0x61, 0x63, 0x6b, 0x12, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x53, 0x48, + 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x53, 0x48, 0x55, 0x70, + 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x28, 0x01, 0x30, 0x01, 0x12, 0x5b, 0x0a, 0x0e, + 0x53, 0x53, 0x48, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x12, 0x1d, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x53, 0x48, 0x52, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x53, 0x48, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, + 0x97, 0x28, 0x02, 0x08, 0x01, 0x28, 0x01, 0x30, 0x01, 0x12, 0x61, 0x0a, 0x10, 0x53, 0x53, 0x48, + 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x12, 0x1f, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x53, 0x48, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, + 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x53, 0x48, 0x55, 0x70, 0x6c, 0x6f, 0x61, + 0x64, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x28, 0x01, 0x30, 0x01, 0x42, 0x34, 0x5a, 0x32, + 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, + 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ssh_proto_rawDescOnce sync.Once + file_ssh_proto_rawDescData = file_ssh_proto_rawDesc +) -func (x *sSHServiceSSHReceivePackServer) Recv() (*SSHReceivePackRequest, error) { - m := new(SSHReceivePackRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func file_ssh_proto_rawDescGZIP() []byte { + file_ssh_proto_rawDescOnce.Do(func() { + file_ssh_proto_rawDescData = protoimpl.X.CompressGZIP(file_ssh_proto_rawDescData) + }) + return file_ssh_proto_rawDescData +} + +var file_ssh_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_ssh_proto_goTypes = []interface{}{ + (*SSHUploadPackRequest)(nil), // 0: gitaly.SSHUploadPackRequest + (*SSHUploadPackResponse)(nil), // 1: gitaly.SSHUploadPackResponse + (*SSHReceivePackRequest)(nil), // 2: gitaly.SSHReceivePackRequest + (*SSHReceivePackResponse)(nil), // 3: gitaly.SSHReceivePackResponse + (*SSHUploadArchiveRequest)(nil), // 4: gitaly.SSHUploadArchiveRequest + (*SSHUploadArchiveResponse)(nil), // 5: gitaly.SSHUploadArchiveResponse + (*Repository)(nil), // 6: gitaly.Repository + (*ExitStatus)(nil), // 7: gitaly.ExitStatus +} +var file_ssh_proto_depIdxs = []int32{ + 6, // 0: gitaly.SSHUploadPackRequest.repository:type_name -> gitaly.Repository + 7, // 1: gitaly.SSHUploadPackResponse.exit_status:type_name -> gitaly.ExitStatus + 6, // 2: gitaly.SSHReceivePackRequest.repository:type_name -> gitaly.Repository + 7, // 3: gitaly.SSHReceivePackResponse.exit_status:type_name -> gitaly.ExitStatus + 6, // 4: gitaly.SSHUploadArchiveRequest.repository:type_name -> gitaly.Repository + 7, // 5: gitaly.SSHUploadArchiveResponse.exit_status:type_name -> gitaly.ExitStatus + 0, // 6: gitaly.SSHService.SSHUploadPack:input_type -> gitaly.SSHUploadPackRequest + 2, // 7: gitaly.SSHService.SSHReceivePack:input_type -> gitaly.SSHReceivePackRequest + 4, // 8: gitaly.SSHService.SSHUploadArchive:input_type -> gitaly.SSHUploadArchiveRequest + 1, // 9: gitaly.SSHService.SSHUploadPack:output_type -> gitaly.SSHUploadPackResponse + 3, // 10: gitaly.SSHService.SSHReceivePack:output_type -> gitaly.SSHReceivePackResponse + 5, // 11: gitaly.SSHService.SSHUploadArchive:output_type -> gitaly.SSHUploadArchiveResponse + 9, // [9:12] is the sub-list for method output_type + 6, // [6:9] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_ssh_proto_init() } +func file_ssh_proto_init() { + if File_ssh_proto != nil { + return } - return m, nil -} - -func _SSHService_SSHUploadArchive_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SSHServiceServer).SSHUploadArchive(&sSHServiceSSHUploadArchiveServer{stream}) -} - -type SSHService_SSHUploadArchiveServer interface { - Send(*SSHUploadArchiveResponse) error - Recv() (*SSHUploadArchiveRequest, error) - grpc.ServerStream -} - -type sSHServiceSSHUploadArchiveServer struct { - grpc.ServerStream -} - -func (x *sSHServiceSSHUploadArchiveServer) Send(m *SSHUploadArchiveResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *sSHServiceSSHUploadArchiveServer) Recv() (*SSHUploadArchiveRequest, error) { - m := new(SSHUploadArchiveRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_ssh_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SSHUploadPackRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ssh_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SSHUploadPackResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ssh_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SSHReceivePackRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ssh_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SSHReceivePackResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ssh_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SSHUploadArchiveRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ssh_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SSHUploadArchiveResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return m, nil -} - -var _SSHService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.SSHService", - HandlerType: (*SSHServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "SSHUploadPack", - Handler: _SSHService_SSHUploadPack_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "SSHReceivePack", - Handler: _SSHService_SSHReceivePack_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "SSHUploadArchive", - Handler: _SSHService_SSHUploadArchive_Handler, - ServerStreams: true, - ClientStreams: true, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ssh_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "ssh.proto", + GoTypes: file_ssh_proto_goTypes, + DependencyIndexes: file_ssh_proto_depIdxs, + MessageInfos: file_ssh_proto_msgTypes, + }.Build() + File_ssh_proto = out.File + file_ssh_proto_rawDesc = nil + file_ssh_proto_goTypes = nil + file_ssh_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/ssh_grpc.pb.go b/proto/go/gitalypb/ssh_grpc.pb.go new file mode 100644 index 000000000..5d13f9896 --- /dev/null +++ b/proto/go/gitalypb/ssh_grpc.pb.go @@ -0,0 +1,275 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// SSHServiceClient is the client API for SSHService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type SSHServiceClient interface { + // To forward 'git upload-pack' to Gitaly for SSH sessions + SSHUploadPack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadPackClient, error) + // To forward 'git receive-pack' to Gitaly for SSH sessions + SSHReceivePack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHReceivePackClient, error) + // To forward 'git upload-archive' to Gitaly for SSH sessions + SSHUploadArchive(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadArchiveClient, error) +} + +type sSHServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSSHServiceClient(cc grpc.ClientConnInterface) SSHServiceClient { + return &sSHServiceClient{cc} +} + +func (c *sSHServiceClient) SSHUploadPack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadPackClient, error) { + stream, err := c.cc.NewStream(ctx, &SSHService_ServiceDesc.Streams[0], "/gitaly.SSHService/SSHUploadPack", opts...) + if err != nil { + return nil, err + } + x := &sSHServiceSSHUploadPackClient{stream} + return x, nil +} + +type SSHService_SSHUploadPackClient interface { + Send(*SSHUploadPackRequest) error + Recv() (*SSHUploadPackResponse, error) + grpc.ClientStream +} + +type sSHServiceSSHUploadPackClient struct { + grpc.ClientStream +} + +func (x *sSHServiceSSHUploadPackClient) Send(m *SSHUploadPackRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *sSHServiceSSHUploadPackClient) Recv() (*SSHUploadPackResponse, error) { + m := new(SSHUploadPackResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *sSHServiceClient) SSHReceivePack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHReceivePackClient, error) { + stream, err := c.cc.NewStream(ctx, &SSHService_ServiceDesc.Streams[1], "/gitaly.SSHService/SSHReceivePack", opts...) + if err != nil { + return nil, err + } + x := &sSHServiceSSHReceivePackClient{stream} + return x, nil +} + +type SSHService_SSHReceivePackClient interface { + Send(*SSHReceivePackRequest) error + Recv() (*SSHReceivePackResponse, error) + grpc.ClientStream +} + +type sSHServiceSSHReceivePackClient struct { + grpc.ClientStream +} + +func (x *sSHServiceSSHReceivePackClient) Send(m *SSHReceivePackRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *sSHServiceSSHReceivePackClient) Recv() (*SSHReceivePackResponse, error) { + m := new(SSHReceivePackResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *sSHServiceClient) SSHUploadArchive(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadArchiveClient, error) { + stream, err := c.cc.NewStream(ctx, &SSHService_ServiceDesc.Streams[2], "/gitaly.SSHService/SSHUploadArchive", opts...) + if err != nil { + return nil, err + } + x := &sSHServiceSSHUploadArchiveClient{stream} + return x, nil +} + +type SSHService_SSHUploadArchiveClient interface { + Send(*SSHUploadArchiveRequest) error + Recv() (*SSHUploadArchiveResponse, error) + grpc.ClientStream +} + +type sSHServiceSSHUploadArchiveClient struct { + grpc.ClientStream +} + +func (x *sSHServiceSSHUploadArchiveClient) Send(m *SSHUploadArchiveRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *sSHServiceSSHUploadArchiveClient) Recv() (*SSHUploadArchiveResponse, error) { + m := new(SSHUploadArchiveResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// SSHServiceServer is the server API for SSHService service. +// All implementations must embed UnimplementedSSHServiceServer +// for forward compatibility +type SSHServiceServer interface { + // To forward 'git upload-pack' to Gitaly for SSH sessions + SSHUploadPack(SSHService_SSHUploadPackServer) error + // To forward 'git receive-pack' to Gitaly for SSH sessions + SSHReceivePack(SSHService_SSHReceivePackServer) error + // To forward 'git upload-archive' to Gitaly for SSH sessions + SSHUploadArchive(SSHService_SSHUploadArchiveServer) error + mustEmbedUnimplementedSSHServiceServer() +} + +// UnimplementedSSHServiceServer must be embedded to have forward compatible implementations. +type UnimplementedSSHServiceServer struct { +} + +func (UnimplementedSSHServiceServer) SSHUploadPack(SSHService_SSHUploadPackServer) error { + return status.Errorf(codes.Unimplemented, "method SSHUploadPack not implemented") +} +func (UnimplementedSSHServiceServer) SSHReceivePack(SSHService_SSHReceivePackServer) error { + return status.Errorf(codes.Unimplemented, "method SSHReceivePack not implemented") +} +func (UnimplementedSSHServiceServer) SSHUploadArchive(SSHService_SSHUploadArchiveServer) error { + return status.Errorf(codes.Unimplemented, "method SSHUploadArchive not implemented") +} +func (UnimplementedSSHServiceServer) mustEmbedUnimplementedSSHServiceServer() {} + +// UnsafeSSHServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SSHServiceServer will +// result in compilation errors. +type UnsafeSSHServiceServer interface { + mustEmbedUnimplementedSSHServiceServer() +} + +func RegisterSSHServiceServer(s grpc.ServiceRegistrar, srv SSHServiceServer) { + s.RegisterService(&SSHService_ServiceDesc, srv) +} + +func _SSHService_SSHUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SSHServiceServer).SSHUploadPack(&sSHServiceSSHUploadPackServer{stream}) +} + +type SSHService_SSHUploadPackServer interface { + Send(*SSHUploadPackResponse) error + Recv() (*SSHUploadPackRequest, error) + grpc.ServerStream +} + +type sSHServiceSSHUploadPackServer struct { + grpc.ServerStream +} + +func (x *sSHServiceSSHUploadPackServer) Send(m *SSHUploadPackResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *sSHServiceSSHUploadPackServer) Recv() (*SSHUploadPackRequest, error) { + m := new(SSHUploadPackRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _SSHService_SSHReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SSHServiceServer).SSHReceivePack(&sSHServiceSSHReceivePackServer{stream}) +} + +type SSHService_SSHReceivePackServer interface { + Send(*SSHReceivePackResponse) error + Recv() (*SSHReceivePackRequest, error) + grpc.ServerStream +} + +type sSHServiceSSHReceivePackServer struct { + grpc.ServerStream +} + +func (x *sSHServiceSSHReceivePackServer) Send(m *SSHReceivePackResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *sSHServiceSSHReceivePackServer) Recv() (*SSHReceivePackRequest, error) { + m := new(SSHReceivePackRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _SSHService_SSHUploadArchive_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SSHServiceServer).SSHUploadArchive(&sSHServiceSSHUploadArchiveServer{stream}) +} + +type SSHService_SSHUploadArchiveServer interface { + Send(*SSHUploadArchiveResponse) error + Recv() (*SSHUploadArchiveRequest, error) + grpc.ServerStream +} + +type sSHServiceSSHUploadArchiveServer struct { + grpc.ServerStream +} + +func (x *sSHServiceSSHUploadArchiveServer) Send(m *SSHUploadArchiveResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *sSHServiceSSHUploadArchiveServer) Recv() (*SSHUploadArchiveRequest, error) { + m := new(SSHUploadArchiveRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// SSHService_ServiceDesc is the grpc.ServiceDesc for SSHService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SSHService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.SSHService", + HandlerType: (*SSHServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "SSHUploadPack", + Handler: _SSHService_SSHUploadPack_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "SSHReceivePack", + Handler: _SSHService_SSHReceivePack_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "SSHUploadArchive", + Handler: _SSHService_SSHUploadArchive_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "ssh.proto", +} diff --git a/proto/go/gitalypb/transaction.pb.go b/proto/go/gitalypb/transaction.pb.go index 158b87883..24e8aaab8 100644 --- a/proto/go/gitalypb/transaction.pb.go +++ b/proto/go/gitalypb/transaction.pb.go @@ -1,28 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: transaction.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // The outcome of the given transaction telling the client whether the // transaction should be committed or rolled back. @@ -34,361 +30,430 @@ const ( VoteTransactionResponse_STOP VoteTransactionResponse_TransactionState = 2 ) -var VoteTransactionResponse_TransactionState_name = map[int32]string{ - 0: "COMMIT", - 1: "ABORT", - 2: "STOP", -} +// Enum value maps for VoteTransactionResponse_TransactionState. +var ( + VoteTransactionResponse_TransactionState_name = map[int32]string{ + 0: "COMMIT", + 1: "ABORT", + 2: "STOP", + } + VoteTransactionResponse_TransactionState_value = map[string]int32{ + "COMMIT": 0, + "ABORT": 1, + "STOP": 2, + } +) -var VoteTransactionResponse_TransactionState_value = map[string]int32{ - "COMMIT": 0, - "ABORT": 1, - "STOP": 2, +func (x VoteTransactionResponse_TransactionState) Enum() *VoteTransactionResponse_TransactionState { + p := new(VoteTransactionResponse_TransactionState) + *p = x + return p } func (x VoteTransactionResponse_TransactionState) String() string { - return proto.EnumName(VoteTransactionResponse_TransactionState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (VoteTransactionResponse_TransactionState) Descriptor() protoreflect.EnumDescriptor { + return file_transaction_proto_enumTypes[0].Descriptor() +} + +func (VoteTransactionResponse_TransactionState) Type() protoreflect.EnumType { + return &file_transaction_proto_enumTypes[0] } +func (x VoteTransactionResponse_TransactionState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use VoteTransactionResponse_TransactionState.Descriptor instead. func (VoteTransactionResponse_TransactionState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2cc4e03d2c28c490, []int{1, 0} + return file_transaction_proto_rawDescGZIP(), []int{1, 0} } type VoteTransactionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // ID of the transaction we're processing TransactionId uint64 `protobuf:"varint,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // Name of the Gitaly node that's voting on a transaction. Node string `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"` // SHA1 of the references that are to be updated - ReferenceUpdatesHash []byte `protobuf:"bytes,4,opt,name=reference_updates_hash,json=referenceUpdatesHash,proto3" json:"reference_updates_hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ReferenceUpdatesHash []byte `protobuf:"bytes,4,opt,name=reference_updates_hash,json=referenceUpdatesHash,proto3" json:"reference_updates_hash,omitempty"` } -func (m *VoteTransactionRequest) Reset() { *m = VoteTransactionRequest{} } -func (m *VoteTransactionRequest) String() string { return proto.CompactTextString(m) } -func (*VoteTransactionRequest) ProtoMessage() {} -func (*VoteTransactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2cc4e03d2c28c490, []int{0} +func (x *VoteTransactionRequest) Reset() { + *x = VoteTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_transaction_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VoteTransactionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VoteTransactionRequest.Unmarshal(m, b) -} -func (m *VoteTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VoteTransactionRequest.Marshal(b, m, deterministic) +func (x *VoteTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VoteTransactionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VoteTransactionRequest.Merge(m, src) -} -func (m *VoteTransactionRequest) XXX_Size() int { - return xxx_messageInfo_VoteTransactionRequest.Size(m) -} -func (m *VoteTransactionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VoteTransactionRequest.DiscardUnknown(m) + +func (*VoteTransactionRequest) ProtoMessage() {} + +func (x *VoteTransactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_transaction_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_VoteTransactionRequest proto.InternalMessageInfo +// Deprecated: Use VoteTransactionRequest.ProtoReflect.Descriptor instead. +func (*VoteTransactionRequest) Descriptor() ([]byte, []int) { + return file_transaction_proto_rawDescGZIP(), []int{0} +} -func (m *VoteTransactionRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *VoteTransactionRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *VoteTransactionRequest) GetTransactionId() uint64 { - if m != nil { - return m.TransactionId +func (x *VoteTransactionRequest) GetTransactionId() uint64 { + if x != nil { + return x.TransactionId } return 0 } -func (m *VoteTransactionRequest) GetNode() string { - if m != nil { - return m.Node +func (x *VoteTransactionRequest) GetNode() string { + if x != nil { + return x.Node } return "" } -func (m *VoteTransactionRequest) GetReferenceUpdatesHash() []byte { - if m != nil { - return m.ReferenceUpdatesHash +func (x *VoteTransactionRequest) GetReferenceUpdatesHash() []byte { + if x != nil { + return x.ReferenceUpdatesHash } return nil } type VoteTransactionResponse struct { - State VoteTransactionResponse_TransactionState `protobuf:"varint,1,opt,name=state,proto3,enum=gitaly.VoteTransactionResponse_TransactionState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VoteTransactionResponse) Reset() { *m = VoteTransactionResponse{} } -func (m *VoteTransactionResponse) String() string { return proto.CompactTextString(m) } -func (*VoteTransactionResponse) ProtoMessage() {} -func (*VoteTransactionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2cc4e03d2c28c490, []int{1} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *VoteTransactionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VoteTransactionResponse.Unmarshal(m, b) + State VoteTransactionResponse_TransactionState `protobuf:"varint,1,opt,name=state,proto3,enum=gitaly.VoteTransactionResponse_TransactionState" json:"state,omitempty"` } -func (m *VoteTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VoteTransactionResponse.Marshal(b, m, deterministic) -} -func (m *VoteTransactionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_VoteTransactionResponse.Merge(m, src) -} -func (m *VoteTransactionResponse) XXX_Size() int { - return xxx_messageInfo_VoteTransactionResponse.Size(m) -} -func (m *VoteTransactionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_VoteTransactionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_VoteTransactionResponse proto.InternalMessageInfo -func (m *VoteTransactionResponse) GetState() VoteTransactionResponse_TransactionState { - if m != nil { - return m.State +func (x *VoteTransactionResponse) Reset() { + *x = VoteTransactionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_transaction_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return VoteTransactionResponse_COMMIT -} - -type StopTransactionRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - // ID of the transaction we're processing - TransactionId uint64 `protobuf:"varint,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *StopTransactionRequest) Reset() { *m = StopTransactionRequest{} } -func (m *StopTransactionRequest) String() string { return proto.CompactTextString(m) } -func (*StopTransactionRequest) ProtoMessage() {} -func (*StopTransactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2cc4e03d2c28c490, []int{2} -} - -func (m *StopTransactionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StopTransactionRequest.Unmarshal(m, b) -} -func (m *StopTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StopTransactionRequest.Marshal(b, m, deterministic) -} -func (m *StopTransactionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StopTransactionRequest.Merge(m, src) -} -func (m *StopTransactionRequest) XXX_Size() int { - return xxx_messageInfo_StopTransactionRequest.Size(m) -} -func (m *StopTransactionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StopTransactionRequest.DiscardUnknown(m) +func (x *VoteTransactionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_StopTransactionRequest proto.InternalMessageInfo +func (*VoteTransactionResponse) ProtoMessage() {} -func (m *StopTransactionRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *VoteTransactionResponse) ProtoReflect() protoreflect.Message { + mi := &file_transaction_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *StopTransactionRequest) GetTransactionId() uint64 { - if m != nil { - return m.TransactionId - } - return 0 +// Deprecated: Use VoteTransactionResponse.ProtoReflect.Descriptor instead. +func (*VoteTransactionResponse) Descriptor() ([]byte, []int) { + return file_transaction_proto_rawDescGZIP(), []int{1} } -type StopTransactionResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *VoteTransactionResponse) GetState() VoteTransactionResponse_TransactionState { + if x != nil { + return x.State + } + return VoteTransactionResponse_COMMIT } -func (m *StopTransactionResponse) Reset() { *m = StopTransactionResponse{} } -func (m *StopTransactionResponse) String() string { return proto.CompactTextString(m) } -func (*StopTransactionResponse) ProtoMessage() {} -func (*StopTransactionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2cc4e03d2c28c490, []int{3} -} +type StopTransactionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StopTransactionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StopTransactionResponse.Unmarshal(m, b) -} -func (m *StopTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StopTransactionResponse.Marshal(b, m, deterministic) -} -func (m *StopTransactionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StopTransactionResponse.Merge(m, src) -} -func (m *StopTransactionResponse) XXX_Size() int { - return xxx_messageInfo_StopTransactionResponse.Size(m) -} -func (m *StopTransactionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StopTransactionResponse.DiscardUnknown(m) + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // ID of the transaction we're processing + TransactionId uint64 `protobuf:"varint,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` } -var xxx_messageInfo_StopTransactionResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("gitaly.VoteTransactionResponse_TransactionState", VoteTransactionResponse_TransactionState_name, VoteTransactionResponse_TransactionState_value) - proto.RegisterType((*VoteTransactionRequest)(nil), "gitaly.VoteTransactionRequest") - proto.RegisterType((*VoteTransactionResponse)(nil), "gitaly.VoteTransactionResponse") - proto.RegisterType((*StopTransactionRequest)(nil), "gitaly.StopTransactionRequest") - proto.RegisterType((*StopTransactionResponse)(nil), "gitaly.StopTransactionResponse") +func (x *StopTransactionRequest) Reset() { + *x = StopTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_transaction_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func init() { proto.RegisterFile("transaction.proto", fileDescriptor_2cc4e03d2c28c490) } - -var fileDescriptor_2cc4e03d2c28c490 = []byte{ - // 389 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x52, 0xc1, 0xae, 0xd2, 0x40, - 0x14, 0x75, 0xb0, 0x34, 0x70, 0x45, 0xac, 0x13, 0x03, 0x95, 0x85, 0x36, 0x4d, 0x4c, 0xba, 0xd0, - 0x56, 0x0b, 0x0b, 0xb7, 0x62, 0x62, 0x64, 0x41, 0x30, 0x43, 0x75, 0xc1, 0x86, 0x0c, 0x74, 0x68, - 0x9b, 0x60, 0xa7, 0xce, 0x0c, 0x26, 0xfc, 0x88, 0xfa, 0x3f, 0x26, 0xc6, 0x6f, 0x7a, 0xab, 0x17, - 0x3a, 0x0f, 0x68, 0xe0, 0x91, 0xb7, 0x7c, 0xbb, 0xdb, 0x73, 0xee, 0x39, 0xbd, 0xe7, 0x64, 0xe0, - 0xa9, 0x12, 0x34, 0x97, 0x74, 0xa9, 0x32, 0x9e, 0xfb, 0x85, 0xe0, 0x8a, 0x63, 0x33, 0xc9, 0x14, - 0x5d, 0x6f, 0x7b, 0xb0, 0xce, 0x72, 0xa5, 0xb1, 0x5e, 0x4b, 0xa6, 0x54, 0xb0, 0x58, 0x7f, 0xb9, - 0x7f, 0x11, 0x74, 0xbe, 0x71, 0xc5, 0xa2, 0xa3, 0x96, 0xb0, 0x1f, 0x1b, 0x26, 0x15, 0x7e, 0x0f, - 0x20, 0x58, 0xc1, 0x65, 0xa6, 0xb8, 0xd8, 0xda, 0xc8, 0x41, 0xde, 0xa3, 0x10, 0xfb, 0xda, 0xd1, - 0x27, 0x07, 0x66, 0x68, 0xfc, 0xf9, 0xf7, 0x1a, 0x91, 0xca, 0x2e, 0x7e, 0x05, 0xed, 0xca, 0x2d, - 0xf3, 0x2c, 0xb6, 0x6b, 0x0e, 0xf2, 0x0c, 0xf2, 0xb8, 0x82, 0x8e, 0x62, 0x8c, 0xc1, 0xc8, 0x79, - 0xcc, 0xec, 0x87, 0x0e, 0xf2, 0x9a, 0xa4, 0x9c, 0xf1, 0x00, 0x3a, 0x82, 0xad, 0x98, 0x60, 0xf9, - 0x92, 0xcd, 0x37, 0x45, 0x4c, 0x15, 0x93, 0xf3, 0x94, 0xca, 0xd4, 0x36, 0x1c, 0xe4, 0xb5, 0xc8, - 0xb3, 0x03, 0xfb, 0x55, 0x93, 0x9f, 0xa9, 0x4c, 0xdd, 0x5f, 0x08, 0xba, 0x67, 0x29, 0x64, 0xc1, - 0x73, 0xc9, 0xf0, 0x27, 0xa8, 0x4b, 0x45, 0x15, 0x2b, 0x13, 0xb4, 0xc3, 0xb7, 0xfb, 0x04, 0x17, - 0xf6, 0xfd, 0x0a, 0x36, 0xdd, 0xe9, 0x88, 0x96, 0xbb, 0x7d, 0xb0, 0x4e, 0x29, 0x0c, 0x60, 0x7e, - 0x9c, 0x8c, 0xc7, 0xa3, 0xc8, 0x7a, 0x80, 0x9b, 0x50, 0xff, 0x30, 0x9c, 0x90, 0xc8, 0x42, 0xb8, - 0x01, 0xc6, 0x34, 0x9a, 0x7c, 0xb1, 0x6a, 0xee, 0x16, 0x3a, 0x53, 0xc5, 0x8b, 0x7b, 0x68, 0xd7, - 0x7d, 0x0e, 0xdd, 0xb3, 0x5f, 0xeb, 0x88, 0xe1, 0x7f, 0x04, 0x6d, 0xc2, 0x56, 0x15, 0x0a, 0xcf, - 0xe0, 0xc9, 0x49, 0x21, 0xf8, 0xc5, 0xc5, 0xa6, 0xca, 0x04, 0xbd, 0x97, 0x77, 0x34, 0xe9, 0x9a, - 0x57, 0xbf, 0xbd, 0x5a, 0x03, 0xed, 0xbc, 0x4f, 0x2e, 0x39, 0x7a, 0xdf, 0xde, 0xce, 0xd1, 0xfb, - 0x42, 0x84, 0xbd, 0xf7, 0x70, 0x30, 0x0b, 0x93, 0x4c, 0xad, 0xe9, 0xc2, 0x5f, 0xf2, 0xef, 0x81, - 0x1e, 0xdf, 0x70, 0x91, 0x04, 0x5a, 0x1f, 0xfc, 0x7c, 0x37, 0x08, 0xca, 0x97, 0x1e, 0x24, 0xfc, - 0x06, 0x2b, 0x16, 0x0b, 0xb3, 0x84, 0xfa, 0xd7, 0x01, 0x00, 0x00, 0xff, 0xff, 0x02, 0x85, 0x5c, - 0xce, 0x33, 0x03, 0x00, 0x00, +func (x *StopTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +func (*StopTransactionRequest) ProtoMessage() {} -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// RefTransactionClient is the client API for RefTransaction service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RefTransactionClient interface { - VoteTransaction(ctx context.Context, in *VoteTransactionRequest, opts ...grpc.CallOption) (*VoteTransactionResponse, error) - StopTransaction(ctx context.Context, in *StopTransactionRequest, opts ...grpc.CallOption) (*StopTransactionResponse, error) -} - -type refTransactionClient struct { - cc *grpc.ClientConn +func (x *StopTransactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_transaction_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func NewRefTransactionClient(cc *grpc.ClientConn) RefTransactionClient { - return &refTransactionClient{cc} +// Deprecated: Use StopTransactionRequest.ProtoReflect.Descriptor instead. +func (*StopTransactionRequest) Descriptor() ([]byte, []int) { + return file_transaction_proto_rawDescGZIP(), []int{2} } -func (c *refTransactionClient) VoteTransaction(ctx context.Context, in *VoteTransactionRequest, opts ...grpc.CallOption) (*VoteTransactionResponse, error) { - out := new(VoteTransactionResponse) - err := c.cc.Invoke(ctx, "/gitaly.RefTransaction/VoteTransaction", in, out, opts...) - if err != nil { - return nil, err +func (x *StopTransactionRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } - return out, nil + return nil } -func (c *refTransactionClient) StopTransaction(ctx context.Context, in *StopTransactionRequest, opts ...grpc.CallOption) (*StopTransactionResponse, error) { - out := new(StopTransactionResponse) - err := c.cc.Invoke(ctx, "/gitaly.RefTransaction/StopTransaction", in, out, opts...) - if err != nil { - return nil, err +func (x *StopTransactionRequest) GetTransactionId() uint64 { + if x != nil { + return x.TransactionId } - return out, nil + return 0 } -// RefTransactionServer is the server API for RefTransaction service. -type RefTransactionServer interface { - VoteTransaction(context.Context, *VoteTransactionRequest) (*VoteTransactionResponse, error) - StopTransaction(context.Context, *StopTransactionRequest) (*StopTransactionResponse, error) +type StopTransactionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -// UnimplementedRefTransactionServer can be embedded to have forward compatible implementations. -type UnimplementedRefTransactionServer struct { +func (x *StopTransactionResponse) Reset() { + *x = StopTransactionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_transaction_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (*UnimplementedRefTransactionServer) VoteTransaction(ctx context.Context, req *VoteTransactionRequest) (*VoteTransactionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VoteTransaction not implemented") -} -func (*UnimplementedRefTransactionServer) StopTransaction(ctx context.Context, req *StopTransactionRequest) (*StopTransactionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StopTransaction not implemented") +func (x *StopTransactionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func RegisterRefTransactionServer(s *grpc.Server, srv RefTransactionServer) { - s.RegisterService(&_RefTransaction_serviceDesc, srv) -} +func (*StopTransactionResponse) ProtoMessage() {} -func _RefTransaction_VoteTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VoteTransactionRequest) - if err := dec(in); err != nil { - return nil, err +func (x *StopTransactionResponse) ProtoReflect() protoreflect.Message { + mi := &file_transaction_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if interceptor == nil { - return srv.(RefTransactionServer).VoteTransaction(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefTransaction/VoteTransaction", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefTransactionServer).VoteTransaction(ctx, req.(*VoteTransactionRequest)) - } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _RefTransaction_StopTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StopTransactionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefTransactionServer).StopTransaction(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefTransaction/StopTransaction", +// Deprecated: Use StopTransactionResponse.ProtoReflect.Descriptor instead. +func (*StopTransactionResponse) Descriptor() ([]byte, []int) { + return file_transaction_proto_rawDescGZIP(), []int{3} +} + +var File_transaction_proto protoreflect.FileDescriptor + +var file_transaction_proto_rawDesc = []byte{ + 0x0a, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3, 0x01, 0x0a, 0x16, 0x56, 0x6f, 0x74, 0x65, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x48, 0x61, 0x73, 0x68, 0x22, 0x96, 0x01, 0x0a, 0x17, + 0x56, 0x6f, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, + 0x56, 0x6f, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, + 0x33, 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x00, 0x12, + 0x09, 0x0a, 0x05, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x54, + 0x4f, 0x50, 0x10, 0x02, 0x22, 0x79, 0x0a, 0x16, 0x53, 0x74, 0x6f, 0x70, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, + 0x19, 0x0a, 0x17, 0x53, 0x74, 0x6f, 0x70, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc8, 0x01, 0x0a, 0x0e, 0x52, + 0x65, 0x66, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5a, 0x0a, + 0x0f, 0x56, 0x6f, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5a, 0x0a, 0x0f, 0x53, 0x74, 0x6f, + 0x70, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, + 0x97, 0x28, 0x02, 0x08, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_transaction_proto_rawDescOnce sync.Once + file_transaction_proto_rawDescData = file_transaction_proto_rawDesc +) + +func file_transaction_proto_rawDescGZIP() []byte { + file_transaction_proto_rawDescOnce.Do(func() { + file_transaction_proto_rawDescData = protoimpl.X.CompressGZIP(file_transaction_proto_rawDescData) + }) + return file_transaction_proto_rawDescData +} + +var file_transaction_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_transaction_proto_goTypes = []interface{}{ + (VoteTransactionResponse_TransactionState)(0), // 0: gitaly.VoteTransactionResponse.TransactionState + (*VoteTransactionRequest)(nil), // 1: gitaly.VoteTransactionRequest + (*VoteTransactionResponse)(nil), // 2: gitaly.VoteTransactionResponse + (*StopTransactionRequest)(nil), // 3: gitaly.StopTransactionRequest + (*StopTransactionResponse)(nil), // 4: gitaly.StopTransactionResponse + (*Repository)(nil), // 5: gitaly.Repository +} +var file_transaction_proto_depIdxs = []int32{ + 5, // 0: gitaly.VoteTransactionRequest.repository:type_name -> gitaly.Repository + 0, // 1: gitaly.VoteTransactionResponse.state:type_name -> gitaly.VoteTransactionResponse.TransactionState + 5, // 2: gitaly.StopTransactionRequest.repository:type_name -> gitaly.Repository + 1, // 3: gitaly.RefTransaction.VoteTransaction:input_type -> gitaly.VoteTransactionRequest + 3, // 4: gitaly.RefTransaction.StopTransaction:input_type -> gitaly.StopTransactionRequest + 2, // 5: gitaly.RefTransaction.VoteTransaction:output_type -> gitaly.VoteTransactionResponse + 4, // 6: gitaly.RefTransaction.StopTransaction:output_type -> gitaly.StopTransactionResponse + 5, // [5:7] is the sub-list for method output_type + 3, // [3:5] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_transaction_proto_init() } +func file_transaction_proto_init() { + if File_transaction_proto != nil { + return } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefTransactionServer).StopTransaction(ctx, req.(*StopTransactionRequest)) + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_transaction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VoteTransactionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transaction_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VoteTransactionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transaction_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StopTransactionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transaction_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StopTransactionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return interceptor(ctx, in, info, handler) -} - -var _RefTransaction_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.RefTransaction", - HandlerType: (*RefTransactionServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "VoteTransaction", - Handler: _RefTransaction_VoteTransaction_Handler, - }, - { - MethodName: "StopTransaction", - Handler: _RefTransaction_StopTransaction_Handler, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_transaction_proto_rawDesc, + NumEnums: 1, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "transaction.proto", + GoTypes: file_transaction_proto_goTypes, + DependencyIndexes: file_transaction_proto_depIdxs, + EnumInfos: file_transaction_proto_enumTypes, + MessageInfos: file_transaction_proto_msgTypes, + }.Build() + File_transaction_proto = out.File + file_transaction_proto_rawDesc = nil + file_transaction_proto_goTypes = nil + file_transaction_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/transaction_grpc.pb.go b/proto/go/gitalypb/transaction_grpc.pb.go new file mode 100644 index 000000000..e0bff1022 --- /dev/null +++ b/proto/go/gitalypb/transaction_grpc.pb.go @@ -0,0 +1,137 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// RefTransactionClient is the client API for RefTransaction service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type RefTransactionClient interface { + VoteTransaction(ctx context.Context, in *VoteTransactionRequest, opts ...grpc.CallOption) (*VoteTransactionResponse, error) + StopTransaction(ctx context.Context, in *StopTransactionRequest, opts ...grpc.CallOption) (*StopTransactionResponse, error) +} + +type refTransactionClient struct { + cc grpc.ClientConnInterface +} + +func NewRefTransactionClient(cc grpc.ClientConnInterface) RefTransactionClient { + return &refTransactionClient{cc} +} + +func (c *refTransactionClient) VoteTransaction(ctx context.Context, in *VoteTransactionRequest, opts ...grpc.CallOption) (*VoteTransactionResponse, error) { + out := new(VoteTransactionResponse) + err := c.cc.Invoke(ctx, "/gitaly.RefTransaction/VoteTransaction", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refTransactionClient) StopTransaction(ctx context.Context, in *StopTransactionRequest, opts ...grpc.CallOption) (*StopTransactionResponse, error) { + out := new(StopTransactionResponse) + err := c.cc.Invoke(ctx, "/gitaly.RefTransaction/StopTransaction", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RefTransactionServer is the server API for RefTransaction service. +// All implementations must embed UnimplementedRefTransactionServer +// for forward compatibility +type RefTransactionServer interface { + VoteTransaction(context.Context, *VoteTransactionRequest) (*VoteTransactionResponse, error) + StopTransaction(context.Context, *StopTransactionRequest) (*StopTransactionResponse, error) + mustEmbedUnimplementedRefTransactionServer() +} + +// UnimplementedRefTransactionServer must be embedded to have forward compatible implementations. +type UnimplementedRefTransactionServer struct { +} + +func (UnimplementedRefTransactionServer) VoteTransaction(context.Context, *VoteTransactionRequest) (*VoteTransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VoteTransaction not implemented") +} +func (UnimplementedRefTransactionServer) StopTransaction(context.Context, *StopTransactionRequest) (*StopTransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StopTransaction not implemented") +} +func (UnimplementedRefTransactionServer) mustEmbedUnimplementedRefTransactionServer() {} + +// UnsafeRefTransactionServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to RefTransactionServer will +// result in compilation errors. +type UnsafeRefTransactionServer interface { + mustEmbedUnimplementedRefTransactionServer() +} + +func RegisterRefTransactionServer(s grpc.ServiceRegistrar, srv RefTransactionServer) { + s.RegisterService(&RefTransaction_ServiceDesc, srv) +} + +func _RefTransaction_VoteTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VoteTransactionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefTransactionServer).VoteTransaction(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefTransaction/VoteTransaction", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefTransactionServer).VoteTransaction(ctx, req.(*VoteTransactionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefTransaction_StopTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StopTransactionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefTransactionServer).StopTransaction(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefTransaction/StopTransaction", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefTransactionServer).StopTransaction(ctx, req.(*StopTransactionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// RefTransaction_ServiceDesc is the grpc.ServiceDesc for RefTransaction service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var RefTransaction_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.RefTransaction", + HandlerType: (*RefTransactionServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "VoteTransaction", + Handler: _RefTransaction_VoteTransaction_Handler, + }, + { + MethodName: "StopTransaction", + Handler: _RefTransaction_StopTransaction_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "transaction.proto", +} diff --git a/proto/go/gitalypb/wiki.pb.go b/proto/go/gitalypb/wiki.pb.go index 16359a9c1..07bfab6a4 100644 --- a/proto/go/gitalypb/wiki.pb.go +++ b/proto/go/gitalypb/wiki.pb.go @@ -1,28 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: wiki.proto package gitalypb import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type WikiGetAllPagesRequest_SortBy int32 @@ -31,22 +27,43 @@ const ( WikiGetAllPagesRequest_CREATED_AT WikiGetAllPagesRequest_SortBy = 1 ) -var WikiGetAllPagesRequest_SortBy_name = map[int32]string{ - 0: "TITLE", - 1: "CREATED_AT", -} +// Enum value maps for WikiGetAllPagesRequest_SortBy. +var ( + WikiGetAllPagesRequest_SortBy_name = map[int32]string{ + 0: "TITLE", + 1: "CREATED_AT", + } + WikiGetAllPagesRequest_SortBy_value = map[string]int32{ + "TITLE": 0, + "CREATED_AT": 1, + } +) -var WikiGetAllPagesRequest_SortBy_value = map[string]int32{ - "TITLE": 0, - "CREATED_AT": 1, +func (x WikiGetAllPagesRequest_SortBy) Enum() *WikiGetAllPagesRequest_SortBy { + p := new(WikiGetAllPagesRequest_SortBy) + *p = x + return p } func (x WikiGetAllPagesRequest_SortBy) String() string { - return proto.EnumName(WikiGetAllPagesRequest_SortBy_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (WikiGetAllPagesRequest_SortBy) Descriptor() protoreflect.EnumDescriptor { + return file_wiki_proto_enumTypes[0].Descriptor() } +func (WikiGetAllPagesRequest_SortBy) Type() protoreflect.EnumType { + return &file_wiki_proto_enumTypes[0] +} + +func (x WikiGetAllPagesRequest_SortBy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use WikiGetAllPagesRequest_SortBy.Descriptor instead. func (WikiGetAllPagesRequest_SortBy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{9, 0} + return file_wiki_proto_rawDescGZIP(), []int{9, 0} } type WikiListPagesRequest_SortBy int32 @@ -56,143 +73,184 @@ const ( WikiListPagesRequest_CREATED_AT WikiListPagesRequest_SortBy = 1 ) -var WikiListPagesRequest_SortBy_name = map[int32]string{ - 0: "TITLE", - 1: "CREATED_AT", -} +// Enum value maps for WikiListPagesRequest_SortBy. +var ( + WikiListPagesRequest_SortBy_name = map[int32]string{ + 0: "TITLE", + 1: "CREATED_AT", + } + WikiListPagesRequest_SortBy_value = map[string]int32{ + "TITLE": 0, + "CREATED_AT": 1, + } +) -var WikiListPagesRequest_SortBy_value = map[string]int32{ - "TITLE": 0, - "CREATED_AT": 1, +func (x WikiListPagesRequest_SortBy) Enum() *WikiListPagesRequest_SortBy { + p := new(WikiListPagesRequest_SortBy) + *p = x + return p } func (x WikiListPagesRequest_SortBy) String() string { - return proto.EnumName(WikiListPagesRequest_SortBy_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (WikiListPagesRequest_SortBy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{11, 0} +func (WikiListPagesRequest_SortBy) Descriptor() protoreflect.EnumDescriptor { + return file_wiki_proto_enumTypes[1].Descriptor() } -type WikiCommitDetails struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - UserName []byte `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WikiCommitDetails) Reset() { *m = WikiCommitDetails{} } -func (m *WikiCommitDetails) String() string { return proto.CompactTextString(m) } -func (*WikiCommitDetails) ProtoMessage() {} -func (*WikiCommitDetails) Descriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{0} +func (WikiListPagesRequest_SortBy) Type() protoreflect.EnumType { + return &file_wiki_proto_enumTypes[1] } -func (m *WikiCommitDetails) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WikiCommitDetails.Unmarshal(m, b) +func (x WikiListPagesRequest_SortBy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *WikiCommitDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WikiCommitDetails.Marshal(b, m, deterministic) + +// Deprecated: Use WikiListPagesRequest_SortBy.Descriptor instead. +func (WikiListPagesRequest_SortBy) EnumDescriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{11, 0} } -func (m *WikiCommitDetails) XXX_Merge(src proto.Message) { - xxx_messageInfo_WikiCommitDetails.Merge(m, src) + +type WikiCommitDetails struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + UserName []byte `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` +} + +func (x *WikiCommitDetails) Reset() { + *x = WikiCommitDetails{} + if protoimpl.UnsafeEnabled { + mi := &file_wiki_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WikiCommitDetails) XXX_Size() int { - return xxx_messageInfo_WikiCommitDetails.Size(m) + +func (x *WikiCommitDetails) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WikiCommitDetails) XXX_DiscardUnknown() { - xxx_messageInfo_WikiCommitDetails.DiscardUnknown(m) + +func (*WikiCommitDetails) ProtoMessage() {} + +func (x *WikiCommitDetails) ProtoReflect() protoreflect.Message { + mi := &file_wiki_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WikiCommitDetails proto.InternalMessageInfo +// Deprecated: Use WikiCommitDetails.ProtoReflect.Descriptor instead. +func (*WikiCommitDetails) Descriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{0} +} -func (m *WikiCommitDetails) GetName() []byte { - if m != nil { - return m.Name +func (x *WikiCommitDetails) GetName() []byte { + if x != nil { + return x.Name } return nil } -func (m *WikiCommitDetails) GetEmail() []byte { - if m != nil { - return m.Email +func (x *WikiCommitDetails) GetEmail() []byte { + if x != nil { + return x.Email } return nil } -func (m *WikiCommitDetails) GetMessage() []byte { - if m != nil { - return m.Message +func (x *WikiCommitDetails) GetMessage() []byte { + if x != nil { + return x.Message } return nil } -func (m *WikiCommitDetails) GetUserId() int32 { - if m != nil { - return m.UserId +func (x *WikiCommitDetails) GetUserId() int32 { + if x != nil { + return x.UserId } return 0 } -func (m *WikiCommitDetails) GetUserName() []byte { - if m != nil { - return m.UserName +func (x *WikiCommitDetails) GetUserName() []byte { + if x != nil { + return x.UserName } return nil } type WikiPageVersion struct { - Commit *GitCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` - Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WikiPageVersion) Reset() { *m = WikiPageVersion{} } -func (m *WikiPageVersion) String() string { return proto.CompactTextString(m) } -func (*WikiPageVersion) ProtoMessage() {} -func (*WikiPageVersion) Descriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{1} + Commit *GitCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` + Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` } -func (m *WikiPageVersion) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WikiPageVersion.Unmarshal(m, b) -} -func (m *WikiPageVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WikiPageVersion.Marshal(b, m, deterministic) -} -func (m *WikiPageVersion) XXX_Merge(src proto.Message) { - xxx_messageInfo_WikiPageVersion.Merge(m, src) +func (x *WikiPageVersion) Reset() { + *x = WikiPageVersion{} + if protoimpl.UnsafeEnabled { + mi := &file_wiki_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WikiPageVersion) XXX_Size() int { - return xxx_messageInfo_WikiPageVersion.Size(m) + +func (x *WikiPageVersion) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WikiPageVersion) XXX_DiscardUnknown() { - xxx_messageInfo_WikiPageVersion.DiscardUnknown(m) + +func (*WikiPageVersion) ProtoMessage() {} + +func (x *WikiPageVersion) ProtoReflect() protoreflect.Message { + mi := &file_wiki_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WikiPageVersion proto.InternalMessageInfo +// Deprecated: Use WikiPageVersion.ProtoReflect.Descriptor instead. +func (*WikiPageVersion) Descriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{1} +} -func (m *WikiPageVersion) GetCommit() *GitCommit { - if m != nil { - return m.Commit +func (x *WikiPageVersion) GetCommit() *GitCommit { + if x != nil { + return x.Commit } return nil } -func (m *WikiPageVersion) GetFormat() string { - if m != nil { - return m.Format +func (x *WikiPageVersion) GetFormat() string { + if x != nil { + return x.Format } return "" } type WikiPage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // These fields are only present in the first message of a WikiPage stream Version *WikiPageVersion `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` @@ -202,207 +260,231 @@ type WikiPage struct { Name []byte `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` Historical bool `protobuf:"varint,7,opt,name=historical,proto3" json:"historical,omitempty"` // This field is present in all messages of a WikiPage stream - RawData []byte `protobuf:"bytes,8,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RawData []byte `protobuf:"bytes,8,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"` } -func (m *WikiPage) Reset() { *m = WikiPage{} } -func (m *WikiPage) String() string { return proto.CompactTextString(m) } -func (*WikiPage) ProtoMessage() {} -func (*WikiPage) Descriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{2} +func (x *WikiPage) Reset() { + *x = WikiPage{} + if protoimpl.UnsafeEnabled { + mi := &file_wiki_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WikiPage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WikiPage.Unmarshal(m, b) -} -func (m *WikiPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WikiPage.Marshal(b, m, deterministic) -} -func (m *WikiPage) XXX_Merge(src proto.Message) { - xxx_messageInfo_WikiPage.Merge(m, src) +func (x *WikiPage) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WikiPage) XXX_Size() int { - return xxx_messageInfo_WikiPage.Size(m) -} -func (m *WikiPage) XXX_DiscardUnknown() { - xxx_messageInfo_WikiPage.DiscardUnknown(m) + +func (*WikiPage) ProtoMessage() {} + +func (x *WikiPage) ProtoReflect() protoreflect.Message { + mi := &file_wiki_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WikiPage proto.InternalMessageInfo +// Deprecated: Use WikiPage.ProtoReflect.Descriptor instead. +func (*WikiPage) Descriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{2} +} -func (m *WikiPage) GetVersion() *WikiPageVersion { - if m != nil { - return m.Version +func (x *WikiPage) GetVersion() *WikiPageVersion { + if x != nil { + return x.Version } return nil } -func (m *WikiPage) GetFormat() string { - if m != nil { - return m.Format +func (x *WikiPage) GetFormat() string { + if x != nil { + return x.Format } return "" } -func (m *WikiPage) GetTitle() []byte { - if m != nil { - return m.Title +func (x *WikiPage) GetTitle() []byte { + if x != nil { + return x.Title } return nil } -func (m *WikiPage) GetUrlPath() string { - if m != nil { - return m.UrlPath +func (x *WikiPage) GetUrlPath() string { + if x != nil { + return x.UrlPath } return "" } -func (m *WikiPage) GetPath() []byte { - if m != nil { - return m.Path +func (x *WikiPage) GetPath() []byte { + if x != nil { + return x.Path } return nil } -func (m *WikiPage) GetName() []byte { - if m != nil { - return m.Name +func (x *WikiPage) GetName() []byte { + if x != nil { + return x.Name } return nil } -func (m *WikiPage) GetHistorical() bool { - if m != nil { - return m.Historical +func (x *WikiPage) GetHistorical() bool { + if x != nil { + return x.Historical } return false } -func (m *WikiPage) GetRawData() []byte { - if m != nil { - return m.RawData +func (x *WikiPage) GetRawData() []byte { + if x != nil { + return x.RawData } return nil } // This message is sent in a stream because the 'content' field may be large. type WikiWritePageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // These following fields are only present in the first message. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` CommitDetails *WikiCommitDetails `protobuf:"bytes,4,opt,name=commit_details,json=commitDetails,proto3" json:"commit_details,omitempty"` // This field is present in all messages. - Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` } -func (m *WikiWritePageRequest) Reset() { *m = WikiWritePageRequest{} } -func (m *WikiWritePageRequest) String() string { return proto.CompactTextString(m) } -func (*WikiWritePageRequest) ProtoMessage() {} -func (*WikiWritePageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{3} +func (x *WikiWritePageRequest) Reset() { + *x = WikiWritePageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wiki_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WikiWritePageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WikiWritePageRequest.Unmarshal(m, b) +func (x *WikiWritePageRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WikiWritePageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WikiWritePageRequest.Marshal(b, m, deterministic) -} -func (m *WikiWritePageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WikiWritePageRequest.Merge(m, src) -} -func (m *WikiWritePageRequest) XXX_Size() int { - return xxx_messageInfo_WikiWritePageRequest.Size(m) -} -func (m *WikiWritePageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WikiWritePageRequest.DiscardUnknown(m) + +func (*WikiWritePageRequest) ProtoMessage() {} + +func (x *WikiWritePageRequest) ProtoReflect() protoreflect.Message { + mi := &file_wiki_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WikiWritePageRequest proto.InternalMessageInfo +// Deprecated: Use WikiWritePageRequest.ProtoReflect.Descriptor instead. +func (*WikiWritePageRequest) Descriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{3} +} -func (m *WikiWritePageRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *WikiWritePageRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *WikiWritePageRequest) GetName() []byte { - if m != nil { - return m.Name +func (x *WikiWritePageRequest) GetName() []byte { + if x != nil { + return x.Name } return nil } -func (m *WikiWritePageRequest) GetFormat() string { - if m != nil { - return m.Format +func (x *WikiWritePageRequest) GetFormat() string { + if x != nil { + return x.Format } return "" } -func (m *WikiWritePageRequest) GetCommitDetails() *WikiCommitDetails { - if m != nil { - return m.CommitDetails +func (x *WikiWritePageRequest) GetCommitDetails() *WikiCommitDetails { + if x != nil { + return x.CommitDetails } return nil } -func (m *WikiWritePageRequest) GetContent() []byte { - if m != nil { - return m.Content +func (x *WikiWritePageRequest) GetContent() []byte { + if x != nil { + return x.Content } return nil } type WikiWritePageResponse struct { - DuplicateError []byte `protobuf:"bytes,1,opt,name=duplicate_error,json=duplicateError,proto3" json:"duplicate_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WikiWritePageResponse) Reset() { *m = WikiWritePageResponse{} } -func (m *WikiWritePageResponse) String() string { return proto.CompactTextString(m) } -func (*WikiWritePageResponse) ProtoMessage() {} -func (*WikiWritePageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{4} + DuplicateError []byte `protobuf:"bytes,1,opt,name=duplicate_error,json=duplicateError,proto3" json:"duplicate_error,omitempty"` } -func (m *WikiWritePageResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WikiWritePageResponse.Unmarshal(m, b) -} -func (m *WikiWritePageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WikiWritePageResponse.Marshal(b, m, deterministic) -} -func (m *WikiWritePageResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WikiWritePageResponse.Merge(m, src) +func (x *WikiWritePageResponse) Reset() { + *x = WikiWritePageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wiki_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WikiWritePageResponse) XXX_Size() int { - return xxx_messageInfo_WikiWritePageResponse.Size(m) + +func (x *WikiWritePageResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WikiWritePageResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WikiWritePageResponse.DiscardUnknown(m) + +func (*WikiWritePageResponse) ProtoMessage() {} + +func (x *WikiWritePageResponse) ProtoReflect() protoreflect.Message { + mi := &file_wiki_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WikiWritePageResponse proto.InternalMessageInfo +// Deprecated: Use WikiWritePageResponse.ProtoReflect.Descriptor instead. +func (*WikiWritePageResponse) Descriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{4} +} -func (m *WikiWritePageResponse) GetDuplicateError() []byte { - if m != nil { - return m.DuplicateError +func (x *WikiWritePageResponse) GetDuplicateError() []byte { + if x != nil { + return x.DuplicateError } return nil } type WikiUpdatePageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // There fields are only present in the first message of the stream Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"` @@ -410,899 +492,916 @@ type WikiUpdatePageRequest struct { Format string `protobuf:"bytes,4,opt,name=format,proto3" json:"format,omitempty"` CommitDetails *WikiCommitDetails `protobuf:"bytes,5,opt,name=commit_details,json=commitDetails,proto3" json:"commit_details,omitempty"` // This field is present in all messages - Content []byte `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Content []byte `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` } -func (m *WikiUpdatePageRequest) Reset() { *m = WikiUpdatePageRequest{} } -func (m *WikiUpdatePageRequest) String() string { return proto.CompactTextString(m) } -func (*WikiUpdatePageRequest) ProtoMessage() {} -func (*WikiUpdatePageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{5} +func (x *WikiUpdatePageRequest) Reset() { + *x = WikiUpdatePageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wiki_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WikiUpdatePageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WikiUpdatePageRequest.Unmarshal(m, b) -} -func (m *WikiUpdatePageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WikiUpdatePageRequest.Marshal(b, m, deterministic) -} -func (m *WikiUpdatePageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WikiUpdatePageRequest.Merge(m, src) +func (x *WikiUpdatePageRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WikiUpdatePageRequest) XXX_Size() int { - return xxx_messageInfo_WikiUpdatePageRequest.Size(m) -} -func (m *WikiUpdatePageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WikiUpdatePageRequest.DiscardUnknown(m) + +func (*WikiUpdatePageRequest) ProtoMessage() {} + +func (x *WikiUpdatePageRequest) ProtoReflect() protoreflect.Message { + mi := &file_wiki_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WikiUpdatePageRequest proto.InternalMessageInfo +// Deprecated: Use WikiUpdatePageRequest.ProtoReflect.Descriptor instead. +func (*WikiUpdatePageRequest) Descriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{5} +} -func (m *WikiUpdatePageRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *WikiUpdatePageRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *WikiUpdatePageRequest) GetPagePath() []byte { - if m != nil { - return m.PagePath +func (x *WikiUpdatePageRequest) GetPagePath() []byte { + if x != nil { + return x.PagePath } return nil } -func (m *WikiUpdatePageRequest) GetTitle() []byte { - if m != nil { - return m.Title +func (x *WikiUpdatePageRequest) GetTitle() []byte { + if x != nil { + return x.Title } return nil } -func (m *WikiUpdatePageRequest) GetFormat() string { - if m != nil { - return m.Format +func (x *WikiUpdatePageRequest) GetFormat() string { + if x != nil { + return x.Format } return "" } -func (m *WikiUpdatePageRequest) GetCommitDetails() *WikiCommitDetails { - if m != nil { - return m.CommitDetails +func (x *WikiUpdatePageRequest) GetCommitDetails() *WikiCommitDetails { + if x != nil { + return x.CommitDetails } return nil } -func (m *WikiUpdatePageRequest) GetContent() []byte { - if m != nil { - return m.Content +func (x *WikiUpdatePageRequest) GetContent() []byte { + if x != nil { + return x.Content } return nil } type WikiUpdatePageResponse struct { - Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WikiUpdatePageResponse) Reset() { *m = WikiUpdatePageResponse{} } -func (m *WikiUpdatePageResponse) String() string { return proto.CompactTextString(m) } -func (*WikiUpdatePageResponse) ProtoMessage() {} -func (*WikiUpdatePageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{6} -} - -func (m *WikiUpdatePageResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WikiUpdatePageResponse.Unmarshal(m, b) -} -func (m *WikiUpdatePageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WikiUpdatePageResponse.Marshal(b, m, deterministic) + Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } -func (m *WikiUpdatePageResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WikiUpdatePageResponse.Merge(m, src) -} -func (m *WikiUpdatePageResponse) XXX_Size() int { - return xxx_messageInfo_WikiUpdatePageResponse.Size(m) -} -func (m *WikiUpdatePageResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WikiUpdatePageResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WikiUpdatePageResponse proto.InternalMessageInfo -func (m *WikiUpdatePageResponse) GetError() []byte { - if m != nil { - return m.Error +func (x *WikiUpdatePageResponse) Reset() { + *x = WikiUpdatePageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wiki_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil -} - -type WikiFindPageRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Title []byte `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` - Directory []byte `protobuf:"bytes,4,opt,name=directory,proto3" json:"directory,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WikiFindPageRequest) Reset() { *m = WikiFindPageRequest{} } -func (m *WikiFindPageRequest) String() string { return proto.CompactTextString(m) } -func (*WikiFindPageRequest) ProtoMessage() {} -func (*WikiFindPageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{7} } -func (m *WikiFindPageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WikiFindPageRequest.Unmarshal(m, b) -} -func (m *WikiFindPageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WikiFindPageRequest.Marshal(b, m, deterministic) -} -func (m *WikiFindPageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WikiFindPageRequest.Merge(m, src) -} -func (m *WikiFindPageRequest) XXX_Size() int { - return xxx_messageInfo_WikiFindPageRequest.Size(m) -} -func (m *WikiFindPageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WikiFindPageRequest.DiscardUnknown(m) +func (x *WikiUpdatePageResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_WikiFindPageRequest proto.InternalMessageInfo +func (*WikiUpdatePageResponse) ProtoMessage() {} -func (m *WikiFindPageRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *WikiUpdatePageResponse) ProtoReflect() protoreflect.Message { + mi := &file_wiki_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *WikiFindPageRequest) GetTitle() []byte { - if m != nil { - return m.Title - } - return nil +// Deprecated: Use WikiUpdatePageResponse.ProtoReflect.Descriptor instead. +func (*WikiUpdatePageResponse) Descriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{6} } -func (m *WikiFindPageRequest) GetRevision() []byte { - if m != nil { - return m.Revision +func (x *WikiUpdatePageResponse) GetError() []byte { + if x != nil { + return x.Error } return nil } -func (m *WikiFindPageRequest) GetDirectory() []byte { - if m != nil { - return m.Directory - } - return nil -} +type WikiFindPageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// WikiFindPageResponse is a stream because we need multiple WikiPage -// messages to send the raw_data field. -type WikiFindPageResponse struct { - Page *WikiPage `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + Title []byte `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` + Directory []byte `protobuf:"bytes,4,opt,name=directory,proto3" json:"directory,omitempty"` } -func (m *WikiFindPageResponse) Reset() { *m = WikiFindPageResponse{} } -func (m *WikiFindPageResponse) String() string { return proto.CompactTextString(m) } -func (*WikiFindPageResponse) ProtoMessage() {} -func (*WikiFindPageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{8} +func (x *WikiFindPageRequest) Reset() { + *x = WikiFindPageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wiki_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WikiFindPageResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WikiFindPageResponse.Unmarshal(m, b) -} -func (m *WikiFindPageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WikiFindPageResponse.Marshal(b, m, deterministic) -} -func (m *WikiFindPageResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WikiFindPageResponse.Merge(m, src) -} -func (m *WikiFindPageResponse) XXX_Size() int { - return xxx_messageInfo_WikiFindPageResponse.Size(m) -} -func (m *WikiFindPageResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WikiFindPageResponse.DiscardUnknown(m) +func (x *WikiFindPageRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_WikiFindPageResponse proto.InternalMessageInfo +func (*WikiFindPageRequest) ProtoMessage() {} -func (m *WikiFindPageResponse) GetPage() *WikiPage { - if m != nil { - return m.Page +func (x *WikiFindPageRequest) ProtoReflect() protoreflect.Message { + mi := &file_wiki_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil -} - -type WikiGetAllPagesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - // Passing 0 means no limit is applied - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - DirectionDesc bool `protobuf:"varint,3,opt,name=direction_desc,json=directionDesc,proto3" json:"direction_desc,omitempty"` - Sort WikiGetAllPagesRequest_SortBy `protobuf:"varint,4,opt,name=sort,proto3,enum=gitaly.WikiGetAllPagesRequest_SortBy" json:"sort,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WikiGetAllPagesRequest) Reset() { *m = WikiGetAllPagesRequest{} } -func (m *WikiGetAllPagesRequest) String() string { return proto.CompactTextString(m) } -func (*WikiGetAllPagesRequest) ProtoMessage() {} -func (*WikiGetAllPagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{9} + return mi.MessageOf(x) } -func (m *WikiGetAllPagesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WikiGetAllPagesRequest.Unmarshal(m, b) -} -func (m *WikiGetAllPagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WikiGetAllPagesRequest.Marshal(b, m, deterministic) -} -func (m *WikiGetAllPagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WikiGetAllPagesRequest.Merge(m, src) -} -func (m *WikiGetAllPagesRequest) XXX_Size() int { - return xxx_messageInfo_WikiGetAllPagesRequest.Size(m) -} -func (m *WikiGetAllPagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WikiGetAllPagesRequest.DiscardUnknown(m) +// Deprecated: Use WikiFindPageRequest.ProtoReflect.Descriptor instead. +func (*WikiFindPageRequest) Descriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{7} } -var xxx_messageInfo_WikiGetAllPagesRequest proto.InternalMessageInfo - -func (m *WikiGetAllPagesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *WikiFindPageRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func (m *WikiGetAllPagesRequest) GetLimit() uint32 { - if m != nil { - return m.Limit +func (x *WikiFindPageRequest) GetTitle() []byte { + if x != nil { + return x.Title } - return 0 + return nil } -func (m *WikiGetAllPagesRequest) GetDirectionDesc() bool { - if m != nil { - return m.DirectionDesc +func (x *WikiFindPageRequest) GetRevision() []byte { + if x != nil { + return x.Revision } - return false + return nil } -func (m *WikiGetAllPagesRequest) GetSort() WikiGetAllPagesRequest_SortBy { - if m != nil { - return m.Sort +func (x *WikiFindPageRequest) GetDirectory() []byte { + if x != nil { + return x.Directory } - return WikiGetAllPagesRequest_TITLE + return nil } -// The WikiGetAllPagesResponse stream is a concatenation of WikiPage streams -type WikiGetAllPagesResponse struct { +// WikiFindPageResponse is a stream because we need multiple WikiPage +// messages to send the raw_data field. +type WikiFindPageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Page *WikiPage `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` - // When end_of_page is true it signals a change of page for the next Response message (if any) - EndOfPage bool `protobuf:"varint,2,opt,name=end_of_page,json=endOfPage,proto3" json:"end_of_page,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *WikiGetAllPagesResponse) Reset() { *m = WikiGetAllPagesResponse{} } -func (m *WikiGetAllPagesResponse) String() string { return proto.CompactTextString(m) } -func (*WikiGetAllPagesResponse) ProtoMessage() {} -func (*WikiGetAllPagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{10} +func (x *WikiFindPageResponse) Reset() { + *x = WikiFindPageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wiki_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WikiGetAllPagesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WikiGetAllPagesResponse.Unmarshal(m, b) -} -func (m *WikiGetAllPagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WikiGetAllPagesResponse.Marshal(b, m, deterministic) +func (x *WikiFindPageResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WikiGetAllPagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WikiGetAllPagesResponse.Merge(m, src) -} -func (m *WikiGetAllPagesResponse) XXX_Size() int { - return xxx_messageInfo_WikiGetAllPagesResponse.Size(m) -} -func (m *WikiGetAllPagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WikiGetAllPagesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WikiGetAllPagesResponse proto.InternalMessageInfo -func (m *WikiGetAllPagesResponse) GetPage() *WikiPage { - if m != nil { - return m.Page - } - return nil -} +func (*WikiFindPageResponse) ProtoMessage() {} -func (m *WikiGetAllPagesResponse) GetEndOfPage() bool { - if m != nil { - return m.EndOfPage +func (x *WikiFindPageResponse) ProtoReflect() protoreflect.Message { + mi := &file_wiki_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return false -} - -type WikiListPagesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - // Passing 0 means no limit is applied - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - DirectionDesc bool `protobuf:"varint,3,opt,name=direction_desc,json=directionDesc,proto3" json:"direction_desc,omitempty"` - Sort WikiListPagesRequest_SortBy `protobuf:"varint,4,opt,name=sort,proto3,enum=gitaly.WikiListPagesRequest_SortBy" json:"sort,omitempty"` - Offset uint32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WikiListPagesRequest) Reset() { *m = WikiListPagesRequest{} } -func (m *WikiListPagesRequest) String() string { return proto.CompactTextString(m) } -func (*WikiListPagesRequest) ProtoMessage() {} -func (*WikiListPagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{11} + return mi.MessageOf(x) } -func (m *WikiListPagesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WikiListPagesRequest.Unmarshal(m, b) -} -func (m *WikiListPagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WikiListPagesRequest.Marshal(b, m, deterministic) -} -func (m *WikiListPagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WikiListPagesRequest.Merge(m, src) -} -func (m *WikiListPagesRequest) XXX_Size() int { - return xxx_messageInfo_WikiListPagesRequest.Size(m) -} -func (m *WikiListPagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WikiListPagesRequest.DiscardUnknown(m) +// Deprecated: Use WikiFindPageResponse.ProtoReflect.Descriptor instead. +func (*WikiFindPageResponse) Descriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{8} } -var xxx_messageInfo_WikiListPagesRequest proto.InternalMessageInfo - -func (m *WikiListPagesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository +func (x *WikiFindPageResponse) GetPage() *WikiPage { + if x != nil { + return x.Page } return nil } -func (m *WikiListPagesRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} +type WikiGetAllPagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WikiListPagesRequest) GetDirectionDesc() bool { - if m != nil { - return m.DirectionDesc - } - return false + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // Passing 0 means no limit is applied + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + DirectionDesc bool `protobuf:"varint,3,opt,name=direction_desc,json=directionDesc,proto3" json:"direction_desc,omitempty"` + Sort WikiGetAllPagesRequest_SortBy `protobuf:"varint,4,opt,name=sort,proto3,enum=gitaly.WikiGetAllPagesRequest_SortBy" json:"sort,omitempty"` } -func (m *WikiListPagesRequest) GetSort() WikiListPagesRequest_SortBy { - if m != nil { - return m.Sort +func (x *WikiGetAllPagesRequest) Reset() { + *x = WikiGetAllPagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wiki_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return WikiListPagesRequest_TITLE } -func (m *WikiListPagesRequest) GetOffset() uint32 { - if m != nil { - return m.Offset - } - return 0 +func (x *WikiGetAllPagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -// The WikiListPagesResponse stream is a concatenation of WikiPage streams without content -type WikiListPagesResponse struct { - Page *WikiPage `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*WikiGetAllPagesRequest) ProtoMessage() {} -func (m *WikiListPagesResponse) Reset() { *m = WikiListPagesResponse{} } -func (m *WikiListPagesResponse) String() string { return proto.CompactTextString(m) } -func (*WikiListPagesResponse) ProtoMessage() {} -func (*WikiListPagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5c56f90469cec0af, []int{12} +func (x *WikiGetAllPagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_wiki_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *WikiListPagesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WikiListPagesResponse.Unmarshal(m, b) -} -func (m *WikiListPagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WikiListPagesResponse.Marshal(b, m, deterministic) -} -func (m *WikiListPagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WikiListPagesResponse.Merge(m, src) -} -func (m *WikiListPagesResponse) XXX_Size() int { - return xxx_messageInfo_WikiListPagesResponse.Size(m) -} -func (m *WikiListPagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WikiListPagesResponse.DiscardUnknown(m) +// Deprecated: Use WikiGetAllPagesRequest.ProtoReflect.Descriptor instead. +func (*WikiGetAllPagesRequest) Descriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{9} } -var xxx_messageInfo_WikiListPagesResponse proto.InternalMessageInfo - -func (m *WikiListPagesResponse) GetPage() *WikiPage { - if m != nil { - return m.Page +func (x *WikiGetAllPagesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository } return nil } -func init() { - proto.RegisterEnum("gitaly.WikiGetAllPagesRequest_SortBy", WikiGetAllPagesRequest_SortBy_name, WikiGetAllPagesRequest_SortBy_value) - proto.RegisterEnum("gitaly.WikiListPagesRequest_SortBy", WikiListPagesRequest_SortBy_name, WikiListPagesRequest_SortBy_value) - proto.RegisterType((*WikiCommitDetails)(nil), "gitaly.WikiCommitDetails") - proto.RegisterType((*WikiPageVersion)(nil), "gitaly.WikiPageVersion") - proto.RegisterType((*WikiPage)(nil), "gitaly.WikiPage") - proto.RegisterType((*WikiWritePageRequest)(nil), "gitaly.WikiWritePageRequest") - proto.RegisterType((*WikiWritePageResponse)(nil), "gitaly.WikiWritePageResponse") - proto.RegisterType((*WikiUpdatePageRequest)(nil), "gitaly.WikiUpdatePageRequest") - proto.RegisterType((*WikiUpdatePageResponse)(nil), "gitaly.WikiUpdatePageResponse") - proto.RegisterType((*WikiFindPageRequest)(nil), "gitaly.WikiFindPageRequest") - proto.RegisterType((*WikiFindPageResponse)(nil), "gitaly.WikiFindPageResponse") - proto.RegisterType((*WikiGetAllPagesRequest)(nil), "gitaly.WikiGetAllPagesRequest") - proto.RegisterType((*WikiGetAllPagesResponse)(nil), "gitaly.WikiGetAllPagesResponse") - proto.RegisterType((*WikiListPagesRequest)(nil), "gitaly.WikiListPagesRequest") - proto.RegisterType((*WikiListPagesResponse)(nil), "gitaly.WikiListPagesResponse") -} - -func init() { proto.RegisterFile("wiki.proto", fileDescriptor_5c56f90469cec0af) } - -var fileDescriptor_5c56f90469cec0af = []byte{ - // 904 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0x41, 0x6f, 0x1b, 0x45, - 0x14, 0xc7, 0x59, 0xc7, 0x5e, 0xaf, 0x5f, 0x62, 0x37, 0x1d, 0x4a, 0xe3, 0x3a, 0x21, 0x44, 0x5b, - 0x2a, 0x8c, 0x04, 0x36, 0x35, 0x95, 0x00, 0x09, 0xa4, 0x26, 0x4d, 0xa8, 0x2a, 0x55, 0x50, 0x4d, - 0x4c, 0x2b, 0x10, 0xd2, 0x6a, 0xb2, 0x3b, 0x76, 0x46, 0x5d, 0xef, 0x2c, 0x33, 0xe3, 0x44, 0x39, - 0x73, 0xe6, 0x0c, 0x37, 0xbe, 0x0d, 0x17, 0xbe, 0x00, 0x5f, 0x81, 0x13, 0x57, 0xc4, 0x09, 0xcd, - 0xcc, 0x7a, 0xbd, 0xbb, 0x6e, 0x80, 0xa2, 0x1c, 0x7a, 0xdb, 0xf7, 0xde, 0xcc, 0x9b, 0xf7, 0xff, - 0xcd, 0x9b, 0xa7, 0x05, 0x38, 0x67, 0xcf, 0xd9, 0x20, 0x15, 0x5c, 0x71, 0xe4, 0x4e, 0x99, 0x22, - 0xf1, 0x45, 0x0f, 0x62, 0x96, 0x28, 0xeb, 0xeb, 0x6d, 0xc8, 0x53, 0x22, 0x68, 0x64, 0x2d, 0xff, - 0x07, 0x07, 0xae, 0x3f, 0x63, 0xcf, 0xd9, 0x03, 0x3e, 0x9b, 0x31, 0x75, 0x48, 0x15, 0x61, 0xb1, - 0x44, 0x08, 0xea, 0x09, 0x99, 0xd1, 0xae, 0xb3, 0xe7, 0xf4, 0x37, 0xb0, 0xf9, 0x46, 0x37, 0xa0, - 0x41, 0x67, 0x84, 0xc5, 0xdd, 0x9a, 0x71, 0x5a, 0x03, 0x75, 0xa1, 0x39, 0xa3, 0x52, 0x92, 0x29, - 0xed, 0xae, 0x19, 0xff, 0xc2, 0x44, 0x5b, 0xd0, 0x9c, 0x4b, 0x2a, 0x02, 0x16, 0x75, 0xeb, 0x7b, - 0x4e, 0xbf, 0x81, 0x5d, 0x6d, 0x3e, 0x8a, 0xd0, 0x36, 0xb4, 0x4c, 0xc0, 0x9c, 0xd0, 0x30, 0x9b, - 0x3c, 0xed, 0xf8, 0x82, 0xcc, 0xa8, 0x3f, 0x86, 0x6b, 0xba, 0x9c, 0x27, 0x64, 0x4a, 0x9f, 0x52, - 0x21, 0x19, 0x4f, 0xd0, 0xbb, 0xe0, 0x86, 0xa6, 0x3a, 0x53, 0xce, 0xfa, 0xe8, 0xfa, 0xc0, 0xaa, - 0x1a, 0x3c, 0x64, 0xca, 0x96, 0x8d, 0xb3, 0x05, 0xe8, 0x26, 0xb8, 0x13, 0x2e, 0x66, 0x44, 0x99, - 0x22, 0x5b, 0x38, 0xb3, 0xfc, 0xdf, 0x1d, 0xf0, 0x16, 0x69, 0xd1, 0x5d, 0x68, 0x9e, 0xd9, 0xd4, - 0x59, 0xc2, 0xad, 0x45, 0xc2, 0xca, 0xc9, 0x78, 0xb1, 0xee, 0xb2, 0xbc, 0x9a, 0x89, 0x62, 0x2a, - 0x5e, 0x68, 0xb7, 0x06, 0xba, 0x05, 0xde, 0x5c, 0xc4, 0x41, 0x4a, 0xd4, 0xa9, 0x91, 0xde, 0xc2, - 0xcd, 0xb9, 0x88, 0x9f, 0x10, 0x75, 0xaa, 0xc1, 0x1a, 0xb7, 0x95, 0x6d, 0xbe, 0x73, 0xd8, 0x6e, - 0x01, 0xf6, 0x2e, 0xc0, 0x29, 0x93, 0x8a, 0x0b, 0x16, 0x92, 0xb8, 0xdb, 0xdc, 0x73, 0xfa, 0x1e, - 0x2e, 0x78, 0xf4, 0x11, 0x82, 0x9c, 0x07, 0x11, 0x51, 0xa4, 0xeb, 0x59, 0xee, 0x82, 0x9c, 0x1f, - 0x12, 0x45, 0xfc, 0xdf, 0x1c, 0xb8, 0xa1, 0x85, 0x3c, 0x13, 0x4c, 0x51, 0xad, 0x06, 0xd3, 0xef, - 0xe6, 0x54, 0x2a, 0xf4, 0x31, 0x80, 0xa0, 0x29, 0x97, 0x4c, 0x71, 0x71, 0x91, 0x49, 0x47, 0x0b, - 0xe9, 0x38, 0x8f, 0x1c, 0xd4, 0x7f, 0xfa, 0xe5, 0x3d, 0x07, 0x17, 0xd6, 0xe6, 0x15, 0xd6, 0x0a, - 0x15, 0x2e, 0x91, 0xac, 0x95, 0x90, 0xdc, 0x87, 0x8e, 0xbd, 0x8c, 0x20, 0xb2, 0xcd, 0x64, 0x10, - 0xac, 0x8f, 0x6e, 0x15, 0x21, 0x97, 0xba, 0x0d, 0xb7, 0xc3, 0x52, 0xf3, 0x75, 0xa1, 0x19, 0xf2, - 0x44, 0xd1, 0x44, 0x65, 0x98, 0x16, 0xa6, 0x7f, 0x1f, 0xde, 0xa8, 0x28, 0x93, 0x29, 0x4f, 0x24, - 0x45, 0xef, 0xc0, 0xb5, 0x68, 0x9e, 0xc6, 0x2c, 0x24, 0x8a, 0x06, 0x54, 0x08, 0x2e, 0xb2, 0xd6, - 0xed, 0xe4, 0xee, 0x23, 0xed, 0xf5, 0xff, 0x74, 0x6c, 0x8a, 0xaf, 0xd2, 0x88, 0x5c, 0x15, 0x9d, - 0x6d, 0x68, 0xa5, 0x64, 0x4a, 0xed, 0x7d, 0x5b, 0x44, 0x9e, 0x76, 0x98, 0x0b, 0x7f, 0x71, 0x87, - 0x2c, 0xe1, 0xd5, 0xff, 0x05, 0x5e, 0xe3, 0xff, 0xc3, 0x73, 0xcb, 0xf0, 0x06, 0x70, 0xb3, 0xaa, - 0x3c, 0xa3, 0xa7, 0x5f, 0x76, 0x81, 0x99, 0x35, 0xfc, 0x9f, 0x1d, 0x78, 0x5d, 0x6f, 0xf8, 0x9c, - 0x25, 0xd1, 0xd5, 0x80, 0xca, 0x59, 0xd4, 0x8a, 0x2c, 0x7a, 0xe0, 0x09, 0x7a, 0xc6, 0xcc, 0x7b, - 0xb4, 0x90, 0x72, 0x1b, 0xed, 0x40, 0x2b, 0x62, 0x82, 0x86, 0xe6, 0xa8, 0xba, 0x09, 0x2e, 0x1d, - 0xfe, 0xa7, 0xb6, 0xd1, 0x97, 0x05, 0x66, 0x7a, 0xde, 0xd6, 0x8f, 0x6c, 0x4a, 0xb3, 0xda, 0x36, - 0xab, 0xaf, 0x1b, 0x9b, 0xa8, 0xff, 0x87, 0x63, 0x81, 0x3c, 0xa4, 0x6a, 0x3f, 0x8e, 0x75, 0x40, - 0x5e, 0x89, 0xc4, 0x98, 0xe9, 0x51, 0xa5, 0x25, 0xb6, 0xb1, 0x35, 0xd0, 0x1d, 0xe8, 0xd8, 0xaa, - 0x19, 0x4f, 0x82, 0x88, 0xca, 0xd0, 0x08, 0xf5, 0x70, 0x3b, 0xf7, 0x1e, 0x52, 0x19, 0xa2, 0x4f, - 0xa0, 0x2e, 0xb9, 0xb0, 0x3d, 0xd1, 0x19, 0xdd, 0x29, 0xd6, 0xbd, 0x5a, 0xe4, 0xe0, 0x98, 0x0b, - 0x75, 0x70, 0x81, 0xcd, 0x16, 0xff, 0x36, 0xb8, 0xd6, 0x46, 0x2d, 0x68, 0x8c, 0x1f, 0x8d, 0x1f, - 0x1f, 0x6d, 0xbe, 0x86, 0x3a, 0x00, 0x0f, 0xf0, 0xd1, 0xfe, 0xf8, 0xe8, 0x30, 0xd8, 0x1f, 0x6f, - 0x3a, 0x7e, 0x00, 0x5b, 0x2b, 0xb9, 0x5e, 0x06, 0x19, 0xda, 0x85, 0x75, 0x9a, 0x44, 0x01, 0x9f, - 0x04, 0x66, 0x71, 0xcd, 0x88, 0x68, 0xd1, 0x24, 0xfa, 0x72, 0xa2, 0x57, 0xf9, 0xdf, 0xd7, 0xec, - 0x8d, 0x3c, 0x66, 0x52, 0xbd, 0x0a, 0x40, 0x3f, 0x2a, 0x01, 0xbd, 0x5d, 0x54, 0x55, 0x2d, 0xb1, - 0x84, 0x53, 0xbf, 0x4f, 0x3e, 0x99, 0x48, 0x6a, 0x27, 0x50, 0x1b, 0x67, 0xd6, 0x7f, 0xc3, 0xfc, - 0x99, 0x1d, 0x31, 0x85, 0x13, 0x5e, 0x06, 0xf2, 0xe8, 0xd7, 0x35, 0x58, 0xd7, 0xae, 0x63, 0x2a, - 0xce, 0x58, 0x48, 0xd1, 0x53, 0x68, 0x97, 0x86, 0x1e, 0xda, 0x29, 0x6e, 0xac, 0x4e, 0xf9, 0xde, - 0x9b, 0x97, 0x44, 0x6d, 0x0d, 0xbe, 0xfb, 0xd7, 0x8f, 0xfd, 0x9a, 0xe7, 0xf4, 0x1d, 0xf4, 0x35, - 0x74, 0xca, 0xf3, 0x00, 0x95, 0xb6, 0xae, 0x4c, 0xc8, 0xde, 0xee, 0x65, 0xe1, 0x95, 0xd4, 0xc7, - 0xb0, 0x51, 0x7c, 0x98, 0x68, 0xbb, 0xb8, 0xb3, 0x32, 0x4f, 0x7a, 0x3b, 0x2f, 0x0e, 0x96, 0x92, - 0xd6, 0x3e, 0x70, 0xd0, 0xb7, 0xf6, 0xcf, 0xa0, 0xd0, 0xbd, 0x68, 0xf7, 0x9f, 0x9f, 0x48, 0xef, - 0xad, 0x4b, 0xe3, 0x2b, 0xd9, 0x33, 0xca, 0xf9, 0xa5, 0x95, 0x29, 0x57, 0xbb, 0xa5, 0x4c, 0x79, - 0xe5, 0xa6, 0x97, 0x79, 0x0f, 0xee, 0x7d, 0x33, 0x9a, 0x32, 0x15, 0x93, 0x93, 0x41, 0xc8, 0x67, - 0x43, 0xfb, 0xf9, 0x3e, 0x17, 0xd3, 0xa1, 0xdd, 0x3f, 0x3c, 0xbb, 0x7b, 0x6f, 0x68, 0xfe, 0xc4, - 0x86, 0x53, 0x9e, 0xf9, 0xd2, 0x93, 0x13, 0xd7, 0xb8, 0x3e, 0xfc, 0x3b, 0x00, 0x00, 0xff, 0xff, - 0x6f, 0xde, 0xb9, 0xca, 0xcc, 0x09, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// WikiServiceClient is the client API for WikiService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type WikiServiceClient interface { - WikiWritePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiWritePageClient, error) - WikiUpdatePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiUpdatePageClient, error) - // WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large. - WikiFindPage(ctx context.Context, in *WikiFindPageRequest, opts ...grpc.CallOption) (WikiService_WikiFindPageClient, error) - WikiGetAllPages(ctx context.Context, in *WikiGetAllPagesRequest, opts ...grpc.CallOption) (WikiService_WikiGetAllPagesClient, error) - WikiListPages(ctx context.Context, in *WikiListPagesRequest, opts ...grpc.CallOption) (WikiService_WikiListPagesClient, error) -} - -type wikiServiceClient struct { - cc *grpc.ClientConn -} - -func NewWikiServiceClient(cc *grpc.ClientConn) WikiServiceClient { - return &wikiServiceClient{cc} -} - -func (c *wikiServiceClient) WikiWritePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiWritePageClient, error) { - stream, err := c.cc.NewStream(ctx, &_WikiService_serviceDesc.Streams[0], "/gitaly.WikiService/WikiWritePage", opts...) - if err != nil { - return nil, err +func (x *WikiGetAllPagesRequest) GetLimit() uint32 { + if x != nil { + return x.Limit } - x := &wikiServiceWikiWritePageClient{stream} - return x, nil -} - -type WikiService_WikiWritePageClient interface { - Send(*WikiWritePageRequest) error - CloseAndRecv() (*WikiWritePageResponse, error) - grpc.ClientStream -} - -type wikiServiceWikiWritePageClient struct { - grpc.ClientStream -} - -func (x *wikiServiceWikiWritePageClient) Send(m *WikiWritePageRequest) error { - return x.ClientStream.SendMsg(m) + return 0 } -func (x *wikiServiceWikiWritePageClient) CloseAndRecv() (*WikiWritePageResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *WikiGetAllPagesRequest) GetDirectionDesc() bool { + if x != nil { + return x.DirectionDesc } - m := new(WikiWritePageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + return false } -func (c *wikiServiceClient) WikiUpdatePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiUpdatePageClient, error) { - stream, err := c.cc.NewStream(ctx, &_WikiService_serviceDesc.Streams[1], "/gitaly.WikiService/WikiUpdatePage", opts...) - if err != nil { - return nil, err +func (x *WikiGetAllPagesRequest) GetSort() WikiGetAllPagesRequest_SortBy { + if x != nil { + return x.Sort } - x := &wikiServiceWikiUpdatePageClient{stream} - return x, nil -} - -type WikiService_WikiUpdatePageClient interface { - Send(*WikiUpdatePageRequest) error - CloseAndRecv() (*WikiUpdatePageResponse, error) - grpc.ClientStream -} - -type wikiServiceWikiUpdatePageClient struct { - grpc.ClientStream + return WikiGetAllPagesRequest_TITLE } -func (x *wikiServiceWikiUpdatePageClient) Send(m *WikiUpdatePageRequest) error { - return x.ClientStream.SendMsg(m) -} +// The WikiGetAllPagesResponse stream is a concatenation of WikiPage streams +type WikiGetAllPagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *wikiServiceWikiUpdatePageClient) CloseAndRecv() (*WikiUpdatePageResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(WikiUpdatePageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + Page *WikiPage `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` + // When end_of_page is true it signals a change of page for the next Response message (if any) + EndOfPage bool `protobuf:"varint,2,opt,name=end_of_page,json=endOfPage,proto3" json:"end_of_page,omitempty"` } -func (c *wikiServiceClient) WikiFindPage(ctx context.Context, in *WikiFindPageRequest, opts ...grpc.CallOption) (WikiService_WikiFindPageClient, error) { - stream, err := c.cc.NewStream(ctx, &_WikiService_serviceDesc.Streams[2], "/gitaly.WikiService/WikiFindPage", opts...) - if err != nil { - return nil, err - } - x := &wikiServiceWikiFindPageClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *WikiGetAllPagesResponse) Reset() { + *x = WikiGetAllPagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wiki_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WikiService_WikiFindPageClient interface { - Recv() (*WikiFindPageResponse, error) - grpc.ClientStream } -type wikiServiceWikiFindPageClient struct { - grpc.ClientStream +func (x *WikiGetAllPagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *wikiServiceWikiFindPageClient) Recv() (*WikiFindPageResponse, error) { - m := new(WikiFindPageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +func (*WikiGetAllPagesResponse) ProtoMessage() {} -func (c *wikiServiceClient) WikiGetAllPages(ctx context.Context, in *WikiGetAllPagesRequest, opts ...grpc.CallOption) (WikiService_WikiGetAllPagesClient, error) { - stream, err := c.cc.NewStream(ctx, &_WikiService_serviceDesc.Streams[3], "/gitaly.WikiService/WikiGetAllPages", opts...) - if err != nil { - return nil, err +func (x *WikiGetAllPagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_wiki_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - x := &wikiServiceWikiGetAllPagesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WikiService_WikiGetAllPagesClient interface { - Recv() (*WikiGetAllPagesResponse, error) - grpc.ClientStream + return mi.MessageOf(x) } -type wikiServiceWikiGetAllPagesClient struct { - grpc.ClientStream +// Deprecated: Use WikiGetAllPagesResponse.ProtoReflect.Descriptor instead. +func (*WikiGetAllPagesResponse) Descriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{10} } -func (x *wikiServiceWikiGetAllPagesClient) Recv() (*WikiGetAllPagesResponse, error) { - m := new(WikiGetAllPagesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *WikiGetAllPagesResponse) GetPage() *WikiPage { + if x != nil { + return x.Page } - return m, nil + return nil } -func (c *wikiServiceClient) WikiListPages(ctx context.Context, in *WikiListPagesRequest, opts ...grpc.CallOption) (WikiService_WikiListPagesClient, error) { - stream, err := c.cc.NewStream(ctx, &_WikiService_serviceDesc.Streams[4], "/gitaly.WikiService/WikiListPages", opts...) - if err != nil { - return nil, err - } - x := &wikiServiceWikiListPagesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *WikiGetAllPagesResponse) GetEndOfPage() bool { + if x != nil { + return x.EndOfPage } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil + return false } -type WikiService_WikiListPagesClient interface { - Recv() (*WikiListPagesResponse, error) - grpc.ClientStream -} +type WikiListPagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type wikiServiceWikiListPagesClient struct { - grpc.ClientStream + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // Passing 0 means no limit is applied + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + DirectionDesc bool `protobuf:"varint,3,opt,name=direction_desc,json=directionDesc,proto3" json:"direction_desc,omitempty"` + Sort WikiListPagesRequest_SortBy `protobuf:"varint,4,opt,name=sort,proto3,enum=gitaly.WikiListPagesRequest_SortBy" json:"sort,omitempty"` + Offset uint32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` } -func (x *wikiServiceWikiListPagesClient) Recv() (*WikiListPagesResponse, error) { - m := new(WikiListPagesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *WikiListPagesRequest) Reset() { + *x = WikiListPagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wiki_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -// WikiServiceServer is the server API for WikiService service. -type WikiServiceServer interface { - WikiWritePage(WikiService_WikiWritePageServer) error - WikiUpdatePage(WikiService_WikiUpdatePageServer) error - // WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large. - WikiFindPage(*WikiFindPageRequest, WikiService_WikiFindPageServer) error - WikiGetAllPages(*WikiGetAllPagesRequest, WikiService_WikiGetAllPagesServer) error - WikiListPages(*WikiListPagesRequest, WikiService_WikiListPagesServer) error +func (x *WikiListPagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -// UnimplementedWikiServiceServer can be embedded to have forward compatible implementations. -type UnimplementedWikiServiceServer struct { -} - -func (*UnimplementedWikiServiceServer) WikiWritePage(srv WikiService_WikiWritePageServer) error { - return status.Errorf(codes.Unimplemented, "method WikiWritePage not implemented") -} -func (*UnimplementedWikiServiceServer) WikiUpdatePage(srv WikiService_WikiUpdatePageServer) error { - return status.Errorf(codes.Unimplemented, "method WikiUpdatePage not implemented") -} -func (*UnimplementedWikiServiceServer) WikiFindPage(req *WikiFindPageRequest, srv WikiService_WikiFindPageServer) error { - return status.Errorf(codes.Unimplemented, "method WikiFindPage not implemented") -} -func (*UnimplementedWikiServiceServer) WikiGetAllPages(req *WikiGetAllPagesRequest, srv WikiService_WikiGetAllPagesServer) error { - return status.Errorf(codes.Unimplemented, "method WikiGetAllPages not implemented") -} -func (*UnimplementedWikiServiceServer) WikiListPages(req *WikiListPagesRequest, srv WikiService_WikiListPagesServer) error { - return status.Errorf(codes.Unimplemented, "method WikiListPages not implemented") -} - -func RegisterWikiServiceServer(s *grpc.Server, srv WikiServiceServer) { - s.RegisterService(&_WikiService_serviceDesc, srv) -} +func (*WikiListPagesRequest) ProtoMessage() {} -func _WikiService_WikiWritePage_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(WikiServiceServer).WikiWritePage(&wikiServiceWikiWritePageServer{stream}) -} - -type WikiService_WikiWritePageServer interface { - SendAndClose(*WikiWritePageResponse) error - Recv() (*WikiWritePageRequest, error) - grpc.ServerStream -} - -type wikiServiceWikiWritePageServer struct { - grpc.ServerStream -} - -func (x *wikiServiceWikiWritePageServer) SendAndClose(m *WikiWritePageResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *wikiServiceWikiWritePageServer) Recv() (*WikiWritePageRequest, error) { - m := new(WikiWritePageRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func (x *WikiListPagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_wiki_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil -} - -func _WikiService_WikiUpdatePage_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(WikiServiceServer).WikiUpdatePage(&wikiServiceWikiUpdatePageServer{stream}) + return mi.MessageOf(x) } -type WikiService_WikiUpdatePageServer interface { - SendAndClose(*WikiUpdatePageResponse) error - Recv() (*WikiUpdatePageRequest, error) - grpc.ServerStream +// Deprecated: Use WikiListPagesRequest.ProtoReflect.Descriptor instead. +func (*WikiListPagesRequest) Descriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{11} } -type wikiServiceWikiUpdatePageServer struct { - grpc.ServerStream +func (x *WikiListPagesRequest) GetRepository() *Repository { + if x != nil { + return x.Repository + } + return nil } -func (x *wikiServiceWikiUpdatePageServer) SendAndClose(m *WikiUpdatePageResponse) error { - return x.ServerStream.SendMsg(m) +func (x *WikiListPagesRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 } -func (x *wikiServiceWikiUpdatePageServer) Recv() (*WikiUpdatePageRequest, error) { - m := new(WikiUpdatePageRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func (x *WikiListPagesRequest) GetDirectionDesc() bool { + if x != nil { + return x.DirectionDesc } - return m, nil + return false } -func _WikiService_WikiFindPage_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WikiFindPageRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *WikiListPagesRequest) GetSort() WikiListPagesRequest_SortBy { + if x != nil { + return x.Sort } - return srv.(WikiServiceServer).WikiFindPage(m, &wikiServiceWikiFindPageServer{stream}) + return WikiListPagesRequest_TITLE } -type WikiService_WikiFindPageServer interface { - Send(*WikiFindPageResponse) error - grpc.ServerStream +func (x *WikiListPagesRequest) GetOffset() uint32 { + if x != nil { + return x.Offset + } + return 0 } -type wikiServiceWikiFindPageServer struct { - grpc.ServerStream -} +// The WikiListPagesResponse stream is a concatenation of WikiPage streams without content +type WikiListPagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *wikiServiceWikiFindPageServer) Send(m *WikiFindPageResponse) error { - return x.ServerStream.SendMsg(m) + Page *WikiPage `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` } -func _WikiService_WikiGetAllPages_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WikiGetAllPagesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *WikiListPagesResponse) Reset() { + *x = WikiListPagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wiki_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(WikiServiceServer).WikiGetAllPages(m, &wikiServiceWikiGetAllPagesServer{stream}) } -type WikiService_WikiGetAllPagesServer interface { - Send(*WikiGetAllPagesResponse) error - grpc.ServerStream +func (x *WikiListPagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type wikiServiceWikiGetAllPagesServer struct { - grpc.ServerStream -} - -func (x *wikiServiceWikiGetAllPagesServer) Send(m *WikiGetAllPagesResponse) error { - return x.ServerStream.SendMsg(m) -} +func (*WikiListPagesResponse) ProtoMessage() {} -func _WikiService_WikiListPages_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WikiListPagesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *WikiListPagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_wiki_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(WikiServiceServer).WikiListPages(m, &wikiServiceWikiListPagesServer{stream}) + return mi.MessageOf(x) } -type WikiService_WikiListPagesServer interface { - Send(*WikiListPagesResponse) error - grpc.ServerStream +// Deprecated: Use WikiListPagesResponse.ProtoReflect.Descriptor instead. +func (*WikiListPagesResponse) Descriptor() ([]byte, []int) { + return file_wiki_proto_rawDescGZIP(), []int{12} } -type wikiServiceWikiListPagesServer struct { - grpc.ServerStream +func (x *WikiListPagesResponse) GetPage() *WikiPage { + if x != nil { + return x.Page + } + return nil } -func (x *wikiServiceWikiListPagesServer) Send(m *WikiListPagesResponse) error { - return x.ServerStream.SendMsg(m) -} +var File_wiki_proto protoreflect.FileDescriptor + +var file_wiki_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x77, 0x69, 0x6b, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8d, + 0x01, 0x0a, 0x11, 0x57, 0x69, 0x6b, 0x69, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, + 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x18, + 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x54, + 0x0a, 0x0f, 0x57, 0x69, 0x6b, 0x69, 0x50, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x29, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x74, 0x22, 0xe9, 0x01, 0x0a, 0x08, 0x57, 0x69, 0x6b, 0x69, 0x50, 0x61, 0x67, + 0x65, 0x12, 0x31, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x69, 0x6b, 0x69, + 0x50, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x74, 0x69, 0x74, + 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x72, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x72, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, + 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, + 0x63, 0x61, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x68, 0x69, 0x73, 0x74, 0x6f, + 0x72, 0x69, 0x63, 0x61, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x61, 0x77, 0x5f, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x72, 0x61, 0x77, 0x44, 0x61, 0x74, 0x61, + 0x22, 0xd8, 0x01, 0x0a, 0x14, 0x57, 0x69, 0x6b, 0x69, 0x57, 0x72, 0x69, 0x74, 0x65, 0x50, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, + 0x40, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x57, 0x69, 0x6b, 0x69, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x73, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x40, 0x0a, 0x15, 0x57, + 0x69, 0x6b, 0x69, 0x57, 0x72, 0x69, 0x74, 0x65, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x64, + 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xf8, 0x01, + 0x0a, 0x15, 0x57, 0x69, 0x6b, 0x69, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, + 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x14, + 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x74, + 0x69, 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x40, 0x0a, 0x0e, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x69, + 0x6b, 0x69, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, + 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x2e, 0x0a, 0x16, 0x57, 0x69, 0x6b, 0x69, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x9f, 0x01, 0x0a, 0x13, 0x57, 0x69, 0x6b, + 0x69, 0x46, 0x69, 0x6e, 0x64, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, + 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, + 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, + 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x3c, 0x0a, 0x14, 0x57, 0x69, + 0x6b, 0x69, 0x46, 0x69, 0x6e, 0x64, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x69, 0x6b, 0x69, 0x50, 0x61, + 0x67, 0x65, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x22, 0xef, 0x01, 0x0a, 0x16, 0x57, 0x69, 0x6b, + 0x69, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, + 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, + 0x6d, 0x69, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x64, 0x65, 0x73, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x64, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x73, 0x63, 0x12, 0x39, 0x0a, 0x04, 0x73, 0x6f, + 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x57, 0x69, 0x6b, 0x69, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x61, 0x67, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x52, + 0x04, 0x73, 0x6f, 0x72, 0x74, 0x22, 0x23, 0x0a, 0x06, 0x53, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, + 0x09, 0x0a, 0x05, 0x54, 0x49, 0x54, 0x4c, 0x45, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x52, + 0x45, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x41, 0x54, 0x10, 0x01, 0x22, 0x5f, 0x0a, 0x17, 0x57, 0x69, + 0x6b, 0x69, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x69, 0x6b, + 0x69, 0x50, 0x61, 0x67, 0x65, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0b, 0x65, + 0x6e, 0x64, 0x5f, 0x6f, 0x66, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x09, 0x65, 0x6e, 0x64, 0x4f, 0x66, 0x50, 0x61, 0x67, 0x65, 0x22, 0x83, 0x02, 0x0a, 0x14, + 0x57, 0x69, 0x6b, 0x69, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, + 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x64, 0x69, + 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x73, 0x63, 0x12, 0x37, 0x0a, 0x04, 0x73, + 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x57, 0x69, 0x6b, 0x69, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x67, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x52, 0x04, + 0x73, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x23, 0x0a, 0x06, + 0x53, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x49, 0x54, 0x4c, 0x45, 0x10, + 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x41, 0x54, 0x10, + 0x01, 0x22, 0x3d, 0x0a, 0x15, 0x57, 0x69, 0x6b, 0x69, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x67, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x70, 0x61, + 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x57, 0x69, 0x6b, 0x69, 0x50, 0x61, 0x67, 0x65, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, + 0x32, 0xcb, 0x03, 0x0a, 0x0b, 0x57, 0x69, 0x6b, 0x69, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x56, 0x0a, 0x0d, 0x57, 0x69, 0x6b, 0x69, 0x57, 0x72, 0x69, 0x74, 0x65, 0x50, 0x61, 0x67, + 0x65, 0x12, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x69, 0x6b, 0x69, 0x57, + 0x72, 0x69, 0x74, 0x65, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x69, 0x6b, 0x69, 0x57, 0x72, 0x69, + 0x74, 0x65, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, + 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x28, 0x01, 0x12, 0x59, 0x0a, 0x0e, 0x57, 0x69, 0x6b, 0x69, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x67, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x69, 0x6b, 0x69, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x57, 0x69, 0x6b, 0x69, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, + 0x01, 0x28, 0x01, 0x12, 0x53, 0x0a, 0x0c, 0x57, 0x69, 0x6b, 0x69, 0x46, 0x69, 0x6e, 0x64, 0x50, + 0x61, 0x67, 0x65, 0x12, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x69, 0x6b, + 0x69, 0x46, 0x69, 0x6e, 0x64, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x69, 0x6b, 0x69, 0x46, 0x69, + 0x6e, 0x64, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, + 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x5c, 0x0a, 0x0f, 0x57, 0x69, 0x6b, 0x69, + 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x61, 0x67, 0x65, 0x73, 0x12, 0x1e, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x69, 0x6b, 0x69, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x50, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, 0x69, 0x6b, 0x69, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x50, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, + 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x56, 0x0a, 0x0d, 0x57, 0x69, 0x6b, 0x69, 0x4c, 0x69, + 0x73, 0x74, 0x50, 0x61, 0x67, 0x65, 0x73, 0x12, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x57, 0x69, 0x6b, 0x69, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x57, + 0x69, 0x6b, 0x69, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x42, 0x34, + 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, + 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, + 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_wiki_proto_rawDescOnce sync.Once + file_wiki_proto_rawDescData = file_wiki_proto_rawDesc +) -var _WikiService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.WikiService", - HandlerType: (*WikiServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "WikiWritePage", - Handler: _WikiService_WikiWritePage_Handler, - ClientStreams: true, - }, - { - StreamName: "WikiUpdatePage", - Handler: _WikiService_WikiUpdatePage_Handler, - ClientStreams: true, - }, - { - StreamName: "WikiFindPage", - Handler: _WikiService_WikiFindPage_Handler, - ServerStreams: true, - }, - { - StreamName: "WikiGetAllPages", - Handler: _WikiService_WikiGetAllPages_Handler, - ServerStreams: true, - }, - { - StreamName: "WikiListPages", - Handler: _WikiService_WikiListPages_Handler, - ServerStreams: true, +func file_wiki_proto_rawDescGZIP() []byte { + file_wiki_proto_rawDescOnce.Do(func() { + file_wiki_proto_rawDescData = protoimpl.X.CompressGZIP(file_wiki_proto_rawDescData) + }) + return file_wiki_proto_rawDescData +} + +var file_wiki_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_wiki_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_wiki_proto_goTypes = []interface{}{ + (WikiGetAllPagesRequest_SortBy)(0), // 0: gitaly.WikiGetAllPagesRequest.SortBy + (WikiListPagesRequest_SortBy)(0), // 1: gitaly.WikiListPagesRequest.SortBy + (*WikiCommitDetails)(nil), // 2: gitaly.WikiCommitDetails + (*WikiPageVersion)(nil), // 3: gitaly.WikiPageVersion + (*WikiPage)(nil), // 4: gitaly.WikiPage + (*WikiWritePageRequest)(nil), // 5: gitaly.WikiWritePageRequest + (*WikiWritePageResponse)(nil), // 6: gitaly.WikiWritePageResponse + (*WikiUpdatePageRequest)(nil), // 7: gitaly.WikiUpdatePageRequest + (*WikiUpdatePageResponse)(nil), // 8: gitaly.WikiUpdatePageResponse + (*WikiFindPageRequest)(nil), // 9: gitaly.WikiFindPageRequest + (*WikiFindPageResponse)(nil), // 10: gitaly.WikiFindPageResponse + (*WikiGetAllPagesRequest)(nil), // 11: gitaly.WikiGetAllPagesRequest + (*WikiGetAllPagesResponse)(nil), // 12: gitaly.WikiGetAllPagesResponse + (*WikiListPagesRequest)(nil), // 13: gitaly.WikiListPagesRequest + (*WikiListPagesResponse)(nil), // 14: gitaly.WikiListPagesResponse + (*GitCommit)(nil), // 15: gitaly.GitCommit + (*Repository)(nil), // 16: gitaly.Repository +} +var file_wiki_proto_depIdxs = []int32{ + 15, // 0: gitaly.WikiPageVersion.commit:type_name -> gitaly.GitCommit + 3, // 1: gitaly.WikiPage.version:type_name -> gitaly.WikiPageVersion + 16, // 2: gitaly.WikiWritePageRequest.repository:type_name -> gitaly.Repository + 2, // 3: gitaly.WikiWritePageRequest.commit_details:type_name -> gitaly.WikiCommitDetails + 16, // 4: gitaly.WikiUpdatePageRequest.repository:type_name -> gitaly.Repository + 2, // 5: gitaly.WikiUpdatePageRequest.commit_details:type_name -> gitaly.WikiCommitDetails + 16, // 6: gitaly.WikiFindPageRequest.repository:type_name -> gitaly.Repository + 4, // 7: gitaly.WikiFindPageResponse.page:type_name -> gitaly.WikiPage + 16, // 8: gitaly.WikiGetAllPagesRequest.repository:type_name -> gitaly.Repository + 0, // 9: gitaly.WikiGetAllPagesRequest.sort:type_name -> gitaly.WikiGetAllPagesRequest.SortBy + 4, // 10: gitaly.WikiGetAllPagesResponse.page:type_name -> gitaly.WikiPage + 16, // 11: gitaly.WikiListPagesRequest.repository:type_name -> gitaly.Repository + 1, // 12: gitaly.WikiListPagesRequest.sort:type_name -> gitaly.WikiListPagesRequest.SortBy + 4, // 13: gitaly.WikiListPagesResponse.page:type_name -> gitaly.WikiPage + 5, // 14: gitaly.WikiService.WikiWritePage:input_type -> gitaly.WikiWritePageRequest + 7, // 15: gitaly.WikiService.WikiUpdatePage:input_type -> gitaly.WikiUpdatePageRequest + 9, // 16: gitaly.WikiService.WikiFindPage:input_type -> gitaly.WikiFindPageRequest + 11, // 17: gitaly.WikiService.WikiGetAllPages:input_type -> gitaly.WikiGetAllPagesRequest + 13, // 18: gitaly.WikiService.WikiListPages:input_type -> gitaly.WikiListPagesRequest + 6, // 19: gitaly.WikiService.WikiWritePage:output_type -> gitaly.WikiWritePageResponse + 8, // 20: gitaly.WikiService.WikiUpdatePage:output_type -> gitaly.WikiUpdatePageResponse + 10, // 21: gitaly.WikiService.WikiFindPage:output_type -> gitaly.WikiFindPageResponse + 12, // 22: gitaly.WikiService.WikiGetAllPages:output_type -> gitaly.WikiGetAllPagesResponse + 14, // 23: gitaly.WikiService.WikiListPages:output_type -> gitaly.WikiListPagesResponse + 19, // [19:24] is the sub-list for method output_type + 14, // [14:19] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name +} + +func init() { file_wiki_proto_init() } +func file_wiki_proto_init() { + if File_wiki_proto != nil { + return + } + file_lint_proto_init() + file_shared_proto_init() + if !protoimpl.UnsafeEnabled { + file_wiki_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WikiCommitDetails); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wiki_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WikiPageVersion); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wiki_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WikiPage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wiki_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WikiWritePageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wiki_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WikiWritePageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wiki_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WikiUpdatePageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wiki_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WikiUpdatePageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wiki_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WikiFindPageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wiki_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WikiFindPageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wiki_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WikiGetAllPagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wiki_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WikiGetAllPagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wiki_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WikiListPagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wiki_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WikiListPagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_wiki_proto_rawDesc, + NumEnums: 2, + NumMessages: 13, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "wiki.proto", + GoTypes: file_wiki_proto_goTypes, + DependencyIndexes: file_wiki_proto_depIdxs, + EnumInfos: file_wiki_proto_enumTypes, + MessageInfos: file_wiki_proto_msgTypes, + }.Build() + File_wiki_proto = out.File + file_wiki_proto_rawDesc = nil + file_wiki_proto_goTypes = nil + file_wiki_proto_depIdxs = nil } diff --git a/proto/go/gitalypb/wiki_grpc.pb.go b/proto/go/gitalypb/wiki_grpc.pb.go new file mode 100644 index 000000000..3c1f5bf96 --- /dev/null +++ b/proto/go/gitalypb/wiki_grpc.pb.go @@ -0,0 +1,396 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package gitalypb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// WikiServiceClient is the client API for WikiService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type WikiServiceClient interface { + WikiWritePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiWritePageClient, error) + WikiUpdatePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiUpdatePageClient, error) + // WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large. + WikiFindPage(ctx context.Context, in *WikiFindPageRequest, opts ...grpc.CallOption) (WikiService_WikiFindPageClient, error) + WikiGetAllPages(ctx context.Context, in *WikiGetAllPagesRequest, opts ...grpc.CallOption) (WikiService_WikiGetAllPagesClient, error) + WikiListPages(ctx context.Context, in *WikiListPagesRequest, opts ...grpc.CallOption) (WikiService_WikiListPagesClient, error) +} + +type wikiServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewWikiServiceClient(cc grpc.ClientConnInterface) WikiServiceClient { + return &wikiServiceClient{cc} +} + +func (c *wikiServiceClient) WikiWritePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiWritePageClient, error) { + stream, err := c.cc.NewStream(ctx, &WikiService_ServiceDesc.Streams[0], "/gitaly.WikiService/WikiWritePage", opts...) + if err != nil { + return nil, err + } + x := &wikiServiceWikiWritePageClient{stream} + return x, nil +} + +type WikiService_WikiWritePageClient interface { + Send(*WikiWritePageRequest) error + CloseAndRecv() (*WikiWritePageResponse, error) + grpc.ClientStream +} + +type wikiServiceWikiWritePageClient struct { + grpc.ClientStream +} + +func (x *wikiServiceWikiWritePageClient) Send(m *WikiWritePageRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *wikiServiceWikiWritePageClient) CloseAndRecv() (*WikiWritePageResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(WikiWritePageResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *wikiServiceClient) WikiUpdatePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiUpdatePageClient, error) { + stream, err := c.cc.NewStream(ctx, &WikiService_ServiceDesc.Streams[1], "/gitaly.WikiService/WikiUpdatePage", opts...) + if err != nil { + return nil, err + } + x := &wikiServiceWikiUpdatePageClient{stream} + return x, nil +} + +type WikiService_WikiUpdatePageClient interface { + Send(*WikiUpdatePageRequest) error + CloseAndRecv() (*WikiUpdatePageResponse, error) + grpc.ClientStream +} + +type wikiServiceWikiUpdatePageClient struct { + grpc.ClientStream +} + +func (x *wikiServiceWikiUpdatePageClient) Send(m *WikiUpdatePageRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *wikiServiceWikiUpdatePageClient) CloseAndRecv() (*WikiUpdatePageResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(WikiUpdatePageResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *wikiServiceClient) WikiFindPage(ctx context.Context, in *WikiFindPageRequest, opts ...grpc.CallOption) (WikiService_WikiFindPageClient, error) { + stream, err := c.cc.NewStream(ctx, &WikiService_ServiceDesc.Streams[2], "/gitaly.WikiService/WikiFindPage", opts...) + if err != nil { + return nil, err + } + x := &wikiServiceWikiFindPageClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WikiService_WikiFindPageClient interface { + Recv() (*WikiFindPageResponse, error) + grpc.ClientStream +} + +type wikiServiceWikiFindPageClient struct { + grpc.ClientStream +} + +func (x *wikiServiceWikiFindPageClient) Recv() (*WikiFindPageResponse, error) { + m := new(WikiFindPageResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *wikiServiceClient) WikiGetAllPages(ctx context.Context, in *WikiGetAllPagesRequest, opts ...grpc.CallOption) (WikiService_WikiGetAllPagesClient, error) { + stream, err := c.cc.NewStream(ctx, &WikiService_ServiceDesc.Streams[3], "/gitaly.WikiService/WikiGetAllPages", opts...) + if err != nil { + return nil, err + } + x := &wikiServiceWikiGetAllPagesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WikiService_WikiGetAllPagesClient interface { + Recv() (*WikiGetAllPagesResponse, error) + grpc.ClientStream +} + +type wikiServiceWikiGetAllPagesClient struct { + grpc.ClientStream +} + +func (x *wikiServiceWikiGetAllPagesClient) Recv() (*WikiGetAllPagesResponse, error) { + m := new(WikiGetAllPagesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *wikiServiceClient) WikiListPages(ctx context.Context, in *WikiListPagesRequest, opts ...grpc.CallOption) (WikiService_WikiListPagesClient, error) { + stream, err := c.cc.NewStream(ctx, &WikiService_ServiceDesc.Streams[4], "/gitaly.WikiService/WikiListPages", opts...) + if err != nil { + return nil, err + } + x := &wikiServiceWikiListPagesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WikiService_WikiListPagesClient interface { + Recv() (*WikiListPagesResponse, error) + grpc.ClientStream +} + +type wikiServiceWikiListPagesClient struct { + grpc.ClientStream +} + +func (x *wikiServiceWikiListPagesClient) Recv() (*WikiListPagesResponse, error) { + m := new(WikiListPagesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// WikiServiceServer is the server API for WikiService service. +// All implementations must embed UnimplementedWikiServiceServer +// for forward compatibility +type WikiServiceServer interface { + WikiWritePage(WikiService_WikiWritePageServer) error + WikiUpdatePage(WikiService_WikiUpdatePageServer) error + // WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large. + WikiFindPage(*WikiFindPageRequest, WikiService_WikiFindPageServer) error + WikiGetAllPages(*WikiGetAllPagesRequest, WikiService_WikiGetAllPagesServer) error + WikiListPages(*WikiListPagesRequest, WikiService_WikiListPagesServer) error + mustEmbedUnimplementedWikiServiceServer() +} + +// UnimplementedWikiServiceServer must be embedded to have forward compatible implementations. +type UnimplementedWikiServiceServer struct { +} + +func (UnimplementedWikiServiceServer) WikiWritePage(WikiService_WikiWritePageServer) error { + return status.Errorf(codes.Unimplemented, "method WikiWritePage not implemented") +} +func (UnimplementedWikiServiceServer) WikiUpdatePage(WikiService_WikiUpdatePageServer) error { + return status.Errorf(codes.Unimplemented, "method WikiUpdatePage not implemented") +} +func (UnimplementedWikiServiceServer) WikiFindPage(*WikiFindPageRequest, WikiService_WikiFindPageServer) error { + return status.Errorf(codes.Unimplemented, "method WikiFindPage not implemented") +} +func (UnimplementedWikiServiceServer) WikiGetAllPages(*WikiGetAllPagesRequest, WikiService_WikiGetAllPagesServer) error { + return status.Errorf(codes.Unimplemented, "method WikiGetAllPages not implemented") +} +func (UnimplementedWikiServiceServer) WikiListPages(*WikiListPagesRequest, WikiService_WikiListPagesServer) error { + return status.Errorf(codes.Unimplemented, "method WikiListPages not implemented") +} +func (UnimplementedWikiServiceServer) mustEmbedUnimplementedWikiServiceServer() {} + +// UnsafeWikiServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to WikiServiceServer will +// result in compilation errors. +type UnsafeWikiServiceServer interface { + mustEmbedUnimplementedWikiServiceServer() +} + +func RegisterWikiServiceServer(s grpc.ServiceRegistrar, srv WikiServiceServer) { + s.RegisterService(&WikiService_ServiceDesc, srv) +} + +func _WikiService_WikiWritePage_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(WikiServiceServer).WikiWritePage(&wikiServiceWikiWritePageServer{stream}) +} + +type WikiService_WikiWritePageServer interface { + SendAndClose(*WikiWritePageResponse) error + Recv() (*WikiWritePageRequest, error) + grpc.ServerStream +} + +type wikiServiceWikiWritePageServer struct { + grpc.ServerStream +} + +func (x *wikiServiceWikiWritePageServer) SendAndClose(m *WikiWritePageResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *wikiServiceWikiWritePageServer) Recv() (*WikiWritePageRequest, error) { + m := new(WikiWritePageRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _WikiService_WikiUpdatePage_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(WikiServiceServer).WikiUpdatePage(&wikiServiceWikiUpdatePageServer{stream}) +} + +type WikiService_WikiUpdatePageServer interface { + SendAndClose(*WikiUpdatePageResponse) error + Recv() (*WikiUpdatePageRequest, error) + grpc.ServerStream +} + +type wikiServiceWikiUpdatePageServer struct { + grpc.ServerStream +} + +func (x *wikiServiceWikiUpdatePageServer) SendAndClose(m *WikiUpdatePageResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *wikiServiceWikiUpdatePageServer) Recv() (*WikiUpdatePageRequest, error) { + m := new(WikiUpdatePageRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _WikiService_WikiFindPage_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WikiFindPageRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WikiServiceServer).WikiFindPage(m, &wikiServiceWikiFindPageServer{stream}) +} + +type WikiService_WikiFindPageServer interface { + Send(*WikiFindPageResponse) error + grpc.ServerStream +} + +type wikiServiceWikiFindPageServer struct { + grpc.ServerStream +} + +func (x *wikiServiceWikiFindPageServer) Send(m *WikiFindPageResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _WikiService_WikiGetAllPages_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WikiGetAllPagesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WikiServiceServer).WikiGetAllPages(m, &wikiServiceWikiGetAllPagesServer{stream}) +} + +type WikiService_WikiGetAllPagesServer interface { + Send(*WikiGetAllPagesResponse) error + grpc.ServerStream +} + +type wikiServiceWikiGetAllPagesServer struct { + grpc.ServerStream +} + +func (x *wikiServiceWikiGetAllPagesServer) Send(m *WikiGetAllPagesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _WikiService_WikiListPages_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WikiListPagesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WikiServiceServer).WikiListPages(m, &wikiServiceWikiListPagesServer{stream}) +} + +type WikiService_WikiListPagesServer interface { + Send(*WikiListPagesResponse) error + grpc.ServerStream +} + +type wikiServiceWikiListPagesServer struct { + grpc.ServerStream +} + +func (x *wikiServiceWikiListPagesServer) Send(m *WikiListPagesResponse) error { + return x.ServerStream.SendMsg(m) +} + +// WikiService_ServiceDesc is the grpc.ServiceDesc for WikiService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var WikiService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.WikiService", + HandlerType: (*WikiServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "WikiWritePage", + Handler: _WikiService_WikiWritePage_Handler, + ClientStreams: true, + }, + { + StreamName: "WikiUpdatePage", + Handler: _WikiService_WikiUpdatePage_Handler, + ClientStreams: true, + }, + { + StreamName: "WikiFindPage", + Handler: _WikiService_WikiFindPage_Handler, + ServerStreams: true, + }, + { + StreamName: "WikiGetAllPages", + Handler: _WikiService_WikiGetAllPages_Handler, + ServerStreams: true, + }, + { + StreamName: "WikiListPages", + Handler: _WikiService_WikiListPages_Handler, + ServerStreams: true, + }, + }, + Metadata: "wiki.proto", +} diff --git a/proto/go/internal/linter/testdata/invalid.pb.go b/proto/go/internal/linter/testdata/invalid.pb.go index 3fb20127b..97f9aa49d 100644 --- a/proto/go/internal/linter/testdata/invalid.pb.go +++ b/proto/go/internal/linter/testdata/invalid.pb.go @@ -1,1304 +1,1193 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: go/internal/linter/testdata/invalid.proto -package test +package testdata import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" gitalypb "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type InvalidMethodRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *InvalidMethodRequest) Reset() { *m = InvalidMethodRequest{} } -func (m *InvalidMethodRequest) String() string { return proto.CompactTextString(m) } -func (*InvalidMethodRequest) ProtoMessage() {} -func (*InvalidMethodRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{0} +func (x *InvalidMethodRequest) Reset() { + *x = InvalidMethodRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InvalidMethodRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InvalidMethodRequest.Unmarshal(m, b) -} -func (m *InvalidMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InvalidMethodRequest.Marshal(b, m, deterministic) -} -func (m *InvalidMethodRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InvalidMethodRequest.Merge(m, src) -} -func (m *InvalidMethodRequest) XXX_Size() int { - return xxx_messageInfo_InvalidMethodRequest.Size(m) -} -func (m *InvalidMethodRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InvalidMethodRequest.DiscardUnknown(m) +func (x *InvalidMethodRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_InvalidMethodRequest proto.InternalMessageInfo +func (*InvalidMethodRequest) ProtoMessage() {} -type InvalidMethodRequestWithRepo struct { - Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *InvalidMethodRequest) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *InvalidMethodRequestWithRepo) Reset() { *m = InvalidMethodRequestWithRepo{} } -func (m *InvalidMethodRequestWithRepo) String() string { return proto.CompactTextString(m) } -func (*InvalidMethodRequestWithRepo) ProtoMessage() {} -func (*InvalidMethodRequestWithRepo) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{1} +// Deprecated: Use InvalidMethodRequest.ProtoReflect.Descriptor instead. +func (*InvalidMethodRequest) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{0} } -func (m *InvalidMethodRequestWithRepo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InvalidMethodRequestWithRepo.Unmarshal(m, b) -} -func (m *InvalidMethodRequestWithRepo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InvalidMethodRequestWithRepo.Marshal(b, m, deterministic) +type InvalidMethodRequestWithRepo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` } -func (m *InvalidMethodRequestWithRepo) XXX_Merge(src proto.Message) { - xxx_messageInfo_InvalidMethodRequestWithRepo.Merge(m, src) + +func (x *InvalidMethodRequestWithRepo) Reset() { + *x = InvalidMethodRequestWithRepo{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InvalidMethodRequestWithRepo) XXX_Size() int { - return xxx_messageInfo_InvalidMethodRequestWithRepo.Size(m) + +func (x *InvalidMethodRequestWithRepo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InvalidMethodRequestWithRepo) XXX_DiscardUnknown() { - xxx_messageInfo_InvalidMethodRequestWithRepo.DiscardUnknown(m) + +func (*InvalidMethodRequestWithRepo) ProtoMessage() {} + +func (x *InvalidMethodRequestWithRepo) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_InvalidMethodRequestWithRepo proto.InternalMessageInfo +// Deprecated: Use InvalidMethodRequestWithRepo.ProtoReflect.Descriptor instead. +func (*InvalidMethodRequestWithRepo) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{1} +} -func (m *InvalidMethodRequestWithRepo) GetDestination() *gitalypb.Repository { - if m != nil { - return m.Destination +func (x *InvalidMethodRequestWithRepo) GetDestination() *gitalypb.Repository { + if x != nil { + return x.Destination } return nil } type InvalidTargetType struct { - WrongType int32 `protobuf:"varint,1,opt,name=wrong_type,json=wrongType,proto3" json:"wrong_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *InvalidTargetType) Reset() { *m = InvalidTargetType{} } -func (m *InvalidTargetType) String() string { return proto.CompactTextString(m) } -func (*InvalidTargetType) ProtoMessage() {} -func (*InvalidTargetType) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{2} + WrongType int32 `protobuf:"varint,1,opt,name=wrong_type,json=wrongType,proto3" json:"wrong_type,omitempty"` } -func (m *InvalidTargetType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InvalidTargetType.Unmarshal(m, b) -} -func (m *InvalidTargetType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InvalidTargetType.Marshal(b, m, deterministic) -} -func (m *InvalidTargetType) XXX_Merge(src proto.Message) { - xxx_messageInfo_InvalidTargetType.Merge(m, src) +func (x *InvalidTargetType) Reset() { + *x = InvalidTargetType{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InvalidTargetType) XXX_Size() int { - return xxx_messageInfo_InvalidTargetType.Size(m) + +func (x *InvalidTargetType) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InvalidTargetType) XXX_DiscardUnknown() { - xxx_messageInfo_InvalidTargetType.DiscardUnknown(m) + +func (*InvalidTargetType) ProtoMessage() {} + +func (x *InvalidTargetType) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_InvalidTargetType proto.InternalMessageInfo +// Deprecated: Use InvalidTargetType.ProtoReflect.Descriptor instead. +func (*InvalidTargetType) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{2} +} -func (m *InvalidTargetType) GetWrongType() int32 { - if m != nil { - return m.WrongType +func (x *InvalidTargetType) GetWrongType() int32 { + if x != nil { + return x.WrongType } return 0 } type InvalidMethodResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *InvalidMethodResponse) Reset() { *m = InvalidMethodResponse{} } -func (m *InvalidMethodResponse) String() string { return proto.CompactTextString(m) } -func (*InvalidMethodResponse) ProtoMessage() {} -func (*InvalidMethodResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{3} +func (x *InvalidMethodResponse) Reset() { + *x = InvalidMethodResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InvalidMethodResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InvalidMethodResponse.Unmarshal(m, b) -} -func (m *InvalidMethodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InvalidMethodResponse.Marshal(b, m, deterministic) -} -func (m *InvalidMethodResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_InvalidMethodResponse.Merge(m, src) -} -func (m *InvalidMethodResponse) XXX_Size() int { - return xxx_messageInfo_InvalidMethodResponse.Size(m) -} -func (m *InvalidMethodResponse) XXX_DiscardUnknown() { - xxx_messageInfo_InvalidMethodResponse.DiscardUnknown(m) +func (x *InvalidMethodResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_InvalidMethodResponse proto.InternalMessageInfo +func (*InvalidMethodResponse) ProtoMessage() {} -type InvalidNestedRequest struct { - InnerMessage *InvalidTargetType `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *InvalidMethodResponse) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *InvalidNestedRequest) Reset() { *m = InvalidNestedRequest{} } -func (m *InvalidNestedRequest) String() string { return proto.CompactTextString(m) } -func (*InvalidNestedRequest) ProtoMessage() {} -func (*InvalidNestedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{4} +// Deprecated: Use InvalidMethodResponse.ProtoReflect.Descriptor instead. +func (*InvalidMethodResponse) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{3} } -func (m *InvalidNestedRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InvalidNestedRequest.Unmarshal(m, b) -} -func (m *InvalidNestedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InvalidNestedRequest.Marshal(b, m, deterministic) -} -func (m *InvalidNestedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InvalidNestedRequest.Merge(m, src) -} -func (m *InvalidNestedRequest) XXX_Size() int { - return xxx_messageInfo_InvalidNestedRequest.Size(m) -} -func (m *InvalidNestedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InvalidNestedRequest.DiscardUnknown(m) -} +type InvalidNestedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var xxx_messageInfo_InvalidNestedRequest proto.InternalMessageInfo + InnerMessage *InvalidTargetType `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` +} -func (m *InvalidNestedRequest) GetInnerMessage() *InvalidTargetType { - if m != nil { - return m.InnerMessage +func (x *InvalidNestedRequest) Reset() { + *x = InvalidNestedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type RequestWithStorage struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Destination *gitalypb.Repository `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *InvalidNestedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RequestWithStorage) Reset() { *m = RequestWithStorage{} } -func (m *RequestWithStorage) String() string { return proto.CompactTextString(m) } -func (*RequestWithStorage) ProtoMessage() {} -func (*RequestWithStorage) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{5} -} +func (*InvalidNestedRequest) ProtoMessage() {} -func (m *RequestWithStorage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RequestWithStorage.Unmarshal(m, b) -} -func (m *RequestWithStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RequestWithStorage.Marshal(b, m, deterministic) -} -func (m *RequestWithStorage) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestWithStorage.Merge(m, src) -} -func (m *RequestWithStorage) XXX_Size() int { - return xxx_messageInfo_RequestWithStorage.Size(m) -} -func (m *RequestWithStorage) XXX_DiscardUnknown() { - xxx_messageInfo_RequestWithStorage.DiscardUnknown(m) +func (x *InvalidNestedRequest) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RequestWithStorage proto.InternalMessageInfo - -func (m *RequestWithStorage) GetStorageName() string { - if m != nil { - return m.StorageName - } - return "" +// Deprecated: Use InvalidNestedRequest.ProtoReflect.Descriptor instead. +func (*InvalidNestedRequest) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{4} } -func (m *RequestWithStorage) GetDestination() *gitalypb.Repository { - if m != nil { - return m.Destination +func (x *InvalidNestedRequest) GetInnerMessage() *InvalidTargetType { + if x != nil { + return x.InnerMessage } return nil } -type RequestWithStorageAndRepo struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Destination *gitalypb.Repository `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type RequestWithStorage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RequestWithStorageAndRepo) Reset() { *m = RequestWithStorageAndRepo{} } -func (m *RequestWithStorageAndRepo) String() string { return proto.CompactTextString(m) } -func (*RequestWithStorageAndRepo) ProtoMessage() {} -func (*RequestWithStorageAndRepo) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{6} + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` + Destination *gitalypb.Repository `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` } -func (m *RequestWithStorageAndRepo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RequestWithStorageAndRepo.Unmarshal(m, b) -} -func (m *RequestWithStorageAndRepo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RequestWithStorageAndRepo.Marshal(b, m, deterministic) -} -func (m *RequestWithStorageAndRepo) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestWithStorageAndRepo.Merge(m, src) +func (x *RequestWithStorage) Reset() { + *x = RequestWithStorage{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RequestWithStorageAndRepo) XXX_Size() int { - return xxx_messageInfo_RequestWithStorageAndRepo.Size(m) + +func (x *RequestWithStorage) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RequestWithStorageAndRepo) XXX_DiscardUnknown() { - xxx_messageInfo_RequestWithStorageAndRepo.DiscardUnknown(m) + +func (*RequestWithStorage) ProtoMessage() {} + +func (x *RequestWithStorage) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RequestWithStorageAndRepo proto.InternalMessageInfo +// Deprecated: Use RequestWithStorage.ProtoReflect.Descriptor instead. +func (*RequestWithStorage) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{5} +} -func (m *RequestWithStorageAndRepo) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *RequestWithStorage) GetStorageName() string { + if x != nil { + return x.StorageName } return "" } -func (m *RequestWithStorageAndRepo) GetDestination() *gitalypb.Repository { - if m != nil { - return m.Destination +func (x *RequestWithStorage) GetDestination() *gitalypb.Repository { + if x != nil { + return x.Destination } return nil } -type RequestWithNestedStorageAndRepo struct { - InnerMessage *RequestWithStorageAndRepo `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type RequestWithStorageAndRepo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RequestWithNestedStorageAndRepo) Reset() { *m = RequestWithNestedStorageAndRepo{} } -func (m *RequestWithNestedStorageAndRepo) String() string { return proto.CompactTextString(m) } -func (*RequestWithNestedStorageAndRepo) ProtoMessage() {} -func (*RequestWithNestedStorageAndRepo) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{7} + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` + Destination *gitalypb.Repository `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` } -func (m *RequestWithNestedStorageAndRepo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RequestWithNestedStorageAndRepo.Unmarshal(m, b) -} -func (m *RequestWithNestedStorageAndRepo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RequestWithNestedStorageAndRepo.Marshal(b, m, deterministic) -} -func (m *RequestWithNestedStorageAndRepo) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestWithNestedStorageAndRepo.Merge(m, src) -} -func (m *RequestWithNestedStorageAndRepo) XXX_Size() int { - return xxx_messageInfo_RequestWithNestedStorageAndRepo.Size(m) +func (x *RequestWithStorageAndRepo) Reset() { + *x = RequestWithStorageAndRepo{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RequestWithNestedStorageAndRepo) XXX_DiscardUnknown() { - xxx_messageInfo_RequestWithNestedStorageAndRepo.DiscardUnknown(m) + +func (x *RequestWithStorageAndRepo) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RequestWithNestedStorageAndRepo proto.InternalMessageInfo +func (*RequestWithStorageAndRepo) ProtoMessage() {} -func (m *RequestWithNestedStorageAndRepo) GetInnerMessage() *RequestWithStorageAndRepo { - if m != nil { - return m.InnerMessage +func (x *RequestWithStorageAndRepo) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type RequestWithMultipleNestedStorage struct { - InnerMessage *RequestWithStorage `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` - StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RequestWithMultipleNestedStorage) Reset() { *m = RequestWithMultipleNestedStorage{} } -func (m *RequestWithMultipleNestedStorage) String() string { return proto.CompactTextString(m) } -func (*RequestWithMultipleNestedStorage) ProtoMessage() {} -func (*RequestWithMultipleNestedStorage) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{8} +// Deprecated: Use RequestWithStorageAndRepo.ProtoReflect.Descriptor instead. +func (*RequestWithStorageAndRepo) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{6} } -func (m *RequestWithMultipleNestedStorage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RequestWithMultipleNestedStorage.Unmarshal(m, b) -} -func (m *RequestWithMultipleNestedStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RequestWithMultipleNestedStorage.Marshal(b, m, deterministic) -} -func (m *RequestWithMultipleNestedStorage) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestWithMultipleNestedStorage.Merge(m, src) -} -func (m *RequestWithMultipleNestedStorage) XXX_Size() int { - return xxx_messageInfo_RequestWithMultipleNestedStorage.Size(m) -} -func (m *RequestWithMultipleNestedStorage) XXX_DiscardUnknown() { - xxx_messageInfo_RequestWithMultipleNestedStorage.DiscardUnknown(m) +func (x *RequestWithStorageAndRepo) GetStorageName() string { + if x != nil { + return x.StorageName + } + return "" } -var xxx_messageInfo_RequestWithMultipleNestedStorage proto.InternalMessageInfo - -func (m *RequestWithMultipleNestedStorage) GetInnerMessage() *RequestWithStorage { - if m != nil { - return m.InnerMessage +func (x *RequestWithStorageAndRepo) GetDestination() *gitalypb.Repository { + if x != nil { + return x.Destination } return nil } -func (m *RequestWithMultipleNestedStorage) GetStorageName() string { - if m != nil { - return m.StorageName - } - return "" -} +type RequestWithNestedStorageAndRepo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type RequestWithInnerNestedStorage struct { - Header *RequestWithInnerNestedStorage_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + InnerMessage *RequestWithStorageAndRepo `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` } -func (m *RequestWithInnerNestedStorage) Reset() { *m = RequestWithInnerNestedStorage{} } -func (m *RequestWithInnerNestedStorage) String() string { return proto.CompactTextString(m) } -func (*RequestWithInnerNestedStorage) ProtoMessage() {} -func (*RequestWithInnerNestedStorage) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{9} +func (x *RequestWithNestedStorageAndRepo) Reset() { + *x = RequestWithNestedStorageAndRepo{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RequestWithInnerNestedStorage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RequestWithInnerNestedStorage.Unmarshal(m, b) -} -func (m *RequestWithInnerNestedStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RequestWithInnerNestedStorage.Marshal(b, m, deterministic) -} -func (m *RequestWithInnerNestedStorage) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestWithInnerNestedStorage.Merge(m, src) -} -func (m *RequestWithInnerNestedStorage) XXX_Size() int { - return xxx_messageInfo_RequestWithInnerNestedStorage.Size(m) -} -func (m *RequestWithInnerNestedStorage) XXX_DiscardUnknown() { - xxx_messageInfo_RequestWithInnerNestedStorage.DiscardUnknown(m) +func (x *RequestWithNestedStorageAndRepo) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RequestWithInnerNestedStorage proto.InternalMessageInfo +func (*RequestWithNestedStorageAndRepo) ProtoMessage() {} -func (m *RequestWithInnerNestedStorage) GetHeader() *RequestWithInnerNestedStorage_Header { - if m != nil { - return m.Header +func (x *RequestWithNestedStorageAndRepo) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type RequestWithInnerNestedStorage_Header struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use RequestWithNestedStorageAndRepo.ProtoReflect.Descriptor instead. +func (*RequestWithNestedStorageAndRepo) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{7} } -func (m *RequestWithInnerNestedStorage_Header) Reset() { *m = RequestWithInnerNestedStorage_Header{} } -func (m *RequestWithInnerNestedStorage_Header) String() string { return proto.CompactTextString(m) } -func (*RequestWithInnerNestedStorage_Header) ProtoMessage() {} -func (*RequestWithInnerNestedStorage_Header) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{9, 0} +func (x *RequestWithNestedStorageAndRepo) GetInnerMessage() *RequestWithStorageAndRepo { + if x != nil { + return x.InnerMessage + } + return nil } -func (m *RequestWithInnerNestedStorage_Header) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RequestWithInnerNestedStorage_Header.Unmarshal(m, b) -} -func (m *RequestWithInnerNestedStorage_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RequestWithInnerNestedStorage_Header.Marshal(b, m, deterministic) -} -func (m *RequestWithInnerNestedStorage_Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestWithInnerNestedStorage_Header.Merge(m, src) -} -func (m *RequestWithInnerNestedStorage_Header) XXX_Size() int { - return xxx_messageInfo_RequestWithInnerNestedStorage_Header.Size(m) -} -func (m *RequestWithInnerNestedStorage_Header) XXX_DiscardUnknown() { - xxx_messageInfo_RequestWithInnerNestedStorage_Header.DiscardUnknown(m) -} +type RequestWithMultipleNestedStorage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var xxx_messageInfo_RequestWithInnerNestedStorage_Header proto.InternalMessageInfo + InnerMessage *RequestWithStorage `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` + StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` +} -func (m *RequestWithInnerNestedStorage_Header) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *RequestWithMultipleNestedStorage) Reset() { + *x = RequestWithMultipleNestedStorage{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -type RequestWithWrongTypeRepository struct { - Header *RequestWithWrongTypeRepository_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *RequestWithMultipleNestedStorage) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RequestWithWrongTypeRepository) Reset() { *m = RequestWithWrongTypeRepository{} } -func (m *RequestWithWrongTypeRepository) String() string { return proto.CompactTextString(m) } -func (*RequestWithWrongTypeRepository) ProtoMessage() {} -func (*RequestWithWrongTypeRepository) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{10} -} +func (*RequestWithMultipleNestedStorage) ProtoMessage() {} -func (m *RequestWithWrongTypeRepository) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RequestWithWrongTypeRepository.Unmarshal(m, b) -} -func (m *RequestWithWrongTypeRepository) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RequestWithWrongTypeRepository.Marshal(b, m, deterministic) -} -func (m *RequestWithWrongTypeRepository) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestWithWrongTypeRepository.Merge(m, src) -} -func (m *RequestWithWrongTypeRepository) XXX_Size() int { - return xxx_messageInfo_RequestWithWrongTypeRepository.Size(m) -} -func (m *RequestWithWrongTypeRepository) XXX_DiscardUnknown() { - xxx_messageInfo_RequestWithWrongTypeRepository.DiscardUnknown(m) +func (x *RequestWithMultipleNestedStorage) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RequestWithWrongTypeRepository proto.InternalMessageInfo +// Deprecated: Use RequestWithMultipleNestedStorage.ProtoReflect.Descriptor instead. +func (*RequestWithMultipleNestedStorage) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{8} +} -func (m *RequestWithWrongTypeRepository) GetHeader() *RequestWithWrongTypeRepository_Header { - if m != nil { - return m.Header +func (x *RequestWithMultipleNestedStorage) GetInnerMessage() *RequestWithStorage { + if x != nil { + return x.InnerMessage } return nil } -type RequestWithWrongTypeRepository_Header struct { - Repository *InvalidMethodResponse `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *RequestWithMultipleNestedStorage) GetStorageName() string { + if x != nil { + return x.StorageName + } + return "" } -func (m *RequestWithWrongTypeRepository_Header) Reset() { *m = RequestWithWrongTypeRepository_Header{} } -func (m *RequestWithWrongTypeRepository_Header) String() string { return proto.CompactTextString(m) } -func (*RequestWithWrongTypeRepository_Header) ProtoMessage() {} -func (*RequestWithWrongTypeRepository_Header) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{10, 0} -} +type RequestWithInnerNestedStorage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RequestWithWrongTypeRepository_Header) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RequestWithWrongTypeRepository_Header.Unmarshal(m, b) + Header *RequestWithInnerNestedStorage_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` } -func (m *RequestWithWrongTypeRepository_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RequestWithWrongTypeRepository_Header.Marshal(b, m, deterministic) -} -func (m *RequestWithWrongTypeRepository_Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestWithWrongTypeRepository_Header.Merge(m, src) -} -func (m *RequestWithWrongTypeRepository_Header) XXX_Size() int { - return xxx_messageInfo_RequestWithWrongTypeRepository_Header.Size(m) -} -func (m *RequestWithWrongTypeRepository_Header) XXX_DiscardUnknown() { - xxx_messageInfo_RequestWithWrongTypeRepository_Header.DiscardUnknown(m) -} - -var xxx_messageInfo_RequestWithWrongTypeRepository_Header proto.InternalMessageInfo -func (m *RequestWithWrongTypeRepository_Header) GetRepository() *InvalidMethodResponse { - if m != nil { - return m.Repository +func (x *RequestWithInnerNestedStorage) Reset() { + *x = RequestWithInnerNestedStorage{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type RequestWithNestedRepoNotFlagged struct { - Header *RequestWithNestedRepoNotFlagged_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *RequestWithInnerNestedStorage) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RequestWithNestedRepoNotFlagged) Reset() { *m = RequestWithNestedRepoNotFlagged{} } -func (m *RequestWithNestedRepoNotFlagged) String() string { return proto.CompactTextString(m) } -func (*RequestWithNestedRepoNotFlagged) ProtoMessage() {} -func (*RequestWithNestedRepoNotFlagged) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{11} -} +func (*RequestWithInnerNestedStorage) ProtoMessage() {} -func (m *RequestWithNestedRepoNotFlagged) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RequestWithNestedRepoNotFlagged.Unmarshal(m, b) -} -func (m *RequestWithNestedRepoNotFlagged) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RequestWithNestedRepoNotFlagged.Marshal(b, m, deterministic) -} -func (m *RequestWithNestedRepoNotFlagged) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestWithNestedRepoNotFlagged.Merge(m, src) -} -func (m *RequestWithNestedRepoNotFlagged) XXX_Size() int { - return xxx_messageInfo_RequestWithNestedRepoNotFlagged.Size(m) -} -func (m *RequestWithNestedRepoNotFlagged) XXX_DiscardUnknown() { - xxx_messageInfo_RequestWithNestedRepoNotFlagged.DiscardUnknown(m) +func (x *RequestWithInnerNestedStorage) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RequestWithNestedRepoNotFlagged proto.InternalMessageInfo +// Deprecated: Use RequestWithInnerNestedStorage.ProtoReflect.Descriptor instead. +func (*RequestWithInnerNestedStorage) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{9} +} -func (m *RequestWithNestedRepoNotFlagged) GetHeader() *RequestWithNestedRepoNotFlagged_Header { - if m != nil { - return m.Header +func (x *RequestWithInnerNestedStorage) GetHeader() *RequestWithInnerNestedStorage_Header { + if x != nil { + return x.Header } return nil } -type RequestWithNestedRepoNotFlagged_Header struct { - Repository *gitalypb.Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type RequestWithWrongTypeRepository struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RequestWithNestedRepoNotFlagged_Header) Reset() { - *m = RequestWithNestedRepoNotFlagged_Header{} -} -func (m *RequestWithNestedRepoNotFlagged_Header) String() string { return proto.CompactTextString(m) } -func (*RequestWithNestedRepoNotFlagged_Header) ProtoMessage() {} -func (*RequestWithNestedRepoNotFlagged_Header) Descriptor() ([]byte, []int) { - return fileDescriptor_506a53e91b227711, []int{11, 0} + Header *RequestWithWrongTypeRepository_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` } -func (m *RequestWithNestedRepoNotFlagged_Header) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RequestWithNestedRepoNotFlagged_Header.Unmarshal(m, b) -} -func (m *RequestWithNestedRepoNotFlagged_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RequestWithNestedRepoNotFlagged_Header.Marshal(b, m, deterministic) -} -func (m *RequestWithNestedRepoNotFlagged_Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestWithNestedRepoNotFlagged_Header.Merge(m, src) -} -func (m *RequestWithNestedRepoNotFlagged_Header) XXX_Size() int { - return xxx_messageInfo_RequestWithNestedRepoNotFlagged_Header.Size(m) -} -func (m *RequestWithNestedRepoNotFlagged_Header) XXX_DiscardUnknown() { - xxx_messageInfo_RequestWithNestedRepoNotFlagged_Header.DiscardUnknown(m) +func (x *RequestWithWrongTypeRepository) Reset() { + *x = RequestWithWrongTypeRepository{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var xxx_messageInfo_RequestWithNestedRepoNotFlagged_Header proto.InternalMessageInfo - -func (m *RequestWithNestedRepoNotFlagged_Header) GetRepository() *gitalypb.Repository { - if m != nil { - return m.Repository - } - return nil +func (x *RequestWithWrongTypeRepository) String() string { + return protoimpl.X.MessageStringOf(x) } -func init() { - proto.RegisterType((*InvalidMethodRequest)(nil), "test.InvalidMethodRequest") - proto.RegisterType((*InvalidMethodRequestWithRepo)(nil), "test.InvalidMethodRequestWithRepo") - proto.RegisterType((*InvalidTargetType)(nil), "test.InvalidTargetType") - proto.RegisterType((*InvalidMethodResponse)(nil), "test.InvalidMethodResponse") - proto.RegisterType((*InvalidNestedRequest)(nil), "test.InvalidNestedRequest") - proto.RegisterType((*RequestWithStorage)(nil), "test.RequestWithStorage") - proto.RegisterType((*RequestWithStorageAndRepo)(nil), "test.RequestWithStorageAndRepo") - proto.RegisterType((*RequestWithNestedStorageAndRepo)(nil), "test.RequestWithNestedStorageAndRepo") - proto.RegisterType((*RequestWithMultipleNestedStorage)(nil), "test.RequestWithMultipleNestedStorage") - proto.RegisterType((*RequestWithInnerNestedStorage)(nil), "test.RequestWithInnerNestedStorage") - proto.RegisterType((*RequestWithInnerNestedStorage_Header)(nil), "test.RequestWithInnerNestedStorage.Header") - proto.RegisterType((*RequestWithWrongTypeRepository)(nil), "test.RequestWithWrongTypeRepository") - proto.RegisterType((*RequestWithWrongTypeRepository_Header)(nil), "test.RequestWithWrongTypeRepository.Header") - proto.RegisterType((*RequestWithNestedRepoNotFlagged)(nil), "test.RequestWithNestedRepoNotFlagged") - proto.RegisterType((*RequestWithNestedRepoNotFlagged_Header)(nil), "test.RequestWithNestedRepoNotFlagged.Header") -} - -func init() { - proto.RegisterFile("go/internal/linter/testdata/invalid.proto", fileDescriptor_506a53e91b227711) -} - -var fileDescriptor_506a53e91b227711 = []byte{ - // 711 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0x5b, 0x4f, 0xd4, 0x40, - 0x14, 0xc7, 0xed, 0x66, 0xdd, 0x2c, 0x07, 0xf0, 0x32, 0x51, 0xc1, 0xf5, 0x02, 0xa9, 0xb7, 0x55, - 0x49, 0x17, 0x16, 0x54, 0x24, 0xf8, 0xc0, 0xc6, 0x18, 0x91, 0xb0, 0xea, 0x42, 0x42, 0xe2, 0x25, - 0x38, 0xd2, 0x93, 0x6e, 0x93, 0xd2, 0xd6, 0x99, 0x01, 0xb3, 0x6f, 0x3e, 0x1a, 0x9f, 0x7c, 0x12, - 0xbf, 0x83, 0x5f, 0xc0, 0x4f, 0xe0, 0xe7, 0xf1, 0x99, 0x07, 0x63, 0x7a, 0xd9, 0xa5, 0x9d, 0x4e, - 0xb1, 0xc2, 0x5b, 0x33, 0x3d, 0xe7, 0x7f, 0x7e, 0xf3, 0x3f, 0x73, 0x3a, 0x85, 0xdb, 0x96, 0xd7, - 0xb0, 0x5d, 0x81, 0xcc, 0xa5, 0x4e, 0xc3, 0x09, 0x9f, 0x1a, 0x02, 0xb9, 0x30, 0xa9, 0xa0, 0x0d, - 0xdb, 0xdd, 0xa5, 0x8e, 0x6d, 0x1a, 0x3e, 0xf3, 0x84, 0x47, 0xca, 0xc1, 0x7a, 0x0d, 0x82, 0xa0, - 0x68, 0xa5, 0x36, 0xc2, 0xbb, 0x94, 0x61, 0xfc, 0x5e, 0xbf, 0x00, 0xe7, 0x96, 0xa3, 0x84, 0x55, - 0x14, 0x5d, 0xcf, 0xec, 0xe0, 0x87, 0x1d, 0xe4, 0x42, 0x7f, 0x05, 0x97, 0x55, 0xeb, 0x1b, 0xb6, - 0xe8, 0x76, 0xd0, 0xf7, 0xc8, 0x02, 0x0c, 0x9b, 0xc8, 0x85, 0xed, 0x52, 0x61, 0x7b, 0xee, 0xb8, - 0x36, 0xa9, 0xd5, 0x87, 0x9b, 0xc4, 0xb0, 0x6c, 0x41, 0x9d, 0x9e, 0x11, 0x84, 0x70, 0x5b, 0x78, - 0xac, 0xd7, 0x2a, 0x7f, 0xff, 0x35, 0xa5, 0x75, 0x92, 0xc1, 0xfa, 0x3c, 0x9c, 0x8d, 0xb5, 0xd7, - 0x29, 0xb3, 0x50, 0xac, 0xf7, 0x7c, 0x24, 0xd7, 0x00, 0x3e, 0x32, 0xcf, 0xb5, 0x36, 0x45, 0xcf, - 0xc7, 0x50, 0xef, 0x64, 0x9c, 0x3b, 0x14, 0xae, 0x07, 0x41, 0xfa, 0x18, 0x9c, 0x97, 0xa8, 0xb8, - 0xef, 0xb9, 0x1c, 0xf5, 0xf5, 0xc1, 0x36, 0xda, 0xc8, 0x05, 0xf6, 0x71, 0xc9, 0x22, 0x8c, 0xda, - 0xae, 0x8b, 0x6c, 0x73, 0x1b, 0x39, 0xa7, 0x16, 0xc6, 0xa0, 0x63, 0x46, 0x60, 0x8b, 0x91, 0xa1, - 0xe8, 0x8c, 0x84, 0xd1, 0xab, 0x51, 0xb0, 0xce, 0x81, 0x24, 0xf6, 0xbd, 0x26, 0x3c, 0x46, 0x2d, - 0x24, 0xb7, 0x60, 0x84, 0x47, 0x8f, 0x9b, 0x2e, 0xdd, 0x8e, 0x24, 0x87, 0x5a, 0xe5, 0xcf, 0xe1, - 0x3e, 0xe3, 0x37, 0x6d, 0xba, 0x8d, 0x64, 0x2e, 0xed, 0x51, 0x29, 0xcf, 0xa3, 0xb4, 0x3b, 0x9f, - 0x34, 0xb8, 0x98, 0xad, 0xba, 0xe4, 0x9a, 0xa1, 0xef, 0x85, 0x8b, 0x2f, 0x14, 0x2c, 0xae, 0x6a, - 0x90, 0x05, 0x13, 0x09, 0x82, 0xc8, 0x51, 0x89, 0xe3, 0xb1, 0xda, 0xd8, 0x89, 0xc8, 0xd8, 0x5c, - 0x7e, 0xc9, 0xe0, 0x2f, 0x1a, 0x4c, 0x26, 0x62, 0x57, 0x77, 0x1c, 0x61, 0xfb, 0x0e, 0xa6, 0x2a, - 0x92, 0x47, 0xea, 0x52, 0xe3, 0x79, 0xa5, 0xd2, 0x35, 0x32, 0x8e, 0x95, 0x72, 0x1c, 0xd3, 0xbf, - 0x69, 0x70, 0x25, 0xa1, 0xb6, 0x1c, 0x88, 0xa4, 0x49, 0x5a, 0x50, 0xe9, 0x22, 0x35, 0x91, 0xc5, - 0x08, 0x77, 0x32, 0x08, 0xd9, 0x24, 0xe3, 0x69, 0x98, 0xd1, 0x89, 0x33, 0x6b, 0x33, 0x50, 0x89, - 0x56, 0x0a, 0xb7, 0x52, 0xff, 0xa9, 0xc1, 0xd5, 0x44, 0x8d, 0x8d, 0xfe, 0x38, 0x1c, 0x34, 0x91, - 0x2c, 0x4b, 0x64, 0x77, 0x33, 0x64, 0x8a, 0xac, 0x18, 0x2d, 0x3e, 0x01, 0x7d, 0xc0, 0x95, 0x01, - 0xe0, 0x12, 0x00, 0x1b, 0x04, 0xc7, 0xc2, 0x97, 0x52, 0x93, 0x93, 0x9e, 0xc2, 0x56, 0xf9, 0x6b, - 0x20, 0x94, 0x48, 0xd2, 0x7f, 0x68, 0x8a, 0xa3, 0x14, 0x10, 0xb4, 0x3d, 0xf1, 0xc4, 0xa1, 0x96, - 0x85, 0x26, 0x79, 0x26, 0xb1, 0x4f, 0x65, 0xd8, 0x55, 0x69, 0x6a, 0xf8, 0xc5, 0x01, 0x7c, 0x53, - 0x01, 0xaf, 0x9a, 0xbd, 0x44, 0x54, 0x73, 0x37, 0xf8, 0xe8, 0x09, 0x64, 0x5b, 0xe8, 0x0b, 0x34, - 0x83, 0xca, 0xcf, 0x7d, 0x64, 0xe1, 0x4c, 0x84, 0xdf, 0xa8, 0x17, 0x30, 0x9a, 0xda, 0x38, 0xa9, - 0x29, 0xdd, 0x08, 0xb9, 0x6b, 0x87, 0x39, 0xa5, 0x57, 0xf6, 0xf7, 0xea, 0xa5, 0x6a, 0xa9, 0x56, - 0xfe, 0xbd, 0x57, 0xd7, 0x9a, 0x7f, 0xaa, 0x70, 0x2a, 0x8e, 0x5b, 0x43, 0xb6, 0x6b, 0x6f, 0x21, - 0x59, 0x19, 0xac, 0x44, 0x99, 0xd3, 0x47, 0xaf, 0x75, 0x82, 0xbc, 0x94, 0xc4, 0x66, 0x8e, 0x0b, - 0x9e, 0x95, 0x6c, 0x1e, 0xdb, 0x8b, 0x8c, 0xe4, 0xdc, 0x71, 0x25, 0x35, 0xf2, 0x5a, 0x92, 0xbc, - 0x47, 0xae, 0x17, 0x19, 0x8c, 0x62, 0xe2, 0x6f, 0x24, 0xf1, 0xfb, 0xe4, 0x46, 0xa1, 0x93, 0x5b, - 0x4c, 0xbd, 0x2d, 0xa9, 0x3f, 0x20, 0x79, 0x97, 0x56, 0x31, 0x3d, 0xd9, 0xdd, 0x79, 0xc9, 0xdd, - 0xd4, 0xbd, 0x79, 0x34, 0x77, 0x1f, 0x12, 0x3d, 0xbf, 0x61, 0xfd, 0x3f, 0x87, 0xc3, 0xa5, 0xab, - 0xfb, 0x7b, 0xf5, 0x72, 0x55, 0x3b, 0x53, 0x22, 0x1b, 0x70, 0x3a, 0x7d, 0x66, 0xa7, 0xc9, 0xbf, - 0x2e, 0x97, 0x62, 0xc7, 0xec, 0xad, 0x2c, 0x3c, 0x93, 0xdb, 0xb7, 0xff, 0x97, 0x0f, 0x7c, 0x96, - 0xe4, 0x67, 0x8f, 0xd8, 0xb8, 0x03, 0x2b, 0xde, 0xc9, 0x92, 0x73, 0xe4, 0x66, 0x86, 0x58, 0x79, - 0x77, 0x16, 0xac, 0xf0, 0xbe, 0x12, 0xfe, 0x0c, 0xce, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x76, - 0x6b, 0x7b, 0x04, 0x59, 0x0a, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// InterceptedWithOperationTypeClient is the client API for InterceptedWithOperationType service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type InterceptedWithOperationTypeClient interface { - // intercepted services can't have operation type annotations. - InvalidMethod(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) -} - -type interceptedWithOperationTypeClient struct { - cc *grpc.ClientConn -} - -func NewInterceptedWithOperationTypeClient(cc *grpc.ClientConn) InterceptedWithOperationTypeClient { - return &interceptedWithOperationTypeClient{cc} -} - -func (c *interceptedWithOperationTypeClient) InvalidMethod(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InterceptedWithOperationType/InvalidMethod", in, out, opts...) - if err != nil { - return nil, err +func (*RequestWithWrongTypeRepository) ProtoMessage() {} + +func (x *RequestWithWrongTypeRepository) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -// InterceptedWithOperationTypeServer is the server API for InterceptedWithOperationType service. -type InterceptedWithOperationTypeServer interface { - // intercepted services can't have operation type annotations. - InvalidMethod(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) +// Deprecated: Use RequestWithWrongTypeRepository.ProtoReflect.Descriptor instead. +func (*RequestWithWrongTypeRepository) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{10} } -// UnimplementedInterceptedWithOperationTypeServer can be embedded to have forward compatible implementations. -type UnimplementedInterceptedWithOperationTypeServer struct { +func (x *RequestWithWrongTypeRepository) GetHeader() *RequestWithWrongTypeRepository_Header { + if x != nil { + return x.Header + } + return nil } -func (*UnimplementedInterceptedWithOperationTypeServer) InvalidMethod(ctx context.Context, req *InvalidMethodRequest) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod not implemented") -} +type RequestWithNestedRepoNotFlagged struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func RegisterInterceptedWithOperationTypeServer(s *grpc.Server, srv InterceptedWithOperationTypeServer) { - s.RegisterService(&_InterceptedWithOperationType_serviceDesc, srv) + Header *RequestWithNestedRepoNotFlagged_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` } -func _InterceptedWithOperationType_InvalidMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvalidMethodRequest) - if err := dec(in); err != nil { - return nil, err +func (x *RequestWithNestedRepoNotFlagged) Reset() { + *x = RequestWithNestedRepoNotFlagged{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if interceptor == nil { - return srv.(InterceptedWithOperationTypeServer).InvalidMethod(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InterceptedWithOperationType/InvalidMethod", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InterceptedWithOperationTypeServer).InvalidMethod(ctx, req.(*InvalidMethodRequest)) - } - return interceptor(ctx, in, info, handler) } -var _InterceptedWithOperationType_serviceDesc = grpc.ServiceDesc{ - ServiceName: "test.InterceptedWithOperationType", - HandlerType: (*InterceptedWithOperationTypeServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "InvalidMethod", - Handler: _InterceptedWithOperationType_InvalidMethod_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "go/internal/linter/testdata/invalid.proto", -} - -// InvalidServiceClient is the client API for InvalidService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type InvalidServiceClient interface { - // should fail if op_type extension is missing - InvalidMethod0(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) - // should fail if op type is unknown - InvalidMethod1(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) - // should fail if target repo is not provided for accessor - InvalidMethod2(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) - // should fail if missing either target repo or non-repo-scope for mutator - InvalidMethod4(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) - // should fail if repository is not of type Repository - InvalidMethod5(ctx context.Context, in *RequestWithWrongTypeRepository, opts ...grpc.CallOption) (*InvalidMethodResponse, error) - // should fail if nested repository isn't flagged - InvalidMethod6(ctx context.Context, in *RequestWithNestedRepoNotFlagged, opts ...grpc.CallOption) (*InvalidMethodResponse, error) - // should fail if target field type is not of type Repository - InvalidMethod7(ctx context.Context, in *InvalidTargetType, opts ...grpc.CallOption) (*InvalidMethodResponse, error) - // should fail if nested target field type is not of type Repository - InvalidMethod8(ctx context.Context, in *InvalidNestedRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) - // should fail if target repo is specified for storage scoped RPC - InvalidMethod9(ctx context.Context, in *InvalidMethodRequestWithRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) - // should fail if storage is specified for implicit repository scoped RPC - InvalidMethod10(ctx context.Context, in *RequestWithStorageAndRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) - // should fail if storage is specified for repository scoped RPC - InvalidMethod11(ctx context.Context, in *RequestWithNestedStorageAndRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) - // should fail if storage isn't specified for storage scoped RPC - InvalidMethod13(ctx context.Context, in *InvalidTargetType, opts ...grpc.CallOption) (*InvalidMethodResponse, error) - // should fail if multiple storage is specified for storage scoped RPC - InvalidMethod14(ctx context.Context, in *RequestWithMultipleNestedStorage, opts ...grpc.CallOption) (*InvalidMethodResponse, error) -} - -type invalidServiceClient struct { - cc *grpc.ClientConn -} - -func NewInvalidServiceClient(cc *grpc.ClientConn) InvalidServiceClient { - return &invalidServiceClient{cc} -} - -func (c *invalidServiceClient) InvalidMethod0(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod0", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *RequestWithNestedRepoNotFlagged) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *invalidServiceClient) InvalidMethod1(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod1", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*RequestWithNestedRepoNotFlagged) ProtoMessage() {} -func (c *invalidServiceClient) InvalidMethod2(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod2", in, out, opts...) - if err != nil { - return nil, err +func (x *RequestWithNestedRepoNotFlagged) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *invalidServiceClient) InvalidMethod4(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod4", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use RequestWithNestedRepoNotFlagged.ProtoReflect.Descriptor instead. +func (*RequestWithNestedRepoNotFlagged) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{11} } -func (c *invalidServiceClient) InvalidMethod5(ctx context.Context, in *RequestWithWrongTypeRepository, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod5", in, out, opts...) - if err != nil { - return nil, err +func (x *RequestWithNestedRepoNotFlagged) GetHeader() *RequestWithNestedRepoNotFlagged_Header { + if x != nil { + return x.Header } - return out, nil + return nil } -func (c *invalidServiceClient) InvalidMethod6(ctx context.Context, in *RequestWithNestedRepoNotFlagged, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod6", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +type RequestWithInnerNestedStorage_Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (c *invalidServiceClient) InvalidMethod7(ctx context.Context, in *InvalidTargetType, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod7", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` } -func (c *invalidServiceClient) InvalidMethod8(ctx context.Context, in *InvalidNestedRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod8", in, out, opts...) - if err != nil { - return nil, err +func (x *RequestWithInnerNestedStorage_Header) Reset() { + *x = RequestWithInnerNestedStorage_Header{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil } -func (c *invalidServiceClient) InvalidMethod9(ctx context.Context, in *InvalidMethodRequestWithRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod9", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *RequestWithInnerNestedStorage_Header) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *invalidServiceClient) InvalidMethod10(ctx context.Context, in *RequestWithStorageAndRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod10", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*RequestWithInnerNestedStorage_Header) ProtoMessage() {} -func (c *invalidServiceClient) InvalidMethod11(ctx context.Context, in *RequestWithNestedStorageAndRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod11", in, out, opts...) - if err != nil { - return nil, err +func (x *RequestWithInnerNestedStorage_Header) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *invalidServiceClient) InvalidMethod13(ctx context.Context, in *InvalidTargetType, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod13", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use RequestWithInnerNestedStorage_Header.ProtoReflect.Descriptor instead. +func (*RequestWithInnerNestedStorage_Header) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{9, 0} } -func (c *invalidServiceClient) InvalidMethod14(ctx context.Context, in *RequestWithMultipleNestedStorage, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { - out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod14", in, out, opts...) - if err != nil { - return nil, err +func (x *RequestWithInnerNestedStorage_Header) GetStorageName() string { + if x != nil { + return x.StorageName } - return out, nil + return "" } -// InvalidServiceServer is the server API for InvalidService service. -type InvalidServiceServer interface { - // should fail if op_type extension is missing - InvalidMethod0(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) - // should fail if op type is unknown - InvalidMethod1(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) - // should fail if target repo is not provided for accessor - InvalidMethod2(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) - // should fail if missing either target repo or non-repo-scope for mutator - InvalidMethod4(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) - // should fail if repository is not of type Repository - InvalidMethod5(context.Context, *RequestWithWrongTypeRepository) (*InvalidMethodResponse, error) - // should fail if nested repository isn't flagged - InvalidMethod6(context.Context, *RequestWithNestedRepoNotFlagged) (*InvalidMethodResponse, error) - // should fail if target field type is not of type Repository - InvalidMethod7(context.Context, *InvalidTargetType) (*InvalidMethodResponse, error) - // should fail if nested target field type is not of type Repository - InvalidMethod8(context.Context, *InvalidNestedRequest) (*InvalidMethodResponse, error) - // should fail if target repo is specified for storage scoped RPC - InvalidMethod9(context.Context, *InvalidMethodRequestWithRepo) (*InvalidMethodResponse, error) - // should fail if storage is specified for implicit repository scoped RPC - InvalidMethod10(context.Context, *RequestWithStorageAndRepo) (*InvalidMethodResponse, error) - // should fail if storage is specified for repository scoped RPC - InvalidMethod11(context.Context, *RequestWithNestedStorageAndRepo) (*InvalidMethodResponse, error) - // should fail if storage isn't specified for storage scoped RPC - InvalidMethod13(context.Context, *InvalidTargetType) (*InvalidMethodResponse, error) - // should fail if multiple storage is specified for storage scoped RPC - InvalidMethod14(context.Context, *RequestWithMultipleNestedStorage) (*InvalidMethodResponse, error) -} +type RequestWithWrongTypeRepository_Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// UnimplementedInvalidServiceServer can be embedded to have forward compatible implementations. -type UnimplementedInvalidServiceServer struct { + Repository *InvalidMethodResponse `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func (*UnimplementedInvalidServiceServer) InvalidMethod0(ctx context.Context, req *InvalidMethodRequest) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod0 not implemented") -} -func (*UnimplementedInvalidServiceServer) InvalidMethod1(ctx context.Context, req *InvalidMethodRequest) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod1 not implemented") -} -func (*UnimplementedInvalidServiceServer) InvalidMethod2(ctx context.Context, req *InvalidMethodRequest) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod2 not implemented") -} -func (*UnimplementedInvalidServiceServer) InvalidMethod4(ctx context.Context, req *InvalidMethodRequest) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod4 not implemented") -} -func (*UnimplementedInvalidServiceServer) InvalidMethod5(ctx context.Context, req *RequestWithWrongTypeRepository) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod5 not implemented") -} -func (*UnimplementedInvalidServiceServer) InvalidMethod6(ctx context.Context, req *RequestWithNestedRepoNotFlagged) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod6 not implemented") -} -func (*UnimplementedInvalidServiceServer) InvalidMethod7(ctx context.Context, req *InvalidTargetType) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod7 not implemented") -} -func (*UnimplementedInvalidServiceServer) InvalidMethod8(ctx context.Context, req *InvalidNestedRequest) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod8 not implemented") -} -func (*UnimplementedInvalidServiceServer) InvalidMethod9(ctx context.Context, req *InvalidMethodRequestWithRepo) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod9 not implemented") -} -func (*UnimplementedInvalidServiceServer) InvalidMethod10(ctx context.Context, req *RequestWithStorageAndRepo) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod10 not implemented") -} -func (*UnimplementedInvalidServiceServer) InvalidMethod11(ctx context.Context, req *RequestWithNestedStorageAndRepo) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod11 not implemented") -} -func (*UnimplementedInvalidServiceServer) InvalidMethod13(ctx context.Context, req *InvalidTargetType) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod13 not implemented") -} -func (*UnimplementedInvalidServiceServer) InvalidMethod14(ctx context.Context, req *RequestWithMultipleNestedStorage) (*InvalidMethodResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod14 not implemented") +func (x *RequestWithWrongTypeRepository_Header) Reset() { + *x = RequestWithWrongTypeRepository_Header{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func RegisterInvalidServiceServer(s *grpc.Server, srv InvalidServiceServer) { - s.RegisterService(&_InvalidService_serviceDesc, srv) +func (x *RequestWithWrongTypeRepository_Header) String() string { + return protoimpl.X.MessageStringOf(x) } -func _InvalidService_InvalidMethod0_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvalidMethodRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InvalidServiceServer).InvalidMethod0(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod0", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InvalidServiceServer).InvalidMethod0(ctx, req.(*InvalidMethodRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*RequestWithWrongTypeRepository_Header) ProtoMessage() {} -func _InvalidService_InvalidMethod1_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvalidMethodRequest) - if err := dec(in); err != nil { - return nil, err +func (x *RequestWithWrongTypeRepository_Header) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if interceptor == nil { - return srv.(InvalidServiceServer).InvalidMethod1(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod1", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InvalidServiceServer).InvalidMethod1(ctx, req.(*InvalidMethodRequest)) - } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _InvalidService_InvalidMethod2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvalidMethodRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InvalidServiceServer).InvalidMethod2(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod2", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InvalidServiceServer).InvalidMethod2(ctx, req.(*InvalidMethodRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use RequestWithWrongTypeRepository_Header.ProtoReflect.Descriptor instead. +func (*RequestWithWrongTypeRepository_Header) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{10, 0} } -func _InvalidService_InvalidMethod4_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvalidMethodRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InvalidServiceServer).InvalidMethod4(ctx, in) +func (x *RequestWithWrongTypeRepository_Header) GetRepository() *InvalidMethodResponse { + if x != nil { + return x.Repository } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod4", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InvalidServiceServer).InvalidMethod4(ctx, req.(*InvalidMethodRequest)) - } - return interceptor(ctx, in, info, handler) + return nil } -func _InvalidService_InvalidMethod5_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RequestWithWrongTypeRepository) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InvalidServiceServer).InvalidMethod5(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod5", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InvalidServiceServer).InvalidMethod5(ctx, req.(*RequestWithWrongTypeRepository)) - } - return interceptor(ctx, in, info, handler) -} +type RequestWithNestedRepoNotFlagged_Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func _InvalidService_InvalidMethod6_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RequestWithNestedRepoNotFlagged) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InvalidServiceServer).InvalidMethod6(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod6", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InvalidServiceServer).InvalidMethod6(ctx, req.(*RequestWithNestedRepoNotFlagged)) - } - return interceptor(ctx, in, info, handler) + Repository *gitalypb.Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } -func _InvalidService_InvalidMethod7_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvalidTargetType) - if err := dec(in); err != nil { - return nil, err +func (x *RequestWithNestedRepoNotFlagged_Header) Reset() { + *x = RequestWithNestedRepoNotFlagged_Header{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if interceptor == nil { - return srv.(InvalidServiceServer).InvalidMethod7(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod7", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InvalidServiceServer).InvalidMethod7(ctx, req.(*InvalidTargetType)) - } - return interceptor(ctx, in, info, handler) } -func _InvalidService_InvalidMethod8_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvalidNestedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InvalidServiceServer).InvalidMethod8(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod8", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InvalidServiceServer).InvalidMethod8(ctx, req.(*InvalidNestedRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *RequestWithNestedRepoNotFlagged_Header) String() string { + return protoimpl.X.MessageStringOf(x) } -func _InvalidService_InvalidMethod9_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvalidMethodRequestWithRepo) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InvalidServiceServer).InvalidMethod9(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod9", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InvalidServiceServer).InvalidMethod9(ctx, req.(*InvalidMethodRequestWithRepo)) - } - return interceptor(ctx, in, info, handler) -} +func (*RequestWithNestedRepoNotFlagged_Header) ProtoMessage() {} -func _InvalidService_InvalidMethod10_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RequestWithStorageAndRepo) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InvalidServiceServer).InvalidMethod10(ctx, in) +func (x *RequestWithNestedRepoNotFlagged_Header) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_invalid_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod10", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InvalidServiceServer).InvalidMethod10(ctx, req.(*RequestWithStorageAndRepo)) - } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _InvalidService_InvalidMethod11_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RequestWithNestedStorageAndRepo) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InvalidServiceServer).InvalidMethod11(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod11", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InvalidServiceServer).InvalidMethod11(ctx, req.(*RequestWithNestedStorageAndRepo)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use RequestWithNestedRepoNotFlagged_Header.ProtoReflect.Descriptor instead. +func (*RequestWithNestedRepoNotFlagged_Header) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_invalid_proto_rawDescGZIP(), []int{11, 0} } -func _InvalidService_InvalidMethod13_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvalidTargetType) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InvalidServiceServer).InvalidMethod13(ctx, in) +func (x *RequestWithNestedRepoNotFlagged_Header) GetRepository() *gitalypb.Repository { + if x != nil { + return x.Repository } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod13", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InvalidServiceServer).InvalidMethod13(ctx, req.(*InvalidTargetType)) - } - return interceptor(ctx, in, info, handler) + return nil } -func _InvalidService_InvalidMethod14_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RequestWithMultipleNestedStorage) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InvalidServiceServer).InvalidMethod14(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod14", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InvalidServiceServer).InvalidMethod14(ctx, req.(*RequestWithMultipleNestedStorage)) - } - return interceptor(ctx, in, info, handler) -} +var File_go_internal_linter_testdata_invalid_proto protoreflect.FileDescriptor + +var file_go_internal_linter_testdata_invalid_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x67, 0x6f, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6c, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6e, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x74, 0x65, 0x73, + 0x74, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x16, 0x0a, 0x14, 0x49, + 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0x5a, 0x0a, 0x1c, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, + 0x65, 0x70, 0x6f, 0x12, 0x3a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, + 0x2c, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x38, 0x0a, 0x11, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0a, 0x77, 0x72, 0x6f, 0x6e, 0x67, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x09, + 0x77, 0x72, 0x6f, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x49, 0x6e, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x54, 0x0a, 0x14, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0d, 0x69, 0x6e, + 0x6e, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x69, 0x6e, 0x6e, 0x65, + 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x73, 0x0a, 0x12, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x27, + 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x80, 0x01, + 0x0a, 0x19, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x12, 0x27, 0x0a, 0x0c, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, + 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x67, 0x0a, 0x1f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, + 0x65, 0x70, 0x6f, 0x12, 0x44, 0x0a, 0x0d, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x52, 0x0c, 0x69, 0x6e, 0x6e, + 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x8a, 0x01, 0x0a, 0x20, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, + 0x65, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x3d, + 0x0a, 0x0d, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, + 0x0c, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, + 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x1d, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x42, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6e, 0x6e, 0x65, 0x72, + 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x48, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x31, 0x0a, 0x06, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, + 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, + 0xb8, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x57, + 0x72, 0x6f, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x49, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x57, 0x69, 0x74, 0x68, 0x57, 0x72, 0x6f, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, + 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x4b, 0x0a, + 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x04, 0x90, 0xc6, 0x2c, 0x01, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0xab, 0x01, 0x0a, 0x1f, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, + 0x52, 0x65, 0x70, 0x6f, 0x4e, 0x6f, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x67, 0x65, 0x64, 0x12, 0x4a, + 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, + 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x4e, 0x6f, 0x74, 0x46, 0x6c, + 0x61, 0x67, 0x67, 0x65, 0x64, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x04, 0x98, 0xc6, + 0x2c, 0x01, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x3c, 0x0a, 0x06, 0x48, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x32, 0x76, 0x0a, 0x1c, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x49, 0x6e, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x1a, 0x04, 0xf0, 0x97, 0x28, 0x01, + 0x32, 0xfe, 0x08, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x30, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x51, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x31, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x00, 0x12, 0x51, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x32, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, + 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x51, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x34, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, + 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5b, 0x0a, 0x0e, 0x49, 0x6e, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x35, 0x12, 0x24, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x57, 0x72, + 0x6f, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, + 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5c, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x36, 0x12, 0x25, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x52, 0x65, 0x70, 0x6f, 0x4e, 0x6f, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x67, 0x65, 0x64, 0x1a, + 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, + 0x28, 0x02, 0x08, 0x01, 0x12, 0x4e, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x37, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x1a, + 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, + 0x28, 0x02, 0x08, 0x01, 0x12, 0x51, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x38, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5b, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x39, 0x12, 0x22, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x1a, 0x1b, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, 0x04, + 0x08, 0x01, 0x10, 0x02, 0x12, 0x57, 0x0a, 0x0f, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x30, 0x12, 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, + 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x5d, 0x0a, + 0x0f, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x31, + 0x12, 0x25, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, + 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, + 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x51, 0x0a, 0x0f, + 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x33, 0x12, + 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, + 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, 0x04, 0x08, 0x01, 0x10, 0x02, 0x12, + 0x60, 0x0a, 0x0f, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x31, 0x34, 0x12, 0x26, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, 0x04, 0x08, 0x01, 0x10, + 0x02, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6c, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x74, + 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_go_internal_linter_testdata_invalid_proto_rawDescOnce sync.Once + file_go_internal_linter_testdata_invalid_proto_rawDescData = file_go_internal_linter_testdata_invalid_proto_rawDesc +) -var _InvalidService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "test.InvalidService", - HandlerType: (*InvalidServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "InvalidMethod0", - Handler: _InvalidService_InvalidMethod0_Handler, - }, - { - MethodName: "InvalidMethod1", - Handler: _InvalidService_InvalidMethod1_Handler, - }, - { - MethodName: "InvalidMethod2", - Handler: _InvalidService_InvalidMethod2_Handler, - }, - { - MethodName: "InvalidMethod4", - Handler: _InvalidService_InvalidMethod4_Handler, - }, - { - MethodName: "InvalidMethod5", - Handler: _InvalidService_InvalidMethod5_Handler, - }, - { - MethodName: "InvalidMethod6", - Handler: _InvalidService_InvalidMethod6_Handler, - }, - { - MethodName: "InvalidMethod7", - Handler: _InvalidService_InvalidMethod7_Handler, - }, - { - MethodName: "InvalidMethod8", - Handler: _InvalidService_InvalidMethod8_Handler, - }, - { - MethodName: "InvalidMethod9", - Handler: _InvalidService_InvalidMethod9_Handler, - }, - { - MethodName: "InvalidMethod10", - Handler: _InvalidService_InvalidMethod10_Handler, - }, - { - MethodName: "InvalidMethod11", - Handler: _InvalidService_InvalidMethod11_Handler, - }, - { - MethodName: "InvalidMethod13", - Handler: _InvalidService_InvalidMethod13_Handler, - }, - { - MethodName: "InvalidMethod14", - Handler: _InvalidService_InvalidMethod14_Handler, +func file_go_internal_linter_testdata_invalid_proto_rawDescGZIP() []byte { + file_go_internal_linter_testdata_invalid_proto_rawDescOnce.Do(func() { + file_go_internal_linter_testdata_invalid_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_internal_linter_testdata_invalid_proto_rawDescData) + }) + return file_go_internal_linter_testdata_invalid_proto_rawDescData +} + +var file_go_internal_linter_testdata_invalid_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_go_internal_linter_testdata_invalid_proto_goTypes = []interface{}{ + (*InvalidMethodRequest)(nil), // 0: test.InvalidMethodRequest + (*InvalidMethodRequestWithRepo)(nil), // 1: test.InvalidMethodRequestWithRepo + (*InvalidTargetType)(nil), // 2: test.InvalidTargetType + (*InvalidMethodResponse)(nil), // 3: test.InvalidMethodResponse + (*InvalidNestedRequest)(nil), // 4: test.InvalidNestedRequest + (*RequestWithStorage)(nil), // 5: test.RequestWithStorage + (*RequestWithStorageAndRepo)(nil), // 6: test.RequestWithStorageAndRepo + (*RequestWithNestedStorageAndRepo)(nil), // 7: test.RequestWithNestedStorageAndRepo + (*RequestWithMultipleNestedStorage)(nil), // 8: test.RequestWithMultipleNestedStorage + (*RequestWithInnerNestedStorage)(nil), // 9: test.RequestWithInnerNestedStorage + (*RequestWithWrongTypeRepository)(nil), // 10: test.RequestWithWrongTypeRepository + (*RequestWithNestedRepoNotFlagged)(nil), // 11: test.RequestWithNestedRepoNotFlagged + (*RequestWithInnerNestedStorage_Header)(nil), // 12: test.RequestWithInnerNestedStorage.Header + (*RequestWithWrongTypeRepository_Header)(nil), // 13: test.RequestWithWrongTypeRepository.Header + (*RequestWithNestedRepoNotFlagged_Header)(nil), // 14: test.RequestWithNestedRepoNotFlagged.Header + (*gitalypb.Repository)(nil), // 15: gitaly.Repository +} +var file_go_internal_linter_testdata_invalid_proto_depIdxs = []int32{ + 15, // 0: test.InvalidMethodRequestWithRepo.destination:type_name -> gitaly.Repository + 2, // 1: test.InvalidNestedRequest.inner_message:type_name -> test.InvalidTargetType + 15, // 2: test.RequestWithStorage.destination:type_name -> gitaly.Repository + 15, // 3: test.RequestWithStorageAndRepo.destination:type_name -> gitaly.Repository + 6, // 4: test.RequestWithNestedStorageAndRepo.inner_message:type_name -> test.RequestWithStorageAndRepo + 5, // 5: test.RequestWithMultipleNestedStorage.inner_message:type_name -> test.RequestWithStorage + 12, // 6: test.RequestWithInnerNestedStorage.header:type_name -> test.RequestWithInnerNestedStorage.Header + 13, // 7: test.RequestWithWrongTypeRepository.header:type_name -> test.RequestWithWrongTypeRepository.Header + 14, // 8: test.RequestWithNestedRepoNotFlagged.header:type_name -> test.RequestWithNestedRepoNotFlagged.Header + 3, // 9: test.RequestWithWrongTypeRepository.Header.repository:type_name -> test.InvalidMethodResponse + 15, // 10: test.RequestWithNestedRepoNotFlagged.Header.repository:type_name -> gitaly.Repository + 0, // 11: test.InterceptedWithOperationType.InvalidMethod:input_type -> test.InvalidMethodRequest + 0, // 12: test.InvalidService.InvalidMethod0:input_type -> test.InvalidMethodRequest + 0, // 13: test.InvalidService.InvalidMethod1:input_type -> test.InvalidMethodRequest + 0, // 14: test.InvalidService.InvalidMethod2:input_type -> test.InvalidMethodRequest + 0, // 15: test.InvalidService.InvalidMethod4:input_type -> test.InvalidMethodRequest + 10, // 16: test.InvalidService.InvalidMethod5:input_type -> test.RequestWithWrongTypeRepository + 11, // 17: test.InvalidService.InvalidMethod6:input_type -> test.RequestWithNestedRepoNotFlagged + 2, // 18: test.InvalidService.InvalidMethod7:input_type -> test.InvalidTargetType + 4, // 19: test.InvalidService.InvalidMethod8:input_type -> test.InvalidNestedRequest + 1, // 20: test.InvalidService.InvalidMethod9:input_type -> test.InvalidMethodRequestWithRepo + 6, // 21: test.InvalidService.InvalidMethod10:input_type -> test.RequestWithStorageAndRepo + 7, // 22: test.InvalidService.InvalidMethod11:input_type -> test.RequestWithNestedStorageAndRepo + 2, // 23: test.InvalidService.InvalidMethod13:input_type -> test.InvalidTargetType + 8, // 24: test.InvalidService.InvalidMethod14:input_type -> test.RequestWithMultipleNestedStorage + 3, // 25: test.InterceptedWithOperationType.InvalidMethod:output_type -> test.InvalidMethodResponse + 3, // 26: test.InvalidService.InvalidMethod0:output_type -> test.InvalidMethodResponse + 3, // 27: test.InvalidService.InvalidMethod1:output_type -> test.InvalidMethodResponse + 3, // 28: test.InvalidService.InvalidMethod2:output_type -> test.InvalidMethodResponse + 3, // 29: test.InvalidService.InvalidMethod4:output_type -> test.InvalidMethodResponse + 3, // 30: test.InvalidService.InvalidMethod5:output_type -> test.InvalidMethodResponse + 3, // 31: test.InvalidService.InvalidMethod6:output_type -> test.InvalidMethodResponse + 3, // 32: test.InvalidService.InvalidMethod7:output_type -> test.InvalidMethodResponse + 3, // 33: test.InvalidService.InvalidMethod8:output_type -> test.InvalidMethodResponse + 3, // 34: test.InvalidService.InvalidMethod9:output_type -> test.InvalidMethodResponse + 3, // 35: test.InvalidService.InvalidMethod10:output_type -> test.InvalidMethodResponse + 3, // 36: test.InvalidService.InvalidMethod11:output_type -> test.InvalidMethodResponse + 3, // 37: test.InvalidService.InvalidMethod13:output_type -> test.InvalidMethodResponse + 3, // 38: test.InvalidService.InvalidMethod14:output_type -> test.InvalidMethodResponse + 25, // [25:39] is the sub-list for method output_type + 11, // [11:25] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_go_internal_linter_testdata_invalid_proto_init() } +func file_go_internal_linter_testdata_invalid_proto_init() { + if File_go_internal_linter_testdata_invalid_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_go_internal_linter_testdata_invalid_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InvalidMethodRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InvalidMethodRequestWithRepo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InvalidTargetType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InvalidMethodResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InvalidNestedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithStorage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithStorageAndRepo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithNestedStorageAndRepo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithMultipleNestedStorage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithInnerNestedStorage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithWrongTypeRepository); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithNestedRepoNotFlagged); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithInnerNestedStorage_Header); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithWrongTypeRepository_Header); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_invalid_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithNestedRepoNotFlagged_Header); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_go_internal_linter_testdata_invalid_proto_rawDesc, + NumEnums: 0, + NumMessages: 15, + NumExtensions: 0, + NumServices: 2, }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "go/internal/linter/testdata/invalid.proto", + GoTypes: file_go_internal_linter_testdata_invalid_proto_goTypes, + DependencyIndexes: file_go_internal_linter_testdata_invalid_proto_depIdxs, + MessageInfos: file_go_internal_linter_testdata_invalid_proto_msgTypes, + }.Build() + File_go_internal_linter_testdata_invalid_proto = out.File + file_go_internal_linter_testdata_invalid_proto_rawDesc = nil + file_go_internal_linter_testdata_invalid_proto_goTypes = nil + file_go_internal_linter_testdata_invalid_proto_depIdxs = nil } diff --git a/proto/go/internal/linter/testdata/invalid_grpc.pb.go b/proto/go/internal/linter/testdata/invalid_grpc.pb.go new file mode 100644 index 000000000..5955e41a6 --- /dev/null +++ b/proto/go/internal/linter/testdata/invalid_grpc.pb.go @@ -0,0 +1,648 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package testdata + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// InterceptedWithOperationTypeClient is the client API for InterceptedWithOperationType service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type InterceptedWithOperationTypeClient interface { + // intercepted services can't have operation type annotations. + InvalidMethod(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) +} + +type interceptedWithOperationTypeClient struct { + cc grpc.ClientConnInterface +} + +func NewInterceptedWithOperationTypeClient(cc grpc.ClientConnInterface) InterceptedWithOperationTypeClient { + return &interceptedWithOperationTypeClient{cc} +} + +func (c *interceptedWithOperationTypeClient) InvalidMethod(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InterceptedWithOperationType/InvalidMethod", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// InterceptedWithOperationTypeServer is the server API for InterceptedWithOperationType service. +// All implementations must embed UnimplementedInterceptedWithOperationTypeServer +// for forward compatibility +type InterceptedWithOperationTypeServer interface { + // intercepted services can't have operation type annotations. + InvalidMethod(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) + mustEmbedUnimplementedInterceptedWithOperationTypeServer() +} + +// UnimplementedInterceptedWithOperationTypeServer must be embedded to have forward compatible implementations. +type UnimplementedInterceptedWithOperationTypeServer struct { +} + +func (UnimplementedInterceptedWithOperationTypeServer) InvalidMethod(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod not implemented") +} +func (UnimplementedInterceptedWithOperationTypeServer) mustEmbedUnimplementedInterceptedWithOperationTypeServer() { +} + +// UnsafeInterceptedWithOperationTypeServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to InterceptedWithOperationTypeServer will +// result in compilation errors. +type UnsafeInterceptedWithOperationTypeServer interface { + mustEmbedUnimplementedInterceptedWithOperationTypeServer() +} + +func RegisterInterceptedWithOperationTypeServer(s grpc.ServiceRegistrar, srv InterceptedWithOperationTypeServer) { + s.RegisterService(&InterceptedWithOperationType_ServiceDesc, srv) +} + +func _InterceptedWithOperationType_InvalidMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvalidMethodRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InterceptedWithOperationTypeServer).InvalidMethod(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InterceptedWithOperationType/InvalidMethod", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InterceptedWithOperationTypeServer).InvalidMethod(ctx, req.(*InvalidMethodRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// InterceptedWithOperationType_ServiceDesc is the grpc.ServiceDesc for InterceptedWithOperationType service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var InterceptedWithOperationType_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "test.InterceptedWithOperationType", + HandlerType: (*InterceptedWithOperationTypeServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "InvalidMethod", + Handler: _InterceptedWithOperationType_InvalidMethod_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "go/internal/linter/testdata/invalid.proto", +} + +// InvalidServiceClient is the client API for InvalidService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type InvalidServiceClient interface { + // should fail if op_type extension is missing + InvalidMethod0(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) + // should fail if op type is unknown + InvalidMethod1(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) + // should fail if target repo is not provided for accessor + InvalidMethod2(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) + // should fail if missing either target repo or non-repo-scope for mutator + InvalidMethod4(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) + // should fail if repository is not of type Repository + InvalidMethod5(ctx context.Context, in *RequestWithWrongTypeRepository, opts ...grpc.CallOption) (*InvalidMethodResponse, error) + // should fail if nested repository isn't flagged + InvalidMethod6(ctx context.Context, in *RequestWithNestedRepoNotFlagged, opts ...grpc.CallOption) (*InvalidMethodResponse, error) + // should fail if target field type is not of type Repository + InvalidMethod7(ctx context.Context, in *InvalidTargetType, opts ...grpc.CallOption) (*InvalidMethodResponse, error) + // should fail if nested target field type is not of type Repository + InvalidMethod8(ctx context.Context, in *InvalidNestedRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) + // should fail if target repo is specified for storage scoped RPC + InvalidMethod9(ctx context.Context, in *InvalidMethodRequestWithRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) + // should fail if storage is specified for implicit repository scoped RPC + InvalidMethod10(ctx context.Context, in *RequestWithStorageAndRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) + // should fail if storage is specified for repository scoped RPC + InvalidMethod11(ctx context.Context, in *RequestWithNestedStorageAndRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) + // should fail if storage isn't specified for storage scoped RPC + InvalidMethod13(ctx context.Context, in *InvalidTargetType, opts ...grpc.CallOption) (*InvalidMethodResponse, error) + // should fail if multiple storage is specified for storage scoped RPC + InvalidMethod14(ctx context.Context, in *RequestWithMultipleNestedStorage, opts ...grpc.CallOption) (*InvalidMethodResponse, error) +} + +type invalidServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewInvalidServiceClient(cc grpc.ClientConnInterface) InvalidServiceClient { + return &invalidServiceClient{cc} +} + +func (c *invalidServiceClient) InvalidMethod0(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod0", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invalidServiceClient) InvalidMethod1(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod1", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invalidServiceClient) InvalidMethod2(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod2", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invalidServiceClient) InvalidMethod4(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod4", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invalidServiceClient) InvalidMethod5(ctx context.Context, in *RequestWithWrongTypeRepository, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod5", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invalidServiceClient) InvalidMethod6(ctx context.Context, in *RequestWithNestedRepoNotFlagged, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod6", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invalidServiceClient) InvalidMethod7(ctx context.Context, in *InvalidTargetType, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod7", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invalidServiceClient) InvalidMethod8(ctx context.Context, in *InvalidNestedRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod8", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invalidServiceClient) InvalidMethod9(ctx context.Context, in *InvalidMethodRequestWithRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod9", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invalidServiceClient) InvalidMethod10(ctx context.Context, in *RequestWithStorageAndRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod10", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invalidServiceClient) InvalidMethod11(ctx context.Context, in *RequestWithNestedStorageAndRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod11", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invalidServiceClient) InvalidMethod13(ctx context.Context, in *InvalidTargetType, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod13", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invalidServiceClient) InvalidMethod14(ctx context.Context, in *RequestWithMultipleNestedStorage, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { + out := new(InvalidMethodResponse) + err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod14", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// InvalidServiceServer is the server API for InvalidService service. +// All implementations must embed UnimplementedInvalidServiceServer +// for forward compatibility +type InvalidServiceServer interface { + // should fail if op_type extension is missing + InvalidMethod0(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) + // should fail if op type is unknown + InvalidMethod1(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) + // should fail if target repo is not provided for accessor + InvalidMethod2(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) + // should fail if missing either target repo or non-repo-scope for mutator + InvalidMethod4(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) + // should fail if repository is not of type Repository + InvalidMethod5(context.Context, *RequestWithWrongTypeRepository) (*InvalidMethodResponse, error) + // should fail if nested repository isn't flagged + InvalidMethod6(context.Context, *RequestWithNestedRepoNotFlagged) (*InvalidMethodResponse, error) + // should fail if target field type is not of type Repository + InvalidMethod7(context.Context, *InvalidTargetType) (*InvalidMethodResponse, error) + // should fail if nested target field type is not of type Repository + InvalidMethod8(context.Context, *InvalidNestedRequest) (*InvalidMethodResponse, error) + // should fail if target repo is specified for storage scoped RPC + InvalidMethod9(context.Context, *InvalidMethodRequestWithRepo) (*InvalidMethodResponse, error) + // should fail if storage is specified for implicit repository scoped RPC + InvalidMethod10(context.Context, *RequestWithStorageAndRepo) (*InvalidMethodResponse, error) + // should fail if storage is specified for repository scoped RPC + InvalidMethod11(context.Context, *RequestWithNestedStorageAndRepo) (*InvalidMethodResponse, error) + // should fail if storage isn't specified for storage scoped RPC + InvalidMethod13(context.Context, *InvalidTargetType) (*InvalidMethodResponse, error) + // should fail if multiple storage is specified for storage scoped RPC + InvalidMethod14(context.Context, *RequestWithMultipleNestedStorage) (*InvalidMethodResponse, error) + mustEmbedUnimplementedInvalidServiceServer() +} + +// UnimplementedInvalidServiceServer must be embedded to have forward compatible implementations. +type UnimplementedInvalidServiceServer struct { +} + +func (UnimplementedInvalidServiceServer) InvalidMethod0(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod0 not implemented") +} +func (UnimplementedInvalidServiceServer) InvalidMethod1(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod1 not implemented") +} +func (UnimplementedInvalidServiceServer) InvalidMethod2(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod2 not implemented") +} +func (UnimplementedInvalidServiceServer) InvalidMethod4(context.Context, *InvalidMethodRequest) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod4 not implemented") +} +func (UnimplementedInvalidServiceServer) InvalidMethod5(context.Context, *RequestWithWrongTypeRepository) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod5 not implemented") +} +func (UnimplementedInvalidServiceServer) InvalidMethod6(context.Context, *RequestWithNestedRepoNotFlagged) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod6 not implemented") +} +func (UnimplementedInvalidServiceServer) InvalidMethod7(context.Context, *InvalidTargetType) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod7 not implemented") +} +func (UnimplementedInvalidServiceServer) InvalidMethod8(context.Context, *InvalidNestedRequest) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod8 not implemented") +} +func (UnimplementedInvalidServiceServer) InvalidMethod9(context.Context, *InvalidMethodRequestWithRepo) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod9 not implemented") +} +func (UnimplementedInvalidServiceServer) InvalidMethod10(context.Context, *RequestWithStorageAndRepo) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod10 not implemented") +} +func (UnimplementedInvalidServiceServer) InvalidMethod11(context.Context, *RequestWithNestedStorageAndRepo) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod11 not implemented") +} +func (UnimplementedInvalidServiceServer) InvalidMethod13(context.Context, *InvalidTargetType) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod13 not implemented") +} +func (UnimplementedInvalidServiceServer) InvalidMethod14(context.Context, *RequestWithMultipleNestedStorage) (*InvalidMethodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidMethod14 not implemented") +} +func (UnimplementedInvalidServiceServer) mustEmbedUnimplementedInvalidServiceServer() {} + +// UnsafeInvalidServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to InvalidServiceServer will +// result in compilation errors. +type UnsafeInvalidServiceServer interface { + mustEmbedUnimplementedInvalidServiceServer() +} + +func RegisterInvalidServiceServer(s grpc.ServiceRegistrar, srv InvalidServiceServer) { + s.RegisterService(&InvalidService_ServiceDesc, srv) +} + +func _InvalidService_InvalidMethod0_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvalidMethodRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvalidServiceServer).InvalidMethod0(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InvalidService/InvalidMethod0", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvalidServiceServer).InvalidMethod0(ctx, req.(*InvalidMethodRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvalidService_InvalidMethod1_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvalidMethodRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvalidServiceServer).InvalidMethod1(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InvalidService/InvalidMethod1", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvalidServiceServer).InvalidMethod1(ctx, req.(*InvalidMethodRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvalidService_InvalidMethod2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvalidMethodRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvalidServiceServer).InvalidMethod2(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InvalidService/InvalidMethod2", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvalidServiceServer).InvalidMethod2(ctx, req.(*InvalidMethodRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvalidService_InvalidMethod4_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvalidMethodRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvalidServiceServer).InvalidMethod4(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InvalidService/InvalidMethod4", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvalidServiceServer).InvalidMethod4(ctx, req.(*InvalidMethodRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvalidService_InvalidMethod5_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestWithWrongTypeRepository) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvalidServiceServer).InvalidMethod5(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InvalidService/InvalidMethod5", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvalidServiceServer).InvalidMethod5(ctx, req.(*RequestWithWrongTypeRepository)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvalidService_InvalidMethod6_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestWithNestedRepoNotFlagged) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvalidServiceServer).InvalidMethod6(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InvalidService/InvalidMethod6", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvalidServiceServer).InvalidMethod6(ctx, req.(*RequestWithNestedRepoNotFlagged)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvalidService_InvalidMethod7_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvalidTargetType) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvalidServiceServer).InvalidMethod7(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InvalidService/InvalidMethod7", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvalidServiceServer).InvalidMethod7(ctx, req.(*InvalidTargetType)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvalidService_InvalidMethod8_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvalidNestedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvalidServiceServer).InvalidMethod8(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InvalidService/InvalidMethod8", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvalidServiceServer).InvalidMethod8(ctx, req.(*InvalidNestedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvalidService_InvalidMethod9_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvalidMethodRequestWithRepo) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvalidServiceServer).InvalidMethod9(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InvalidService/InvalidMethod9", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvalidServiceServer).InvalidMethod9(ctx, req.(*InvalidMethodRequestWithRepo)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvalidService_InvalidMethod10_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestWithStorageAndRepo) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvalidServiceServer).InvalidMethod10(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InvalidService/InvalidMethod10", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvalidServiceServer).InvalidMethod10(ctx, req.(*RequestWithStorageAndRepo)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvalidService_InvalidMethod11_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestWithNestedStorageAndRepo) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvalidServiceServer).InvalidMethod11(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InvalidService/InvalidMethod11", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvalidServiceServer).InvalidMethod11(ctx, req.(*RequestWithNestedStorageAndRepo)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvalidService_InvalidMethod13_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvalidTargetType) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvalidServiceServer).InvalidMethod13(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InvalidService/InvalidMethod13", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvalidServiceServer).InvalidMethod13(ctx, req.(*InvalidTargetType)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvalidService_InvalidMethod14_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestWithMultipleNestedStorage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvalidServiceServer).InvalidMethod14(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InvalidService/InvalidMethod14", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvalidServiceServer).InvalidMethod14(ctx, req.(*RequestWithMultipleNestedStorage)) + } + return interceptor(ctx, in, info, handler) +} + +// InvalidService_ServiceDesc is the grpc.ServiceDesc for InvalidService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var InvalidService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "test.InvalidService", + HandlerType: (*InvalidServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "InvalidMethod0", + Handler: _InvalidService_InvalidMethod0_Handler, + }, + { + MethodName: "InvalidMethod1", + Handler: _InvalidService_InvalidMethod1_Handler, + }, + { + MethodName: "InvalidMethod2", + Handler: _InvalidService_InvalidMethod2_Handler, + }, + { + MethodName: "InvalidMethod4", + Handler: _InvalidService_InvalidMethod4_Handler, + }, + { + MethodName: "InvalidMethod5", + Handler: _InvalidService_InvalidMethod5_Handler, + }, + { + MethodName: "InvalidMethod6", + Handler: _InvalidService_InvalidMethod6_Handler, + }, + { + MethodName: "InvalidMethod7", + Handler: _InvalidService_InvalidMethod7_Handler, + }, + { + MethodName: "InvalidMethod8", + Handler: _InvalidService_InvalidMethod8_Handler, + }, + { + MethodName: "InvalidMethod9", + Handler: _InvalidService_InvalidMethod9_Handler, + }, + { + MethodName: "InvalidMethod10", + Handler: _InvalidService_InvalidMethod10_Handler, + }, + { + MethodName: "InvalidMethod11", + Handler: _InvalidService_InvalidMethod11_Handler, + }, + { + MethodName: "InvalidMethod13", + Handler: _InvalidService_InvalidMethod13_Handler, + }, + { + MethodName: "InvalidMethod14", + Handler: _InvalidService_InvalidMethod14_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "go/internal/linter/testdata/invalid.proto", +} diff --git a/proto/go/internal/linter/testdata/valid.pb.go b/proto/go/internal/linter/testdata/valid.pb.go index 81a5f82b6..70cfd8344 100644 --- a/proto/go/internal/linter/testdata/valid.pb.go +++ b/proto/go/internal/linter/testdata/valid.pb.go @@ -1,899 +1,846 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.17.3 // source: go/internal/linter/testdata/valid.proto -package test +package testdata import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" gitalypb "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ValidRequest struct { - Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ValidRequest) Reset() { *m = ValidRequest{} } -func (m *ValidRequest) String() string { return proto.CompactTextString(m) } -func (*ValidRequest) ProtoMessage() {} -func (*ValidRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7058768ff0db2cf7, []int{0} + Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` } -func (m *ValidRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidRequest.Unmarshal(m, b) -} -func (m *ValidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidRequest.Marshal(b, m, deterministic) -} -func (m *ValidRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidRequest.Merge(m, src) -} -func (m *ValidRequest) XXX_Size() int { - return xxx_messageInfo_ValidRequest.Size(m) -} -func (m *ValidRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidRequest proto.InternalMessageInfo - -func (m *ValidRequest) GetDestination() *gitalypb.Repository { - if m != nil { - return m.Destination +func (x *ValidRequest) Reset() { + *x = ValidRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ValidRequestWithoutRepo struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ValidRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ValidRequestWithoutRepo) Reset() { *m = ValidRequestWithoutRepo{} } -func (m *ValidRequestWithoutRepo) String() string { return proto.CompactTextString(m) } -func (*ValidRequestWithoutRepo) ProtoMessage() {} -func (*ValidRequestWithoutRepo) Descriptor() ([]byte, []int) { - return fileDescriptor_7058768ff0db2cf7, []int{1} -} +func (*ValidRequest) ProtoMessage() {} -func (m *ValidRequestWithoutRepo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidRequestWithoutRepo.Unmarshal(m, b) -} -func (m *ValidRequestWithoutRepo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidRequestWithoutRepo.Marshal(b, m, deterministic) -} -func (m *ValidRequestWithoutRepo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidRequestWithoutRepo.Merge(m, src) -} -func (m *ValidRequestWithoutRepo) XXX_Size() int { - return xxx_messageInfo_ValidRequestWithoutRepo.Size(m) -} -func (m *ValidRequestWithoutRepo) XXX_DiscardUnknown() { - xxx_messageInfo_ValidRequestWithoutRepo.DiscardUnknown(m) +func (x *ValidRequest) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ValidRequestWithoutRepo proto.InternalMessageInfo - -type ValidStorageRequest struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use ValidRequest.ProtoReflect.Descriptor instead. +func (*ValidRequest) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_valid_proto_rawDescGZIP(), []int{0} } -func (m *ValidStorageRequest) Reset() { *m = ValidStorageRequest{} } -func (m *ValidStorageRequest) String() string { return proto.CompactTextString(m) } -func (*ValidStorageRequest) ProtoMessage() {} -func (*ValidStorageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7058768ff0db2cf7, []int{2} +func (x *ValidRequest) GetDestination() *gitalypb.Repository { + if x != nil { + return x.Destination + } + return nil } -func (m *ValidStorageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidStorageRequest.Unmarshal(m, b) -} -func (m *ValidStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidStorageRequest.Marshal(b, m, deterministic) -} -func (m *ValidStorageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidStorageRequest.Merge(m, src) -} -func (m *ValidStorageRequest) XXX_Size() int { - return xxx_messageInfo_ValidStorageRequest.Size(m) -} -func (m *ValidStorageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidStorageRequest.DiscardUnknown(m) +type ValidRequestWithoutRepo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -var xxx_messageInfo_ValidStorageRequest proto.InternalMessageInfo - -func (m *ValidStorageRequest) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *ValidRequestWithoutRepo) Reset() { + *x = ValidRequestWithoutRepo{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -type ValidResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ValidRequestWithoutRepo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ValidResponse) Reset() { *m = ValidResponse{} } -func (m *ValidResponse) String() string { return proto.CompactTextString(m) } -func (*ValidResponse) ProtoMessage() {} -func (*ValidResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7058768ff0db2cf7, []int{3} -} +func (*ValidRequestWithoutRepo) ProtoMessage() {} -func (m *ValidResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidResponse.Unmarshal(m, b) -} -func (m *ValidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidResponse.Marshal(b, m, deterministic) -} -func (m *ValidResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidResponse.Merge(m, src) -} -func (m *ValidResponse) XXX_Size() int { - return xxx_messageInfo_ValidResponse.Size(m) -} -func (m *ValidResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ValidResponse.DiscardUnknown(m) +func (x *ValidRequestWithoutRepo) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ValidResponse proto.InternalMessageInfo - -type ValidNestedRequest struct { - InnerMessage *ValidRequest `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use ValidRequestWithoutRepo.ProtoReflect.Descriptor instead. +func (*ValidRequestWithoutRepo) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_valid_proto_rawDescGZIP(), []int{1} } -func (m *ValidNestedRequest) Reset() { *m = ValidNestedRequest{} } -func (m *ValidNestedRequest) String() string { return proto.CompactTextString(m) } -func (*ValidNestedRequest) ProtoMessage() {} -func (*ValidNestedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7058768ff0db2cf7, []int{4} -} +type ValidStorageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ValidNestedRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidNestedRequest.Unmarshal(m, b) -} -func (m *ValidNestedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidNestedRequest.Marshal(b, m, deterministic) -} -func (m *ValidNestedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidNestedRequest.Merge(m, src) -} -func (m *ValidNestedRequest) XXX_Size() int { - return xxx_messageInfo_ValidNestedRequest.Size(m) -} -func (m *ValidNestedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidNestedRequest.DiscardUnknown(m) + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` } -var xxx_messageInfo_ValidNestedRequest proto.InternalMessageInfo - -func (m *ValidNestedRequest) GetInnerMessage() *ValidRequest { - if m != nil { - return m.InnerMessage +func (x *ValidStorageRequest) Reset() { + *x = ValidStorageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ValidStorageNestedRequest struct { - InnerMessage *ValidStorageRequest `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ValidStorageRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ValidStorageNestedRequest) Reset() { *m = ValidStorageNestedRequest{} } -func (m *ValidStorageNestedRequest) String() string { return proto.CompactTextString(m) } -func (*ValidStorageNestedRequest) ProtoMessage() {} -func (*ValidStorageNestedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7058768ff0db2cf7, []int{5} -} +func (*ValidStorageRequest) ProtoMessage() {} -func (m *ValidStorageNestedRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidStorageNestedRequest.Unmarshal(m, b) -} -func (m *ValidStorageNestedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidStorageNestedRequest.Marshal(b, m, deterministic) -} -func (m *ValidStorageNestedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidStorageNestedRequest.Merge(m, src) -} -func (m *ValidStorageNestedRequest) XXX_Size() int { - return xxx_messageInfo_ValidStorageNestedRequest.Size(m) -} -func (m *ValidStorageNestedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidStorageNestedRequest.DiscardUnknown(m) +func (x *ValidStorageRequest) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ValidStorageNestedRequest proto.InternalMessageInfo +// Deprecated: Use ValidStorageRequest.ProtoReflect.Descriptor instead. +func (*ValidStorageRequest) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_valid_proto_rawDescGZIP(), []int{2} +} -func (m *ValidStorageNestedRequest) GetInnerMessage() *ValidStorageRequest { - if m != nil { - return m.InnerMessage +func (x *ValidStorageRequest) GetStorageName() string { + if x != nil { + return x.StorageName } - return nil + return "" } -type ValidNestedSharedRequest struct { - NestedTargetRepo *gitalypb.ObjectPool `protobuf:"bytes,1,opt,name=nested_target_repo,json=nestedTargetRepo,proto3" json:"nested_target_repo,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ValidResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ValidNestedSharedRequest) Reset() { *m = ValidNestedSharedRequest{} } -func (m *ValidNestedSharedRequest) String() string { return proto.CompactTextString(m) } -func (*ValidNestedSharedRequest) ProtoMessage() {} -func (*ValidNestedSharedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7058768ff0db2cf7, []int{6} +func (x *ValidResponse) Reset() { + *x = ValidResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ValidNestedSharedRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidNestedSharedRequest.Unmarshal(m, b) -} -func (m *ValidNestedSharedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidNestedSharedRequest.Marshal(b, m, deterministic) -} -func (m *ValidNestedSharedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidNestedSharedRequest.Merge(m, src) -} -func (m *ValidNestedSharedRequest) XXX_Size() int { - return xxx_messageInfo_ValidNestedSharedRequest.Size(m) -} -func (m *ValidNestedSharedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidNestedSharedRequest.DiscardUnknown(m) +func (x *ValidResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ValidNestedSharedRequest proto.InternalMessageInfo +func (*ValidResponse) ProtoMessage() {} -func (m *ValidNestedSharedRequest) GetNestedTargetRepo() *gitalypb.ObjectPool { - if m != nil { - return m.NestedTargetRepo +func (x *ValidResponse) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type ValidInnerNestedRequest struct { - Header *ValidInnerNestedRequest_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use ValidResponse.ProtoReflect.Descriptor instead. +func (*ValidResponse) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_valid_proto_rawDescGZIP(), []int{3} } -func (m *ValidInnerNestedRequest) Reset() { *m = ValidInnerNestedRequest{} } -func (m *ValidInnerNestedRequest) String() string { return proto.CompactTextString(m) } -func (*ValidInnerNestedRequest) ProtoMessage() {} -func (*ValidInnerNestedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7058768ff0db2cf7, []int{7} -} +type ValidNestedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ValidInnerNestedRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidInnerNestedRequest.Unmarshal(m, b) -} -func (m *ValidInnerNestedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidInnerNestedRequest.Marshal(b, m, deterministic) -} -func (m *ValidInnerNestedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidInnerNestedRequest.Merge(m, src) -} -func (m *ValidInnerNestedRequest) XXX_Size() int { - return xxx_messageInfo_ValidInnerNestedRequest.Size(m) -} -func (m *ValidInnerNestedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidInnerNestedRequest.DiscardUnknown(m) + InnerMessage *ValidRequest `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` } -var xxx_messageInfo_ValidInnerNestedRequest proto.InternalMessageInfo - -func (m *ValidInnerNestedRequest) GetHeader() *ValidInnerNestedRequest_Header { - if m != nil { - return m.Header +func (x *ValidNestedRequest) Reset() { + *x = ValidNestedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ValidInnerNestedRequest_Header struct { - Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ValidNestedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ValidInnerNestedRequest_Header) Reset() { *m = ValidInnerNestedRequest_Header{} } -func (m *ValidInnerNestedRequest_Header) String() string { return proto.CompactTextString(m) } -func (*ValidInnerNestedRequest_Header) ProtoMessage() {} -func (*ValidInnerNestedRequest_Header) Descriptor() ([]byte, []int) { - return fileDescriptor_7058768ff0db2cf7, []int{7, 0} -} +func (*ValidNestedRequest) ProtoMessage() {} -func (m *ValidInnerNestedRequest_Header) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidInnerNestedRequest_Header.Unmarshal(m, b) -} -func (m *ValidInnerNestedRequest_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidInnerNestedRequest_Header.Marshal(b, m, deterministic) -} -func (m *ValidInnerNestedRequest_Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidInnerNestedRequest_Header.Merge(m, src) -} -func (m *ValidInnerNestedRequest_Header) XXX_Size() int { - return xxx_messageInfo_ValidInnerNestedRequest_Header.Size(m) -} -func (m *ValidInnerNestedRequest_Header) XXX_DiscardUnknown() { - xxx_messageInfo_ValidInnerNestedRequest_Header.DiscardUnknown(m) +func (x *ValidNestedRequest) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ValidInnerNestedRequest_Header proto.InternalMessageInfo +// Deprecated: Use ValidNestedRequest.ProtoReflect.Descriptor instead. +func (*ValidNestedRequest) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_valid_proto_rawDescGZIP(), []int{4} +} -func (m *ValidInnerNestedRequest_Header) GetDestination() *gitalypb.Repository { - if m != nil { - return m.Destination +func (x *ValidNestedRequest) GetInnerMessage() *ValidRequest { + if x != nil { + return x.InnerMessage } return nil } -type ValidStorageInnerNestedRequest struct { - Header *ValidStorageInnerNestedRequest_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type ValidStorageNestedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ValidStorageInnerNestedRequest) Reset() { *m = ValidStorageInnerNestedRequest{} } -func (m *ValidStorageInnerNestedRequest) String() string { return proto.CompactTextString(m) } -func (*ValidStorageInnerNestedRequest) ProtoMessage() {} -func (*ValidStorageInnerNestedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7058768ff0db2cf7, []int{8} + InnerMessage *ValidStorageRequest `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` } -func (m *ValidStorageInnerNestedRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidStorageInnerNestedRequest.Unmarshal(m, b) -} -func (m *ValidStorageInnerNestedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidStorageInnerNestedRequest.Marshal(b, m, deterministic) -} -func (m *ValidStorageInnerNestedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidStorageInnerNestedRequest.Merge(m, src) -} -func (m *ValidStorageInnerNestedRequest) XXX_Size() int { - return xxx_messageInfo_ValidStorageInnerNestedRequest.Size(m) +func (x *ValidStorageNestedRequest) Reset() { + *x = ValidStorageNestedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ValidStorageInnerNestedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidStorageInnerNestedRequest.DiscardUnknown(m) + +func (x *ValidStorageNestedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ValidStorageInnerNestedRequest proto.InternalMessageInfo +func (*ValidStorageNestedRequest) ProtoMessage() {} -func (m *ValidStorageInnerNestedRequest) GetHeader() *ValidStorageInnerNestedRequest_Header { - if m != nil { - return m.Header +func (x *ValidStorageNestedRequest) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type ValidStorageInnerNestedRequest_Header struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use ValidStorageNestedRequest.ProtoReflect.Descriptor instead. +func (*ValidStorageNestedRequest) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_valid_proto_rawDescGZIP(), []int{5} } -func (m *ValidStorageInnerNestedRequest_Header) Reset() { *m = ValidStorageInnerNestedRequest_Header{} } -func (m *ValidStorageInnerNestedRequest_Header) String() string { return proto.CompactTextString(m) } -func (*ValidStorageInnerNestedRequest_Header) ProtoMessage() {} -func (*ValidStorageInnerNestedRequest_Header) Descriptor() ([]byte, []int) { - return fileDescriptor_7058768ff0db2cf7, []int{8, 0} +func (x *ValidStorageNestedRequest) GetInnerMessage() *ValidStorageRequest { + if x != nil { + return x.InnerMessage + } + return nil } -func (m *ValidStorageInnerNestedRequest_Header) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidStorageInnerNestedRequest_Header.Unmarshal(m, b) -} -func (m *ValidStorageInnerNestedRequest_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidStorageInnerNestedRequest_Header.Marshal(b, m, deterministic) -} -func (m *ValidStorageInnerNestedRequest_Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidStorageInnerNestedRequest_Header.Merge(m, src) -} -func (m *ValidStorageInnerNestedRequest_Header) XXX_Size() int { - return xxx_messageInfo_ValidStorageInnerNestedRequest_Header.Size(m) -} -func (m *ValidStorageInnerNestedRequest_Header) XXX_DiscardUnknown() { - xxx_messageInfo_ValidStorageInnerNestedRequest_Header.DiscardUnknown(m) -} +type ValidNestedSharedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var xxx_messageInfo_ValidStorageInnerNestedRequest_Header proto.InternalMessageInfo + NestedTargetRepo *gitalypb.ObjectPool `protobuf:"bytes,1,opt,name=nested_target_repo,json=nestedTargetRepo,proto3" json:"nested_target_repo,omitempty"` +} -func (m *ValidStorageInnerNestedRequest_Header) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *ValidNestedSharedRequest) Reset() { + *x = ValidNestedSharedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func init() { - proto.RegisterType((*ValidRequest)(nil), "test.ValidRequest") - proto.RegisterType((*ValidRequestWithoutRepo)(nil), "test.ValidRequestWithoutRepo") - proto.RegisterType((*ValidStorageRequest)(nil), "test.ValidStorageRequest") - proto.RegisterType((*ValidResponse)(nil), "test.ValidResponse") - proto.RegisterType((*ValidNestedRequest)(nil), "test.ValidNestedRequest") - proto.RegisterType((*ValidStorageNestedRequest)(nil), "test.ValidStorageNestedRequest") - proto.RegisterType((*ValidNestedSharedRequest)(nil), "test.ValidNestedSharedRequest") - proto.RegisterType((*ValidInnerNestedRequest)(nil), "test.ValidInnerNestedRequest") - proto.RegisterType((*ValidInnerNestedRequest_Header)(nil), "test.ValidInnerNestedRequest.Header") - proto.RegisterType((*ValidStorageInnerNestedRequest)(nil), "test.ValidStorageInnerNestedRequest") - proto.RegisterType((*ValidStorageInnerNestedRequest_Header)(nil), "test.ValidStorageInnerNestedRequest.Header") +func (x *ValidNestedSharedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func init() { - proto.RegisterFile("go/internal/linter/testdata/valid.proto", fileDescriptor_7058768ff0db2cf7) -} +func (*ValidNestedSharedRequest) ProtoMessage() {} -var fileDescriptor_7058768ff0db2cf7 = []byte{ - // 532 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xc1, 0x6e, 0xd3, 0x4e, - 0x10, 0xc6, 0xe5, 0xc8, 0x8a, 0xf2, 0x9f, 0xa4, 0xfa, 0x57, 0xdb, 0x03, 0x49, 0x24, 0x0a, 0xb2, - 0x90, 0x1a, 0x09, 0xe4, 0x88, 0x54, 0xa5, 0x80, 0x20, 0x87, 0x52, 0x01, 0xa9, 0x94, 0x02, 0x6e, - 0x05, 0x07, 0x0e, 0xd1, 0x26, 0x1e, 0x39, 0x46, 0x8e, 0xd7, 0xec, 0x4e, 0x2b, 0xf5, 0x0d, 0x78, - 0x83, 0xf4, 0xc2, 0xcb, 0x70, 0xe0, 0x79, 0x38, 0xf7, 0x84, 0xbc, 0x76, 0xc2, 0x3a, 0x09, 0xa1, - 0x85, 0x5b, 0x34, 0x3b, 0xdf, 0x6f, 0xbf, 0x7c, 0x3b, 0x63, 0xd8, 0x09, 0x44, 0x3b, 0x8c, 0x09, - 0x65, 0xcc, 0xa3, 0x76, 0xa4, 0x7f, 0xb5, 0x09, 0x15, 0xf9, 0x9c, 0x78, 0xfb, 0x9c, 0x47, 0xa1, - 0xef, 0x26, 0x52, 0x90, 0x60, 0x76, 0x5a, 0x6d, 0x42, 0xda, 0x92, 0x55, 0x9a, 0x35, 0x35, 0xe6, - 0x12, 0xf3, 0x73, 0xe7, 0x08, 0x6a, 0xef, 0xd3, 0x76, 0x0f, 0x3f, 0x9f, 0xa1, 0x22, 0xf6, 0x14, - 0xaa, 0x3e, 0x2a, 0x0a, 0x63, 0x4e, 0xa1, 0x88, 0xeb, 0xd6, 0x5d, 0xab, 0x55, 0xed, 0x30, 0x37, - 0x08, 0x89, 0x47, 0x17, 0xae, 0x87, 0x89, 0x50, 0x21, 0x09, 0x79, 0x71, 0x60, 0x5f, 0x7e, 0x7f, - 0x60, 0x79, 0x66, 0xb3, 0xd3, 0x80, 0x5b, 0x26, 0xeb, 0x43, 0x48, 0x63, 0x71, 0x46, 0xa9, 0xc6, - 0xe9, 0xc2, 0x96, 0x3e, 0x3a, 0x21, 0x21, 0x79, 0x80, 0xb3, 0xdb, 0x76, 0xa0, 0xa6, 0xb2, 0xca, - 0x20, 0xe6, 0x13, 0xd4, 0xd7, 0xfd, 0x77, 0x60, 0x7f, 0xd1, 0xe8, 0xfc, 0xe4, 0x98, 0x4f, 0xd0, - 0xf9, 0x1f, 0x36, 0x72, 0xb4, 0x4a, 0x44, 0xac, 0xd0, 0xe9, 0x03, 0xd3, 0x85, 0x63, 0x54, 0x84, - 0x73, 0xf7, 0xfb, 0xb0, 0x11, 0xc6, 0x31, 0xca, 0xc1, 0x04, 0x95, 0xe2, 0x01, 0xce, 0xfd, 0xa7, - 0x29, 0xb8, 0xa6, 0x39, 0xaf, 0xa6, 0x1b, 0xfb, 0x59, 0x9f, 0xf3, 0x11, 0x1a, 0xa6, 0xbf, 0x22, - 0xb5, 0xbb, 0x9a, 0xda, 0x30, 0xa8, 0xc5, 0xff, 0xb5, 0x00, 0x1f, 0x42, 0xdd, 0xf0, 0x7a, 0xa2, - 0xe3, 0x9f, 0xb1, 0x5f, 0x02, 0x8b, 0x75, 0x79, 0x40, 0x5c, 0x06, 0x48, 0x03, 0x89, 0x89, 0x58, - 0x8c, 0xfd, 0xcd, 0xf0, 0x13, 0x8e, 0xe8, 0xad, 0x10, 0x51, 0x1e, 0xfb, 0x66, 0xa6, 0x39, 0xd5, - 0x12, 0x1d, 0xf0, 0x57, 0x2b, 0x0f, 0xbf, 0x97, 0xde, 0x5c, 0xf4, 0xff, 0x0c, 0xca, 0x63, 0xe4, - 0x3e, 0xca, 0x9c, 0x7b, 0xcf, 0x30, 0xbe, 0xdc, 0xee, 0xbe, 0xd6, 0xbd, 0x5e, 0xae, 0x69, 0x1e, - 0x42, 0x39, 0xab, 0xfc, 0xd3, 0x6c, 0x5c, 0x5a, 0xb0, 0x6d, 0x26, 0xb5, 0xc2, 0xe6, 0x8b, 0x05, - 0x9b, 0xf7, 0x97, 0xf3, 0xfd, 0xb3, 0xdb, 0x87, 0x73, 0xb7, 0xd7, 0x9d, 0xad, 0xce, 0x3b, 0x60, - 0xbd, 0x74, 0x81, 0x46, 0x98, 0xa4, 0xcf, 0x83, 0xf2, 0x3c, 0x1c, 0x21, 0xdb, 0x03, 0x38, 0x45, - 0x45, 0x7d, 0xa4, 0xb1, 0xf0, 0xd9, 0x8a, 0x09, 0x6a, 0x6e, 0x15, 0x6a, 0xd9, 0x5c, 0x36, 0xed, - 0x1f, 0xd3, 0x96, 0xd5, 0xf9, 0x66, 0xe7, 0x6b, 0x35, 0xa3, 0x3d, 0xff, 0x2b, 0x9a, 0x53, 0xbe, - 0x9a, 0xb6, 0x4a, 0x95, 0x12, 0xeb, 0x42, 0xf5, 0x97, 0xbc, 0x73, 0x53, 0xbd, 0x55, 0xd4, 0xef, - 0xde, 0x5c, 0x7f, 0x68, 0xea, 0xf7, 0x58, 0xdd, 0xe8, 0x2d, 0xbc, 0xc6, 0x7a, 0xca, 0x91, 0x49, - 0x79, 0xc4, 0xb6, 0x97, 0x28, 0x85, 0xd5, 0x58, 0xcf, 0xea, 0x99, 0xac, 0x7d, 0x76, 0x7b, 0xed, - 0x48, 0xaf, 0x47, 0xbd, 0x32, 0x51, 0x8f, 0xd9, 0xef, 0xd7, 0x7a, 0x35, 0xa6, 0x72, 0x35, 0x6d, - 0xd9, 0x15, 0x6b, 0xb3, 0xc4, 0xfa, 0x26, 0xe8, 0x09, 0xbb, 0xb3, 0x0c, 0xba, 0x86, 0xab, 0x39, - 0x6e, 0x58, 0xd6, 0x5f, 0xe8, 0xdd, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x23, 0x7b, 0xb9, 0x87, - 0xec, 0x05, 0x00, 0x00, +func (x *ValidNestedSharedRequest) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// InterceptedServiceClient is the client API for InterceptedService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type InterceptedServiceClient interface { - TestMethod(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) +// Deprecated: Use ValidNestedSharedRequest.ProtoReflect.Descriptor instead. +func (*ValidNestedSharedRequest) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_valid_proto_rawDescGZIP(), []int{6} } -type interceptedServiceClient struct { - cc *grpc.ClientConn +func (x *ValidNestedSharedRequest) GetNestedTargetRepo() *gitalypb.ObjectPool { + if x != nil { + return x.NestedTargetRepo + } + return nil } -func NewInterceptedServiceClient(cc *grpc.ClientConn) InterceptedServiceClient { - return &interceptedServiceClient{cc} -} +type ValidInnerNestedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (c *interceptedServiceClient) TestMethod(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { - out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.InterceptedService/TestMethod", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil + Header *ValidInnerNestedRequest_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` } -// InterceptedServiceServer is the server API for InterceptedService service. -type InterceptedServiceServer interface { - TestMethod(context.Context, *ValidRequest) (*ValidResponse, error) +func (x *ValidInnerNestedRequest) Reset() { + *x = ValidInnerNestedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -// UnimplementedInterceptedServiceServer can be embedded to have forward compatible implementations. -type UnimplementedInterceptedServiceServer struct { +func (x *ValidInnerNestedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (*UnimplementedInterceptedServiceServer) TestMethod(ctx context.Context, req *ValidRequest) (*ValidResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TestMethod not implemented") -} - -func RegisterInterceptedServiceServer(s *grpc.Server, srv InterceptedServiceServer) { - s.RegisterService(&_InterceptedService_serviceDesc, srv) -} +func (*ValidInnerNestedRequest) ProtoMessage() {} -func _InterceptedService_TestMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InterceptedServiceServer).TestMethod(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.InterceptedService/TestMethod", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InterceptedServiceServer).TestMethod(ctx, req.(*ValidRequest)) +func (x *ValidInnerNestedRequest) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -var _InterceptedService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "test.InterceptedService", - HandlerType: (*InterceptedServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "TestMethod", - Handler: _InterceptedService_TestMethod_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "go/internal/linter/testdata/valid.proto", +// Deprecated: Use ValidInnerNestedRequest.ProtoReflect.Descriptor instead. +func (*ValidInnerNestedRequest) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_valid_proto_rawDescGZIP(), []int{7} } -// ValidServiceClient is the client API for ValidService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ValidServiceClient interface { - TestMethod(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) - TestMethod2(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) - TestMethod3(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) - TestMethod5(ctx context.Context, in *ValidNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) - TestMethod6(ctx context.Context, in *ValidNestedSharedRequest, opts ...grpc.CallOption) (*ValidResponse, error) - TestMethod7(ctx context.Context, in *ValidInnerNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) - TestMethod8(ctx context.Context, in *ValidStorageRequest, opts ...grpc.CallOption) (*ValidResponse, error) - TestMethod9(ctx context.Context, in *ValidStorageNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) +func (x *ValidInnerNestedRequest) GetHeader() *ValidInnerNestedRequest_Header { + if x != nil { + return x.Header + } + return nil } -type validServiceClient struct { - cc *grpc.ClientConn -} +type ValidStorageInnerNestedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func NewValidServiceClient(cc *grpc.ClientConn) ValidServiceClient { - return &validServiceClient{cc} + Header *ValidStorageInnerNestedRequest_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` } -func (c *validServiceClient) TestMethod(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { - out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod", in, out, opts...) - if err != nil { - return nil, err +func (x *ValidStorageInnerNestedRequest) Reset() { + *x = ValidStorageInnerNestedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil } -func (c *validServiceClient) TestMethod2(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { - out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod2", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *ValidStorageInnerNestedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *validServiceClient) TestMethod3(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { - out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod3", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*ValidStorageInnerNestedRequest) ProtoMessage() {} -func (c *validServiceClient) TestMethod5(ctx context.Context, in *ValidNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { - out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod5", in, out, opts...) - if err != nil { - return nil, err +func (x *ValidStorageInnerNestedRequest) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *validServiceClient) TestMethod6(ctx context.Context, in *ValidNestedSharedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { - out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod6", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use ValidStorageInnerNestedRequest.ProtoReflect.Descriptor instead. +func (*ValidStorageInnerNestedRequest) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_valid_proto_rawDescGZIP(), []int{8} } -func (c *validServiceClient) TestMethod7(ctx context.Context, in *ValidInnerNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { - out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod7", in, out, opts...) - if err != nil { - return nil, err +func (x *ValidStorageInnerNestedRequest) GetHeader() *ValidStorageInnerNestedRequest_Header { + if x != nil { + return x.Header } - return out, nil + return nil } -func (c *validServiceClient) TestMethod8(ctx context.Context, in *ValidStorageRequest, opts ...grpc.CallOption) (*ValidResponse, error) { - out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod8", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type ValidInnerNestedRequest_Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` } -func (c *validServiceClient) TestMethod9(ctx context.Context, in *ValidStorageNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { - out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod9", in, out, opts...) - if err != nil { - return nil, err +func (x *ValidInnerNestedRequest_Header) Reset() { + *x = ValidInnerNestedRequest_Header{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil } -// ValidServiceServer is the server API for ValidService service. -type ValidServiceServer interface { - TestMethod(context.Context, *ValidRequest) (*ValidResponse, error) - TestMethod2(context.Context, *ValidRequest) (*ValidResponse, error) - TestMethod3(context.Context, *ValidRequest) (*ValidResponse, error) - TestMethod5(context.Context, *ValidNestedRequest) (*ValidResponse, error) - TestMethod6(context.Context, *ValidNestedSharedRequest) (*ValidResponse, error) - TestMethod7(context.Context, *ValidInnerNestedRequest) (*ValidResponse, error) - TestMethod8(context.Context, *ValidStorageRequest) (*ValidResponse, error) - TestMethod9(context.Context, *ValidStorageNestedRequest) (*ValidResponse, error) +func (x *ValidInnerNestedRequest_Header) String() string { + return protoimpl.X.MessageStringOf(x) } -// UnimplementedValidServiceServer can be embedded to have forward compatible implementations. -type UnimplementedValidServiceServer struct { -} +func (*ValidInnerNestedRequest_Header) ProtoMessage() {} -func (*UnimplementedValidServiceServer) TestMethod(ctx context.Context, req *ValidRequest) (*ValidResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TestMethod not implemented") -} -func (*UnimplementedValidServiceServer) TestMethod2(ctx context.Context, req *ValidRequest) (*ValidResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TestMethod2 not implemented") -} -func (*UnimplementedValidServiceServer) TestMethod3(ctx context.Context, req *ValidRequest) (*ValidResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TestMethod3 not implemented") -} -func (*UnimplementedValidServiceServer) TestMethod5(ctx context.Context, req *ValidNestedRequest) (*ValidResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TestMethod5 not implemented") -} -func (*UnimplementedValidServiceServer) TestMethod6(ctx context.Context, req *ValidNestedSharedRequest) (*ValidResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TestMethod6 not implemented") -} -func (*UnimplementedValidServiceServer) TestMethod7(ctx context.Context, req *ValidInnerNestedRequest) (*ValidResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TestMethod7 not implemented") -} -func (*UnimplementedValidServiceServer) TestMethod8(ctx context.Context, req *ValidStorageRequest) (*ValidResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TestMethod8 not implemented") -} -func (*UnimplementedValidServiceServer) TestMethod9(ctx context.Context, req *ValidStorageNestedRequest) (*ValidResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TestMethod9 not implemented") +func (x *ValidInnerNestedRequest_Header) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func RegisterValidServiceServer(s *grpc.Server, srv ValidServiceServer) { - s.RegisterService(&_ValidService_serviceDesc, srv) +// Deprecated: Use ValidInnerNestedRequest_Header.ProtoReflect.Descriptor instead. +func (*ValidInnerNestedRequest_Header) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_valid_proto_rawDescGZIP(), []int{7, 0} } -func _ValidService_TestMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidRequest) - if err := dec(in); err != nil { - return nil, err +func (x *ValidInnerNestedRequest_Header) GetDestination() *gitalypb.Repository { + if x != nil { + return x.Destination } - if interceptor == nil { - return srv.(ValidServiceServer).TestMethod(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.ValidService/TestMethod", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidServiceServer).TestMethod(ctx, req.(*ValidRequest)) - } - return interceptor(ctx, in, info, handler) + return nil } -func _ValidService_TestMethod2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidServiceServer).TestMethod2(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.ValidService/TestMethod2", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidServiceServer).TestMethod2(ctx, req.(*ValidRequest)) - } - return interceptor(ctx, in, info, handler) -} +type ValidStorageInnerNestedRequest_Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func _ValidService_TestMethod3_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidServiceServer).TestMethod3(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.ValidService/TestMethod3", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidServiceServer).TestMethod3(ctx, req.(*ValidRequest)) - } - return interceptor(ctx, in, info, handler) + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` } -func _ValidService_TestMethod5_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidNestedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidServiceServer).TestMethod5(ctx, in) +func (x *ValidStorageInnerNestedRequest_Header) Reset() { + *x = ValidStorageInnerNestedRequest_Header{} + if protoimpl.UnsafeEnabled { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.ValidService/TestMethod5", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidServiceServer).TestMethod5(ctx, req.(*ValidNestedRequest)) - } - return interceptor(ctx, in, info, handler) } -func _ValidService_TestMethod6_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidNestedSharedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidServiceServer).TestMethod6(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.ValidService/TestMethod6", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidServiceServer).TestMethod6(ctx, req.(*ValidNestedSharedRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *ValidStorageInnerNestedRequest_Header) String() string { + return protoimpl.X.MessageStringOf(x) } -func _ValidService_TestMethod7_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidInnerNestedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidServiceServer).TestMethod7(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.ValidService/TestMethod7", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidServiceServer).TestMethod7(ctx, req.(*ValidInnerNestedRequest)) +func (*ValidStorageInnerNestedRequest_Header) ProtoMessage() {} + +func (x *ValidStorageInnerNestedRequest_Header) ProtoReflect() protoreflect.Message { + mi := &file_go_internal_linter_testdata_valid_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _ValidService_TestMethod8_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidStorageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidServiceServer).TestMethod8(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.ValidService/TestMethod8", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidServiceServer).TestMethod8(ctx, req.(*ValidStorageRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use ValidStorageInnerNestedRequest_Header.ProtoReflect.Descriptor instead. +func (*ValidStorageInnerNestedRequest_Header) Descriptor() ([]byte, []int) { + return file_go_internal_linter_testdata_valid_proto_rawDescGZIP(), []int{8, 0} } -func _ValidService_TestMethod9_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidStorageNestedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidServiceServer).TestMethod9(ctx, in) +func (x *ValidStorageInnerNestedRequest_Header) GetStorageName() string { + if x != nil { + return x.StorageName } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/test.ValidService/TestMethod9", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidServiceServer).TestMethod9(ctx, req.(*ValidStorageNestedRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -var _ValidService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "test.ValidService", - HandlerType: (*ValidServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "TestMethod", - Handler: _ValidService_TestMethod_Handler, - }, - { - MethodName: "TestMethod2", - Handler: _ValidService_TestMethod2_Handler, - }, - { - MethodName: "TestMethod3", - Handler: _ValidService_TestMethod3_Handler, - }, - { - MethodName: "TestMethod5", - Handler: _ValidService_TestMethod5_Handler, - }, - { - MethodName: "TestMethod6", - Handler: _ValidService_TestMethod6_Handler, - }, - { - MethodName: "TestMethod7", - Handler: _ValidService_TestMethod7_Handler, - }, - { - MethodName: "TestMethod8", - Handler: _ValidService_TestMethod8_Handler, - }, - { - MethodName: "TestMethod9", - Handler: _ValidService_TestMethod9_Handler, +var File_go_internal_linter_testdata_valid_proto protoreflect.FileDescriptor + +var file_go_internal_linter_testdata_valid_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x67, 0x6f, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6c, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x74, 0x65, 0x73, 0x74, 0x1a, + 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x0c, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0b, 0x64, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x19, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x70, 0x6f, + 0x22, 0x3e, 0x0a, 0x13, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, + 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x4d, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x0d, 0x69, 0x6e, 0x6e, 0x65, 0x72, + 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x52, 0x0c, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x22, 0x5b, 0x0a, 0x19, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, + 0x0d, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x0c, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x62, 0x0a, + 0x18, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x12, 0x6e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, + 0x10, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x70, + 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, 0x6e, 0x65, 0x72, + 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, + 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4e, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x44, 0x0a, 0x06, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, + 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x98, 0x01, 0x0a, 0x1e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x31, 0x0a, 0x06, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, + 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0x51, 0x0a, 0x12, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x35, 0x0a, 0x0a, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x12, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x04, 0xf0, 0x97, 0x28, 0x01, 0x32, + 0xc2, 0x04, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x3d, 0x0a, 0x0a, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, + 0x3e, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x32, 0x12, 0x12, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, + 0x3e, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x33, 0x12, 0x12, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, + 0x44, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x35, 0x12, 0x18, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, + 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x4a, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x36, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, + 0x01, 0x12, 0x49, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x37, + 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, 0x6e, + 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x47, 0x0a, 0x0b, + 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x38, 0x12, 0x19, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, + 0x04, 0x08, 0x01, 0x10, 0x02, 0x12, 0x4d, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x39, 0x12, 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, 0x04, + 0x08, 0x01, 0x10, 0x02, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, + 0x6f, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6c, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_go_internal_linter_testdata_valid_proto_rawDescOnce sync.Once + file_go_internal_linter_testdata_valid_proto_rawDescData = file_go_internal_linter_testdata_valid_proto_rawDesc +) + +func file_go_internal_linter_testdata_valid_proto_rawDescGZIP() []byte { + file_go_internal_linter_testdata_valid_proto_rawDescOnce.Do(func() { + file_go_internal_linter_testdata_valid_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_internal_linter_testdata_valid_proto_rawDescData) + }) + return file_go_internal_linter_testdata_valid_proto_rawDescData +} + +var file_go_internal_linter_testdata_valid_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_go_internal_linter_testdata_valid_proto_goTypes = []interface{}{ + (*ValidRequest)(nil), // 0: test.ValidRequest + (*ValidRequestWithoutRepo)(nil), // 1: test.ValidRequestWithoutRepo + (*ValidStorageRequest)(nil), // 2: test.ValidStorageRequest + (*ValidResponse)(nil), // 3: test.ValidResponse + (*ValidNestedRequest)(nil), // 4: test.ValidNestedRequest + (*ValidStorageNestedRequest)(nil), // 5: test.ValidStorageNestedRequest + (*ValidNestedSharedRequest)(nil), // 6: test.ValidNestedSharedRequest + (*ValidInnerNestedRequest)(nil), // 7: test.ValidInnerNestedRequest + (*ValidStorageInnerNestedRequest)(nil), // 8: test.ValidStorageInnerNestedRequest + (*ValidInnerNestedRequest_Header)(nil), // 9: test.ValidInnerNestedRequest.Header + (*ValidStorageInnerNestedRequest_Header)(nil), // 10: test.ValidStorageInnerNestedRequest.Header + (*gitalypb.Repository)(nil), // 11: gitaly.Repository + (*gitalypb.ObjectPool)(nil), // 12: gitaly.ObjectPool +} +var file_go_internal_linter_testdata_valid_proto_depIdxs = []int32{ + 11, // 0: test.ValidRequest.destination:type_name -> gitaly.Repository + 0, // 1: test.ValidNestedRequest.inner_message:type_name -> test.ValidRequest + 2, // 2: test.ValidStorageNestedRequest.inner_message:type_name -> test.ValidStorageRequest + 12, // 3: test.ValidNestedSharedRequest.nested_target_repo:type_name -> gitaly.ObjectPool + 9, // 4: test.ValidInnerNestedRequest.header:type_name -> test.ValidInnerNestedRequest.Header + 10, // 5: test.ValidStorageInnerNestedRequest.header:type_name -> test.ValidStorageInnerNestedRequest.Header + 11, // 6: test.ValidInnerNestedRequest.Header.destination:type_name -> gitaly.Repository + 0, // 7: test.InterceptedService.TestMethod:input_type -> test.ValidRequest + 0, // 8: test.ValidService.TestMethod:input_type -> test.ValidRequest + 0, // 9: test.ValidService.TestMethod2:input_type -> test.ValidRequest + 0, // 10: test.ValidService.TestMethod3:input_type -> test.ValidRequest + 4, // 11: test.ValidService.TestMethod5:input_type -> test.ValidNestedRequest + 6, // 12: test.ValidService.TestMethod6:input_type -> test.ValidNestedSharedRequest + 7, // 13: test.ValidService.TestMethod7:input_type -> test.ValidInnerNestedRequest + 2, // 14: test.ValidService.TestMethod8:input_type -> test.ValidStorageRequest + 5, // 15: test.ValidService.TestMethod9:input_type -> test.ValidStorageNestedRequest + 3, // 16: test.InterceptedService.TestMethod:output_type -> test.ValidResponse + 3, // 17: test.ValidService.TestMethod:output_type -> test.ValidResponse + 3, // 18: test.ValidService.TestMethod2:output_type -> test.ValidResponse + 3, // 19: test.ValidService.TestMethod3:output_type -> test.ValidResponse + 3, // 20: test.ValidService.TestMethod5:output_type -> test.ValidResponse + 3, // 21: test.ValidService.TestMethod6:output_type -> test.ValidResponse + 3, // 22: test.ValidService.TestMethod7:output_type -> test.ValidResponse + 3, // 23: test.ValidService.TestMethod8:output_type -> test.ValidResponse + 3, // 24: test.ValidService.TestMethod9:output_type -> test.ValidResponse + 16, // [16:25] is the sub-list for method output_type + 7, // [7:16] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_go_internal_linter_testdata_valid_proto_init() } +func file_go_internal_linter_testdata_valid_proto_init() { + if File_go_internal_linter_testdata_valid_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_go_internal_linter_testdata_valid_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_valid_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidRequestWithoutRepo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_valid_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidStorageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_valid_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_valid_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidNestedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_valid_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidStorageNestedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_valid_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidNestedSharedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_valid_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidInnerNestedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_valid_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidStorageInnerNestedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_valid_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidInnerNestedRequest_Header); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_go_internal_linter_testdata_valid_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidStorageInnerNestedRequest_Header); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_go_internal_linter_testdata_valid_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 2, }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "go/internal/linter/testdata/valid.proto", + GoTypes: file_go_internal_linter_testdata_valid_proto_goTypes, + DependencyIndexes: file_go_internal_linter_testdata_valid_proto_depIdxs, + MessageInfos: file_go_internal_linter_testdata_valid_proto_msgTypes, + }.Build() + File_go_internal_linter_testdata_valid_proto = out.File + file_go_internal_linter_testdata_valid_proto_rawDesc = nil + file_go_internal_linter_testdata_valid_proto_goTypes = nil + file_go_internal_linter_testdata_valid_proto_depIdxs = nil } diff --git a/proto/go/internal/linter/testdata/valid_grpc.pb.go b/proto/go/internal/linter/testdata/valid_grpc.pb.go new file mode 100644 index 000000000..9814297f4 --- /dev/null +++ b/proto/go/internal/linter/testdata/valid_grpc.pb.go @@ -0,0 +1,439 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package testdata + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// InterceptedServiceClient is the client API for InterceptedService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type InterceptedServiceClient interface { + TestMethod(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) +} + +type interceptedServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewInterceptedServiceClient(cc grpc.ClientConnInterface) InterceptedServiceClient { + return &interceptedServiceClient{cc} +} + +func (c *interceptedServiceClient) TestMethod(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { + out := new(ValidResponse) + err := c.cc.Invoke(ctx, "/test.InterceptedService/TestMethod", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// InterceptedServiceServer is the server API for InterceptedService service. +// All implementations must embed UnimplementedInterceptedServiceServer +// for forward compatibility +type InterceptedServiceServer interface { + TestMethod(context.Context, *ValidRequest) (*ValidResponse, error) + mustEmbedUnimplementedInterceptedServiceServer() +} + +// UnimplementedInterceptedServiceServer must be embedded to have forward compatible implementations. +type UnimplementedInterceptedServiceServer struct { +} + +func (UnimplementedInterceptedServiceServer) TestMethod(context.Context, *ValidRequest) (*ValidResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TestMethod not implemented") +} +func (UnimplementedInterceptedServiceServer) mustEmbedUnimplementedInterceptedServiceServer() {} + +// UnsafeInterceptedServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to InterceptedServiceServer will +// result in compilation errors. +type UnsafeInterceptedServiceServer interface { + mustEmbedUnimplementedInterceptedServiceServer() +} + +func RegisterInterceptedServiceServer(s grpc.ServiceRegistrar, srv InterceptedServiceServer) { + s.RegisterService(&InterceptedService_ServiceDesc, srv) +} + +func _InterceptedService_TestMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InterceptedServiceServer).TestMethod(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.InterceptedService/TestMethod", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InterceptedServiceServer).TestMethod(ctx, req.(*ValidRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// InterceptedService_ServiceDesc is the grpc.ServiceDesc for InterceptedService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var InterceptedService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "test.InterceptedService", + HandlerType: (*InterceptedServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "TestMethod", + Handler: _InterceptedService_TestMethod_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "go/internal/linter/testdata/valid.proto", +} + +// ValidServiceClient is the client API for ValidService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ValidServiceClient interface { + TestMethod(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) + TestMethod2(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) + TestMethod3(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) + TestMethod5(ctx context.Context, in *ValidNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) + TestMethod6(ctx context.Context, in *ValidNestedSharedRequest, opts ...grpc.CallOption) (*ValidResponse, error) + TestMethod7(ctx context.Context, in *ValidInnerNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) + TestMethod8(ctx context.Context, in *ValidStorageRequest, opts ...grpc.CallOption) (*ValidResponse, error) + TestMethod9(ctx context.Context, in *ValidStorageNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) +} + +type validServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewValidServiceClient(cc grpc.ClientConnInterface) ValidServiceClient { + return &validServiceClient{cc} +} + +func (c *validServiceClient) TestMethod(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { + out := new(ValidResponse) + err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *validServiceClient) TestMethod2(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { + out := new(ValidResponse) + err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod2", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *validServiceClient) TestMethod3(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { + out := new(ValidResponse) + err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod3", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *validServiceClient) TestMethod5(ctx context.Context, in *ValidNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { + out := new(ValidResponse) + err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod5", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *validServiceClient) TestMethod6(ctx context.Context, in *ValidNestedSharedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { + out := new(ValidResponse) + err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod6", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *validServiceClient) TestMethod7(ctx context.Context, in *ValidInnerNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { + out := new(ValidResponse) + err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod7", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *validServiceClient) TestMethod8(ctx context.Context, in *ValidStorageRequest, opts ...grpc.CallOption) (*ValidResponse, error) { + out := new(ValidResponse) + err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod8", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *validServiceClient) TestMethod9(ctx context.Context, in *ValidStorageNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { + out := new(ValidResponse) + err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod9", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ValidServiceServer is the server API for ValidService service. +// All implementations must embed UnimplementedValidServiceServer +// for forward compatibility +type ValidServiceServer interface { + TestMethod(context.Context, *ValidRequest) (*ValidResponse, error) + TestMethod2(context.Context, *ValidRequest) (*ValidResponse, error) + TestMethod3(context.Context, *ValidRequest) (*ValidResponse, error) + TestMethod5(context.Context, *ValidNestedRequest) (*ValidResponse, error) + TestMethod6(context.Context, *ValidNestedSharedRequest) (*ValidResponse, error) + TestMethod7(context.Context, *ValidInnerNestedRequest) (*ValidResponse, error) + TestMethod8(context.Context, *ValidStorageRequest) (*ValidResponse, error) + TestMethod9(context.Context, *ValidStorageNestedRequest) (*ValidResponse, error) + mustEmbedUnimplementedValidServiceServer() +} + +// UnimplementedValidServiceServer must be embedded to have forward compatible implementations. +type UnimplementedValidServiceServer struct { +} + +func (UnimplementedValidServiceServer) TestMethod(context.Context, *ValidRequest) (*ValidResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TestMethod not implemented") +} +func (UnimplementedValidServiceServer) TestMethod2(context.Context, *ValidRequest) (*ValidResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TestMethod2 not implemented") +} +func (UnimplementedValidServiceServer) TestMethod3(context.Context, *ValidRequest) (*ValidResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TestMethod3 not implemented") +} +func (UnimplementedValidServiceServer) TestMethod5(context.Context, *ValidNestedRequest) (*ValidResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TestMethod5 not implemented") +} +func (UnimplementedValidServiceServer) TestMethod6(context.Context, *ValidNestedSharedRequest) (*ValidResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TestMethod6 not implemented") +} +func (UnimplementedValidServiceServer) TestMethod7(context.Context, *ValidInnerNestedRequest) (*ValidResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TestMethod7 not implemented") +} +func (UnimplementedValidServiceServer) TestMethod8(context.Context, *ValidStorageRequest) (*ValidResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TestMethod8 not implemented") +} +func (UnimplementedValidServiceServer) TestMethod9(context.Context, *ValidStorageNestedRequest) (*ValidResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TestMethod9 not implemented") +} +func (UnimplementedValidServiceServer) mustEmbedUnimplementedValidServiceServer() {} + +// UnsafeValidServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ValidServiceServer will +// result in compilation errors. +type UnsafeValidServiceServer interface { + mustEmbedUnimplementedValidServiceServer() +} + +func RegisterValidServiceServer(s grpc.ServiceRegistrar, srv ValidServiceServer) { + s.RegisterService(&ValidService_ServiceDesc, srv) +} + +func _ValidService_TestMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ValidServiceServer).TestMethod(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.ValidService/TestMethod", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ValidServiceServer).TestMethod(ctx, req.(*ValidRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ValidService_TestMethod2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ValidServiceServer).TestMethod2(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.ValidService/TestMethod2", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ValidServiceServer).TestMethod2(ctx, req.(*ValidRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ValidService_TestMethod3_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ValidServiceServer).TestMethod3(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.ValidService/TestMethod3", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ValidServiceServer).TestMethod3(ctx, req.(*ValidRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ValidService_TestMethod5_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidNestedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ValidServiceServer).TestMethod5(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.ValidService/TestMethod5", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ValidServiceServer).TestMethod5(ctx, req.(*ValidNestedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ValidService_TestMethod6_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidNestedSharedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ValidServiceServer).TestMethod6(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.ValidService/TestMethod6", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ValidServiceServer).TestMethod6(ctx, req.(*ValidNestedSharedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ValidService_TestMethod7_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidInnerNestedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ValidServiceServer).TestMethod7(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.ValidService/TestMethod7", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ValidServiceServer).TestMethod7(ctx, req.(*ValidInnerNestedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ValidService_TestMethod8_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidStorageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ValidServiceServer).TestMethod8(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.ValidService/TestMethod8", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ValidServiceServer).TestMethod8(ctx, req.(*ValidStorageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ValidService_TestMethod9_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidStorageNestedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ValidServiceServer).TestMethod9(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/test.ValidService/TestMethod9", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ValidServiceServer).TestMethod9(ctx, req.(*ValidStorageNestedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ValidService_ServiceDesc is the grpc.ServiceDesc for ValidService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ValidService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "test.ValidService", + HandlerType: (*ValidServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "TestMethod", + Handler: _ValidService_TestMethod_Handler, + }, + { + MethodName: "TestMethod2", + Handler: _ValidService_TestMethod2_Handler, + }, + { + MethodName: "TestMethod3", + Handler: _ValidService_TestMethod3_Handler, + }, + { + MethodName: "TestMethod5", + Handler: _ValidService_TestMethod5_Handler, + }, + { + MethodName: "TestMethod6", + Handler: _ValidService_TestMethod6_Handler, + }, + { + MethodName: "TestMethod7", + Handler: _ValidService_TestMethod7_Handler, + }, + { + MethodName: "TestMethod8", + Handler: _ValidService_TestMethod8_Handler, + }, + { + MethodName: "TestMethod9", + Handler: _ValidService_TestMethod9_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "go/internal/linter/testdata/valid.proto", +} |