entpb

package
v0.0.0-...-c5055fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-entgrpc. DO NOT EDIT.

Code generated by protoc-gen-entgrpc. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	GetAbilityScoreRequest_View_name = map[int32]string{
		0: "VIEW_UNSPECIFIED",
		1: "BASIC",
		2: "WITH_EDGE_IDS",
	}
	GetAbilityScoreRequest_View_value = map[string]int32{
		"VIEW_UNSPECIFIED": 0,
		"BASIC":            1,
		"WITH_EDGE_IDS":    2,
	}
)

Enum value maps for GetAbilityScoreRequest_View.

View Source
var (
	ListAbilityScoreRequest_View_name = map[int32]string{
		0: "VIEW_UNSPECIFIED",
		1: "BASIC",
		2: "WITH_EDGE_IDS",
	}
	ListAbilityScoreRequest_View_value = map[string]int32{
		"VIEW_UNSPECIFIED": 0,
		"BASIC":            1,
		"WITH_EDGE_IDS":    2,
	}
)

Enum value maps for ListAbilityScoreRequest_View.

View Source
var (
	GetSkillRequest_View_name = map[int32]string{
		0: "VIEW_UNSPECIFIED",
		1: "BASIC",
		2: "WITH_EDGE_IDS",
	}
	GetSkillRequest_View_value = map[string]int32{
		"VIEW_UNSPECIFIED": 0,
		"BASIC":            1,
		"WITH_EDGE_IDS":    2,
	}
)

Enum value maps for GetSkillRequest_View.

View Source
var (
	ListSkillRequest_View_name = map[int32]string{
		0: "VIEW_UNSPECIFIED",
		1: "BASIC",
		2: "WITH_EDGE_IDS",
	}
	ListSkillRequest_View_value = map[string]int32{
		"VIEW_UNSPECIFIED": 0,
		"BASIC":            1,
		"WITH_EDGE_IDS":    2,
	}
)

Enum value maps for ListSkillRequest_View.

View Source
var AbilityScoreService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "entpb.AbilityScoreService",
	HandlerType: (*AbilityScoreServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _AbilityScoreService_Create_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _AbilityScoreService_Get_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _AbilityScoreService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _AbilityScoreService_Delete_Handler,
		},
		{
			MethodName: "List",
			Handler:    _AbilityScoreService_List_Handler,
		},
		{
			MethodName: "BatchCreate",
			Handler:    _AbilityScoreService_BatchCreate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "entpb/entpb.proto",
}

AbilityScoreService_ServiceDesc is the grpc.ServiceDesc for AbilityScoreService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_entpb_entpb_proto protoreflect.FileDescriptor
View Source
var SkillService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "entpb.SkillService",
	HandlerType: (*SkillServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _SkillService_Create_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _SkillService_Get_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _SkillService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _SkillService_Delete_Handler,
		},
		{
			MethodName: "List",
			Handler:    _SkillService_List_Handler,
		},
		{
			MethodName: "BatchCreate",
			Handler:    _SkillService_BatchCreate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "entpb/entpb.proto",
}

SkillService_ServiceDesc is the grpc.ServiceDesc for SkillService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAbilityScoreServiceServer

func RegisterAbilityScoreServiceServer(s grpc.ServiceRegistrar, srv AbilityScoreServiceServer)

func RegisterSkillServiceServer

func RegisterSkillServiceServer(s grpc.ServiceRegistrar, srv SkillServiceServer)

Types

type AbilityBonus

type AbilityBonus struct {
	Id           int64           `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Value        int64           `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	AbilityScore []*AbilityScore `protobuf:"bytes,3,rep,name=ability_score,json=abilityScore,proto3" json:"ability_score,omitempty"`
	// contains filtered or unexported fields
}

func (*AbilityBonus) Descriptor deprecated

func (*AbilityBonus) Descriptor() ([]byte, []int)

Deprecated: Use AbilityBonus.ProtoReflect.Descriptor instead.

func (*AbilityBonus) GetAbilityScore

func (x *AbilityBonus) GetAbilityScore() []*AbilityScore

func (*AbilityBonus) GetId

func (x *AbilityBonus) GetId() int64

func (*AbilityBonus) GetValue

func (x *AbilityBonus) GetValue() int64

func (*AbilityBonus) ProtoMessage

func (*AbilityBonus) ProtoMessage()

func (*AbilityBonus) ProtoReflect

