Documentation ¶
Overview ¶
Package profile プロフィール作成リクエスト
Package profile プロフィール作成レスポンス ¶
Package profile プロフィール取得リクエスト ¶
Package profile プロフィール作成レスポンス ¶
Package profile プロフィール更新リクエスト ¶
Package profile プロフィール更新レスポンス
Index ¶
- Constants
- Variables
- func RegisterProfileServer(s grpc.ServiceRegistrar, srv ProfileServer)
- type ProfileClient
- type ProfileCreateRequest
- func (*ProfileCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileCreateRequest) GetContent() string
- func (x *ProfileCreateRequest) GetName() string
- func (x *ProfileCreateRequest) GetUserId() string
- func (*ProfileCreateRequest) ProtoMessage()
- func (x *ProfileCreateRequest) ProtoReflect() protoreflect.Message
- func (x *ProfileCreateRequest) Reset()
- func (x *ProfileCreateRequest) String() string
- type ProfileCreateRequests
- type ProfileCreateResponse
- func (*ProfileCreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileCreateResponse) GetUserProfile() *userProfile.UserProfile
- func (*ProfileCreateResponse) ProtoMessage()
- func (x *ProfileCreateResponse) ProtoReflect() protoreflect.Message
- func (x *ProfileCreateResponse) Reset()
- func (x *ProfileCreateResponse) String() string
- type ProfileCreateResponses
- type ProfileGetRequest
- type ProfileGetRequests
- type ProfileGetResponse
- func (*ProfileGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileGetResponse) GetUserProfile() *userProfile.UserProfile
- func (*ProfileGetResponse) ProtoMessage()
- func (x *ProfileGetResponse) ProtoReflect() protoreflect.Message
- func (x *ProfileGetResponse) Reset()
- func (x *ProfileGetResponse) String() string
- type ProfileGetResponses
- type ProfileServer
- type ProfileUpdateRequest
- func (*ProfileUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileUpdateRequest) GetContent() string
- func (x *ProfileUpdateRequest) GetName() string
- func (x *ProfileUpdateRequest) GetUserId() string
- func (*ProfileUpdateRequest) ProtoMessage()
- func (x *ProfileUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *ProfileUpdateRequest) Reset()
- func (x *ProfileUpdateRequest) String() string
- type ProfileUpdateRequests
- type ProfileUpdateResponse
- func (*ProfileUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileUpdateResponse) GetUserProfile() *userProfile.UserProfile
- func (*ProfileUpdateResponse) ProtoMessage()
- func (x *ProfileUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *ProfileUpdateResponse) Reset()
- func (x *ProfileUpdateResponse) String() string
- type ProfileUpdateResponses
- type UnimplementedProfileServer
- func (UnimplementedProfileServer) Create(context.Context, *ProfileCreateRequest) (*ProfileCreateResponse, error)
- func (UnimplementedProfileServer) Get(context.Context, *ProfileGetRequest) (*ProfileGetResponse, error)
- func (UnimplementedProfileServer) Update(context.Context, *ProfileUpdateRequest) (*ProfileUpdateResponse, error)
- type UnsafeProfileServer
Constants ¶
const ( Profile_Get_FullMethodName = "/api.game.Profile/Get" Profile_Create_FullMethodName = "/api.game.Profile/Create" Profile_Update_FullMethodName = "/api.game.Profile/Update" )
Variables ¶
var File_profile_profile_create_request_proto protoreflect.FileDescriptor
var File_profile_profile_create_response_proto protoreflect.FileDescriptor
var File_profile_profile_get_request_proto protoreflect.FileDescriptor
var File_profile_profile_get_response_proto protoreflect.FileDescriptor
var File_profile_profile_handler_proto protoreflect.FileDescriptor
var File_profile_profile_update_request_proto protoreflect.FileDescriptor
var File_profile_profile_update_response_proto protoreflect.FileDescriptor
var Profile_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.game.Profile", HandlerType: (*ProfileServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _Profile_Get_Handler, }, { MethodName: "Create", Handler: _Profile_Create_Handler, }, { MethodName: "Update", Handler: _Profile_Update_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "profile/profile_handler.proto", }
Profile_ServiceDesc is the grpc.ServiceDesc for Profile service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProfileServer ¶
func RegisterProfileServer(s grpc.ServiceRegistrar, srv ProfileServer)
Types ¶
type ProfileClient ¶
type ProfileClient interface { Get(ctx context.Context, in *ProfileGetRequest, opts ...grpc.CallOption) (*ProfileGetResponse, error) Create(ctx context.Context, in *ProfileCreateRequest, opts ...grpc.CallOption) (*ProfileCreateResponse, error) Update(ctx context.Context, in *ProfileUpdateRequest, opts ...grpc.CallOption) (*ProfileUpdateResponse, error) }
ProfileClient is the client API for Profile 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.
func NewProfileClient ¶
func NewProfileClient(cc grpc.ClientConnInterface) ProfileClient
type ProfileCreateRequest ¶
type ProfileCreateRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func NewProfileCreateRequest ¶
func NewProfileCreateRequest() *ProfileCreateRequest
func SetProfileCreateRequest ¶
func SetProfileCreateRequest(userId string, name string, content string) *ProfileCreateRequest
func (*ProfileCreateRequest) Descriptor
deprecated
func (*ProfileCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProfileCreateRequest.ProtoReflect.Descriptor instead.
func (*ProfileCreateRequest) GetContent ¶
func (x *ProfileCreateRequest) GetContent() string
func (*ProfileCreateRequest) GetName ¶
func (x *ProfileCreateRequest) GetName() string
func (*ProfileCreateRequest) GetUserId ¶
func (x *ProfileCreateRequest) GetUserId() string
func (*ProfileCreateRequest) ProtoMessage ¶
func (*ProfileCreateRequest) ProtoMessage()
func (*ProfileCreateRequest) ProtoReflect ¶
func (x *ProfileCreateRequest) ProtoReflect() protoreflect.Message
func (*ProfileCreateRequest) Reset ¶
func (x *ProfileCreateRequest) Reset()
func (*ProfileCreateRequest) String ¶
func (x *ProfileCreateRequest) String() string
type ProfileCreateRequests ¶
type ProfileCreateRequests []*ProfileCreateRequest
func NewProfileCreateRequests ¶
func NewProfileCreateRequests() ProfileCreateRequests
type ProfileCreateResponse ¶
type ProfileCreateResponse struct { UserProfile *userProfile.UserProfile `protobuf:"bytes,1,opt,name=user_profile,json=userProfile,proto3,oneof" json:"user_profile,omitempty"` // contains filtered or unexported fields }
func NewProfileCreateResponse ¶
func NewProfileCreateResponse() *ProfileCreateResponse
func SetProfileCreateResponse ¶
func SetProfileCreateResponse(userProfile *userProfile.UserProfile) *ProfileCreateResponse
func (*ProfileCreateResponse) Descriptor
deprecated
func (*ProfileCreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProfileCreateResponse.ProtoReflect.Descriptor instead.
func (*ProfileCreateResponse) GetUserProfile ¶
func (x *ProfileCreateResponse) GetUserProfile() *userProfile.UserProfile
func (*ProfileCreateResponse) ProtoMessage ¶
func (*ProfileCreateResponse) ProtoMessage()
func (*ProfileCreateResponse) ProtoReflect ¶
func (x *ProfileCreateResponse) ProtoReflect() protoreflect.Message
func (*ProfileCreateResponse) Reset ¶
func (x *ProfileCreateResponse) Reset()
func (*ProfileCreateResponse) String ¶
func (x *ProfileCreateResponse) String() string
type ProfileCreateResponses ¶
type ProfileCreateResponses []*ProfileCreateResponse
func NewProfileCreateResponses ¶
func NewProfileCreateResponses() ProfileCreateResponses
type ProfileGetRequest ¶
type ProfileGetRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func NewProfileGetRequest ¶
func NewProfileGetRequest() *ProfileGetRequest
func SetProfileGetRequest ¶
func SetProfileGetRequest(userId string) *ProfileGetRequest
func (*ProfileGetRequest) Descriptor
deprecated
func (*ProfileGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProfileGetRequest.ProtoReflect.Descriptor instead.
func (*ProfileGetRequest) GetUserId ¶
func (x *ProfileGetRequest) GetUserId() string
func (*ProfileGetRequest) ProtoMessage ¶
func (*ProfileGetRequest) ProtoMessage()
func (*ProfileGetRequest) ProtoReflect ¶
func (x *ProfileGetRequest) ProtoReflect() protoreflect.Message
func (*ProfileGetRequest) Reset ¶
func (x *ProfileGetRequest) Reset()
func (*ProfileGetRequest) String ¶
func (x *ProfileGetRequest) String() string
type ProfileGetRequests ¶
type ProfileGetRequests []*ProfileGetRequest
func NewProfileGetRequests ¶
func NewProfileGetRequests() ProfileGetRequests
type ProfileGetResponse ¶
type ProfileGetResponse struct { UserProfile *userProfile.UserProfile `protobuf:"bytes,1,opt,name=user_profile,json=userProfile,proto3,oneof" json:"user_profile,omitempty"` // contains filtered or unexported fields }
func NewProfileGetResponse ¶
func NewProfileGetResponse() *ProfileGetResponse
func SetProfileGetResponse ¶
func SetProfileGetResponse(userProfile *userProfile.UserProfile) *ProfileGetResponse
func (*ProfileGetResponse) Descriptor
deprecated
func (*ProfileGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProfileGetResponse.ProtoReflect.Descriptor instead.
func (*ProfileGetResponse) GetUserProfile ¶
func (x *ProfileGetResponse) GetUserProfile() *userProfile.UserProfile
func (*ProfileGetResponse) ProtoMessage ¶
func (*ProfileGetResponse) ProtoMessage()
func (*ProfileGetResponse) ProtoReflect ¶
func (x *ProfileGetResponse) ProtoReflect() protoreflect.Message
func (*ProfileGetResponse) Reset ¶
func (x *ProfileGetResponse) Reset()
func (*ProfileGetResponse) String ¶
func (x *ProfileGetResponse) String() string
type ProfileGetResponses ¶
type ProfileGetResponses []*ProfileGetResponse
func NewProfileGetResponses ¶
func NewProfileGetResponses() ProfileGetResponses
type ProfileServer ¶
type ProfileServer interface { Get(context.Context, *ProfileGetRequest) (*ProfileGetResponse, error) Create(context.Context, *ProfileCreateRequest) (*ProfileCreateResponse, error) Update(context.Context, *ProfileUpdateRequest) (*ProfileUpdateResponse, error) }
ProfileServer is the server API for Profile service. All implementations should embed UnimplementedProfileServer for forward compatibility
type ProfileUpdateRequest ¶
type ProfileUpdateRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func NewProfileUpdateRequest ¶
func NewProfileUpdateRequest() *ProfileUpdateRequest
func SetProfileUpdateRequest ¶
func SetProfileUpdateRequest(userId string, name string, content string) *ProfileUpdateRequest
func (*ProfileUpdateRequest) Descriptor
deprecated
func (*ProfileUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProfileUpdateRequest.ProtoReflect.Descriptor instead.
func (*ProfileUpdateRequest) GetContent ¶
func (x *ProfileUpdateRequest) GetContent() string
func (*ProfileUpdateRequest) GetName ¶
func (x *ProfileUpdateRequest) GetName() string
func (*ProfileUpdateRequest) GetUserId ¶
func (x *ProfileUpdateRequest) GetUserId() string
func (*ProfileUpdateRequest) ProtoMessage ¶
func (*ProfileUpdateRequest) ProtoMessage()
func (*ProfileUpdateRequest) ProtoReflect ¶
func (x *ProfileUpdateRequest) ProtoReflect() protoreflect.Message
func (*ProfileUpdateRequest) Reset ¶
func (x *ProfileUpdateRequest) Reset()
func (*ProfileUpdateRequest) String ¶
func (x *ProfileUpdateRequest) String() string
type ProfileUpdateRequests ¶
type ProfileUpdateRequests []*ProfileUpdateRequest
func NewProfileUpdateRequests ¶
func NewProfileUpdateRequests() ProfileUpdateRequests
type ProfileUpdateResponse ¶
type ProfileUpdateResponse struct { UserProfile *userProfile.UserProfile `protobuf:"bytes,1,opt,name=user_profile,json=userProfile,proto3,oneof" json:"user_profile,omitempty"` // contains filtered or unexported fields }
func NewProfileUpdateResponse ¶
func NewProfileUpdateResponse() *ProfileUpdateResponse
func SetProfileUpdateResponse ¶
func SetProfileUpdateResponse(userProfile *userProfile.UserProfile) *ProfileUpdateResponse
func (*ProfileUpdateResponse) Descriptor
deprecated
func (*ProfileUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProfileUpdateResponse.ProtoReflect.Descriptor instead.
func (*ProfileUpdateResponse) GetUserProfile ¶
func (x *ProfileUpdateResponse) GetUserProfile() *userProfile.UserProfile
func (*ProfileUpdateResponse) ProtoMessage ¶
func (*ProfileUpdateResponse) ProtoMessage()
func (*ProfileUpdateResponse) ProtoReflect ¶
func (x *ProfileUpdateResponse) ProtoReflect() protoreflect.Message
func (*ProfileUpdateResponse) Reset ¶
func (x *ProfileUpdateResponse) Reset()
func (*ProfileUpdateResponse) String ¶
func (x *ProfileUpdateResponse) String() string
type ProfileUpdateResponses ¶
type ProfileUpdateResponses []*ProfileUpdateResponse
func NewProfileUpdateResponses ¶
func NewProfileUpdateResponses() ProfileUpdateResponses
type UnimplementedProfileServer ¶
type UnimplementedProfileServer struct { }
UnimplementedProfileServer should be embedded to have forward compatible implementations.
func (UnimplementedProfileServer) Create ¶
func (UnimplementedProfileServer) Create(context.Context, *ProfileCreateRequest) (*ProfileCreateResponse, error)
func (UnimplementedProfileServer) Get ¶
func (UnimplementedProfileServer) Get(context.Context, *ProfileGetRequest) (*ProfileGetResponse, error)
func (UnimplementedProfileServer) Update ¶
func (UnimplementedProfileServer) Update(context.Context, *ProfileUpdateRequest) (*ProfileUpdateResponse, error)
type UnsafeProfileServer ¶
type UnsafeProfileServer interface {
// contains filtered or unexported methods
}
UnsafeProfileServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileServer will result in compilation errors.
Source Files ¶
- profile_create_request.gen.go
- profile_create_request.pb.go
- profile_create_response.gen.go
- profile_create_response.pb.go
- profile_get_request.gen.go
- profile_get_request.pb.go
- profile_get_response.gen.go
- profile_get_response.pb.go
- profile_handler.pb.go
- profile_handler_grpc.pb.go
- profile_update_request.gen.go
- profile_update_request.pb.go
- profile_update_response.gen.go
- profile_update_response.pb.go