diff options
Diffstat (limited to 'internal/praefect/mock/mock.pb.go')
-rw-r--r-- | internal/praefect/mock/mock.pb.go | 70 |
1 files changed, 47 insertions, 23 deletions
diff --git a/internal/praefect/mock/mock.pb.go b/internal/praefect/mock/mock.pb.go index edc09f622..b3fc533bb 100644 --- a/internal/praefect/mock/mock.pb.go +++ b/internal/praefect/mock/mock.pb.go @@ -12,6 +12,8 @@ import ( empty "github.com/golang/protobuf/ptypes/empty" gitalypb "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb" grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -26,10 +28,11 @@ var _ = math.Inf const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type SimpleRequest 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:"-"` + Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` + Repo *gitalypb.Repository `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SimpleRequest) Reset() { *m = SimpleRequest{} } @@ -64,6 +67,13 @@ func (m *SimpleRequest) GetValue() int32 { return 0 } +func (m *SimpleRequest) GetRepo() *gitalypb.Repository { + if m != nil { + return m.Repo + } + return nil +} + type SimpleResponse struct { Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -151,25 +161,25 @@ func init() { func init() { proto.RegisterFile("mock.proto", fileDescriptor_6fa4806c90f7156d) } var fileDescriptor_6fa4806c90f7156d = []byte{ - // 275 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00,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, 0x34, 0xbf, 0x92, - 0xdd, 0x3f, 0x4f, 0xd2, 0x8a, 0xe9, 0xe9, 0xd1, 0x67, 0x8b, 0xa3, 0xc3, 0x3e, 0x09, 0xa2, 0xc1, - 0x98, 0xf1, 0x17, 0x98, 0xb8, 0xc7, 0x7a, 0x93, 0xb7, 0x6d, 0xa6, 0x5b, 0x3e, 0xf1, 0xa2, 0xa3, - 0xa0, 0xe2, 0x5a, 0xfa, 0x92, 0x64, 0x5f, 0x92, 0x5c, 0xb9, 0x92, 0xe2, 0xf3, 0xc3, 0x3e, 0x09, - 0xa3, 0x81, 0x60, 0x0b, 0xfe, 0x0c, 0x63, 0xa7, 0x78, 0x6d, 0x6c, 0x66, 0xff, 0xed, 0xc4, 0x04, - 0x5b, 0x6c, 0xce, 0x3a, 0xe8, 0xe1, 0x37, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x0c, 0xc7, 0x57, 0xb9, - 0x01, 0x00, 0x00, + // 280 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x90, 0x31, 0x4e, 0xc3, 0x30, + 0x14, 0x86, 0xe5, 0xa8, 0x41, 0xe0, 0x42, 0x45, 0x4d, 0x85, 0x2a, 0xb3, 0x54, 0x19, 0xaa, 0x4c, + 0xae, 0x1a, 0xc4, 0x01, 0x18, 0x40, 0x30, 0x74, 0x49, 0xc5, 0x01, 0xdc, 0xf0, 0x08, 0x11, 0x49, + 0x9f, 0xb1, 0x9d, 0x4a, 0x39, 0x09, 0x97, 0xe4, 0x04, 0x4c, 0xc8, 0xb1, 0xac, 0xb6, 0x0b, 0x03, + 0x9b, 0xdf, 0xfb, 0xf5, 0x7f, 0xef, 0xf7, 0x4f, 0x69, 0x83, 0xc5, 0x87, 0x50, 0x1a, 0x2d, 0xb2, + 0x81, 0x7b, 0xf3, 0x73, 0xf3, 0x2e, 0x35, 0xbc, 0xfa, 0x1d, 0xbf, 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ff, + 0x83, 0xbf, 0x8a, 0x39, 0xe2, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -237,6 +247,20 @@ type SimpleServiceServer interface { RepoMutatorUnary(context.Context, *RepoRequest) (*empty.Empty, error) } +// UnimplementedSimpleServiceServer can be embedded to have forward compatible implementations. +type UnimplementedSimpleServiceServer struct { +} + +func (*UnimplementedSimpleServiceServer) ServerAccessor(ctx context.Context, req *SimpleRequest) (*SimpleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ServerAccessor not implemented") +} +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) } |