Documentation
¶
Index ¶
- Variables
- type Category
- type Character
- func (*Character) Argument() graphql.FieldConfigArgument
- func (*Character) Descriptor() ([]byte, []int)deprecated
- func (x *Character) GetName() string
- func (x *Character) GetRole() string
- func (*Character) Object() *graphql.Object
- func (*Character) Output() graphql.Output
- func (*Character) ProtoMessage()
- func (x *Character) ProtoReflect() protoreflect.Message
- func (x *Character) Reset()
- func (*Character) Schema() map[string]interface{}
- func (x *Character) String() string
- func (o *Character) UnmarshalJSON(b []byte) error
- func (o *Character) UnmarshalMap(values map[string]interface{})
- func (m *Character) Validate() error
- func (m *Character) ValidateAll() error
- type CharacterMultiError
- type CharacterValidationError
Constants ¶
This section is empty.
Variables ¶
var ( Category_name = map[int32]string{ 0: "CATEGORY_UNSPECIFIED", 1: "CATEGORY_DRAMA", 2: "CATEGORY_HORROR", } Category_value = map[string]int32{ "CATEGORY_UNSPECIFIED": 0, "CATEGORY_DRAMA": 1, "CATEGORY_HORROR": 2, } )
Enum value maps for Category.
var Category_Enum = graphql.NewEnum(graphql.EnumConfig{ Name: "Category", Values: graphql.EnumValueConfigMap{ "CATEGORY_UNSPECIFIED": &graphql.EnumValueConfig{Value: Category_CATEGORY_UNSPECIFIED}, "CATEGORY_DRAMA": &graphql.EnumValueConfig{Value: Category_CATEGORY_DRAMA}, "CATEGORY_HORROR": &graphql.EnumValueConfig{Value: Category_CATEGORY_HORROR}, }, })
var Character_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "Character_Input", Fields: graphql.InputObjectConfigFieldMap{ "name": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, "role": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, }, })
var Character_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Character", Fields: graphql.Fields{ "name": &graphql.Field{ Type: graphql.String, }, "role": &graphql.Field{ Type: graphql.String, }, }, Description: "", })
var File_common_v1_common_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category int32
func (Category) Descriptor ¶
func (Category) Descriptor() protoreflect.EnumDescriptor
func (Category) EnumDescriptor
deprecated
func (Category) Number ¶
func (x Category) Number() protoreflect.EnumNumber
func (Category) Type ¶
func (Category) Type() protoreflect.EnumType
type Character ¶
type Character struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*Character) Descriptor
deprecated
func (*Character) ProtoMessage ¶
func (*Character) ProtoMessage()
func (*Character) ProtoReflect ¶
func (x *Character) ProtoReflect() protoreflect.Message
func (*Character) UnmarshalJSON ¶
UnmarshalJSON ...
func (*Character) UnmarshalMap ¶
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Character) Validate ¶ added in v0.4.44
Validate checks the field values on Character with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Character) ValidateAll ¶ added in v0.4.44
ValidateAll checks the field values on Character with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CharacterMultiError, or nil if none found.
type CharacterMultiError ¶ added in v0.4.44
type CharacterMultiError []error
CharacterMultiError is an error wrapping multiple validation errors returned by Character.ValidateAll() if the designated constraints aren't met.
func (CharacterMultiError) AllErrors ¶ added in v0.4.44
func (m CharacterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CharacterMultiError) Error ¶ added in v0.4.44
func (m CharacterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CharacterValidationError ¶ added in v0.4.44
type CharacterValidationError struct {
// contains filtered or unexported fields
}
CharacterValidationError is the validation error returned by Character.Validate if the designated constraints aren't met.
func (CharacterValidationError) Cause ¶ added in v0.4.44
func (e CharacterValidationError) Cause() error
Cause function returns cause value.
func (CharacterValidationError) Error ¶ added in v0.4.44
func (e CharacterValidationError) Error() string
Error satisfies the builtin error interface
func (CharacterValidationError) ErrorName ¶ added in v0.4.44
func (e CharacterValidationError) ErrorName() string
ErrorName returns error name.
func (CharacterValidationError) Field ¶ added in v0.4.44
func (e CharacterValidationError) Field() string
Field function returns field value.
func (CharacterValidationError) Key ¶ added in v0.4.44
func (e CharacterValidationError) Key() bool
Key function returns key value.
func (CharacterValidationError) Reason ¶ added in v0.4.44
func (e CharacterValidationError) Reason() string
Reason function returns reason value.