diff --git a/entproto/cmd/protoc-gen-ent/options/ent/opts.pb.go b/entproto/cmd/protoc-gen-ent/options/ent/opts.pb.go index ee0251368..a209b28d7 100644 --- a/entproto/cmd/protoc-gen-ent/options/ent/opts.pb.go +++ b/entproto/cmd/protoc-gen-ent/options/ent/opts.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 +// protoc-gen-go v1.28.0 // protoc v3.4.0 // source: opts.proto @@ -32,9 +32,11 @@ type Schema struct { func (x *Schema) Reset() { *x = Schema{} - mi := &file_opts_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_opts_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Schema) String() string { @@ -45,7 +47,7 @@ func (*Schema) ProtoMessage() {} func (x *Schema) ProtoReflect() protoreflect.Message { mi := &file_opts_proto_msgTypes[0] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -92,9 +94,11 @@ type Field struct { func (x *Field) Reset() { *x = Field{} - mi := &file_opts_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_opts_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Field) String() string { @@ -105,7 +109,7 @@ func (*Field) ProtoMessage() {} func (x *Field) ProtoReflect() protoreflect.Message { mi := &file_opts_proto_msgTypes[1] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -198,9 +202,11 @@ type Edge struct { func (x *Edge) Reset() { *x = Edge{} - mi := &file_opts_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_opts_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Edge) String() string { @@ -211,7 +217,7 @@ func (*Edge) ProtoMessage() {} func (x *Edge) ProtoReflect() protoreflect.Message { mi := &file_opts_proto_msgTypes[2] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -279,9 +285,11 @@ type Edge_StorageKey struct { func (x *Edge_StorageKey) Reset() { *x = Edge_StorageKey{} - mi := &file_opts_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_opts_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Edge_StorageKey) String() string { @@ -292,7 +300,7 @@ func (*Edge_StorageKey) ProtoMessage() {} func (x *Edge_StorageKey) ProtoReflect() protoreflect.Message { mi := &file_opts_proto_msgTypes[4] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -441,7 +449,7 @@ func file_opts_proto_rawDescGZIP() []byte { } var file_opts_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_opts_proto_goTypes = []any{ +var file_opts_proto_goTypes = []interface{}{ (*Schema)(nil), // 0: ent.Schema (*Field)(nil), // 1: ent.Field (*Edge)(nil), // 2: ent.Edge @@ -471,6 +479,56 @@ func file_opts_proto_init() { if File_opts_proto != nil { return } + if !protoimpl.UnsafeEnabled { + file_opts_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Schema); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_opts_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Field); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_opts_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Edge); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_opts_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Edge_StorageKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/entproto/internal/altdir/ent/v1/api/entpb/entpb.pb.go b/entproto/internal/altdir/ent/v1/api/entpb/entpb.pb.go index e683b56ca..50f81b358 100644 --- a/entproto/internal/altdir/ent/v1/api/entpb/entpb.pb.go +++ b/entproto/internal/altdir/ent/v1/api/entpb/entpb.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 +// protoc-gen-go v1.28.0 // protoc v3.4.0 // source: entpb/entpb.proto @@ -132,9 +132,11 @@ type User struct { func (x *User) Reset() { *x = User{} - mi := &file_entpb_entpb_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *User) String() string { @@ -145,7 +147,7 @@ func (*User) ProtoMessage() {} func (x *User) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[0] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -184,9 +186,11 @@ type CreateUserRequest struct { func (x *CreateUserRequest) Reset() { *x = CreateUserRequest{} - mi := &file_entpb_entpb_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CreateUserRequest) String() string { @@ -197,7 +201,7 @@ func (*CreateUserRequest) ProtoMessage() {} func (x *CreateUserRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[1] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -230,9 +234,11 @@ type GetUserRequest struct { func (x *GetUserRequest) Reset() { *x = GetUserRequest{} - mi := &file_entpb_entpb_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetUserRequest) String() string { @@ -243,7 +249,7 @@ func (*GetUserRequest) ProtoMessage() {} func (x *GetUserRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[2] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -282,9 +288,11 @@ type UpdateUserRequest struct { func (x *UpdateUserRequest) Reset() { *x = UpdateUserRequest{} - mi := &file_entpb_entpb_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *UpdateUserRequest) String() string { @@ -295,7 +303,7 @@ func (*UpdateUserRequest) ProtoMessage() {} func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[3] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -327,9 +335,11 @@ type DeleteUserRequest struct { func (x *DeleteUserRequest) Reset() { *x = DeleteUserRequest{} - mi := &file_entpb_entpb_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *DeleteUserRequest) String() string { @@ -340,7 +350,7 @@ func (*DeleteUserRequest) ProtoMessage() {} func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[4] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -374,9 +384,11 @@ type ListUserRequest struct { func (x *ListUserRequest) Reset() { *x = ListUserRequest{} - mi := &file_entpb_entpb_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ListUserRequest) String() string { @@ -387,7 +399,7 @@ func (*ListUserRequest) ProtoMessage() {} func (x *ListUserRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[5] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -434,9 +446,11 @@ type ListUserResponse struct { func (x *ListUserResponse) Reset() { *x = ListUserResponse{} - mi := &file_entpb_entpb_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ListUserResponse) String() string { @@ -447,7 +461,7 @@ func (*ListUserResponse) ProtoMessage() {} func (x *ListUserResponse) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[6] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -486,9 +500,11 @@ type BatchCreateUsersRequest struct { func (x *BatchCreateUsersRequest) Reset() { *x = BatchCreateUsersRequest{} - mi := &file_entpb_entpb_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreateUsersRequest) String() string { @@ -499,7 +515,7 @@ func (*BatchCreateUsersRequest) ProtoMessage() {} func (x *BatchCreateUsersRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[7] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -531,9 +547,11 @@ type BatchCreateUsersResponse struct { func (x *BatchCreateUsersResponse) Reset() { *x = BatchCreateUsersResponse{} - mi := &file_entpb_entpb_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreateUsersResponse) String() string { @@ -544,7 +562,7 @@ func (*BatchCreateUsersResponse) ProtoMessage() {} func (x *BatchCreateUsersResponse) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[8] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -663,7 +681,7 @@ func file_entpb_entpb_proto_rawDescGZIP() []byte { var file_entpb_entpb_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_entpb_entpb_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_entpb_entpb_proto_goTypes = []any{ +var file_entpb_entpb_proto_goTypes = []interface{}{ (GetUserRequest_View)(0), // 0: entpb.GetUserRequest.View (ListUserRequest_View)(0), // 1: entpb.ListUserRequest.View (*User)(nil), // 2: entpb.User @@ -709,6 +727,116 @@ func file_entpb_entpb_proto_init() { if File_entpb_entpb_proto != nil { return } + if !protoimpl.UnsafeEnabled { + file_entpb_entpb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListUserResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateUsersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateUsersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/entproto/internal/altdir/ent/v1/api/entpb/entpb_grpc.pb.go b/entproto/internal/altdir/ent/v1/api/entpb/entpb_grpc.pb.go index 8c02b696e..74b494e8a 100644 --- a/entproto/internal/altdir/ent/v1/api/entpb/entpb_grpc.pb.go +++ b/entproto/internal/altdir/ent/v1/api/entpb/entpb_grpc.pb.go @@ -1,8 +1,6 @@ -// Code generated by entproto. DO NOT EDIT. - // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.5.1 +// - protoc-gen-go-grpc v1.2.0 // - protoc v3.4.0 // source: entpb/entpb.proto @@ -18,17 +16,8 @@ import ( // 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.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - UserService_Create_FullMethodName = "/entpb.UserService/Create" - UserService_Get_FullMethodName = "/entpb.UserService/Get" - UserService_Update_FullMethodName = "/entpb.UserService/Update" - UserService_Delete_FullMethodName = "/entpb.UserService/Delete" - UserService_List_FullMethodName = "/entpb.UserService/List" - UserService_BatchCreate_FullMethodName = "/entpb.UserService/BatchCreate" -) +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 // UserServiceClient is the client API for UserService service. // @@ -51,9 +40,8 @@ func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient { } func (c *userServiceClient) Create(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(User) - err := c.cc.Invoke(ctx, UserService_Create_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.UserService/Create", in, out, opts...) if err != nil { return nil, err } @@ -61,9 +49,8 @@ func (c *userServiceClient) Create(ctx context.Context, in *CreateUserRequest, o } func (c *userServiceClient) Get(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(User) - err := c.cc.Invoke(ctx, UserService_Get_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.UserService/Get", in, out, opts...) if err != nil { return nil, err } @@ -71,9 +58,8 @@ func (c *userServiceClient) Get(ctx context.Context, in *GetUserRequest, opts .. } func (c *userServiceClient) Update(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(User) - err := c.cc.Invoke(ctx, UserService_Update_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.UserService/Update", in, out, opts...) if err != nil { return nil, err } @@ -81,9 +67,8 @@ func (c *userServiceClient) Update(ctx context.Context, in *UpdateUserRequest, o } func (c *userServiceClient) Delete(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(empty.Empty) - err := c.cc.Invoke(ctx, UserService_Delete_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.UserService/Delete", in, out, opts...) if err != nil { return nil, err } @@ -91,9 +76,8 @@ func (c *userServiceClient) Delete(ctx context.Context, in *DeleteUserRequest, o } func (c *userServiceClient) List(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListUserResponse) - err := c.cc.Invoke(ctx, UserService_List_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.UserService/List", in, out, opts...) if err != nil { return nil, err } @@ -101,9 +85,8 @@ func (c *userServiceClient) List(ctx context.Context, in *ListUserRequest, opts } func (c *userServiceClient) BatchCreate(ctx context.Context, in *BatchCreateUsersRequest, opts ...grpc.CallOption) (*BatchCreateUsersResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchCreateUsersResponse) - err := c.cc.Invoke(ctx, UserService_BatchCreate_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.UserService/BatchCreate", in, out, opts...) if err != nil { return nil, err } @@ -112,7 +95,7 @@ func (c *userServiceClient) BatchCreate(ctx context.Context, in *BatchCreateUser // UserServiceServer is the server API for UserService service. // All implementations must embed UnimplementedUserServiceServer -// for forward compatibility. +// for forward compatibility type UserServiceServer interface { Create(context.Context, *CreateUserRequest) (*User, error) Get(context.Context, *GetUserRequest) (*User, error) @@ -123,12 +106,9 @@ type UserServiceServer interface { mustEmbedUnimplementedUserServiceServer() } -// UnimplementedUserServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedUserServiceServer struct{} +// UnimplementedUserServiceServer must be embedded to have forward compatible implementations. +type UnimplementedUserServiceServer struct { +} func (UnimplementedUserServiceServer) Create(context.Context, *CreateUserRequest) (*User, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") @@ -149,7 +129,6 @@ func (UnimplementedUserServiceServer) BatchCreate(context.Context, *BatchCreateU return nil, status.Errorf(codes.Unimplemented, "method BatchCreate not implemented") } func (UnimplementedUserServiceServer) mustEmbedUnimplementedUserServiceServer() {} -func (UnimplementedUserServiceServer) testEmbeddedByValue() {} // UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to UserServiceServer will @@ -159,13 +138,6 @@ type UnsafeUserServiceServer interface { } func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) { - // If the following call pancis, it indicates UnimplementedUserServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } s.RegisterService(&UserService_ServiceDesc, srv) } @@ -179,7 +151,7 @@ func _UserService_Create_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UserService_Create_FullMethodName, + FullMethod: "/entpb.UserService/Create", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).Create(ctx, req.(*CreateUserRequest)) @@ -197,7 +169,7 @@ func _UserService_Get_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UserService_Get_FullMethodName, + FullMethod: "/entpb.UserService/Get", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).Get(ctx, req.(*GetUserRequest)) @@ -215,7 +187,7 @@ func _UserService_Update_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UserService_Update_FullMethodName, + FullMethod: "/entpb.UserService/Update", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).Update(ctx, req.(*UpdateUserRequest)) @@ -233,7 +205,7 @@ func _UserService_Delete_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UserService_Delete_FullMethodName, + FullMethod: "/entpb.UserService/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).Delete(ctx, req.(*DeleteUserRequest)) @@ -251,7 +223,7 @@ func _UserService_List_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UserService_List_FullMethodName, + FullMethod: "/entpb.UserService/List", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).List(ctx, req.(*ListUserRequest)) @@ -269,7 +241,7 @@ func _UserService_BatchCreate_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UserService_BatchCreate_FullMethodName, + FullMethod: "/entpb.UserService/BatchCreate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).BatchCreate(ctx, req.(*BatchCreateUsersRequest)) diff --git a/entproto/internal/bare/ent/proto/entpb/entpb.pb.go b/entproto/internal/bare/ent/proto/entpb/entpb.pb.go index 818baaa9e..3082599e7 100644 --- a/entproto/internal/bare/ent/proto/entpb/entpb.pb.go +++ b/entproto/internal/bare/ent/proto/entpb/entpb.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 +// protoc-gen-go v1.28.0 // protoc v3.4.0 // source: entpb/entpb.proto @@ -34,9 +34,11 @@ type User struct { func (x *User) Reset() { *x = User{} - mi := &file_entpb_entpb_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *User) String() string { @@ -47,7 +49,7 @@ func (*User) ProtoMessage() {} func (x *User) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[0] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -112,7 +114,7 @@ func file_entpb_entpb_proto_rawDescGZIP() []byte { } var file_entpb_entpb_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_entpb_entpb_proto_goTypes = []any{ +var file_entpb_entpb_proto_goTypes = []interface{}{ (*User)(nil), // 0: entpb.User } var file_entpb_entpb_proto_depIdxs = []int32{ @@ -128,6 +130,20 @@ func file_entpb_entpb_proto_init() { if File_entpb_entpb_proto != nil { return } + if !protoimpl.UnsafeEnabled { + file_entpb_entpb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/entproto/internal/todo/ent/proto/entpb/entpb.pb.go b/entproto/internal/todo/ent/proto/entpb/entpb.pb.go index f227113a6..3ffdff654 100644 --- a/entproto/internal/todo/ent/proto/entpb/entpb.pb.go +++ b/entproto/internal/todo/ent/proto/entpb/entpb.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 +// protoc-gen-go v1.28.0 // protoc v3.4.0 // source: entpb/entpb.proto @@ -815,9 +815,11 @@ type Attachment struct { func (x *Attachment) Reset() { *x = Attachment{} - mi := &file_entpb_entpb_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Attachment) String() string { @@ -828,7 +830,7 @@ func (*Attachment) ProtoMessage() {} func (x *Attachment) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[0] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -874,9 +876,11 @@ type CreateAttachmentRequest struct { func (x *CreateAttachmentRequest) Reset() { *x = CreateAttachmentRequest{} - mi := &file_entpb_entpb_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CreateAttachmentRequest) String() string { @@ -887,7 +891,7 @@ func (*CreateAttachmentRequest) ProtoMessage() {} func (x *CreateAttachmentRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[1] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -920,9 +924,11 @@ type GetAttachmentRequest struct { func (x *GetAttachmentRequest) Reset() { *x = GetAttachmentRequest{} - mi := &file_entpb_entpb_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetAttachmentRequest) String() string { @@ -933,7 +939,7 @@ func (*GetAttachmentRequest) ProtoMessage() {} func (x *GetAttachmentRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[2] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -972,9 +978,11 @@ type UpdateAttachmentRequest struct { func (x *UpdateAttachmentRequest) Reset() { *x = UpdateAttachmentRequest{} - mi := &file_entpb_entpb_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *UpdateAttachmentRequest) String() string { @@ -985,7 +993,7 @@ func (*UpdateAttachmentRequest) ProtoMessage() {} func (x *UpdateAttachmentRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[3] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1017,9 +1025,11 @@ type DeleteAttachmentRequest struct { func (x *DeleteAttachmentRequest) Reset() { *x = DeleteAttachmentRequest{} - mi := &file_entpb_entpb_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *DeleteAttachmentRequest) String() string { @@ -1030,7 +1040,7 @@ func (*DeleteAttachmentRequest) ProtoMessage() {} func (x *DeleteAttachmentRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[4] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1064,9 +1074,11 @@ type ListAttachmentRequest struct { func (x *ListAttachmentRequest) Reset() { *x = ListAttachmentRequest{} - mi := &file_entpb_entpb_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ListAttachmentRequest) String() string { @@ -1077,7 +1089,7 @@ func (*ListAttachmentRequest) ProtoMessage() {} func (x *ListAttachmentRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[5] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1124,9 +1136,11 @@ type ListAttachmentResponse struct { func (x *ListAttachmentResponse) Reset() { *x = ListAttachmentResponse{} - mi := &file_entpb_entpb_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ListAttachmentResponse) String() string { @@ -1137,7 +1151,7 @@ func (*ListAttachmentResponse) ProtoMessage() {} func (x *ListAttachmentResponse) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[6] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1176,9 +1190,11 @@ type BatchCreateAttachmentsRequest struct { func (x *BatchCreateAttachmentsRequest) Reset() { *x = BatchCreateAttachmentsRequest{} - mi := &file_entpb_entpb_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreateAttachmentsRequest) String() string { @@ -1189,7 +1205,7 @@ func (*BatchCreateAttachmentsRequest) ProtoMessage() {} func (x *BatchCreateAttachmentsRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[7] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1221,9 +1237,11 @@ type BatchCreateAttachmentsResponse struct { func (x *BatchCreateAttachmentsResponse) Reset() { *x = BatchCreateAttachmentsResponse{} - mi := &file_entpb_entpb_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreateAttachmentsResponse) String() string { @@ -1234,7 +1252,7 @@ func (*BatchCreateAttachmentsResponse) ProtoMessage() {} func (x *BatchCreateAttachmentsResponse) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[8] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1268,9 +1286,11 @@ type Group struct { func (x *Group) Reset() { *x = Group{} - mi := &file_entpb_entpb_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Group) String() string { @@ -1281,7 +1301,7 @@ func (*Group) ProtoMessage() {} func (x *Group) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[9] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1328,9 +1348,11 @@ type MultiWordSchema struct { func (x *MultiWordSchema) Reset() { *x = MultiWordSchema{} - mi := &file_entpb_entpb_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *MultiWordSchema) String() string { @@ -1341,7 +1363,7 @@ func (*MultiWordSchema) ProtoMessage() {} func (x *MultiWordSchema) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[10] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1380,9 +1402,11 @@ type CreateMultiWordSchemaRequest struct { func (x *CreateMultiWordSchemaRequest) Reset() { *x = CreateMultiWordSchemaRequest{} - mi := &file_entpb_entpb_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CreateMultiWordSchemaRequest) String() string { @@ -1393,7 +1417,7 @@ func (*CreateMultiWordSchemaRequest) ProtoMessage() {} func (x *CreateMultiWordSchemaRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[11] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1426,9 +1450,11 @@ type GetMultiWordSchemaRequest struct { func (x *GetMultiWordSchemaRequest) Reset() { *x = GetMultiWordSchemaRequest{} - mi := &file_entpb_entpb_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetMultiWordSchemaRequest) String() string { @@ -1439,7 +1465,7 @@ func (*GetMultiWordSchemaRequest) ProtoMessage() {} func (x *GetMultiWordSchemaRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[12] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1478,9 +1504,11 @@ type UpdateMultiWordSchemaRequest struct { func (x *UpdateMultiWordSchemaRequest) Reset() { *x = UpdateMultiWordSchemaRequest{} - mi := &file_entpb_entpb_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *UpdateMultiWordSchemaRequest) String() string { @@ -1491,7 +1519,7 @@ func (*UpdateMultiWordSchemaRequest) ProtoMessage() {} func (x *UpdateMultiWordSchemaRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[13] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1523,9 +1551,11 @@ type DeleteMultiWordSchemaRequest struct { func (x *DeleteMultiWordSchemaRequest) Reset() { *x = DeleteMultiWordSchemaRequest{} - mi := &file_entpb_entpb_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *DeleteMultiWordSchemaRequest) String() string { @@ -1536,7 +1566,7 @@ func (*DeleteMultiWordSchemaRequest) ProtoMessage() {} func (x *DeleteMultiWordSchemaRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[14] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1570,9 +1600,11 @@ type ListMultiWordSchemaRequest struct { func (x *ListMultiWordSchemaRequest) Reset() { *x = ListMultiWordSchemaRequest{} - mi := &file_entpb_entpb_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ListMultiWordSchemaRequest) String() string { @@ -1583,7 +1615,7 @@ func (*ListMultiWordSchemaRequest) ProtoMessage() {} func (x *ListMultiWordSchemaRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[15] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1630,9 +1662,11 @@ type ListMultiWordSchemaResponse struct { func (x *ListMultiWordSchemaResponse) Reset() { *x = ListMultiWordSchemaResponse{} - mi := &file_entpb_entpb_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ListMultiWordSchemaResponse) String() string { @@ -1643,7 +1677,7 @@ func (*ListMultiWordSchemaResponse) ProtoMessage() {} func (x *ListMultiWordSchemaResponse) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[16] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1682,9 +1716,11 @@ type BatchCreateMultiWordSchemasRequest struct { func (x *BatchCreateMultiWordSchemasRequest) Reset() { *x = BatchCreateMultiWordSchemasRequest{} - mi := &file_entpb_entpb_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreateMultiWordSchemasRequest) String() string { @@ -1695,7 +1731,7 @@ func (*BatchCreateMultiWordSchemasRequest) ProtoMessage() {} func (x *BatchCreateMultiWordSchemasRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[17] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1727,9 +1763,11 @@ type BatchCreateMultiWordSchemasResponse struct { func (x *BatchCreateMultiWordSchemasResponse) Reset() { *x = BatchCreateMultiWordSchemasResponse{} - mi := &file_entpb_entpb_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreateMultiWordSchemasResponse) String() string { @@ -1740,7 +1778,7 @@ func (*BatchCreateMultiWordSchemasResponse) ProtoMessage() {} func (x *BatchCreateMultiWordSchemasResponse) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[18] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1774,9 +1812,11 @@ type NilExample struct { func (x *NilExample) Reset() { *x = NilExample{} - mi := &file_entpb_entpb_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NilExample) String() string { @@ -1787,7 +1827,7 @@ func (*NilExample) ProtoMessage() {} func (x *NilExample) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[19] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1833,9 +1873,11 @@ type CreateNilExampleRequest struct { func (x *CreateNilExampleRequest) Reset() { *x = CreateNilExampleRequest{} - mi := &file_entpb_entpb_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CreateNilExampleRequest) String() string { @@ -1846,7 +1888,7 @@ func (*CreateNilExampleRequest) ProtoMessage() {} func (x *CreateNilExampleRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[20] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1879,9 +1921,11 @@ type GetNilExampleRequest struct { func (x *GetNilExampleRequest) Reset() { *x = GetNilExampleRequest{} - mi := &file_entpb_entpb_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetNilExampleRequest) String() string { @@ -1892,7 +1936,7 @@ func (*GetNilExampleRequest) ProtoMessage() {} func (x *GetNilExampleRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[21] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1931,9 +1975,11 @@ type UpdateNilExampleRequest struct { func (x *UpdateNilExampleRequest) Reset() { *x = UpdateNilExampleRequest{} - mi := &file_entpb_entpb_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *UpdateNilExampleRequest) String() string { @@ -1944,7 +1990,7 @@ func (*UpdateNilExampleRequest) ProtoMessage() {} func (x *UpdateNilExampleRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[22] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1976,9 +2022,11 @@ type DeleteNilExampleRequest struct { func (x *DeleteNilExampleRequest) Reset() { *x = DeleteNilExampleRequest{} - mi := &file_entpb_entpb_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *DeleteNilExampleRequest) String() string { @@ -1989,7 +2037,7 @@ func (*DeleteNilExampleRequest) ProtoMessage() {} func (x *DeleteNilExampleRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[23] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2023,9 +2071,11 @@ type ListNilExampleRequest struct { func (x *ListNilExampleRequest) Reset() { *x = ListNilExampleRequest{} - mi := &file_entpb_entpb_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ListNilExampleRequest) String() string { @@ -2036,7 +2086,7 @@ func (*ListNilExampleRequest) ProtoMessage() {} func (x *ListNilExampleRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[24] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2083,9 +2133,11 @@ type ListNilExampleResponse struct { func (x *ListNilExampleResponse) Reset() { *x = ListNilExampleResponse{} - mi := &file_entpb_entpb_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ListNilExampleResponse) String() string { @@ -2096,7 +2148,7 @@ func (*ListNilExampleResponse) ProtoMessage() {} func (x *ListNilExampleResponse) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[25] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2135,9 +2187,11 @@ type BatchCreateNilExamplesRequest struct { func (x *BatchCreateNilExamplesRequest) Reset() { *x = BatchCreateNilExamplesRequest{} - mi := &file_entpb_entpb_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreateNilExamplesRequest) String() string { @@ -2148,7 +2202,7 @@ func (*BatchCreateNilExamplesRequest) ProtoMessage() {} func (x *BatchCreateNilExamplesRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[26] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2180,9 +2234,11 @@ type BatchCreateNilExamplesResponse struct { func (x *BatchCreateNilExamplesResponse) Reset() { *x = BatchCreateNilExamplesResponse{} - mi := &file_entpb_entpb_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreateNilExamplesResponse) String() string { @@ -2193,7 +2249,7 @@ func (*BatchCreateNilExamplesResponse) ProtoMessage() {} func (x *BatchCreateNilExamplesResponse) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[27] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2227,9 +2283,11 @@ type Pet struct { func (x *Pet) Reset() { *x = Pet{} - mi := &file_entpb_entpb_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Pet) String() string { @@ -2240,7 +2298,7 @@ func (*Pet) ProtoMessage() {} func (x *Pet) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[28] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2286,9 +2344,11 @@ type CreatePetRequest struct { func (x *CreatePetRequest) Reset() { *x = CreatePetRequest{} - mi := &file_entpb_entpb_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CreatePetRequest) String() string { @@ -2299,7 +2359,7 @@ func (*CreatePetRequest) ProtoMessage() {} func (x *CreatePetRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[29] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2332,9 +2392,11 @@ type GetPetRequest struct { func (x *GetPetRequest) Reset() { *x = GetPetRequest{} - mi := &file_entpb_entpb_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetPetRequest) String() string { @@ -2345,7 +2407,7 @@ func (*GetPetRequest) ProtoMessage() {} func (x *GetPetRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[30] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2384,9 +2446,11 @@ type UpdatePetRequest struct { func (x *UpdatePetRequest) Reset() { *x = UpdatePetRequest{} - mi := &file_entpb_entpb_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *UpdatePetRequest) String() string { @@ -2397,7 +2461,7 @@ func (*UpdatePetRequest) ProtoMessage() {} func (x *UpdatePetRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[31] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2429,9 +2493,11 @@ type DeletePetRequest struct { func (x *DeletePetRequest) Reset() { *x = DeletePetRequest{} - mi := &file_entpb_entpb_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *DeletePetRequest) String() string { @@ -2442,7 +2508,7 @@ func (*DeletePetRequest) ProtoMessage() {} func (x *DeletePetRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[32] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2476,9 +2542,11 @@ type ListPetRequest struct { func (x *ListPetRequest) Reset() { *x = ListPetRequest{} - mi := &file_entpb_entpb_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ListPetRequest) String() string { @@ -2489,7 +2557,7 @@ func (*ListPetRequest) ProtoMessage() {} func (x *ListPetRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[33] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2536,9 +2604,11 @@ type ListPetResponse struct { func (x *ListPetResponse) Reset() { *x = ListPetResponse{} - mi := &file_entpb_entpb_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ListPetResponse) String() string { @@ -2549,7 +2619,7 @@ func (*ListPetResponse) ProtoMessage() {} func (x *ListPetResponse) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[34] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2588,9 +2658,11 @@ type BatchCreatePetsRequest struct { func (x *BatchCreatePetsRequest) Reset() { *x = BatchCreatePetsRequest{} - mi := &file_entpb_entpb_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreatePetsRequest) String() string { @@ -2601,7 +2673,7 @@ func (*BatchCreatePetsRequest) ProtoMessage() {} func (x *BatchCreatePetsRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[35] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2633,9 +2705,11 @@ type BatchCreatePetsResponse struct { func (x *BatchCreatePetsResponse) Reset() { *x = BatchCreatePetsResponse{} - mi := &file_entpb_entpb_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreatePetsResponse) String() string { @@ -2646,7 +2720,7 @@ func (*BatchCreatePetsResponse) ProtoMessage() {} func (x *BatchCreatePetsResponse) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[36] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2679,9 +2753,11 @@ type Pony struct { func (x *Pony) Reset() { *x = Pony{} - mi := &file_entpb_entpb_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Pony) String() string { @@ -2692,7 +2768,7 @@ func (*Pony) ProtoMessage() {} func (x *Pony) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[37] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2731,9 +2807,11 @@ type CreatePonyRequest struct { func (x *CreatePonyRequest) Reset() { *x = CreatePonyRequest{} - mi := &file_entpb_entpb_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CreatePonyRequest) String() string { @@ -2744,7 +2822,7 @@ func (*CreatePonyRequest) ProtoMessage() {} func (x *CreatePonyRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[38] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2776,9 +2854,11 @@ type BatchCreatePoniesRequest struct { func (x *BatchCreatePoniesRequest) Reset() { *x = BatchCreatePoniesRequest{} - mi := &file_entpb_entpb_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreatePoniesRequest) String() string { @@ -2789,7 +2869,7 @@ func (*BatchCreatePoniesRequest) ProtoMessage() {} func (x *BatchCreatePoniesRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[39] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2821,9 +2901,11 @@ type BatchCreatePoniesResponse struct { func (x *BatchCreatePoniesResponse) Reset() { *x = BatchCreatePoniesResponse{} - mi := &file_entpb_entpb_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreatePoniesResponse) String() string { @@ -2834,7 +2916,7 @@ func (*BatchCreatePoniesResponse) ProtoMessage() {} func (x *BatchCreatePoniesResponse) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[40] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2869,9 +2951,11 @@ type Todo struct { func (x *Todo) Reset() { *x = Todo{} - mi := &file_entpb_entpb_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Todo) String() string { @@ -2882,7 +2966,7 @@ func (*Todo) ProtoMessage() {} func (x *Todo) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[41] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2964,9 +3048,11 @@ type User struct { func (x *User) Reset() { *x = User{} - mi := &file_entpb_entpb_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *User) String() string { @@ -2977,7 +3063,7 @@ func (*User) ProtoMessage() {} func (x *User) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[42] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3212,9 +3298,11 @@ type CreateUserRequest struct { func (x *CreateUserRequest) Reset() { *x = CreateUserRequest{} - mi := &file_entpb_entpb_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CreateUserRequest) String() string { @@ -3225,7 +3313,7 @@ func (*CreateUserRequest) ProtoMessage() {} func (x *CreateUserRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[43] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3258,9 +3346,11 @@ type GetUserRequest struct { func (x *GetUserRequest) Reset() { *x = GetUserRequest{} - mi := &file_entpb_entpb_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetUserRequest) String() string { @@ -3271,7 +3361,7 @@ func (*GetUserRequest) ProtoMessage() {} func (x *GetUserRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[44] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3310,9 +3400,11 @@ type UpdateUserRequest struct { func (x *UpdateUserRequest) Reset() { *x = UpdateUserRequest{} - mi := &file_entpb_entpb_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *UpdateUserRequest) String() string { @@ -3323,7 +3415,7 @@ func (*UpdateUserRequest) ProtoMessage() {} func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[45] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3355,9 +3447,11 @@ type DeleteUserRequest struct { func (x *DeleteUserRequest) Reset() { *x = DeleteUserRequest{} - mi := &file_entpb_entpb_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *DeleteUserRequest) String() string { @@ -3368,7 +3462,7 @@ func (*DeleteUserRequest) ProtoMessage() {} func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[46] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3402,9 +3496,11 @@ type ListUserRequest struct { func (x *ListUserRequest) Reset() { *x = ListUserRequest{} - mi := &file_entpb_entpb_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ListUserRequest) String() string { @@ -3415,7 +3511,7 @@ func (*ListUserRequest) ProtoMessage() {} func (x *ListUserRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[47] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3462,9 +3558,11 @@ type ListUserResponse struct { func (x *ListUserResponse) Reset() { *x = ListUserResponse{} - mi := &file_entpb_entpb_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ListUserResponse) String() string { @@ -3475,7 +3573,7 @@ func (*ListUserResponse) ProtoMessage() {} func (x *ListUserResponse) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[48] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3514,9 +3612,11 @@ type BatchCreateUsersRequest struct { func (x *BatchCreateUsersRequest) Reset() { *x = BatchCreateUsersRequest{} - mi := &file_entpb_entpb_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreateUsersRequest) String() string { @@ -3527,7 +3627,7 @@ func (*BatchCreateUsersRequest) ProtoMessage() {} func (x *BatchCreateUsersRequest) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[49] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3559,9 +3659,11 @@ type BatchCreateUsersResponse struct { func (x *BatchCreateUsersResponse) Reset() { *x = BatchCreateUsersResponse{} - mi := &file_entpb_entpb_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_entpb_entpb_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BatchCreateUsersResponse) String() string { @@ -3572,7 +3674,7 @@ func (*BatchCreateUsersResponse) ProtoMessage() {} func (x *BatchCreateUsersResponse) ProtoReflect() protoreflect.Message { mi := &file_entpb_entpb_proto_msgTypes[50] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4170,7 +4272,7 @@ func file_entpb_entpb_proto_rawDescGZIP() []byte { var file_entpb_entpb_proto_enumTypes = make([]protoimpl.EnumInfo, 16) var file_entpb_entpb_proto_msgTypes = make([]protoimpl.MessageInfo, 51) -var file_entpb_entpb_proto_goTypes = []any{ +var file_entpb_entpb_proto_goTypes = []interface{}{ (GetAttachmentRequest_View)(0), // 0: entpb.GetAttachmentRequest.View (ListAttachmentRequest_View)(0), // 1: entpb.ListAttachmentRequest.View (MultiWordSchema_Unit)(0), // 2: entpb.MultiWordSchema.Unit @@ -4382,6 +4484,620 @@ func file_entpb_entpb_proto_init() { if File_entpb_entpb_proto != nil { return } + if !protoimpl.UnsafeEnabled { + file_entpb_entpb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Attachment); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateAttachmentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAttachmentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateAttachmentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteAttachmentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAttachmentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAttachmentResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateAttachmentsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateAttachmentsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Group); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiWordSchema); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateMultiWordSchemaRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMultiWordSchemaRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateMultiWordSchemaRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteMultiWordSchemaRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListMultiWordSchemaRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListMultiWordSchemaResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateMultiWordSchemasRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateMultiWordSchemasResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NilExample); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateNilExampleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetNilExampleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateNilExampleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteNilExampleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListNilExampleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListNilExampleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateNilExamplesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateNilExamplesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Pet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreatePetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdatePetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeletePetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreatePetsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreatePetsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Pony); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreatePonyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreatePoniesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreatePoniesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Todo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListUserResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateUsersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_entpb_entpb_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateUsersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/entproto/internal/todo/ent/proto/entpb/entpb_grpc.pb.go b/entproto/internal/todo/ent/proto/entpb/entpb_grpc.pb.go index a454ba7d7..fa84c6593 100644 --- a/entproto/internal/todo/ent/proto/entpb/entpb_grpc.pb.go +++ b/entproto/internal/todo/ent/proto/entpb/entpb_grpc.pb.go @@ -1,8 +1,6 @@ -// Code generated by entproto. DO NOT EDIT. - // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.5.1 +// - protoc-gen-go-grpc v1.2.0 // - protoc v3.4.0 // source: entpb/entpb.proto @@ -18,17 +16,8 @@ import ( // 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.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - AttachmentService_Create_FullMethodName = "/entpb.AttachmentService/Create" - AttachmentService_Get_FullMethodName = "/entpb.AttachmentService/Get" - AttachmentService_Update_FullMethodName = "/entpb.AttachmentService/Update" - AttachmentService_Delete_FullMethodName = "/entpb.AttachmentService/Delete" - AttachmentService_List_FullMethodName = "/entpb.AttachmentService/List" - AttachmentService_BatchCreate_FullMethodName = "/entpb.AttachmentService/BatchCreate" -) +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 // AttachmentServiceClient is the client API for AttachmentService service. // @@ -51,9 +40,8 @@ func NewAttachmentServiceClient(cc grpc.ClientConnInterface) AttachmentServiceCl } func (c *attachmentServiceClient) Create(ctx context.Context, in *CreateAttachmentRequest, opts ...grpc.CallOption) (*Attachment, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Attachment) - err := c.cc.Invoke(ctx, AttachmentService_Create_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.AttachmentService/Create", in, out, opts...) if err != nil { return nil, err } @@ -61,9 +49,8 @@ func (c *attachmentServiceClient) Create(ctx context.Context, in *CreateAttachme } func (c *attachmentServiceClient) Get(ctx context.Context, in *GetAttachmentRequest, opts ...grpc.CallOption) (*Attachment, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Attachment) - err := c.cc.Invoke(ctx, AttachmentService_Get_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.AttachmentService/Get", in, out, opts...) if err != nil { return nil, err } @@ -71,9 +58,8 @@ func (c *attachmentServiceClient) Get(ctx context.Context, in *GetAttachmentRequ } func (c *attachmentServiceClient) Update(ctx context.Context, in *UpdateAttachmentRequest, opts ...grpc.CallOption) (*Attachment, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Attachment) - err := c.cc.Invoke(ctx, AttachmentService_Update_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.AttachmentService/Update", in, out, opts...) if err != nil { return nil, err } @@ -81,9 +67,8 @@ func (c *attachmentServiceClient) Update(ctx context.Context, in *UpdateAttachme } func (c *attachmentServiceClient) Delete(ctx context.Context, in *DeleteAttachmentRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(empty.Empty) - err := c.cc.Invoke(ctx, AttachmentService_Delete_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.AttachmentService/Delete", in, out, opts...) if err != nil { return nil, err } @@ -91,9 +76,8 @@ func (c *attachmentServiceClient) Delete(ctx context.Context, in *DeleteAttachme } func (c *attachmentServiceClient) List(ctx context.Context, in *ListAttachmentRequest, opts ...grpc.CallOption) (*ListAttachmentResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListAttachmentResponse) - err := c.cc.Invoke(ctx, AttachmentService_List_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.AttachmentService/List", in, out, opts...) if err != nil { return nil, err } @@ -101,9 +85,8 @@ func (c *attachmentServiceClient) List(ctx context.Context, in *ListAttachmentRe } func (c *attachmentServiceClient) BatchCreate(ctx context.Context, in *BatchCreateAttachmentsRequest, opts ...grpc.CallOption) (*BatchCreateAttachmentsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchCreateAttachmentsResponse) - err := c.cc.Invoke(ctx, AttachmentService_BatchCreate_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.AttachmentService/BatchCreate", in, out, opts...) if err != nil { return nil, err } @@ -112,7 +95,7 @@ func (c *attachmentServiceClient) BatchCreate(ctx context.Context, in *BatchCrea // AttachmentServiceServer is the server API for AttachmentService service. // All implementations must embed UnimplementedAttachmentServiceServer -// for forward compatibility. +// for forward compatibility type AttachmentServiceServer interface { Create(context.Context, *CreateAttachmentRequest) (*Attachment, error) Get(context.Context, *GetAttachmentRequest) (*Attachment, error) @@ -123,12 +106,9 @@ type AttachmentServiceServer interface { mustEmbedUnimplementedAttachmentServiceServer() } -// UnimplementedAttachmentServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedAttachmentServiceServer struct{} +// UnimplementedAttachmentServiceServer must be embedded to have forward compatible implementations. +type UnimplementedAttachmentServiceServer struct { +} func (UnimplementedAttachmentServiceServer) Create(context.Context, *CreateAttachmentRequest) (*Attachment, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") @@ -149,7 +129,6 @@ func (UnimplementedAttachmentServiceServer) BatchCreate(context.Context, *BatchC return nil, status.Errorf(codes.Unimplemented, "method BatchCreate not implemented") } func (UnimplementedAttachmentServiceServer) mustEmbedUnimplementedAttachmentServiceServer() {} -func (UnimplementedAttachmentServiceServer) testEmbeddedByValue() {} // UnsafeAttachmentServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AttachmentServiceServer will @@ -159,13 +138,6 @@ type UnsafeAttachmentServiceServer interface { } func RegisterAttachmentServiceServer(s grpc.ServiceRegistrar, srv AttachmentServiceServer) { - // If the following call pancis, it indicates UnimplementedAttachmentServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } s.RegisterService(&AttachmentService_ServiceDesc, srv) } @@ -179,7 +151,7 @@ func _AttachmentService_Create_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AttachmentService_Create_FullMethodName, + FullMethod: "/entpb.AttachmentService/Create", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AttachmentServiceServer).Create(ctx, req.(*CreateAttachmentRequest)) @@ -197,7 +169,7 @@ func _AttachmentService_Get_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AttachmentService_Get_FullMethodName, + FullMethod: "/entpb.AttachmentService/Get", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AttachmentServiceServer).Get(ctx, req.(*GetAttachmentRequest)) @@ -215,7 +187,7 @@ func _AttachmentService_Update_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AttachmentService_Update_FullMethodName, + FullMethod: "/entpb.AttachmentService/Update", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AttachmentServiceServer).Update(ctx, req.(*UpdateAttachmentRequest)) @@ -233,7 +205,7 @@ func _AttachmentService_Delete_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AttachmentService_Delete_FullMethodName, + FullMethod: "/entpb.AttachmentService/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AttachmentServiceServer).Delete(ctx, req.(*DeleteAttachmentRequest)) @@ -251,7 +223,7 @@ func _AttachmentService_List_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AttachmentService_List_FullMethodName, + FullMethod: "/entpb.AttachmentService/List", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AttachmentServiceServer).List(ctx, req.(*ListAttachmentRequest)) @@ -269,7 +241,7 @@ func _AttachmentService_BatchCreate_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AttachmentService_BatchCreate_FullMethodName, + FullMethod: "/entpb.AttachmentService/BatchCreate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AttachmentServiceServer).BatchCreate(ctx, req.(*BatchCreateAttachmentsRequest)) @@ -313,15 +285,6 @@ var AttachmentService_ServiceDesc = grpc.ServiceDesc{ Metadata: "entpb/entpb.proto", } -const ( - MultiWordSchemaService_Create_FullMethodName = "/entpb.MultiWordSchemaService/Create" - MultiWordSchemaService_Get_FullMethodName = "/entpb.MultiWordSchemaService/Get" - MultiWordSchemaService_Update_FullMethodName = "/entpb.MultiWordSchemaService/Update" - MultiWordSchemaService_Delete_FullMethodName = "/entpb.MultiWordSchemaService/Delete" - MultiWordSchemaService_List_FullMethodName = "/entpb.MultiWordSchemaService/List" - MultiWordSchemaService_BatchCreate_FullMethodName = "/entpb.MultiWordSchemaService/BatchCreate" -) - // MultiWordSchemaServiceClient is the client API for MultiWordSchemaService 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. @@ -343,9 +306,8 @@ func NewMultiWordSchemaServiceClient(cc grpc.ClientConnInterface) MultiWordSchem } func (c *multiWordSchemaServiceClient) Create(ctx context.Context, in *CreateMultiWordSchemaRequest, opts ...grpc.CallOption) (*MultiWordSchema, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MultiWordSchema) - err := c.cc.Invoke(ctx, MultiWordSchemaService_Create_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.MultiWordSchemaService/Create", in, out, opts...) if err != nil { return nil, err } @@ -353,9 +315,8 @@ func (c *multiWordSchemaServiceClient) Create(ctx context.Context, in *CreateMul } func (c *multiWordSchemaServiceClient) Get(ctx context.Context, in *GetMultiWordSchemaRequest, opts ...grpc.CallOption) (*MultiWordSchema, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MultiWordSchema) - err := c.cc.Invoke(ctx, MultiWordSchemaService_Get_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.MultiWordSchemaService/Get", in, out, opts...) if err != nil { return nil, err } @@ -363,9 +324,8 @@ func (c *multiWordSchemaServiceClient) Get(ctx context.Context, in *GetMultiWord } func (c *multiWordSchemaServiceClient) Update(ctx context.Context, in *UpdateMultiWordSchemaRequest, opts ...grpc.CallOption) (*MultiWordSchema, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MultiWordSchema) - err := c.cc.Invoke(ctx, MultiWordSchemaService_Update_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.MultiWordSchemaService/Update", in, out, opts...) if err != nil { return nil, err } @@ -373,9 +333,8 @@ func (c *multiWordSchemaServiceClient) Update(ctx context.Context, in *UpdateMul } func (c *multiWordSchemaServiceClient) Delete(ctx context.Context, in *DeleteMultiWordSchemaRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(empty.Empty) - err := c.cc.Invoke(ctx, MultiWordSchemaService_Delete_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.MultiWordSchemaService/Delete", in, out, opts...) if err != nil { return nil, err } @@ -383,9 +342,8 @@ func (c *multiWordSchemaServiceClient) Delete(ctx context.Context, in *DeleteMul } func (c *multiWordSchemaServiceClient) List(ctx context.Context, in *ListMultiWordSchemaRequest, opts ...grpc.CallOption) (*ListMultiWordSchemaResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListMultiWordSchemaResponse) - err := c.cc.Invoke(ctx, MultiWordSchemaService_List_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.MultiWordSchemaService/List", in, out, opts...) if err != nil { return nil, err } @@ -393,9 +351,8 @@ func (c *multiWordSchemaServiceClient) List(ctx context.Context, in *ListMultiWo } func (c *multiWordSchemaServiceClient) BatchCreate(ctx context.Context, in *BatchCreateMultiWordSchemasRequest, opts ...grpc.CallOption) (*BatchCreateMultiWordSchemasResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchCreateMultiWordSchemasResponse) - err := c.cc.Invoke(ctx, MultiWordSchemaService_BatchCreate_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.MultiWordSchemaService/BatchCreate", in, out, opts...) if err != nil { return nil, err } @@ -404,7 +361,7 @@ func (c *multiWordSchemaServiceClient) BatchCreate(ctx context.Context, in *Batc // MultiWordSchemaServiceServer is the server API for MultiWordSchemaService service. // All implementations must embed UnimplementedMultiWordSchemaServiceServer -// for forward compatibility. +// for forward compatibility type MultiWordSchemaServiceServer interface { Create(context.Context, *CreateMultiWordSchemaRequest) (*MultiWordSchema, error) Get(context.Context, *GetMultiWordSchemaRequest) (*MultiWordSchema, error) @@ -415,12 +372,9 @@ type MultiWordSchemaServiceServer interface { mustEmbedUnimplementedMultiWordSchemaServiceServer() } -// UnimplementedMultiWordSchemaServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedMultiWordSchemaServiceServer struct{} +// UnimplementedMultiWordSchemaServiceServer must be embedded to have forward compatible implementations. +type UnimplementedMultiWordSchemaServiceServer struct { +} func (UnimplementedMultiWordSchemaServiceServer) Create(context.Context, *CreateMultiWordSchemaRequest) (*MultiWordSchema, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") @@ -442,7 +396,6 @@ func (UnimplementedMultiWordSchemaServiceServer) BatchCreate(context.Context, *B } func (UnimplementedMultiWordSchemaServiceServer) mustEmbedUnimplementedMultiWordSchemaServiceServer() { } -func (UnimplementedMultiWordSchemaServiceServer) testEmbeddedByValue() {} // UnsafeMultiWordSchemaServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MultiWordSchemaServiceServer will @@ -452,13 +405,6 @@ type UnsafeMultiWordSchemaServiceServer interface { } func RegisterMultiWordSchemaServiceServer(s grpc.ServiceRegistrar, srv MultiWordSchemaServiceServer) { - // If the following call pancis, it indicates UnimplementedMultiWordSchemaServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } s.RegisterService(&MultiWordSchemaService_ServiceDesc, srv) } @@ -472,7 +418,7 @@ func _MultiWordSchemaService_Create_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: MultiWordSchemaService_Create_FullMethodName, + FullMethod: "/entpb.MultiWordSchemaService/Create", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MultiWordSchemaServiceServer).Create(ctx, req.(*CreateMultiWordSchemaRequest)) @@ -490,7 +436,7 @@ func _MultiWordSchemaService_Get_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: MultiWordSchemaService_Get_FullMethodName, + FullMethod: "/entpb.MultiWordSchemaService/Get", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MultiWordSchemaServiceServer).Get(ctx, req.(*GetMultiWordSchemaRequest)) @@ -508,7 +454,7 @@ func _MultiWordSchemaService_Update_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: MultiWordSchemaService_Update_FullMethodName, + FullMethod: "/entpb.MultiWordSchemaService/Update", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MultiWordSchemaServiceServer).Update(ctx, req.(*UpdateMultiWordSchemaRequest)) @@ -526,7 +472,7 @@ func _MultiWordSchemaService_Delete_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: MultiWordSchemaService_Delete_FullMethodName, + FullMethod: "/entpb.MultiWordSchemaService/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MultiWordSchemaServiceServer).Delete(ctx, req.(*DeleteMultiWordSchemaRequest)) @@ -544,7 +490,7 @@ func _MultiWordSchemaService_List_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: MultiWordSchemaService_List_FullMethodName, + FullMethod: "/entpb.MultiWordSchemaService/List", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MultiWordSchemaServiceServer).List(ctx, req.(*ListMultiWordSchemaRequest)) @@ -562,7 +508,7 @@ func _MultiWordSchemaService_BatchCreate_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: MultiWordSchemaService_BatchCreate_FullMethodName, + FullMethod: "/entpb.MultiWordSchemaService/BatchCreate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MultiWordSchemaServiceServer).BatchCreate(ctx, req.(*BatchCreateMultiWordSchemasRequest)) @@ -606,15 +552,6 @@ var MultiWordSchemaService_ServiceDesc = grpc.ServiceDesc{ Metadata: "entpb/entpb.proto", } -const ( - NilExampleService_Create_FullMethodName = "/entpb.NilExampleService/Create" - NilExampleService_Get_FullMethodName = "/entpb.NilExampleService/Get" - NilExampleService_Update_FullMethodName = "/entpb.NilExampleService/Update" - NilExampleService_Delete_FullMethodName = "/entpb.NilExampleService/Delete" - NilExampleService_List_FullMethodName = "/entpb.NilExampleService/List" - NilExampleService_BatchCreate_FullMethodName = "/entpb.NilExampleService/BatchCreate" -) - // NilExampleServiceClient is the client API for NilExampleService 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. @@ -636,9 +573,8 @@ func NewNilExampleServiceClient(cc grpc.ClientConnInterface) NilExampleServiceCl } func (c *nilExampleServiceClient) Create(ctx context.Context, in *CreateNilExampleRequest, opts ...grpc.CallOption) (*NilExample, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NilExample) - err := c.cc.Invoke(ctx, NilExampleService_Create_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.NilExampleService/Create", in, out, opts...) if err != nil { return nil, err } @@ -646,9 +582,8 @@ func (c *nilExampleServiceClient) Create(ctx context.Context, in *CreateNilExamp } func (c *nilExampleServiceClient) Get(ctx context.Context, in *GetNilExampleRequest, opts ...grpc.CallOption) (*NilExample, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NilExample) - err := c.cc.Invoke(ctx, NilExampleService_Get_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.NilExampleService/Get", in, out, opts...) if err != nil { return nil, err } @@ -656,9 +591,8 @@ func (c *nilExampleServiceClient) Get(ctx context.Context, in *GetNilExampleRequ } func (c *nilExampleServiceClient) Update(ctx context.Context, in *UpdateNilExampleRequest, opts ...grpc.CallOption) (*NilExample, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NilExample) - err := c.cc.Invoke(ctx, NilExampleService_Update_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.NilExampleService/Update", in, out, opts...) if err != nil { return nil, err } @@ -666,9 +600,8 @@ func (c *nilExampleServiceClient) Update(ctx context.Context, in *UpdateNilExamp } func (c *nilExampleServiceClient) Delete(ctx context.Context, in *DeleteNilExampleRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(empty.Empty) - err := c.cc.Invoke(ctx, NilExampleService_Delete_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.NilExampleService/Delete", in, out, opts...) if err != nil { return nil, err } @@ -676,9 +609,8 @@ func (c *nilExampleServiceClient) Delete(ctx context.Context, in *DeleteNilExamp } func (c *nilExampleServiceClient) List(ctx context.Context, in *ListNilExampleRequest, opts ...grpc.CallOption) (*ListNilExampleResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListNilExampleResponse) - err := c.cc.Invoke(ctx, NilExampleService_List_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.NilExampleService/List", in, out, opts...) if err != nil { return nil, err } @@ -686,9 +618,8 @@ func (c *nilExampleServiceClient) List(ctx context.Context, in *ListNilExampleRe } func (c *nilExampleServiceClient) BatchCreate(ctx context.Context, in *BatchCreateNilExamplesRequest, opts ...grpc.CallOption) (*BatchCreateNilExamplesResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchCreateNilExamplesResponse) - err := c.cc.Invoke(ctx, NilExampleService_BatchCreate_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.NilExampleService/BatchCreate", in, out, opts...) if err != nil { return nil, err } @@ -697,7 +628,7 @@ func (c *nilExampleServiceClient) BatchCreate(ctx context.Context, in *BatchCrea // NilExampleServiceServer is the server API for NilExampleService service. // All implementations must embed UnimplementedNilExampleServiceServer -// for forward compatibility. +// for forward compatibility type NilExampleServiceServer interface { Create(context.Context, *CreateNilExampleRequest) (*NilExample, error) Get(context.Context, *GetNilExampleRequest) (*NilExample, error) @@ -708,12 +639,9 @@ type NilExampleServiceServer interface { mustEmbedUnimplementedNilExampleServiceServer() } -// UnimplementedNilExampleServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedNilExampleServiceServer struct{} +// UnimplementedNilExampleServiceServer must be embedded to have forward compatible implementations. +type UnimplementedNilExampleServiceServer struct { +} func (UnimplementedNilExampleServiceServer) Create(context.Context, *CreateNilExampleRequest) (*NilExample, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") @@ -734,7 +662,6 @@ func (UnimplementedNilExampleServiceServer) BatchCreate(context.Context, *BatchC return nil, status.Errorf(codes.Unimplemented, "method BatchCreate not implemented") } func (UnimplementedNilExampleServiceServer) mustEmbedUnimplementedNilExampleServiceServer() {} -func (UnimplementedNilExampleServiceServer) testEmbeddedByValue() {} // UnsafeNilExampleServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to NilExampleServiceServer will @@ -744,13 +671,6 @@ type UnsafeNilExampleServiceServer interface { } func RegisterNilExampleServiceServer(s grpc.ServiceRegistrar, srv NilExampleServiceServer) { - // If the following call pancis, it indicates UnimplementedNilExampleServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } s.RegisterService(&NilExampleService_ServiceDesc, srv) } @@ -764,7 +684,7 @@ func _NilExampleService_Create_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: NilExampleService_Create_FullMethodName, + FullMethod: "/entpb.NilExampleService/Create", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NilExampleServiceServer).Create(ctx, req.(*CreateNilExampleRequest)) @@ -782,7 +702,7 @@ func _NilExampleService_Get_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: NilExampleService_Get_FullMethodName, + FullMethod: "/entpb.NilExampleService/Get", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NilExampleServiceServer).Get(ctx, req.(*GetNilExampleRequest)) @@ -800,7 +720,7 @@ func _NilExampleService_Update_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: NilExampleService_Update_FullMethodName, + FullMethod: "/entpb.NilExampleService/Update", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NilExampleServiceServer).Update(ctx, req.(*UpdateNilExampleRequest)) @@ -818,7 +738,7 @@ func _NilExampleService_Delete_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: NilExampleService_Delete_FullMethodName, + FullMethod: "/entpb.NilExampleService/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NilExampleServiceServer).Delete(ctx, req.(*DeleteNilExampleRequest)) @@ -836,7 +756,7 @@ func _NilExampleService_List_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: NilExampleService_List_FullMethodName, + FullMethod: "/entpb.NilExampleService/List", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NilExampleServiceServer).List(ctx, req.(*ListNilExampleRequest)) @@ -854,7 +774,7 @@ func _NilExampleService_BatchCreate_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: NilExampleService_BatchCreate_FullMethodName, + FullMethod: "/entpb.NilExampleService/BatchCreate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NilExampleServiceServer).BatchCreate(ctx, req.(*BatchCreateNilExamplesRequest)) @@ -898,15 +818,6 @@ var NilExampleService_ServiceDesc = grpc.ServiceDesc{ Metadata: "entpb/entpb.proto", } -const ( - PetService_Create_FullMethodName = "/entpb.PetService/Create" - PetService_Get_FullMethodName = "/entpb.PetService/Get" - PetService_Update_FullMethodName = "/entpb.PetService/Update" - PetService_Delete_FullMethodName = "/entpb.PetService/Delete" - PetService_List_FullMethodName = "/entpb.PetService/List" - PetService_BatchCreate_FullMethodName = "/entpb.PetService/BatchCreate" -) - // PetServiceClient is the client API for PetService 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. @@ -928,9 +839,8 @@ func NewPetServiceClient(cc grpc.ClientConnInterface) PetServiceClient { } func (c *petServiceClient) Create(ctx context.Context, in *CreatePetRequest, opts ...grpc.CallOption) (*Pet, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Pet) - err := c.cc.Invoke(ctx, PetService_Create_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.PetService/Create", in, out, opts...) if err != nil { return nil, err } @@ -938,9 +848,8 @@ func (c *petServiceClient) Create(ctx context.Context, in *CreatePetRequest, opt } func (c *petServiceClient) Get(ctx context.Context, in *GetPetRequest, opts ...grpc.CallOption) (*Pet, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Pet) - err := c.cc.Invoke(ctx, PetService_Get_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.PetService/Get", in, out, opts...) if err != nil { return nil, err } @@ -948,9 +857,8 @@ func (c *petServiceClient) Get(ctx context.Context, in *GetPetRequest, opts ...g } func (c *petServiceClient) Update(ctx context.Context, in *UpdatePetRequest, opts ...grpc.CallOption) (*Pet, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Pet) - err := c.cc.Invoke(ctx, PetService_Update_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.PetService/Update", in, out, opts...) if err != nil { return nil, err } @@ -958,9 +866,8 @@ func (c *petServiceClient) Update(ctx context.Context, in *UpdatePetRequest, opt } func (c *petServiceClient) Delete(ctx context.Context, in *DeletePetRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(empty.Empty) - err := c.cc.Invoke(ctx, PetService_Delete_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.PetService/Delete", in, out, opts...) if err != nil { return nil, err } @@ -968,9 +875,8 @@ func (c *petServiceClient) Delete(ctx context.Context, in *DeletePetRequest, opt } func (c *petServiceClient) List(ctx context.Context, in *ListPetRequest, opts ...grpc.CallOption) (*ListPetResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListPetResponse) - err := c.cc.Invoke(ctx, PetService_List_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.PetService/List", in, out, opts...) if err != nil { return nil, err } @@ -978,9 +884,8 @@ func (c *petServiceClient) List(ctx context.Context, in *ListPetRequest, opts .. } func (c *petServiceClient) BatchCreate(ctx context.Context, in *BatchCreatePetsRequest, opts ...grpc.CallOption) (*BatchCreatePetsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchCreatePetsResponse) - err := c.cc.Invoke(ctx, PetService_BatchCreate_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.PetService/BatchCreate", in, out, opts...) if err != nil { return nil, err } @@ -989,7 +894,7 @@ func (c *petServiceClient) BatchCreate(ctx context.Context, in *BatchCreatePetsR // PetServiceServer is the server API for PetService service. // All implementations must embed UnimplementedPetServiceServer -// for forward compatibility. +// for forward compatibility type PetServiceServer interface { Create(context.Context, *CreatePetRequest) (*Pet, error) Get(context.Context, *GetPetRequest) (*Pet, error) @@ -1000,12 +905,9 @@ type PetServiceServer interface { mustEmbedUnimplementedPetServiceServer() } -// UnimplementedPetServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedPetServiceServer struct{} +// UnimplementedPetServiceServer must be embedded to have forward compatible implementations. +type UnimplementedPetServiceServer struct { +} func (UnimplementedPetServiceServer) Create(context.Context, *CreatePetRequest) (*Pet, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") @@ -1026,7 +928,6 @@ func (UnimplementedPetServiceServer) BatchCreate(context.Context, *BatchCreatePe return nil, status.Errorf(codes.Unimplemented, "method BatchCreate not implemented") } func (UnimplementedPetServiceServer) mustEmbedUnimplementedPetServiceServer() {} -func (UnimplementedPetServiceServer) testEmbeddedByValue() {} // UnsafePetServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PetServiceServer will @@ -1036,13 +937,6 @@ type UnsafePetServiceServer interface { } func RegisterPetServiceServer(s grpc.ServiceRegistrar, srv PetServiceServer) { - // If the following call pancis, it indicates UnimplementedPetServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } s.RegisterService(&PetService_ServiceDesc, srv) } @@ -1056,7 +950,7 @@ func _PetService_Create_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: PetService_Create_FullMethodName, + FullMethod: "/entpb.PetService/Create", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PetServiceServer).Create(ctx, req.(*CreatePetRequest)) @@ -1074,7 +968,7 @@ func _PetService_Get_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: PetService_Get_FullMethodName, + FullMethod: "/entpb.PetService/Get", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PetServiceServer).Get(ctx, req.(*GetPetRequest)) @@ -1092,7 +986,7 @@ func _PetService_Update_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: PetService_Update_FullMethodName, + FullMethod: "/entpb.PetService/Update", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PetServiceServer).Update(ctx, req.(*UpdatePetRequest)) @@ -1110,7 +1004,7 @@ func _PetService_Delete_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: PetService_Delete_FullMethodName, + FullMethod: "/entpb.PetService/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PetServiceServer).Delete(ctx, req.(*DeletePetRequest)) @@ -1128,7 +1022,7 @@ func _PetService_List_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: PetService_List_FullMethodName, + FullMethod: "/entpb.PetService/List", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PetServiceServer).List(ctx, req.(*ListPetRequest)) @@ -1146,7 +1040,7 @@ func _PetService_BatchCreate_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: PetService_BatchCreate_FullMethodName, + FullMethod: "/entpb.PetService/BatchCreate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PetServiceServer).BatchCreate(ctx, req.(*BatchCreatePetsRequest)) @@ -1190,10 +1084,6 @@ var PetService_ServiceDesc = grpc.ServiceDesc{ Metadata: "entpb/entpb.proto", } -const ( - PonyService_BatchCreate_FullMethodName = "/entpb.PonyService/BatchCreate" -) - // PonyServiceClient is the client API for PonyService 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. @@ -1210,9 +1100,8 @@ func NewPonyServiceClient(cc grpc.ClientConnInterface) PonyServiceClient { } func (c *ponyServiceClient) BatchCreate(ctx context.Context, in *BatchCreatePoniesRequest, opts ...grpc.CallOption) (*BatchCreatePoniesResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchCreatePoniesResponse) - err := c.cc.Invoke(ctx, PonyService_BatchCreate_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.PonyService/BatchCreate", in, out, opts...) if err != nil { return nil, err } @@ -1221,24 +1110,20 @@ func (c *ponyServiceClient) BatchCreate(ctx context.Context, in *BatchCreatePoni // PonyServiceServer is the server API for PonyService service. // All implementations must embed UnimplementedPonyServiceServer -// for forward compatibility. +// for forward compatibility type PonyServiceServer interface { BatchCreate(context.Context, *BatchCreatePoniesRequest) (*BatchCreatePoniesResponse, error) mustEmbedUnimplementedPonyServiceServer() } -// UnimplementedPonyServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedPonyServiceServer struct{} +// UnimplementedPonyServiceServer must be embedded to have forward compatible implementations. +type UnimplementedPonyServiceServer struct { +} func (UnimplementedPonyServiceServer) BatchCreate(context.Context, *BatchCreatePoniesRequest) (*BatchCreatePoniesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method BatchCreate not implemented") } func (UnimplementedPonyServiceServer) mustEmbedUnimplementedPonyServiceServer() {} -func (UnimplementedPonyServiceServer) testEmbeddedByValue() {} // UnsafePonyServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PonyServiceServer will @@ -1248,13 +1133,6 @@ type UnsafePonyServiceServer interface { } func RegisterPonyServiceServer(s grpc.ServiceRegistrar, srv PonyServiceServer) { - // If the following call pancis, it indicates UnimplementedPonyServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } s.RegisterService(&PonyService_ServiceDesc, srv) } @@ -1268,7 +1146,7 @@ func _PonyService_BatchCreate_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: PonyService_BatchCreate_FullMethodName, + FullMethod: "/entpb.PonyService/BatchCreate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PonyServiceServer).BatchCreate(ctx, req.(*BatchCreatePoniesRequest)) @@ -1292,15 +1170,6 @@ var PonyService_ServiceDesc = grpc.ServiceDesc{ Metadata: "entpb/entpb.proto", } -const ( - UserService_Create_FullMethodName = "/entpb.UserService/Create" - UserService_Get_FullMethodName = "/entpb.UserService/Get" - UserService_Update_FullMethodName = "/entpb.UserService/Update" - UserService_Delete_FullMethodName = "/entpb.UserService/Delete" - UserService_List_FullMethodName = "/entpb.UserService/List" - UserService_BatchCreate_FullMethodName = "/entpb.UserService/BatchCreate" -) - // UserServiceClient is the client API for UserService 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. @@ -1322,9 +1191,8 @@ func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient { } func (c *userServiceClient) Create(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(User) - err := c.cc.Invoke(ctx, UserService_Create_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.UserService/Create", in, out, opts...) if err != nil { return nil, err } @@ -1332,9 +1200,8 @@ func (c *userServiceClient) Create(ctx context.Context, in *CreateUserRequest, o } func (c *userServiceClient) Get(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(User) - err := c.cc.Invoke(ctx, UserService_Get_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.UserService/Get", in, out, opts...) if err != nil { return nil, err } @@ -1342,9 +1209,8 @@ func (c *userServiceClient) Get(ctx context.Context, in *GetUserRequest, opts .. } func (c *userServiceClient) Update(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(User) - err := c.cc.Invoke(ctx, UserService_Update_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.UserService/Update", in, out, opts...) if err != nil { return nil, err } @@ -1352,9 +1218,8 @@ func (c *userServiceClient) Update(ctx context.Context, in *UpdateUserRequest, o } func (c *userServiceClient) Delete(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(empty.Empty) - err := c.cc.Invoke(ctx, UserService_Delete_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.UserService/Delete", in, out, opts...) if err != nil { return nil, err } @@ -1362,9 +1227,8 @@ func (c *userServiceClient) Delete(ctx context.Context, in *DeleteUserRequest, o } func (c *userServiceClient) List(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListUserResponse) - err := c.cc.Invoke(ctx, UserService_List_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.UserService/List", in, out, opts...) if err != nil { return nil, err } @@ -1372,9 +1236,8 @@ func (c *userServiceClient) List(ctx context.Context, in *ListUserRequest, opts } func (c *userServiceClient) BatchCreate(ctx context.Context, in *BatchCreateUsersRequest, opts ...grpc.CallOption) (*BatchCreateUsersResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchCreateUsersResponse) - err := c.cc.Invoke(ctx, UserService_BatchCreate_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.UserService/BatchCreate", in, out, opts...) if err != nil { return nil, err } @@ -1383,7 +1246,7 @@ func (c *userServiceClient) BatchCreate(ctx context.Context, in *BatchCreateUser // UserServiceServer is the server API for UserService service. // All implementations must embed UnimplementedUserServiceServer -// for forward compatibility. +// for forward compatibility type UserServiceServer interface { Create(context.Context, *CreateUserRequest) (*User, error) Get(context.Context, *GetUserRequest) (*User, error) @@ -1394,12 +1257,9 @@ type UserServiceServer interface { mustEmbedUnimplementedUserServiceServer() } -// UnimplementedUserServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedUserServiceServer struct{} +// UnimplementedUserServiceServer must be embedded to have forward compatible implementations. +type UnimplementedUserServiceServer struct { +} func (UnimplementedUserServiceServer) Create(context.Context, *CreateUserRequest) (*User, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") @@ -1420,7 +1280,6 @@ func (UnimplementedUserServiceServer) BatchCreate(context.Context, *BatchCreateU return nil, status.Errorf(codes.Unimplemented, "method BatchCreate not implemented") } func (UnimplementedUserServiceServer) mustEmbedUnimplementedUserServiceServer() {} -func (UnimplementedUserServiceServer) testEmbeddedByValue() {} // UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to UserServiceServer will @@ -1430,13 +1289,6 @@ type UnsafeUserServiceServer interface { } func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) { - // If the following call pancis, it indicates UnimplementedUserServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } s.RegisterService(&UserService_ServiceDesc, srv) } @@ -1450,7 +1302,7 @@ func _UserService_Create_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UserService_Create_FullMethodName, + FullMethod: "/entpb.UserService/Create", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).Create(ctx, req.(*CreateUserRequest)) @@ -1468,7 +1320,7 @@ func _UserService_Get_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UserService_Get_FullMethodName, + FullMethod: "/entpb.UserService/Get", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).Get(ctx, req.(*GetUserRequest)) @@ -1486,7 +1338,7 @@ func _UserService_Update_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UserService_Update_FullMethodName, + FullMethod: "/entpb.UserService/Update", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).Update(ctx, req.(*UpdateUserRequest)) @@ -1504,7 +1356,7 @@ func _UserService_Delete_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UserService_Delete_FullMethodName, + FullMethod: "/entpb.UserService/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).Delete(ctx, req.(*DeleteUserRequest)) @@ -1522,7 +1374,7 @@ func _UserService_List_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UserService_List_FullMethodName, + FullMethod: "/entpb.UserService/List", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).List(ctx, req.(*ListUserRequest)) @@ -1540,7 +1392,7 @@ func _UserService_BatchCreate_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UserService_BatchCreate_FullMethodName, + FullMethod: "/entpb.UserService/BatchCreate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).BatchCreate(ctx, req.(*BatchCreateUsersRequest)) diff --git a/entproto/internal/todo/ent/proto/entpb/ext.pb.go b/entproto/internal/todo/ent/proto/entpb/ext.pb.go index 4ab313ddf..4dd621554 100644 --- a/entproto/internal/todo/ent/proto/entpb/ext.pb.go +++ b/entproto/internal/todo/ent/proto/entpb/ext.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 +// protoc-gen-go v1.28.0 // protoc v3.4.0 // source: entpb/ext.proto @@ -39,7 +39,7 @@ var file_entpb_ext_proto_rawDesc = []byte{ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var file_entpb_ext_proto_goTypes = []any{ +var file_entpb_ext_proto_goTypes = []interface{}{ (*empty.Empty)(nil), // 0: google.protobuf.Empty } var file_entpb_ext_proto_depIdxs = []int32{ diff --git a/entproto/internal/todo/ent/proto/entpb/ext_grpc.pb.go b/entproto/internal/todo/ent/proto/entpb/ext_grpc.pb.go index 2243e5704..6f9d28149 100644 --- a/entproto/internal/todo/ent/proto/entpb/ext_grpc.pb.go +++ b/entproto/internal/todo/ent/proto/entpb/ext_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.5.1 +// - protoc-gen-go-grpc v1.2.0 // - protoc v3.4.0 // source: entpb/ext.proto @@ -16,12 +16,8 @@ import ( // 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.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - NoopService_Crickets_FullMethodName = "/entpb.NoopService/Crickets" -) +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 // NoopServiceClient is the client API for NoopService service. // @@ -39,9 +35,8 @@ func NewNoopServiceClient(cc grpc.ClientConnInterface) NoopServiceClient { } func (c *noopServiceClient) Crickets(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(empty.Empty) - err := c.cc.Invoke(ctx, NoopService_Crickets_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/entpb.NoopService/Crickets", in, out, opts...) if err != nil { return nil, err } @@ -50,24 +45,20 @@ func (c *noopServiceClient) Crickets(ctx context.Context, in *empty.Empty, opts // NoopServiceServer is the server API for NoopService service. // All implementations must embed UnimplementedNoopServiceServer -// for forward compatibility. +// for forward compatibility type NoopServiceServer interface { Crickets(context.Context, *empty.Empty) (*empty.Empty, error) mustEmbedUnimplementedNoopServiceServer() } -// UnimplementedNoopServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedNoopServiceServer struct{} +// UnimplementedNoopServiceServer must be embedded to have forward compatible implementations. +type UnimplementedNoopServiceServer struct { +} func (UnimplementedNoopServiceServer) Crickets(context.Context, *empty.Empty) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Crickets not implemented") } func (UnimplementedNoopServiceServer) mustEmbedUnimplementedNoopServiceServer() {} -func (UnimplementedNoopServiceServer) testEmbeddedByValue() {} // UnsafeNoopServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to NoopServiceServer will @@ -77,13 +68,6 @@ type UnsafeNoopServiceServer interface { } func RegisterNoopServiceServer(s grpc.ServiceRegistrar, srv NoopServiceServer) { - // If the following call pancis, it indicates UnimplementedNoopServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } s.RegisterService(&NoopService_ServiceDesc, srv) } @@ -97,7 +81,7 @@ func _NoopService_Crickets_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: NoopService_Crickets_FullMethodName, + FullMethod: "/entpb.NoopService/Crickets", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NoopServiceServer).Crickets(ctx, req.(*empty.Empty)) diff --git a/go.mod b/go.mod index 09373849f..a01be2c44 100644 --- a/go.mod +++ b/go.mod @@ -43,7 +43,6 @@ require ( github.com/go-faster/errors v0.6.1 // indirect github.com/go-faster/jx v0.40.0 // indirect github.com/go-faster/yamlx v0.4.1 // indirect - github.com/google/addlicense v1.1.1 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/gorilla/websocket v1.5.0 // indirect github.com/hashicorp/errwrap v1.0.0 // indirect diff --git a/go.sum b/go.sum index 3fde260ed..9061a6b5f 100644 --- a/go.sum +++ b/go.sum @@ -34,8 +34,6 @@ github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/bmatcuk/doublestar/v4 v4.0.2 h1:X0krlUVAVmtr2cRoTqR8aDMrDqnB36ht8wpWTiQ3jsA= -github.com/bmatcuk/doublestar/v4 v4.0.2/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -76,8 +74,6 @@ github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QD github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/google/addlicense v1.1.1 h1:jpVf9qPbU8rz5MxKo7d+RMcNHkqxi4YJi/laauX4aAE= -github.com/google/addlicense v1.1.1/go.mod h1:Sm/DHu7Jk+T5miFHHehdIjbi4M5+dJDRS3Cq0rncIxA= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=