From d01055310675dcfc56f60fc9ce6c2b351f58b2de Mon Sep 17 00:00:00 2001 From: Caleb Horst Date: Thu, 21 Jul 2022 13:50:01 -0700 Subject: [PATCH] Update generated files (#235) * Update generated files * Re-regenerate --- example/feature_demo/demo_multi_file.pb.go | 2 +- .../demo_multi_file_service.pb.go | 86 +- .../demo_multi_file_service_grpc.pb.go | 105 -- example/feature_demo/demo_service.pb.go | 1266 +++++++++++++++- example/feature_demo/demo_service_grpc.pb.go | 1329 ----------------- example/feature_demo/demo_types.pb.go | 100 +- example/postgres_arrays/postgres_arrays.pb.go | 2 +- example/user/user.pb.go | 2 +- 8 files changed, 1403 insertions(+), 1489 deletions(-) delete mode 100644 example/feature_demo/demo_multi_file_service_grpc.pb.go delete mode 100644 example/feature_demo/demo_service_grpc.pb.go diff --git a/example/feature_demo/demo_multi_file.pb.go b/example/feature_demo/demo_multi_file.pb.go index 0e29bf69..b29547aa 100644 --- a/example/feature_demo/demo_multi_file.pb.go +++ b/example/feature_demo/demo_multi_file.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 -// protoc v3.17.1 +// protoc v3.15.7 // source: feature_demo/demo_multi_file.proto package example diff --git a/example/feature_demo/demo_multi_file_service.pb.go b/example/feature_demo/demo_multi_file_service.pb.go index ee01d435..ef54f0f7 100644 --- a/example/feature_demo/demo_multi_file_service.pb.go +++ b/example/feature_demo/demo_multi_file_service.pb.go @@ -1,14 +1,18 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 -// protoc v3.17.1 +// protoc v3.15.7 // source: feature_demo/demo_multi_file_service.proto package example import ( + context "context" query "github.com/infobloxopen/atlas-app-toolkit/query" _ "github.com/infobloxopen/protoc-gen-gorm/options" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -243,3 +247,83 @@ func file_feature_demo_demo_multi_file_service_proto_init() { file_feature_demo_demo_multi_file_service_proto_goTypes = nil file_feature_demo_demo_multi_file_service_proto_depIdxs = nil } + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// 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.SupportPackageIsVersion6 + +// BlogPostServiceClient is the client API for BlogPostService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type BlogPostServiceClient interface { + Read(ctx context.Context, in *ReadAccountRequest, opts ...grpc.CallOption) (*ReadBlogPostsResponse, error) +} + +type blogPostServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewBlogPostServiceClient(cc grpc.ClientConnInterface) BlogPostServiceClient { + return &blogPostServiceClient{cc} +} + +func (c *blogPostServiceClient) Read(ctx context.Context, in *ReadAccountRequest, opts ...grpc.CallOption) (*ReadBlogPostsResponse, error) { + out := new(ReadBlogPostsResponse) + err := c.cc.Invoke(ctx, "/example.BlogPostService/Read", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// BlogPostServiceServer is the server API for BlogPostService service. +type BlogPostServiceServer interface { + Read(context.Context, *ReadAccountRequest) (*ReadBlogPostsResponse, error) +} + +// UnimplementedBlogPostServiceServer can be embedded to have forward compatible implementations. +type UnimplementedBlogPostServiceServer struct { +} + +func (*UnimplementedBlogPostServiceServer) Read(context.Context, *ReadAccountRequest) (*ReadBlogPostsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Read not implemented") +} + +func RegisterBlogPostServiceServer(s *grpc.Server, srv BlogPostServiceServer) { + s.RegisterService(&_BlogPostService_serviceDesc, srv) +} + +func _BlogPostService_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReadAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BlogPostServiceServer).Read(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.BlogPostService/Read", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BlogPostServiceServer).Read(ctx, req.(*ReadAccountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _BlogPostService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "example.BlogPostService", + HandlerType: (*BlogPostServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Read", + Handler: _BlogPostService_Read_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "feature_demo/demo_multi_file_service.proto", +} diff --git a/example/feature_demo/demo_multi_file_service_grpc.pb.go b/example/feature_demo/demo_multi_file_service_grpc.pb.go deleted file mode 100644 index e76d4bc7..00000000 --- a/example/feature_demo/demo_multi_file_service_grpc.pb.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.17.1 -// source: feature_demo/demo_multi_file_service.proto - -package example - -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 - -// BlogPostServiceClient is the client API for BlogPostService 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 BlogPostServiceClient interface { - Read(ctx context.Context, in *ReadAccountRequest, opts ...grpc.CallOption) (*ReadBlogPostsResponse, error) -} - -type blogPostServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewBlogPostServiceClient(cc grpc.ClientConnInterface) BlogPostServiceClient { - return &blogPostServiceClient{cc} -} - -func (c *blogPostServiceClient) Read(ctx context.Context, in *ReadAccountRequest, opts ...grpc.CallOption) (*ReadBlogPostsResponse, error) { - out := new(ReadBlogPostsResponse) - err := c.cc.Invoke(ctx, "/example.BlogPostService/Read", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// BlogPostServiceServer is the server API for BlogPostService service. -// All implementations must embed UnimplementedBlogPostServiceServer -// for forward compatibility -type BlogPostServiceServer interface { - Read(context.Context, *ReadAccountRequest) (*ReadBlogPostsResponse, error) - mustEmbedUnimplementedBlogPostServiceServer() -} - -// UnimplementedBlogPostServiceServer must be embedded to have forward compatible implementations. -type UnimplementedBlogPostServiceServer struct { -} - -func (UnimplementedBlogPostServiceServer) Read(context.Context, *ReadAccountRequest) (*ReadBlogPostsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Read not implemented") -} -func (UnimplementedBlogPostServiceServer) mustEmbedUnimplementedBlogPostServiceServer() {} - -// UnsafeBlogPostServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to BlogPostServiceServer will -// result in compilation errors. -type UnsafeBlogPostServiceServer interface { - mustEmbedUnimplementedBlogPostServiceServer() -} - -func RegisterBlogPostServiceServer(s grpc.ServiceRegistrar, srv BlogPostServiceServer) { - s.RegisterService(&BlogPostService_ServiceDesc, srv) -} - -func _BlogPostService_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReadAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BlogPostServiceServer).Read(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.BlogPostService/Read", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BlogPostServiceServer).Read(ctx, req.(*ReadAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// BlogPostService_ServiceDesc is the grpc.ServiceDesc for BlogPostService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var BlogPostService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "example.BlogPostService", - HandlerType: (*BlogPostServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Read", - Handler: _BlogPostService_Read_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "feature_demo/demo_multi_file_service.proto", -} diff --git a/example/feature_demo/demo_service.pb.go b/example/feature_demo/demo_service.pb.go index b25fe93a..e76203b9 100644 --- a/example/feature_demo/demo_service.pb.go +++ b/example/feature_demo/demo_service.pb.go @@ -1,14 +1,18 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 -// protoc v3.17.1 +// protoc v3.15.7 // source: feature_demo/demo_service.proto package example import ( + context "context" query "github.com/infobloxopen/atlas-app-toolkit/query" _ "github.com/infobloxopen/protoc-gen-gorm/options" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" @@ -1645,3 +1649,1263 @@ func file_feature_demo_demo_service_proto_init() { file_feature_demo_demo_service_proto_goTypes = nil file_feature_demo_demo_service_proto_depIdxs = nil } + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// 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.SupportPackageIsVersion6 + +// IntPointServiceClient is the client API for IntPointService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type IntPointServiceClient interface { + // The convention requires the rpc names have Create/Read/Update/List/Delete + // as a prefix. The type is inferred from the response (except for delete), + // so multiple objects can have CURDL handlers in the same service, provided + // they are given unique suffixes + Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) + Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) + Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) + UpdateSet(ctx context.Context, in *UpdateSetIntPointRequest, opts ...grpc.CallOption) (*UpdateSetIntPointResponse, error) + List(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) + ListSomething(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListSomethingResponse, error) + Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) + // CustomMethod can't be autogenerated as it matches no conventions, it will + // become a stub + CustomMethod(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) + // CreateSomething also doesn't match conventions and will become a stub + CreateSomething(ctx context.Context, in *Something, opts ...grpc.CallOption) (*Something, error) +} + +type intPointServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewIntPointServiceClient(cc grpc.ClientConnInterface) IntPointServiceClient { + return &intPointServiceClient{cc} +} + +func (c *intPointServiceClient) Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) { + out := new(CreateIntPointResponse) + err := c.cc.Invoke(ctx, "/example.IntPointService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointServiceClient) Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) { + out := new(ReadIntPointResponse) + err := c.cc.Invoke(ctx, "/example.IntPointService/Read", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointServiceClient) Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) { + out := new(UpdateIntPointResponse) + err := c.cc.Invoke(ctx, "/example.IntPointService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointServiceClient) UpdateSet(ctx context.Context, in *UpdateSetIntPointRequest, opts ...grpc.CallOption) (*UpdateSetIntPointResponse, error) { + out := new(UpdateSetIntPointResponse) + err := c.cc.Invoke(ctx, "/example.IntPointService/UpdateSet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointServiceClient) List(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) { + out := new(ListIntPointResponse) + err := c.cc.Invoke(ctx, "/example.IntPointService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointServiceClient) ListSomething(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListSomethingResponse, error) { + out := new(ListSomethingResponse) + err := c.cc.Invoke(ctx, "/example.IntPointService/ListSomething", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointServiceClient) Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { + out := new(DeleteIntPointResponse) + err := c.cc.Invoke(ctx, "/example.IntPointService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointServiceClient) CustomMethod(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, "/example.IntPointService/CustomMethod", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointServiceClient) CreateSomething(ctx context.Context, in *Something, opts ...grpc.CallOption) (*Something, error) { + out := new(Something) + err := c.cc.Invoke(ctx, "/example.IntPointService/CreateSomething", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// IntPointServiceServer is the server API for IntPointService service. +type IntPointServiceServer interface { + // The convention requires the rpc names have Create/Read/Update/List/Delete + // as a prefix. The type is inferred from the response (except for delete), + // so multiple objects can have CURDL handlers in the same service, provided + // they are given unique suffixes + Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) + Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) + Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) + UpdateSet(context.Context, *UpdateSetIntPointRequest) (*UpdateSetIntPointResponse, error) + List(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) + ListSomething(context.Context, *emptypb.Empty) (*ListSomethingResponse, error) + Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) + // CustomMethod can't be autogenerated as it matches no conventions, it will + // become a stub + CustomMethod(context.Context, *emptypb.Empty) (*emptypb.Empty, error) + // CreateSomething also doesn't match conventions and will become a stub + CreateSomething(context.Context, *Something) (*Something, error) +} + +// UnimplementedIntPointServiceServer can be embedded to have forward compatible implementations. +type UnimplementedIntPointServiceServer struct { +} + +func (*UnimplementedIntPointServiceServer) Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedIntPointServiceServer) Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Read not implemented") +} +func (*UnimplementedIntPointServiceServer) Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedIntPointServiceServer) UpdateSet(context.Context, *UpdateSetIntPointRequest) (*UpdateSetIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateSet not implemented") +} +func (*UnimplementedIntPointServiceServer) List(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedIntPointServiceServer) ListSomething(context.Context, *emptypb.Empty) (*ListSomethingResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListSomething not implemented") +} +func (*UnimplementedIntPointServiceServer) Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (*UnimplementedIntPointServiceServer) CustomMethod(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method CustomMethod not implemented") +} +func (*UnimplementedIntPointServiceServer) CreateSomething(context.Context, *Something) (*Something, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateSomething not implemented") +} + +func RegisterIntPointServiceServer(s *grpc.Server, srv IntPointServiceServer) { + s.RegisterService(&_IntPointService_serviceDesc, srv) +} + +func _IntPointService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointServiceServer).Create(ctx, req.(*CreateIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointService_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReadIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointServiceServer).Read(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointService/Read", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointServiceServer).Read(ctx, req.(*ReadIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointServiceServer).Update(ctx, req.(*UpdateIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointService_UpdateSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateSetIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointServiceServer).UpdateSet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointService/UpdateSet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointServiceServer).UpdateSet(ctx, req.(*UpdateSetIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointServiceServer).List(ctx, req.(*ListIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointService_ListSomething_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointServiceServer).ListSomething(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointService/ListSomething", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointServiceServer).ListSomething(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointServiceServer).Delete(ctx, req.(*DeleteIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointService_CustomMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointServiceServer).CustomMethod(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointService/CustomMethod", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointServiceServer).CustomMethod(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointService_CreateSomething_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Something) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointServiceServer).CreateSomething(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointService/CreateSomething", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointServiceServer).CreateSomething(ctx, req.(*Something)) + } + return interceptor(ctx, in, info, handler) +} + +var _IntPointService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "example.IntPointService", + HandlerType: (*IntPointServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Create", + Handler: _IntPointService_Create_Handler, + }, + { + MethodName: "Read", + Handler: _IntPointService_Read_Handler, + }, + { + MethodName: "Update", + Handler: _IntPointService_Update_Handler, + }, + { + MethodName: "UpdateSet", + Handler: _IntPointService_UpdateSet_Handler, + }, + { + MethodName: "List", + Handler: _IntPointService_List_Handler, + }, + { + MethodName: "ListSomething", + Handler: _IntPointService_ListSomething_Handler, + }, + { + MethodName: "Delete", + Handler: _IntPointService_Delete_Handler, + }, + { + MethodName: "CustomMethod", + Handler: _IntPointService_CustomMethod_Handler, + }, + { + MethodName: "CreateSomething", + Handler: _IntPointService_CreateSomething_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "feature_demo/demo_service.proto", +} + +// IntPointTxnClient is the client API for IntPointTxn service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type IntPointTxnClient interface { + // The convention requires the rpc names have Create/Read/Update/List/Delete + // as a prefix. The type is inferred from the response (except for delete), + // so multiple objects can have CURDL handlers in the same service, provided + // they are given unique suffixes + Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) + Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) + Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) + List(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) + Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) + DeleteSet(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) + // CustomMethod can't be autogenerated as it matches no conventions, it will + // become a stub + CustomMethod(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) + // CreateSomething also doesn't match conventions and will become a stub + CreateSomething(ctx context.Context, in *Something, opts ...grpc.CallOption) (*Something, error) +} + +type intPointTxnClient struct { + cc grpc.ClientConnInterface +} + +func NewIntPointTxnClient(cc grpc.ClientConnInterface) IntPointTxnClient { + return &intPointTxnClient{cc} +} + +func (c *intPointTxnClient) Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) { + out := new(CreateIntPointResponse) + err := c.cc.Invoke(ctx, "/example.IntPointTxn/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointTxnClient) Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) { + out := new(ReadIntPointResponse) + err := c.cc.Invoke(ctx, "/example.IntPointTxn/Read", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointTxnClient) Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) { + out := new(UpdateIntPointResponse) + err := c.cc.Invoke(ctx, "/example.IntPointTxn/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointTxnClient) List(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) { + out := new(ListIntPointResponse) + err := c.cc.Invoke(ctx, "/example.IntPointTxn/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointTxnClient) Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { + out := new(DeleteIntPointResponse) + err := c.cc.Invoke(ctx, "/example.IntPointTxn/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointTxnClient) DeleteSet(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { + out := new(DeleteIntPointResponse) + err := c.cc.Invoke(ctx, "/example.IntPointTxn/DeleteSet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointTxnClient) CustomMethod(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, "/example.IntPointTxn/CustomMethod", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *intPointTxnClient) CreateSomething(ctx context.Context, in *Something, opts ...grpc.CallOption) (*Something, error) { + out := new(Something) + err := c.cc.Invoke(ctx, "/example.IntPointTxn/CreateSomething", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// IntPointTxnServer is the server API for IntPointTxn service. +type IntPointTxnServer interface { + // The convention requires the rpc names have Create/Read/Update/List/Delete + // as a prefix. The type is inferred from the response (except for delete), + // so multiple objects can have CURDL handlers in the same service, provided + // they are given unique suffixes + Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) + Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) + Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) + List(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) + Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) + DeleteSet(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error) + // CustomMethod can't be autogenerated as it matches no conventions, it will + // become a stub + CustomMethod(context.Context, *emptypb.Empty) (*emptypb.Empty, error) + // CreateSomething also doesn't match conventions and will become a stub + CreateSomething(context.Context, *Something) (*Something, error) +} + +// UnimplementedIntPointTxnServer can be embedded to have forward compatible implementations. +type UnimplementedIntPointTxnServer struct { +} + +func (*UnimplementedIntPointTxnServer) Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedIntPointTxnServer) Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Read not implemented") +} +func (*UnimplementedIntPointTxnServer) Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedIntPointTxnServer) List(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedIntPointTxnServer) Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (*UnimplementedIntPointTxnServer) DeleteSet(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteSet not implemented") +} +func (*UnimplementedIntPointTxnServer) CustomMethod(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method CustomMethod not implemented") +} +func (*UnimplementedIntPointTxnServer) CreateSomething(context.Context, *Something) (*Something, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateSomething not implemented") +} + +func RegisterIntPointTxnServer(s *grpc.Server, srv IntPointTxnServer) { + s.RegisterService(&_IntPointTxn_serviceDesc, srv) +} + +func _IntPointTxn_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointTxnServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointTxn/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointTxnServer).Create(ctx, req.(*CreateIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointTxn_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReadIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointTxnServer).Read(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointTxn/Read", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointTxnServer).Read(ctx, req.(*ReadIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointTxn_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointTxnServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointTxn/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointTxnServer).Update(ctx, req.(*UpdateIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointTxn_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointTxnServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointTxn/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointTxnServer).List(ctx, req.(*ListIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointTxn_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointTxnServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointTxn/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointTxnServer).Delete(ctx, req.(*DeleteIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointTxn_DeleteSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteIntPointsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointTxnServer).DeleteSet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointTxn/DeleteSet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointTxnServer).DeleteSet(ctx, req.(*DeleteIntPointsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointTxn_CustomMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointTxnServer).CustomMethod(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointTxn/CustomMethod", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointTxnServer).CustomMethod(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _IntPointTxn_CreateSomething_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Something) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IntPointTxnServer).CreateSomething(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.IntPointTxn/CreateSomething", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IntPointTxnServer).CreateSomething(ctx, req.(*Something)) + } + return interceptor(ctx, in, info, handler) +} + +var _IntPointTxn_serviceDesc = grpc.ServiceDesc{ + ServiceName: "example.IntPointTxn", + HandlerType: (*IntPointTxnServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Create", + Handler: _IntPointTxn_Create_Handler, + }, + { + MethodName: "Read", + Handler: _IntPointTxn_Read_Handler, + }, + { + MethodName: "Update", + Handler: _IntPointTxn_Update_Handler, + }, + { + MethodName: "List", + Handler: _IntPointTxn_List_Handler, + }, + { + MethodName: "Delete", + Handler: _IntPointTxn_Delete_Handler, + }, + { + MethodName: "DeleteSet", + Handler: _IntPointTxn_DeleteSet_Handler, + }, + { + MethodName: "CustomMethod", + Handler: _IntPointTxn_CustomMethod_Handler, + }, + { + MethodName: "CreateSomething", + Handler: _IntPointTxn_CreateSomething_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "feature_demo/demo_service.proto", +} + +// CircleServiceClient is the client API for CircleService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type CircleServiceClient interface { + List(ctx context.Context, in *ListCircleRequest, opts ...grpc.CallOption) (*ListCircleResponse, error) +} + +type circleServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewCircleServiceClient(cc grpc.ClientConnInterface) CircleServiceClient { + return &circleServiceClient{cc} +} + +func (c *circleServiceClient) List(ctx context.Context, in *ListCircleRequest, opts ...grpc.CallOption) (*ListCircleResponse, error) { + out := new(ListCircleResponse) + err := c.cc.Invoke(ctx, "/example.CircleService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// CircleServiceServer is the server API for CircleService service. +type CircleServiceServer interface { + List(context.Context, *ListCircleRequest) (*ListCircleResponse, error) +} + +// UnimplementedCircleServiceServer can be embedded to have forward compatible implementations. +type UnimplementedCircleServiceServer struct { +} + +func (*UnimplementedCircleServiceServer) List(context.Context, *ListCircleRequest) (*ListCircleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} + +func RegisterCircleServiceServer(s *grpc.Server, srv CircleServiceServer) { + s.RegisterService(&_CircleService_serviceDesc, srv) +} + +func _CircleService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListCircleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CircleServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.CircleService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CircleServiceServer).List(ctx, req.(*ListCircleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _CircleService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "example.CircleService", + HandlerType: (*CircleServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "List", + Handler: _CircleService_List_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "feature_demo/demo_service.proto", +} + +// MultipleMethodsAutoGenClient is the client API for MultipleMethodsAutoGen service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MultipleMethodsAutoGenClient interface { + CreateA(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) + CreateB(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) + ReadA(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) + ReadB(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) + UpdateA(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) + UpdateB(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) + ListA(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) + ListB(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) + DeleteA(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) + DeleteB(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) + DeleteSetA(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) + DeleteSetB(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) +} + +type multipleMethodsAutoGenClient struct { + cc grpc.ClientConnInterface +} + +func NewMultipleMethodsAutoGenClient(cc grpc.ClientConnInterface) MultipleMethodsAutoGenClient { + return &multipleMethodsAutoGenClient{cc} +} + +func (c *multipleMethodsAutoGenClient) CreateA(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) { + out := new(CreateIntPointResponse) + err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/CreateA", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *multipleMethodsAutoGenClient) CreateB(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) { + out := new(CreateIntPointResponse) + err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/CreateB", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *multipleMethodsAutoGenClient) ReadA(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) { + out := new(ReadIntPointResponse) + err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/ReadA", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *multipleMethodsAutoGenClient) ReadB(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) { + out := new(ReadIntPointResponse) + err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/ReadB", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *multipleMethodsAutoGenClient) UpdateA(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) { + out := new(UpdateIntPointResponse) + err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/UpdateA", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *multipleMethodsAutoGenClient) UpdateB(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) { + out := new(UpdateIntPointResponse) + err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/UpdateB", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *multipleMethodsAutoGenClient) ListA(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) { + out := new(ListIntPointResponse) + err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/ListA", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *multipleMethodsAutoGenClient) ListB(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) { + out := new(ListIntPointResponse) + err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/ListB", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *multipleMethodsAutoGenClient) DeleteA(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { + out := new(DeleteIntPointResponse) + err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/DeleteA", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *multipleMethodsAutoGenClient) DeleteB(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { + out := new(DeleteIntPointResponse) + err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/DeleteB", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *multipleMethodsAutoGenClient) DeleteSetA(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { + out := new(DeleteIntPointResponse) + err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/DeleteSetA", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *multipleMethodsAutoGenClient) DeleteSetB(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { + out := new(DeleteIntPointResponse) + err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/DeleteSetB", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MultipleMethodsAutoGenServer is the server API for MultipleMethodsAutoGen service. +type MultipleMethodsAutoGenServer interface { + CreateA(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) + CreateB(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) + ReadA(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) + ReadB(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) + UpdateA(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) + UpdateB(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) + ListA(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) + ListB(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) + DeleteA(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) + DeleteB(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) + DeleteSetA(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error) + DeleteSetB(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error) +} + +// UnimplementedMultipleMethodsAutoGenServer can be embedded to have forward compatible implementations. +type UnimplementedMultipleMethodsAutoGenServer struct { +} + +func (*UnimplementedMultipleMethodsAutoGenServer) CreateA(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateA not implemented") +} +func (*UnimplementedMultipleMethodsAutoGenServer) CreateB(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateB not implemented") +} +func (*UnimplementedMultipleMethodsAutoGenServer) ReadA(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReadA not implemented") +} +func (*UnimplementedMultipleMethodsAutoGenServer) ReadB(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReadB not implemented") +} +func (*UnimplementedMultipleMethodsAutoGenServer) UpdateA(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateA not implemented") +} +func (*UnimplementedMultipleMethodsAutoGenServer) UpdateB(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateB not implemented") +} +func (*UnimplementedMultipleMethodsAutoGenServer) ListA(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListA not implemented") +} +func (*UnimplementedMultipleMethodsAutoGenServer) ListB(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListB not implemented") +} +func (*UnimplementedMultipleMethodsAutoGenServer) DeleteA(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteA not implemented") +} +func (*UnimplementedMultipleMethodsAutoGenServer) DeleteB(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteB not implemented") +} +func (*UnimplementedMultipleMethodsAutoGenServer) DeleteSetA(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteSetA not implemented") +} +func (*UnimplementedMultipleMethodsAutoGenServer) DeleteSetB(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteSetB not implemented") +} + +func RegisterMultipleMethodsAutoGenServer(s *grpc.Server, srv MultipleMethodsAutoGenServer) { + s.RegisterService(&_MultipleMethodsAutoGen_serviceDesc, srv) +} + +func _MultipleMethodsAutoGen_CreateA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MultipleMethodsAutoGenServer).CreateA(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.MultipleMethodsAutoGen/CreateA", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MultipleMethodsAutoGenServer).CreateA(ctx, req.(*CreateIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MultipleMethodsAutoGen_CreateB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MultipleMethodsAutoGenServer).CreateB(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.MultipleMethodsAutoGen/CreateB", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MultipleMethodsAutoGenServer).CreateB(ctx, req.(*CreateIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MultipleMethodsAutoGen_ReadA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReadIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MultipleMethodsAutoGenServer).ReadA(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.MultipleMethodsAutoGen/ReadA", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MultipleMethodsAutoGenServer).ReadA(ctx, req.(*ReadIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MultipleMethodsAutoGen_ReadB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReadIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MultipleMethodsAutoGenServer).ReadB(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.MultipleMethodsAutoGen/ReadB", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MultipleMethodsAutoGenServer).ReadB(ctx, req.(*ReadIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MultipleMethodsAutoGen_UpdateA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MultipleMethodsAutoGenServer).UpdateA(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.MultipleMethodsAutoGen/UpdateA", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MultipleMethodsAutoGenServer).UpdateA(ctx, req.(*UpdateIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MultipleMethodsAutoGen_UpdateB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MultipleMethodsAutoGenServer).UpdateB(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.MultipleMethodsAutoGen/UpdateB", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MultipleMethodsAutoGenServer).UpdateB(ctx, req.(*UpdateIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MultipleMethodsAutoGen_ListA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MultipleMethodsAutoGenServer).ListA(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.MultipleMethodsAutoGen/ListA", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MultipleMethodsAutoGenServer).ListA(ctx, req.(*ListIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MultipleMethodsAutoGen_ListB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MultipleMethodsAutoGenServer).ListB(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.MultipleMethodsAutoGen/ListB", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MultipleMethodsAutoGenServer).ListB(ctx, req.(*ListIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MultipleMethodsAutoGen_DeleteA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MultipleMethodsAutoGenServer).DeleteA(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.MultipleMethodsAutoGen/DeleteA", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MultipleMethodsAutoGenServer).DeleteA(ctx, req.(*DeleteIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MultipleMethodsAutoGen_DeleteB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteIntPointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MultipleMethodsAutoGenServer).DeleteB(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.MultipleMethodsAutoGen/DeleteB", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MultipleMethodsAutoGenServer).DeleteB(ctx, req.(*DeleteIntPointRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MultipleMethodsAutoGen_DeleteSetA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteIntPointsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MultipleMethodsAutoGenServer).DeleteSetA(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.MultipleMethodsAutoGen/DeleteSetA", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MultipleMethodsAutoGenServer).DeleteSetA(ctx, req.(*DeleteIntPointsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MultipleMethodsAutoGen_DeleteSetB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteIntPointsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MultipleMethodsAutoGenServer).DeleteSetB(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/example.MultipleMethodsAutoGen/DeleteSetB", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MultipleMethodsAutoGenServer).DeleteSetB(ctx, req.(*DeleteIntPointsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _MultipleMethodsAutoGen_serviceDesc = grpc.ServiceDesc{ + ServiceName: "example.MultipleMethodsAutoGen", + HandlerType: (*MultipleMethodsAutoGenServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateA", + Handler: _MultipleMethodsAutoGen_CreateA_Handler, + }, + { + MethodName: "CreateB", + Handler: _MultipleMethodsAutoGen_CreateB_Handler, + }, + { + MethodName: "ReadA", + Handler: _MultipleMethodsAutoGen_ReadA_Handler, + }, + { + MethodName: "ReadB", + Handler: _MultipleMethodsAutoGen_ReadB_Handler, + }, + { + MethodName: "UpdateA", + Handler: _MultipleMethodsAutoGen_UpdateA_Handler, + }, + { + MethodName: "UpdateB", + Handler: _MultipleMethodsAutoGen_UpdateB_Handler, + }, + { + MethodName: "ListA", + Handler: _MultipleMethodsAutoGen_ListA_Handler, + }, + { + MethodName: "ListB", + Handler: _MultipleMethodsAutoGen_ListB_Handler, + }, + { + MethodName: "DeleteA", + Handler: _MultipleMethodsAutoGen_DeleteA_Handler, + }, + { + MethodName: "DeleteB", + Handler: _MultipleMethodsAutoGen_DeleteB_Handler, + }, + { + MethodName: "DeleteSetA", + Handler: _MultipleMethodsAutoGen_DeleteSetA_Handler, + }, + { + MethodName: "DeleteSetB", + Handler: _MultipleMethodsAutoGen_DeleteSetB_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "feature_demo/demo_service.proto", +} diff --git a/example/feature_demo/demo_service_grpc.pb.go b/example/feature_demo/demo_service_grpc.pb.go deleted file mode 100644 index 73e44af9..00000000 --- a/example/feature_demo/demo_service_grpc.pb.go +++ /dev/null @@ -1,1329 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.17.1 -// source: feature_demo/demo_service.proto - -package example - -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 - -// IntPointServiceClient is the client API for IntPointService 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 IntPointServiceClient interface { - // The convention requires the rpc names have Create/Read/Update/List/Delete - // as a prefix. The type is inferred from the response (except for delete), - // so multiple objects can have CURDL handlers in the same service, provided - // they are given unique suffixes - Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) - Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) - Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) - UpdateSet(ctx context.Context, in *UpdateSetIntPointRequest, opts ...grpc.CallOption) (*UpdateSetIntPointResponse, error) - List(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) - ListSomething(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListSomethingResponse, error) - Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) - // CustomMethod can't be autogenerated as it matches no conventions, it will - // become a stub - CustomMethod(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) - // CreateSomething also doesn't match conventions and will become a stub - CreateSomething(ctx context.Context, in *Something, opts ...grpc.CallOption) (*Something, error) -} - -type intPointServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewIntPointServiceClient(cc grpc.ClientConnInterface) IntPointServiceClient { - return &intPointServiceClient{cc} -} - -func (c *intPointServiceClient) Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) { - out := new(CreateIntPointResponse) - err := c.cc.Invoke(ctx, "/example.IntPointService/Create", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointServiceClient) Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) { - out := new(ReadIntPointResponse) - err := c.cc.Invoke(ctx, "/example.IntPointService/Read", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointServiceClient) Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) { - out := new(UpdateIntPointResponse) - err := c.cc.Invoke(ctx, "/example.IntPointService/Update", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointServiceClient) UpdateSet(ctx context.Context, in *UpdateSetIntPointRequest, opts ...grpc.CallOption) (*UpdateSetIntPointResponse, error) { - out := new(UpdateSetIntPointResponse) - err := c.cc.Invoke(ctx, "/example.IntPointService/UpdateSet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointServiceClient) List(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) { - out := new(ListIntPointResponse) - err := c.cc.Invoke(ctx, "/example.IntPointService/List", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointServiceClient) ListSomething(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListSomethingResponse, error) { - out := new(ListSomethingResponse) - err := c.cc.Invoke(ctx, "/example.IntPointService/ListSomething", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointServiceClient) Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { - out := new(DeleteIntPointResponse) - err := c.cc.Invoke(ctx, "/example.IntPointService/Delete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointServiceClient) CustomMethod(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/example.IntPointService/CustomMethod", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointServiceClient) CreateSomething(ctx context.Context, in *Something, opts ...grpc.CallOption) (*Something, error) { - out := new(Something) - err := c.cc.Invoke(ctx, "/example.IntPointService/CreateSomething", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// IntPointServiceServer is the server API for IntPointService service. -// All implementations must embed UnimplementedIntPointServiceServer -// for forward compatibility -type IntPointServiceServer interface { - // The convention requires the rpc names have Create/Read/Update/List/Delete - // as a prefix. The type is inferred from the response (except for delete), - // so multiple objects can have CURDL handlers in the same service, provided - // they are given unique suffixes - Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) - Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) - Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) - UpdateSet(context.Context, *UpdateSetIntPointRequest) (*UpdateSetIntPointResponse, error) - List(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) - ListSomething(context.Context, *emptypb.Empty) (*ListSomethingResponse, error) - Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) - // CustomMethod can't be autogenerated as it matches no conventions, it will - // become a stub - CustomMethod(context.Context, *emptypb.Empty) (*emptypb.Empty, error) - // CreateSomething also doesn't match conventions and will become a stub - CreateSomething(context.Context, *Something) (*Something, error) - mustEmbedUnimplementedIntPointServiceServer() -} - -// UnimplementedIntPointServiceServer must be embedded to have forward compatible implementations. -type UnimplementedIntPointServiceServer struct { -} - -func (UnimplementedIntPointServiceServer) Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") -} -func (UnimplementedIntPointServiceServer) Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Read not implemented") -} -func (UnimplementedIntPointServiceServer) Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") -} -func (UnimplementedIntPointServiceServer) UpdateSet(context.Context, *UpdateSetIntPointRequest) (*UpdateSetIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateSet not implemented") -} -func (UnimplementedIntPointServiceServer) List(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method List not implemented") -} -func (UnimplementedIntPointServiceServer) ListSomething(context.Context, *emptypb.Empty) (*ListSomethingResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListSomething not implemented") -} -func (UnimplementedIntPointServiceServer) Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") -} -func (UnimplementedIntPointServiceServer) CustomMethod(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method CustomMethod not implemented") -} -func (UnimplementedIntPointServiceServer) CreateSomething(context.Context, *Something) (*Something, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateSomething not implemented") -} -func (UnimplementedIntPointServiceServer) mustEmbedUnimplementedIntPointServiceServer() {} - -// UnsafeIntPointServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to IntPointServiceServer will -// result in compilation errors. -type UnsafeIntPointServiceServer interface { - mustEmbedUnimplementedIntPointServiceServer() -} - -func RegisterIntPointServiceServer(s grpc.ServiceRegistrar, srv IntPointServiceServer) { - s.RegisterService(&IntPointService_ServiceDesc, srv) -} - -func _IntPointService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointServiceServer).Create(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointService/Create", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointServiceServer).Create(ctx, req.(*CreateIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointService_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReadIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointServiceServer).Read(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointService/Read", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointServiceServer).Read(ctx, req.(*ReadIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointServiceServer).Update(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointService/Update", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointServiceServer).Update(ctx, req.(*UpdateIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointService_UpdateSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateSetIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointServiceServer).UpdateSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointService/UpdateSet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointServiceServer).UpdateSet(ctx, req.(*UpdateSetIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointServiceServer).List(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointService/List", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointServiceServer).List(ctx, req.(*ListIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointService_ListSomething_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointServiceServer).ListSomething(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointService/ListSomething", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointServiceServer).ListSomething(ctx, req.(*emptypb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointServiceServer).Delete(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointService/Delete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointServiceServer).Delete(ctx, req.(*DeleteIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointService_CustomMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointServiceServer).CustomMethod(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointService/CustomMethod", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointServiceServer).CustomMethod(ctx, req.(*emptypb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointService_CreateSomething_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Something) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointServiceServer).CreateSomething(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointService/CreateSomething", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointServiceServer).CreateSomething(ctx, req.(*Something)) - } - return interceptor(ctx, in, info, handler) -} - -// IntPointService_ServiceDesc is the grpc.ServiceDesc for IntPointService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var IntPointService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "example.IntPointService", - HandlerType: (*IntPointServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Create", - Handler: _IntPointService_Create_Handler, - }, - { - MethodName: "Read", - Handler: _IntPointService_Read_Handler, - }, - { - MethodName: "Update", - Handler: _IntPointService_Update_Handler, - }, - { - MethodName: "UpdateSet", - Handler: _IntPointService_UpdateSet_Handler, - }, - { - MethodName: "List", - Handler: _IntPointService_List_Handler, - }, - { - MethodName: "ListSomething", - Handler: _IntPointService_ListSomething_Handler, - }, - { - MethodName: "Delete", - Handler: _IntPointService_Delete_Handler, - }, - { - MethodName: "CustomMethod", - Handler: _IntPointService_CustomMethod_Handler, - }, - { - MethodName: "CreateSomething", - Handler: _IntPointService_CreateSomething_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "feature_demo/demo_service.proto", -} - -// IntPointTxnClient is the client API for IntPointTxn 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 IntPointTxnClient interface { - // The convention requires the rpc names have Create/Read/Update/List/Delete - // as a prefix. The type is inferred from the response (except for delete), - // so multiple objects can have CURDL handlers in the same service, provided - // they are given unique suffixes - Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) - Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) - Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) - List(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) - Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) - DeleteSet(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) - // CustomMethod can't be autogenerated as it matches no conventions, it will - // become a stub - CustomMethod(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) - // CreateSomething also doesn't match conventions and will become a stub - CreateSomething(ctx context.Context, in *Something, opts ...grpc.CallOption) (*Something, error) -} - -type intPointTxnClient struct { - cc grpc.ClientConnInterface -} - -func NewIntPointTxnClient(cc grpc.ClientConnInterface) IntPointTxnClient { - return &intPointTxnClient{cc} -} - -func (c *intPointTxnClient) Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) { - out := new(CreateIntPointResponse) - err := c.cc.Invoke(ctx, "/example.IntPointTxn/Create", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointTxnClient) Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) { - out := new(ReadIntPointResponse) - err := c.cc.Invoke(ctx, "/example.IntPointTxn/Read", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointTxnClient) Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) { - out := new(UpdateIntPointResponse) - err := c.cc.Invoke(ctx, "/example.IntPointTxn/Update", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointTxnClient) List(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) { - out := new(ListIntPointResponse) - err := c.cc.Invoke(ctx, "/example.IntPointTxn/List", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointTxnClient) Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { - out := new(DeleteIntPointResponse) - err := c.cc.Invoke(ctx, "/example.IntPointTxn/Delete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointTxnClient) DeleteSet(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { - out := new(DeleteIntPointResponse) - err := c.cc.Invoke(ctx, "/example.IntPointTxn/DeleteSet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointTxnClient) CustomMethod(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/example.IntPointTxn/CustomMethod", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *intPointTxnClient) CreateSomething(ctx context.Context, in *Something, opts ...grpc.CallOption) (*Something, error) { - out := new(Something) - err := c.cc.Invoke(ctx, "/example.IntPointTxn/CreateSomething", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// IntPointTxnServer is the server API for IntPointTxn service. -// All implementations must embed UnimplementedIntPointTxnServer -// for forward compatibility -type IntPointTxnServer interface { - // The convention requires the rpc names have Create/Read/Update/List/Delete - // as a prefix. The type is inferred from the response (except for delete), - // so multiple objects can have CURDL handlers in the same service, provided - // they are given unique suffixes - Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) - Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) - Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) - List(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) - Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) - DeleteSet(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error) - // CustomMethod can't be autogenerated as it matches no conventions, it will - // become a stub - CustomMethod(context.Context, *emptypb.Empty) (*emptypb.Empty, error) - // CreateSomething also doesn't match conventions and will become a stub - CreateSomething(context.Context, *Something) (*Something, error) - mustEmbedUnimplementedIntPointTxnServer() -} - -// UnimplementedIntPointTxnServer must be embedded to have forward compatible implementations. -type UnimplementedIntPointTxnServer struct { -} - -func (UnimplementedIntPointTxnServer) Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") -} -func (UnimplementedIntPointTxnServer) Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Read not implemented") -} -func (UnimplementedIntPointTxnServer) Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") -} -func (UnimplementedIntPointTxnServer) List(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method List not implemented") -} -func (UnimplementedIntPointTxnServer) Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") -} -func (UnimplementedIntPointTxnServer) DeleteSet(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteSet not implemented") -} -func (UnimplementedIntPointTxnServer) CustomMethod(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method CustomMethod not implemented") -} -func (UnimplementedIntPointTxnServer) CreateSomething(context.Context, *Something) (*Something, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateSomething not implemented") -} -func (UnimplementedIntPointTxnServer) mustEmbedUnimplementedIntPointTxnServer() {} - -// UnsafeIntPointTxnServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to IntPointTxnServer will -// result in compilation errors. -type UnsafeIntPointTxnServer interface { - mustEmbedUnimplementedIntPointTxnServer() -} - -func RegisterIntPointTxnServer(s grpc.ServiceRegistrar, srv IntPointTxnServer) { - s.RegisterService(&IntPointTxn_ServiceDesc, srv) -} - -func _IntPointTxn_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointTxnServer).Create(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointTxn/Create", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointTxnServer).Create(ctx, req.(*CreateIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointTxn_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReadIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointTxnServer).Read(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointTxn/Read", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointTxnServer).Read(ctx, req.(*ReadIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointTxn_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointTxnServer).Update(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointTxn/Update", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointTxnServer).Update(ctx, req.(*UpdateIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointTxn_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointTxnServer).List(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointTxn/List", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointTxnServer).List(ctx, req.(*ListIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointTxn_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointTxnServer).Delete(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointTxn/Delete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointTxnServer).Delete(ctx, req.(*DeleteIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointTxn_DeleteSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteIntPointsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointTxnServer).DeleteSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointTxn/DeleteSet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointTxnServer).DeleteSet(ctx, req.(*DeleteIntPointsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointTxn_CustomMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointTxnServer).CustomMethod(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointTxn/CustomMethod", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointTxnServer).CustomMethod(ctx, req.(*emptypb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _IntPointTxn_CreateSomething_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Something) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IntPointTxnServer).CreateSomething(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.IntPointTxn/CreateSomething", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IntPointTxnServer).CreateSomething(ctx, req.(*Something)) - } - return interceptor(ctx, in, info, handler) -} - -// IntPointTxn_ServiceDesc is the grpc.ServiceDesc for IntPointTxn service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var IntPointTxn_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "example.IntPointTxn", - HandlerType: (*IntPointTxnServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Create", - Handler: _IntPointTxn_Create_Handler, - }, - { - MethodName: "Read", - Handler: _IntPointTxn_Read_Handler, - }, - { - MethodName: "Update", - Handler: _IntPointTxn_Update_Handler, - }, - { - MethodName: "List", - Handler: _IntPointTxn_List_Handler, - }, - { - MethodName: "Delete", - Handler: _IntPointTxn_Delete_Handler, - }, - { - MethodName: "DeleteSet", - Handler: _IntPointTxn_DeleteSet_Handler, - }, - { - MethodName: "CustomMethod", - Handler: _IntPointTxn_CustomMethod_Handler, - }, - { - MethodName: "CreateSomething", - Handler: _IntPointTxn_CreateSomething_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "feature_demo/demo_service.proto", -} - -// CircleServiceClient is the client API for CircleService 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 CircleServiceClient interface { - List(ctx context.Context, in *ListCircleRequest, opts ...grpc.CallOption) (*ListCircleResponse, error) -} - -type circleServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewCircleServiceClient(cc grpc.ClientConnInterface) CircleServiceClient { - return &circleServiceClient{cc} -} - -func (c *circleServiceClient) List(ctx context.Context, in *ListCircleRequest, opts ...grpc.CallOption) (*ListCircleResponse, error) { - out := new(ListCircleResponse) - err := c.cc.Invoke(ctx, "/example.CircleService/List", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// CircleServiceServer is the server API for CircleService service. -// All implementations must embed UnimplementedCircleServiceServer -// for forward compatibility -type CircleServiceServer interface { - List(context.Context, *ListCircleRequest) (*ListCircleResponse, error) - mustEmbedUnimplementedCircleServiceServer() -} - -// UnimplementedCircleServiceServer must be embedded to have forward compatible implementations. -type UnimplementedCircleServiceServer struct { -} - -func (UnimplementedCircleServiceServer) List(context.Context, *ListCircleRequest) (*ListCircleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method List not implemented") -} -func (UnimplementedCircleServiceServer) mustEmbedUnimplementedCircleServiceServer() {} - -// UnsafeCircleServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to CircleServiceServer will -// result in compilation errors. -type UnsafeCircleServiceServer interface { - mustEmbedUnimplementedCircleServiceServer() -} - -func RegisterCircleServiceServer(s grpc.ServiceRegistrar, srv CircleServiceServer) { - s.RegisterService(&CircleService_ServiceDesc, srv) -} - -func _CircleService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListCircleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CircleServiceServer).List(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.CircleService/List", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CircleServiceServer).List(ctx, req.(*ListCircleRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// CircleService_ServiceDesc is the grpc.ServiceDesc for CircleService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var CircleService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "example.CircleService", - HandlerType: (*CircleServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "List", - Handler: _CircleService_List_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "feature_demo/demo_service.proto", -} - -// MultipleMethodsAutoGenClient is the client API for MultipleMethodsAutoGen 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 MultipleMethodsAutoGenClient interface { - CreateA(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) - CreateB(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) - ReadA(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) - ReadB(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) - UpdateA(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) - UpdateB(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) - ListA(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) - ListB(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) - DeleteA(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) - DeleteB(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) - DeleteSetA(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) - DeleteSetB(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) -} - -type multipleMethodsAutoGenClient struct { - cc grpc.ClientConnInterface -} - -func NewMultipleMethodsAutoGenClient(cc grpc.ClientConnInterface) MultipleMethodsAutoGenClient { - return &multipleMethodsAutoGenClient{cc} -} - -func (c *multipleMethodsAutoGenClient) CreateA(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) { - out := new(CreateIntPointResponse) - err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/CreateA", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *multipleMethodsAutoGenClient) CreateB(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) { - out := new(CreateIntPointResponse) - err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/CreateB", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *multipleMethodsAutoGenClient) ReadA(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) { - out := new(ReadIntPointResponse) - err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/ReadA", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *multipleMethodsAutoGenClient) ReadB(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) { - out := new(ReadIntPointResponse) - err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/ReadB", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *multipleMethodsAutoGenClient) UpdateA(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) { - out := new(UpdateIntPointResponse) - err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/UpdateA", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *multipleMethodsAutoGenClient) UpdateB(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) { - out := new(UpdateIntPointResponse) - err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/UpdateB", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *multipleMethodsAutoGenClient) ListA(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) { - out := new(ListIntPointResponse) - err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/ListA", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *multipleMethodsAutoGenClient) ListB(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error) { - out := new(ListIntPointResponse) - err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/ListB", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *multipleMethodsAutoGenClient) DeleteA(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { - out := new(DeleteIntPointResponse) - err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/DeleteA", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *multipleMethodsAutoGenClient) DeleteB(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { - out := new(DeleteIntPointResponse) - err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/DeleteB", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *multipleMethodsAutoGenClient) DeleteSetA(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { - out := new(DeleteIntPointResponse) - err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/DeleteSetA", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *multipleMethodsAutoGenClient) DeleteSetB(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) { - out := new(DeleteIntPointResponse) - err := c.cc.Invoke(ctx, "/example.MultipleMethodsAutoGen/DeleteSetB", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MultipleMethodsAutoGenServer is the server API for MultipleMethodsAutoGen service. -// All implementations must embed UnimplementedMultipleMethodsAutoGenServer -// for forward compatibility -type MultipleMethodsAutoGenServer interface { - CreateA(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) - CreateB(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) - ReadA(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) - ReadB(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) - UpdateA(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) - UpdateB(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) - ListA(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) - ListB(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) - DeleteA(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) - DeleteB(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) - DeleteSetA(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error) - DeleteSetB(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error) - mustEmbedUnimplementedMultipleMethodsAutoGenServer() -} - -// UnimplementedMultipleMethodsAutoGenServer must be embedded to have forward compatible implementations. -type UnimplementedMultipleMethodsAutoGenServer struct { -} - -func (UnimplementedMultipleMethodsAutoGenServer) CreateA(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateA not implemented") -} -func (UnimplementedMultipleMethodsAutoGenServer) CreateB(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateB not implemented") -} -func (UnimplementedMultipleMethodsAutoGenServer) ReadA(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReadA not implemented") -} -func (UnimplementedMultipleMethodsAutoGenServer) ReadB(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReadB not implemented") -} -func (UnimplementedMultipleMethodsAutoGenServer) UpdateA(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateA not implemented") -} -func (UnimplementedMultipleMethodsAutoGenServer) UpdateB(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateB not implemented") -} -func (UnimplementedMultipleMethodsAutoGenServer) ListA(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListA not implemented") -} -func (UnimplementedMultipleMethodsAutoGenServer) ListB(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListB not implemented") -} -func (UnimplementedMultipleMethodsAutoGenServer) DeleteA(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteA not implemented") -} -func (UnimplementedMultipleMethodsAutoGenServer) DeleteB(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteB not implemented") -} -func (UnimplementedMultipleMethodsAutoGenServer) DeleteSetA(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteSetA not implemented") -} -func (UnimplementedMultipleMethodsAutoGenServer) DeleteSetB(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteSetB not implemented") -} -func (UnimplementedMultipleMethodsAutoGenServer) mustEmbedUnimplementedMultipleMethodsAutoGenServer() { -} - -// UnsafeMultipleMethodsAutoGenServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to MultipleMethodsAutoGenServer will -// result in compilation errors. -type UnsafeMultipleMethodsAutoGenServer interface { - mustEmbedUnimplementedMultipleMethodsAutoGenServer() -} - -func RegisterMultipleMethodsAutoGenServer(s grpc.ServiceRegistrar, srv MultipleMethodsAutoGenServer) { - s.RegisterService(&MultipleMethodsAutoGen_ServiceDesc, srv) -} - -func _MultipleMethodsAutoGen_CreateA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MultipleMethodsAutoGenServer).CreateA(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.MultipleMethodsAutoGen/CreateA", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MultipleMethodsAutoGenServer).CreateA(ctx, req.(*CreateIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MultipleMethodsAutoGen_CreateB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MultipleMethodsAutoGenServer).CreateB(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.MultipleMethodsAutoGen/CreateB", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MultipleMethodsAutoGenServer).CreateB(ctx, req.(*CreateIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MultipleMethodsAutoGen_ReadA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReadIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MultipleMethodsAutoGenServer).ReadA(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.MultipleMethodsAutoGen/ReadA", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MultipleMethodsAutoGenServer).ReadA(ctx, req.(*ReadIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MultipleMethodsAutoGen_ReadB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReadIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MultipleMethodsAutoGenServer).ReadB(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.MultipleMethodsAutoGen/ReadB", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MultipleMethodsAutoGenServer).ReadB(ctx, req.(*ReadIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MultipleMethodsAutoGen_UpdateA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MultipleMethodsAutoGenServer).UpdateA(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.MultipleMethodsAutoGen/UpdateA", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MultipleMethodsAutoGenServer).UpdateA(ctx, req.(*UpdateIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MultipleMethodsAutoGen_UpdateB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MultipleMethodsAutoGenServer).UpdateB(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.MultipleMethodsAutoGen/UpdateB", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MultipleMethodsAutoGenServer).UpdateB(ctx, req.(*UpdateIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MultipleMethodsAutoGen_ListA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MultipleMethodsAutoGenServer).ListA(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.MultipleMethodsAutoGen/ListA", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MultipleMethodsAutoGenServer).ListA(ctx, req.(*ListIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MultipleMethodsAutoGen_ListB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MultipleMethodsAutoGenServer).ListB(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.MultipleMethodsAutoGen/ListB", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MultipleMethodsAutoGenServer).ListB(ctx, req.(*ListIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MultipleMethodsAutoGen_DeleteA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MultipleMethodsAutoGenServer).DeleteA(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.MultipleMethodsAutoGen/DeleteA", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MultipleMethodsAutoGenServer).DeleteA(ctx, req.(*DeleteIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MultipleMethodsAutoGen_DeleteB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteIntPointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MultipleMethodsAutoGenServer).DeleteB(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.MultipleMethodsAutoGen/DeleteB", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MultipleMethodsAutoGenServer).DeleteB(ctx, req.(*DeleteIntPointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MultipleMethodsAutoGen_DeleteSetA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteIntPointsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MultipleMethodsAutoGenServer).DeleteSetA(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.MultipleMethodsAutoGen/DeleteSetA", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MultipleMethodsAutoGenServer).DeleteSetA(ctx, req.(*DeleteIntPointsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MultipleMethodsAutoGen_DeleteSetB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteIntPointsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MultipleMethodsAutoGenServer).DeleteSetB(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/example.MultipleMethodsAutoGen/DeleteSetB", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MultipleMethodsAutoGenServer).DeleteSetB(ctx, req.(*DeleteIntPointsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// MultipleMethodsAutoGen_ServiceDesc is the grpc.ServiceDesc for MultipleMethodsAutoGen service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var MultipleMethodsAutoGen_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "example.MultipleMethodsAutoGen", - HandlerType: (*MultipleMethodsAutoGenServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateA", - Handler: _MultipleMethodsAutoGen_CreateA_Handler, - }, - { - MethodName: "CreateB", - Handler: _MultipleMethodsAutoGen_CreateB_Handler, - }, - { - MethodName: "ReadA", - Handler: _MultipleMethodsAutoGen_ReadA_Handler, - }, - { - MethodName: "ReadB", - Handler: _MultipleMethodsAutoGen_ReadB_Handler, - }, - { - MethodName: "UpdateA", - Handler: _MultipleMethodsAutoGen_UpdateA_Handler, - }, - { - MethodName: "UpdateB", - Handler: _MultipleMethodsAutoGen_UpdateB_Handler, - }, - { - MethodName: "ListA", - Handler: _MultipleMethodsAutoGen_ListA_Handler, - }, - { - MethodName: "ListB", - Handler: _MultipleMethodsAutoGen_ListB_Handler, - }, - { - MethodName: "DeleteA", - Handler: _MultipleMethodsAutoGen_DeleteA_Handler, - }, - { - MethodName: "DeleteB", - Handler: _MultipleMethodsAutoGen_DeleteB_Handler, - }, - { - MethodName: "DeleteSetA", - Handler: _MultipleMethodsAutoGen_DeleteSetA_Handler, - }, - { - MethodName: "DeleteSetB", - Handler: _MultipleMethodsAutoGen_DeleteSetB_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "feature_demo/demo_service.proto", -} diff --git a/example/feature_demo/demo_types.pb.go b/example/feature_demo/demo_types.pb.go index 9ac9b10d..c2de6cbe 100644 --- a/example/feature_demo/demo_types.pb.go +++ b/example/feature_demo/demo_types.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 -// protoc v3.17.1 +// protoc v3.15.7 // source: feature_demo/demo_types.proto package example @@ -1182,59 +1182,59 @@ var file_feature_demo_demo_types_proto_rawDesc = []byte{ 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x05, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x05, - 0x63, 0x68, 0x69, 0x6c, 0x64, 0x3a, 0x06, 0xba, 0xb9, 0x19, 0x02, 0x08, 0x01, 0x22, 0x6a, 0x0a, + 0x63, 0x68, 0x69, 0x6c, 0x64, 0x3a, 0x06, 0xba, 0xb9, 0x19, 0x02, 0x08, 0x01, 0x22, 0x6c, 0x0a, 0x07, 0x54, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x47, 0x0a, 0x0c, 0x74, 0x65, 0x73, 0x74, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, - 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0xba, 0xb9, 0x19, - 0x02, 0x1a, 0x00, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, - 0x63, 0x3a, 0x06, 0xba, 0xb9, 0x19, 0x02, 0x08, 0x01, 0x22, 0x7a, 0x0a, 0x17, 0x54, 0x65, 0x73, - 0x74, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x47, 0x0a, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, - 0x73, 0x73, 0x6f, 0x63, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x78, 0x61, - 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, - 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0xba, 0xb9, 0x19, 0x02, 0x2a, 0x00, 0x52, + 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xba, 0xb9, 0x19, + 0x04, 0x1a, 0x02, 0x38, 0x00, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, + 0x73, 0x6f, 0x63, 0x3a, 0x06, 0xba, 0xb9, 0x19, 0x02, 0x08, 0x01, 0x22, 0x7a, 0x0a, 0x17, 0x54, + 0x65, 0x73, 0x74, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x44, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x47, 0x0a, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x54, 0x61, + 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, + 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0xba, 0xb9, 0x19, 0x02, 0x2a, + 0x00, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x3a, + 0x06, 0xba, 0xb9, 0x19, 0x02, 0x08, 0x01, 0x22, 0x7c, 0x0a, 0x17, 0x54, 0x65, 0x73, 0x74, 0x41, + 0x73, 0x73, 0x6f, 0x63, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x61, + 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x49, 0x0a, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, + 0x6f, 0x63, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xba, 0xb9, 0x19, 0x04, 0x2a, 0x02, 0x50, 0x01, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x3a, 0x06, 0xba, - 0xb9, 0x19, 0x02, 0x08, 0x01, 0x22, 0x7c, 0x0a, 0x17, 0x54, 0x65, 0x73, 0x74, 0x41, 0x73, 0x73, - 0x6f, 0x63, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x49, 0x0a, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, - 0x2e, 0x54, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xba, 0xb9, 0x19, 0x04, 0x2a, 0x02, 0x50, 0x01, 0x52, 0x0c, 0x74, - 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x3a, 0x06, 0xba, 0xb9, 0x19, - 0x02, 0x08, 0x01, 0x22, 0x7a, 0x0a, 0x15, 0x54, 0x65, 0x73, 0x74, 0x41, 0x73, 0x73, 0x6f, 0x63, - 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x0c, - 0x74, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x54, 0x65, 0x73, - 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, - 0x08, 0xba, 0xb9, 0x19, 0x04, 0x2a, 0x02, 0x60, 0x01, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x54, - 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x3a, 0x06, 0xba, 0xb9, 0x19, 0x02, 0x08, 0x01, 0x22, - 0x7b, 0x0a, 0x16, 0x54, 0x65, 0x73, 0x74, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x48, 0x61, 0x6e, 0x64, - 0x6c, 0x65, 0x72, 0x41, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x0c, 0x74, 0x65, 0x73, - 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x54, 0x61, - 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xba, 0xb9, - 0x19, 0x04, 0x2a, 0x02, 0x58, 0x01, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, - 0x73, 0x73, 0x6f, 0x63, 0x3a, 0x06, 0xba, 0xb9, 0x19, 0x02, 0x08, 0x01, 0x22, 0x3b, 0x0a, 0x12, - 0x54, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x6d, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x6d, 0x65, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x3a, 0x06, 0xba, 0xb9, 0x19, 0x02, 0x08, 0x01, 0x22, 0x53, 0x0a, 0x0f, 0x50, 0x72, 0x69, - 0x6d, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x05, - 0x63, 0x68, 0x69, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x65, 0x78, - 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x43, 0x68, - 0x69, 0x6c, 0x64, 0x52, 0x05, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x3a, 0x12, 0xba, 0xb9, 0x19, 0x0e, - 0x08, 0x01, 0x12, 0x0a, 0x0a, 0x04, 0x55, 0x55, 0x49, 0x44, 0x12, 0x02, 0x69, 0x64, 0x42, 0x46, - 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x66, - 0x6f, 0x62, 0x6c, 0x6f, 0x78, 0x6f, 0x70, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, - 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x72, 0x6d, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, - 0x65, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x65, 0x6d, 0x6f, 0x3b, 0x65, - 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0xb9, 0x19, 0x02, 0x08, 0x01, 0x22, 0x7a, 0x0a, 0x15, 0x54, 0x65, 0x73, 0x74, 0x41, 0x73, 0x73, + 0x6f, 0x63, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, + 0x0a, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x54, + 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x42, 0x08, 0xba, 0xb9, 0x19, 0x04, 0x2a, 0x02, 0x60, 0x01, 0x52, 0x0c, 0x74, 0x65, 0x73, + 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x3a, 0x06, 0xba, 0xb9, 0x19, 0x02, 0x08, + 0x01, 0x22, 0x7b, 0x0a, 0x16, 0x54, 0x65, 0x73, 0x74, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x48, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x41, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x0c, 0x74, + 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, + 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, + 0xba, 0xb9, 0x19, 0x04, 0x2a, 0x02, 0x58, 0x01, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x54, 0x61, + 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x3a, 0x06, 0xba, 0xb9, 0x19, 0x02, 0x08, 0x01, 0x22, 0x3b, + 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x6d, 0x65, 0x5f, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x6d, 0x65, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x3a, 0x06, 0xba, 0xb9, 0x19, 0x02, 0x08, 0x01, 0x22, 0x53, 0x0a, 0x0f, 0x50, + 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x12, 0x2c, + 0x0a, 0x05, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, + 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x05, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x3a, 0x12, 0xba, 0xb9, + 0x19, 0x0e, 0x08, 0x01, 0x12, 0x0a, 0x0a, 0x04, 0x55, 0x55, 0x49, 0x44, 0x12, 0x02, 0x69, 0x64, + 0x42, 0x46, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, + 0x6e, 0x66, 0x6f, 0x62, 0x6c, 0x6f, 0x78, 0x6f, 0x70, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x72, 0x6d, 0x2f, 0x65, 0x78, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x65, 0x6d, 0x6f, + 0x3b, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/example/postgres_arrays/postgres_arrays.pb.go b/example/postgres_arrays/postgres_arrays.pb.go index ae094f39..372c2d0a 100644 --- a/example/postgres_arrays/postgres_arrays.pb.go +++ b/example/postgres_arrays/postgres_arrays.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 -// protoc v3.17.1 +// protoc v3.15.7 // source: postgres_arrays/postgres_arrays.proto package postgres_arrays diff --git a/example/user/user.pb.go b/example/user/user.pb.go index dec5dc9f..a7b5617d 100644 --- a/example/user/user.pb.go +++ b/example/user/user.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 -// protoc v3.17.1 +// protoc v3.15.7 // source: user/user.proto package user