func (x *AbilityBonus) ProtoReflect() protoreflect.Message

func (*AbilityBonus) Reset

func (x *AbilityBonus) Reset()

func (*AbilityBonus) String

func (x *AbilityBonus) String() string

type AbilityScore

type AbilityScore struct {
	Id           int64           `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Indx         string          `protobuf:"bytes,2,opt,name=indx,proto3" json:"indx,omitempty"`
	Name         string          `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	FullName     string          `protobuf:"bytes,4,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	Desc         []string        `protobuf:"bytes,5,rep,name=desc,proto3" json:"desc,omitempty"`
	Skills       []*Skill        `protobuf:"bytes,6,rep,name=skills,proto3" json:"skills,omitempty"`
	AbilityBonus []*AbilityBonus `protobuf:"bytes,7,rep,name=ability_bonus,json=abilityBonus,proto3" json:"ability_bonus,omitempty"`
	// contains filtered or unexported fields
}

func (*AbilityScore) Descriptor deprecated

func (*AbilityScore) Descriptor() ([]byte, []int)

Deprecated: Use AbilityScore.ProtoReflect.Descriptor instead.

func (*AbilityScore) GetAbilityBonus

func (x *AbilityScore) GetAbilityBonus() []*AbilityBonus

func (*AbilityScore) GetDesc

func (x *AbilityScore) GetDesc() []string

func (*AbilityScore) GetFullName

func (x *AbilityScore) GetFullName() string

func (*AbilityScore) GetId

func (x *AbilityScore) GetId() int64

func (*AbilityScore) GetIndx

func (x *AbilityScore) GetIndx() string

func (*AbilityScore) GetName

func (x *AbilityScore) GetName() string

func (*AbilityScore) GetSkills

func (x *AbilityScore) GetSkills() []*Skill

func (*AbilityScore) ProtoMessage

func (*AbilityScore) ProtoMessage()

func (*AbilityScore) ProtoReflect

func (x *AbilityScore) ProtoReflect() protoreflect.Message

func (*AbilityScore) Reset

func (x *AbilityScore) Reset()

func (*AbilityScore) String

func (x *AbilityScore) String() string

type AbilityScoreService

type AbilityScoreService struct {
	UnimplementedAbilityScoreServiceServer
	// contains filtered or unexported fields
}

AbilityScoreService implements AbilityScoreServiceServer

func NewAbilityScoreService

func NewAbilityScoreService(client *ent.Client) *AbilityScoreService

NewAbilityScoreService returns a new AbilityScoreService

func (*AbilityScoreService) BatchCreate

BatchCreate implements AbilityScoreServiceServer.BatchCreate

func (*AbilityScoreService) Create

Create implements AbilityScoreServiceServer.Create

func (*AbilityScoreService) Delete

Delete implements AbilityScoreServiceServer.Delete

func (*AbilityScoreService) Get

Get implements AbilityScoreServiceServer.Get

func (*AbilityScoreService) List

List implements AbilityScoreServiceServer.List

func (*AbilityScoreService) Update

Update implements AbilityScoreServiceServer.Update

type AbilityScoreServiceClient

AbilityScoreServiceClient is the client API for AbilityScoreService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AbilityScoreServiceServer

AbilityScoreServiceServer is the server API for AbilityScoreService service. All implementations must embed UnimplementedAbilityScoreServiceServer for forward compatibility

type BatchCreateAbilityScoresRequest

type BatchCreateAbilityScoresRequest struct {
	Requests []*CreateAbilityScoreRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateAbilityScoresRequest) Descriptor deprecated

func (*BatchCreateAbilityScoresRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchCreateAbilityScoresRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateAbilityScoresRequest) GetRequests

func (*BatchCreateAbilityScoresRequest) ProtoMessage

func (*BatchCreateAbilityScoresRequest) ProtoMessage()

func (*BatchCreateAbilityScoresRequest) ProtoReflect

func (*BatchCreateAbilityScoresRequest) Reset

func (*BatchCreateAbilityScoresRequest) String

type BatchCreateAbilityScoresResponse

type BatchCreateAbilityScoresResponse struct {
	AbilityScores []*AbilityScore `protobuf:"bytes,1,rep,name=ability_scores,json=abilityScores,proto3" json:"ability_scores,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateAbilityScoresResponse) Descriptor deprecated

func (*BatchCreateAbilityScoresResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchCreateAbilityScoresResponse.ProtoReflect.Descriptor instead.

func (*BatchCreateAbilityScoresResponse) GetAbilityScores

func (x *BatchCreateAbilityScoresResponse) GetAbilityScores() []*AbilityScore

func (*BatchCreateAbilityScoresResponse) ProtoMessage

func (*BatchCreateAbilityScoresResponse) ProtoMessage()

func (*BatchCreateAbilityScoresResponse) ProtoReflect

func (*BatchCreateAbilityScoresResponse) Reset

func (*BatchCreateAbilityScoresResponse) String

type BatchCreateSkillsRequest

type BatchCreateSkillsRequest struct {
	Requests []*CreateSkillRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateSkillsRequest) Descriptor deprecated

func (*BatchCreateSkillsRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchCreateSkillsRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateSkillsRequest) GetRequests

func (x *BatchCreateSkillsRequest) GetRequests() []*CreateSkillRequest

func (*BatchCreateSkillsRequest) ProtoMessage

func (*BatchCreateSkillsRequest) ProtoMessage()

func (*BatchCreateSkillsRequest) ProtoReflect

func (x *BatchCreateSkillsRequest) ProtoReflect() protoreflect.Message

func (*BatchCreateSkillsRequest) Reset

func (x *BatchCreateSkillsRequest) Reset()

func (*BatchCreateSkillsRequest) String

func (x *BatchCreateSkillsRequest) String() string

type BatchCreateSkillsResponse

type BatchCreateSkillsResponse struct {
	Skills []*Skill `protobuf:"bytes,1,rep,name=skills,proto3" json:"skills,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateSkillsResponse) Descriptor deprecated

func (*BatchCreateSkillsResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchCreateSkillsResponse.ProtoReflect.Descriptor instead.

func (*BatchCreateSkillsResponse) GetSkills

func (x *BatchCreateSkillsResponse) GetSkills() []*Skill

func (*BatchCreateSkillsResponse) ProtoMessage

func (*BatchCreateSkillsResponse) ProtoMessage()

func (*BatchCreateSkillsResponse) ProtoReflect

func (*BatchCreateSkillsResponse) Reset

func (x *BatchCreateSkillsResponse) Reset()

func (*BatchCreateSkillsResponse) String

func (x *BatchCreateSkillsResponse) String() string

type CreateAbilityScoreRequest

type CreateAbilityScoreRequest struct {
	AbilityScore *AbilityScore `protobuf:"bytes,1,opt,name=ability_score,json=abilityScore,proto3" json:"ability_score,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAbilityScoreRequest) Descriptor deprecated

func (*CreateAbilityScoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAbilityScoreRequest.ProtoReflect.Descriptor instead.

func (*CreateAbilityScoreRequest) GetAbilityScore

func (x *CreateAbilityScoreRequest) GetAbilityScore() *AbilityScore

func (*CreateAbilityScoreRequest) ProtoMessage

func (*CreateAbilityScoreRequest) ProtoMessage()

func (*CreateAbilityScoreRequest) ProtoReflect

func (*CreateAbilityScoreRequest) Reset

func (x *CreateAbilityScoreRequest) Reset()

func (*CreateAbilityScoreRequest) String

func (x *CreateAbilityScoreRequest) String() string

type CreateSkillRequest

type CreateSkillRequest struct {
	Skill *Skill `protobuf:"bytes,1,opt,name=skill,proto3" json:"skill,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSkillRequest) Descriptor deprecated

func (*CreateSkillRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateSkillRequest.ProtoReflect.Descriptor instead.

func (*CreateSkillRequest) GetSkill

func (x *CreateSkillRequest) GetSkill() *Skill

func (*CreateSkillRequest) ProtoMessage

func (*CreateSkillRequest) ProtoMessage()

func (*CreateSkillRequest) ProtoReflect

func (x *CreateSkillRequest) ProtoReflect() protoreflect.Message

func (*CreateSkillRequest) Reset

func (x *CreateSkillRequest) Reset()

func (*CreateSkillRequest) String

func (x *CreateSkillRequest) String() string

type DeleteAbilityScoreRequest

type DeleteAbilityScoreRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAbilityScoreRequest) Descriptor deprecated

func (*DeleteAbilityScoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAbilityScoreRequest.ProtoReflect.Descriptor instead.

func (*DeleteAbilityScoreRequest) GetId

func (x *DeleteAbilityScoreRequest) GetId() int64

func (*DeleteAbilityScoreRequest) ProtoMessage

func (*DeleteAbilityScoreRequest) ProtoMessage()

func (*DeleteAbilityScoreRequest) ProtoReflect

func (*DeleteAbilityScoreRequest) Reset

func (x *DeleteAbilityScoreRequest) Reset()

func (*DeleteAbilityScoreRequest) String

func (x *DeleteAbilityScoreRequest) String() string

type DeleteSkillRequest

type DeleteSkillRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSkillRequest) Descriptor deprecated

func (*DeleteSkillRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteSkillRequest.ProtoReflect.Descriptor instead.

func (*DeleteSkillRequest) GetId

func (x *DeleteSkillRequest) GetId() int64

func (*DeleteSkillRequest) ProtoMessage

func (*DeleteSkillRequest) ProtoMessage()

func (*DeleteSkillRequest) ProtoReflect

func (x *DeleteSkillRequest) ProtoReflect() protoreflect.Message

func (*DeleteSkillRequest) Reset

func (x *DeleteSkillRequest) Reset()

func (*DeleteSkillRequest) String

func (x *DeleteSkillRequest) String() string

type GetAbilityScoreRequest

type GetAbilityScoreRequest struct {
	Id   int64                       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	View GetAbilityScoreRequest_View `protobuf:"varint,2,opt,name=view,proto3,enum=entpb.GetAbilityScoreRequest_View" json:"view,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAbilityScoreRequest) Descriptor deprecated

func (*GetAbilityScoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAbilityScoreRequest.ProtoReflect.Descriptor instead.

func (*GetAbilityScoreRequest) GetId

func (x *GetAbilityScoreRequest) GetId() int64

func (*GetAbilityScoreRequest) GetView

func (*GetAbilityScoreRequest) ProtoMessage

func (*GetAbilityScoreRequest) ProtoMessage()

func (*GetAbilityScoreRequest) ProtoReflect

func (x *GetAbilityScoreRequest) ProtoReflect() protoreflect.Message

func (*GetAbilityScoreRequest) Reset

func (x *GetAbilityScoreRequest) Reset()

func (*GetAbilityScoreRequest) String

func (x *GetAbilityScoreRequest) String() string

type GetAbilityScoreRequest_View

type GetAbilityScoreRequest_View int32
const (
	GetAbilityScoreRequest_VIEW_UNSPECIFIED GetAbilityScoreRequest_View = 0
	GetAbilityScoreRequest_BASIC            GetAbilityScoreRequest_View = 1
	GetAbilityScoreRequest_WITH_EDGE_IDS    GetAbilityScoreRequest_View = 2
)

func (GetAbilityScoreRequest_View) Descriptor

func (GetAbilityScoreRequest_View) Enum

func (GetAbilityScoreRequest_View) EnumDescriptor deprecated

func (GetAbilityScoreRequest_View) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetAbilityScoreRequest_View.Descriptor instead.

func (GetAbilityScoreRequest_View) Number

func (GetAbilityScoreRequest_View) String

func (GetAbilityScoreRequest_View) Type

type GetSkillRequest

type GetSkillRequest struct {
	Id   int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	View GetSkillRequest_View `protobuf:"varint,2,opt,name=view,proto3,enum=entpb.GetSkillRequest_View" json:"view,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSkillRequest) Descriptor deprecated

func (*GetSkillRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSkillRequest.ProtoReflect.Descriptor instead.

func (*GetSkillRequest) GetId

func (x *GetSkillRequest) GetId() int64

func (*GetSkillRequest) GetView

func (*GetSkillRequest) ProtoMessage

func (*GetSkillRequest) ProtoMessage()

func (*GetSkillRequest) ProtoReflect

func (x *GetSkillRequest) ProtoReflect() protoreflect.Message

func (*GetSkillRequest) Reset

func (x *GetSkillRequest) Reset()

func (*GetSkillRequest) String

func (x *GetSkillRequest) String() string

type GetSkillRequest_View

type GetSkillRequest_View int32
const (
	GetSkillRequest_VIEW_UNSPECIFIED GetSkillRequest_View = 0
	GetSkillRequest_BASIC            GetSkillRequest_View = 1
	GetSkillRequest_WITH_EDGE_IDS    GetSkillRequest_View = 2
)

func (GetSkillRequest_View) Descriptor

func (GetSkillRequest_View) Enum

func (GetSkillRequest_View) EnumDescriptor deprecated

func (GetSkillRequest_View) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetSkillRequest_View.Descriptor instead.

func (GetSkillRequest_View) Number

func (GetSkillRequest_View) String

func (x GetSkillRequest_View) String() string

func (GetSkillRequest_View) Type

type ListAbilityScoreRequest

type ListAbilityScoreRequest struct {
	PageSize  int32                        `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string                       `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	View      ListAbilityScoreRequest_View `protobuf:"varint,3,opt,name=view,proto3,enum=entpb.ListAbilityScoreRequest_View" json:"view,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAbilityScoreRequest) Descriptor deprecated

func (*ListAbilityScoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAbilityScoreRequest.ProtoReflect.Descriptor instead.

func (*ListAbilityScoreRequest) GetPageSize

func (x *ListAbilityScoreRequest) GetPageSize() int32

func (*ListAbilityScoreRequest) GetPageToken

func (x *ListAbilityScoreRequest) GetPageToken() string

func (*ListAbilityScoreRequest) GetView

func (*ListAbilityScoreRequest) ProtoMessage

func (*ListAbilityScoreRequest) ProtoMessage()

func (*ListAbilityScoreRequest) ProtoReflect

func (x *ListAbilityScoreRequest) ProtoReflect() protoreflect.Message

func (*ListAbilityScoreRequest) Reset

func (x *ListAbilityScoreRequest) Reset()

func (*ListAbilityScoreRequest) String

func (x *ListAbilityScoreRequest) String() string

type ListAbilityScoreRequest_View

type ListAbilityScoreRequest_View int32
const (
	ListAbilityScoreRequest_VIEW_UNSPECIFIED ListAbilityScoreRequest_View = 0
	ListAbilityScoreRequest_BASIC            ListAbilityScoreRequest_View = 1
	ListAbilityScoreRequest_WITH_EDGE_IDS    ListAbilityScoreRequest_View = 2
)

func (ListAbilityScoreRequest_View) Descriptor

func (ListAbilityScoreRequest_View) Enum

func (ListAbilityScoreRequest_View) EnumDescriptor deprecated

func (ListAbilityScoreRequest_View) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListAbilityScoreRequest_View.Descriptor instead.

func (ListAbilityScoreRequest_View) Number

func (ListAbilityScoreRequest_View) String

func (ListAbilityScoreRequest_View) Type

type ListAbilityScoreResponse

type ListAbilityScoreResponse struct {
	AbilityScoreList []*AbilityScore `protobuf:"bytes,1,rep,name=ability_score_list,json=abilityScoreList,proto3" json:"ability_score_list,omitempty"`
	NextPageToken    string          `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAbilityScoreResponse) Descriptor deprecated

func (*ListAbilityScoreResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAbilityScoreResponse.ProtoReflect.Descriptor instead.

func (*ListAbilityScoreResponse) GetAbilityScoreList

func (x *ListAbilityScoreResponse) GetAbilityScoreList() []*AbilityScore

func (*ListAbilityScoreResponse) GetNextPageToken

func (x *ListAbilityScoreResponse) GetNextPageToken() string

func (*ListAbilityScoreResponse) ProtoMessage

func (*ListAbilityScoreResponse) ProtoMessage()

func (*ListAbilityScoreResponse) ProtoReflect

func (x *ListAbilityScoreResponse) ProtoReflect() protoreflect.Message

func (*ListAbilityScoreResponse) Reset

func (x *ListAbilityScoreResponse) Reset()

func (*ListAbilityScoreResponse) String

func (x *ListAbilityScoreResponse) String() string

type ListSkillRequest

type ListSkillRequest struct {
	PageSize  int32                 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string                `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	View      ListSkillRequest_View `protobuf:"varint,3,opt,name=view,proto3,enum=entpb.ListSkillRequest_View" json:"view,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSkillRequest) Descriptor deprecated

func (*ListSkillRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSkillRequest.ProtoReflect.Descriptor instead.

func (*ListSkillRequest) GetPageSize

func (x *ListSkillRequest) GetPageSize() int32

func (*ListSkillRequest) GetPageToken

func (x *ListSkillRequest) GetPageToken() string

func (*ListSkillRequest) GetView

func (*ListSkillRequest) ProtoMessage

func (*ListSkillRequest) ProtoMessage()

func (*ListSkillRequest) ProtoReflect

func (x *ListSkillRequest) ProtoReflect() protoreflect.Message

func (*ListSkillRequest) Reset

func (x *ListSkillRequest) Reset()

func (*ListSkillRequest) String

func (x *ListSkillRequest) String() string

type ListSkillRequest_View

type ListSkillRequest_View int32
const (
	ListSkillRequest_VIEW_UNSPECIFIED ListSkillRequest_View = 0
	ListSkillRequest_BASIC            ListSkillRequest_View = 1
	ListSkillRequest_WITH_EDGE_IDS    ListSkillRequest_View = 2
)

func (ListSkillRequest_View) Descriptor

func (ListSkillRequest_View) Enum

func (ListSkillRequest_View) EnumDescriptor deprecated

func (ListSkillRequest_View) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListSkillRequest_View.Descriptor instead.

func (ListSkillRequest_View) Number

func (ListSkillRequest_View) String

func (x ListSkillRequest_View) String() string

func (ListSkillRequest_View) Type

type ListSkillResponse

type ListSkillResponse struct {
	SkillList     []*Skill `protobuf:"bytes,1,rep,name=skill_list,json=skillList,proto3" json:"skill_list,omitempty"`
	NextPageToken string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSkillResponse) Descriptor deprecated

func (*ListSkillResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSkillResponse.ProtoReflect.Descriptor instead.

func (*ListSkillResponse) GetNextPageToken

func (x *ListSkillResponse) GetNextPageToken() string

func (*ListSkillResponse) GetSkillList

func (x *ListSkillResponse) GetSkillList() []*Skill

func (*ListSkillResponse) ProtoMessage

func (*ListSkillResponse) ProtoMessage()

func (*ListSkillResponse) ProtoReflect

func (x *ListSkillResponse) ProtoReflect() protoreflect.Message

func (*ListSkillResponse) Reset

func (x *ListSkillResponse) Reset()

func (*ListSkillResponse) String

func (x *ListSkillResponse) String() string

type Skill

type Skill struct {
	Id           int64         `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Indx         string        `protobuf:"bytes,2,opt,name=indx,proto3" json:"indx,omitempty"`
	Name         string        `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Desc         []string      `protobuf:"bytes,4,rep,name=desc,proto3" json:"desc,omitempty"`
	AbilityScore *AbilityScore `protobuf:"bytes,5,opt,name=ability_score,json=abilityScore,proto3" json:"ability_score,omitempty"`
	// contains filtered or unexported fields
}

func (*Skill) Descriptor deprecated

func (*Skill) Descriptor() ([]byte, []int)

Deprecated: Use Skill.ProtoReflect.Descriptor instead.

func (*Skill) GetAbilityScore

func (x *Skill) GetAbilityScore() *AbilityScore

func (*Skill) GetDesc

func (x *Skill) GetDesc() []string

func (*Skill) GetId

func (x *Skill) GetId() int64

func (*Skill) GetIndx

func (x *Skill) GetIndx() string

func (*Skill) GetName

func (x *Skill) GetName() string

func (*Skill) ProtoMessage

func (*Skill) ProtoMessage()

func (*Skill) ProtoReflect

func (x *Skill) ProtoReflect() protoreflect.Message

func (*Skill) Reset

func (x *Skill) Reset()

func (*Skill) String

func (x *Skill) String() string

type SkillService

type SkillService struct {
	UnimplementedSkillServiceServer
	// contains filtered or unexported fields
}

SkillService implements SkillServiceServer

func NewSkillService

func NewSkillService(client *ent.Client) *SkillService

NewSkillService returns a new SkillService

func (*SkillService) BatchCreate

BatchCreate implements SkillServiceServer.BatchCreate

func (*SkillService) Create

func (svc *SkillService) Create(ctx context.Context, req *CreateSkillRequest) (*Skill, error)

Create implements SkillServiceServer.Create

func (*SkillService) Delete

func (svc *SkillService) Delete(ctx context.Context, req *DeleteSkillRequest) (*emptypb.Empty, error)

Delete implements SkillServiceServer.Delete

func (*SkillService) Get

func (svc *SkillService) Get(ctx context.Context, req *GetSkillRequest) (*Skill, error)

Get implements SkillServiceServer.Get

func (*SkillService) List

List implements SkillServiceServer.List

func (*SkillService) Update

func (svc *SkillService) Update(ctx context.Context, req *UpdateSkillRequest) (*Skill, error)

Update implements SkillServiceServer.Update

type SkillServiceClient

type SkillServiceClient interface {
	Create(ctx context.Context, in *CreateSkillRequest, opts ...grpc.CallOption) (*Skill, error)
	Get(ctx context.Context, in *GetSkillRequest, opts ...grpc.CallOption) (*Skill, error)
	Update(ctx context.Context, in *UpdateSkillRequest, opts ...grpc.CallOption) (*Skill, error)
	Delete(ctx context.Context, in *DeleteSkillRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	List(ctx context.Context, in *ListSkillRequest, opts ...grpc.CallOption) (*ListSkillResponse, error)
	BatchCreate(ctx context.Context, in *BatchCreateSkillsRequest, opts ...grpc.CallOption) (*BatchCreateSkillsResponse, error)
}

SkillServiceClient is the client API for SkillService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type SkillServiceServer

type SkillServiceServer interface {
	Create(context.Context, *CreateSkillRequest) (*Skill, error)
	Get(context.Context, *GetSkillRequest) (*Skill, error)
	Update(context.Context, *UpdateSkillRequest) (*Skill, error)
	Delete(context.Context, *DeleteSkillRequest) (*emptypb.Empty, error)
	List(context.Context, *ListSkillRequest) (*ListSkillResponse, error)
	BatchCreate(context.Context, *BatchCreateSkillsRequest) (*BatchCreateSkillsResponse, error)
	// contains filtered or unexported methods
}

SkillServiceServer is the server API for SkillService service. All implementations must embed UnimplementedSkillServiceServer for forward compatibility

type UnimplementedAbilityScoreServiceServer

type UnimplementedAbilityScoreServiceServer struct {
}

UnimplementedAbilityScoreServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAbilityScoreServiceServer) Create

func (UnimplementedAbilityScoreServiceServer) Delete

func (UnimplementedAbilityScoreServiceServer) Get

func (UnimplementedAbilityScoreServiceServer) List

func (UnimplementedAbilityScoreServiceServer) Update

type UnimplementedSkillServiceServer

type UnimplementedSkillServiceServer struct {
}

UnimplementedSkillServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSkillServiceServer) Create

func (UnimplementedSkillServiceServer) Delete

func (UnimplementedSkillServiceServer) Get

func (UnimplementedSkillServiceServer) List

func (UnimplementedSkillServiceServer) Update

type UnsafeAbilityScoreServiceServer

type UnsafeAbilityScoreServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAbilityScoreServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AbilityScoreServiceServer will result in compilation errors.

type UnsafeSkillServiceServer

type UnsafeSkillServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSkillServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SkillServiceServer will result in compilation errors.

type UpdateAbilityScoreRequest

type UpdateAbilityScoreRequest struct {
	AbilityScore *AbilityScore `protobuf:"bytes,1,opt,name=ability_score,json=abilityScore,proto3" json:"ability_score,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAbilityScoreRequest) Descriptor deprecated

func (*UpdateAbilityScoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAbilityScoreRequest.ProtoReflect.Descriptor instead.

func (*UpdateAbilityScoreRequest) GetAbilityScore

func (x *UpdateAbilityScoreRequest) GetAbilityScore() *AbilityScore

func (*UpdateAbilityScoreRequest) ProtoMessage

func (*UpdateAbilityScoreRequest) ProtoMessage()

func (*UpdateAbilityScoreRequest) ProtoReflect

func (*UpdateAbilityScoreRequest) Reset

func (x *UpdateAbilityScoreRequest) Reset()

func (*UpdateAbilityScoreRequest) String

func (x *UpdateAbilityScoreRequest) String() string

type UpdateSkillRequest

type UpdateSkillRequest struct {
	Skill *Skill `protobuf:"bytes,1,opt,name=skill,proto3" json:"skill,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSkillRequest) Descriptor deprecated

func (*UpdateSkillRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSkillRequest.ProtoReflect.Descriptor instead.

func (*UpdateSkillRequest) GetSkill

func (x *UpdateSkillRequest) GetSkill() *Skill

func (*UpdateSkillRequest) ProtoMessage

func (*UpdateSkillRequest) ProtoMessage()

func (*UpdateSkillRequest) ProtoReflect

func (x *UpdateSkillRequest) ProtoReflect() protoreflect.Message

func (*UpdateSkillRequest) Reset

func (x *UpdateSkillRequest) Reset()

func (*UpdateSkillRequest) String

func (x *UpdateSkillRequest) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL