Documentation
¶
Index ¶
- Variables
- type Book
- func (*Book) Argument() graphql.FieldConfigArgument
- func (*Book) Descriptor() ([]byte, []int)deprecated
- func (x *Book) GetAcademic() *Book_Academic
- func (x *Book) GetAdmin() bool
- func (x *Book) GetAuthor() string
- func (x *Book) GetBiography() *Book_Biography
- func (x *Book) GetBookPrice() map[string]int32
- func (x *Book) GetCategory() v1.Category
- func (x *Book) GetChapters() map[int32]string
- func (x *Book) GetCharacters() map[string]*v1.Character
- func (x *Book) GetClient() bool
- func (x *Book) GetGallery() [][]byte
- func (x *Book) GetKey() string
- func (x *Book) GetMainReview() *Book_Review
- func (x *Book) GetManager() bool
- func (x *Book) GetNovel() *Book_Novel
- func (x *Book) GetOther() string
- func (x *Book) GetPoetry() *Book_Poetry
- func (x *Book) GetPortrait() []byte
- func (x *Book) GetReviews() []*Book_Review
- func (m *Book) GetRole() isBook_Role
- func (x *Book) GetShortStory() *Book_ShortStory
- func (x *Book) GetTags() []string
- func (x *Book) GetTitle() string
- func (m *Book) GetType() isBook_Type
- func (*Book) Object() *graphql.Object
- func (*Book) Output() graphql.Output
- func (*Book) ProtoMessage()
- func (x *Book) ProtoReflect() protoreflect.Message
- func (x *Book) Reset()
- func (*Book) Schema() map[string]interface{}
- func (x *Book) String() string
- func (o *Book) UnmarshalJSON(b []byte) error
- func (o *Book) UnmarshalMap(values map[string]interface{})
- func (m *Book) Validate() error
- func (m *Book) ValidateAll() error
- type BookMultiError
- type BookValidationError
- type Book_Academic
- func (*Book_Academic) Argument() graphql.FieldConfigArgument
- func (*Book_Academic) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Academic) GetEdition() int32
- func (x *Book_Academic) GetSubject() string
- func (*Book_Academic) Object() *graphql.Object
- func (*Book_Academic) Output() graphql.Output
- func (*Book_Academic) ProtoMessage()
- func (x *Book_Academic) ProtoReflect() protoreflect.Message
- func (x *Book_Academic) Reset()
- func (*Book_Academic) Schema() map[string]interface{}
- func (x *Book_Academic) String() string
- func (o *Book_Academic) UnmarshalJSON(b []byte) error
- func (o *Book_Academic) UnmarshalMap(values map[string]interface{})
- func (m *Book_Academic) Validate() error
- func (m *Book_Academic) ValidateAll() error
- type Book_AcademicMultiError
- type Book_AcademicValidationError
- func (e Book_AcademicValidationError) Cause() error
- func (e Book_AcademicValidationError) Error() string
- func (e Book_AcademicValidationError) ErrorName() string
- func (e Book_AcademicValidationError) Field() string
- func (e Book_AcademicValidationError) Key() bool
- func (e Book_AcademicValidationError) Reason() string
- type Book_Academic_
- type Book_Admin
- type Book_Biography
- func (*Book_Biography) Argument() graphql.FieldConfigArgument
- func (*Book_Biography) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Biography) GetNotableAchievements() string
- func (x *Book_Biography) GetSubjectPerson() string
- func (*Book_Biography) Object() *graphql.Object
- func (*Book_Biography) Output() graphql.Output
- func (*Book_Biography) ProtoMessage()
- func (x *Book_Biography) ProtoReflect() protoreflect.Message
- func (x *Book_Biography) Reset()
- func (*Book_Biography) Schema() map[string]interface{}
- func (x *Book_Biography) String() string
- func (o *Book_Biography) UnmarshalJSON(b []byte) error
- func (o *Book_Biography) UnmarshalMap(values map[string]interface{})
- func (m *Book_Biography) Validate() error
- func (m *Book_Biography) ValidateAll() error
- type Book_BiographyMultiError
- type Book_BiographyValidationError
- func (e Book_BiographyValidationError) Cause() error
- func (e Book_BiographyValidationError) Error() string
- func (e Book_BiographyValidationError) ErrorName() string
- func (e Book_BiographyValidationError) Field() string
- func (e Book_BiographyValidationError) Key() bool
- func (e Book_BiographyValidationError) Reason() string
- type Book_Biography_
- type Book_Client
- type Book_Manager
- type Book_Novel
- func (*Book_Novel) Argument() graphql.FieldConfigArgument
- func (*Book_Novel) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Novel) GetGenre() string
- func (x *Book_Novel) GetPublicationYear() int32
- func (*Book_Novel) Object() *graphql.Object
- func (*Book_Novel) Output() graphql.Output
- func (*Book_Novel) ProtoMessage()
- func (x *Book_Novel) ProtoReflect() protoreflect.Message
- func (x *Book_Novel) Reset()
- func (*Book_Novel) Schema() map[string]interface{}
- func (x *Book_Novel) String() string
- func (o *Book_Novel) UnmarshalJSON(b []byte) error
- func (o *Book_Novel) UnmarshalMap(values map[string]interface{})
- func (m *Book_Novel) Validate() error
- func (m *Book_Novel) ValidateAll() error
- type Book_NovelMultiError
- type Book_NovelValidationError
- type Book_Novel_
- type Book_Other
- type Book_Poetry
- func (*Book_Poetry) Argument() graphql.FieldConfigArgument
- func (*Book_Poetry) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Poetry) GetIsAnthology() bool
- func (x *Book_Poetry) GetStyle() string
- func (*Book_Poetry) Object() *graphql.Object
- func (*Book_Poetry) Output() graphql.Output
- func (*Book_Poetry) ProtoMessage()
- func (x *Book_Poetry) ProtoReflect() protoreflect.Message
- func (x *Book_Poetry) Reset()
- func (*Book_Poetry) Schema() map[string]interface{}
- func (x *Book_Poetry) String() string
- func (o *Book_Poetry) UnmarshalJSON(b []byte) error
- func (o *Book_Poetry) UnmarshalMap(values map[string]interface{})
- func (m *Book_Poetry) Validate() error
- func (m *Book_Poetry) ValidateAll() error
- type Book_PoetryMultiError
- type Book_PoetryValidationError
- func (e Book_PoetryValidationError) Cause() error
- func (e Book_PoetryValidationError) Error() string
- func (e Book_PoetryValidationError) ErrorName() string
- func (e Book_PoetryValidationError) Field() string
- func (e Book_PoetryValidationError) Key() bool
- func (e Book_PoetryValidationError) Reason() string
- type Book_Poetry_
- type Book_Review
- func (*Book_Review) Argument() graphql.FieldConfigArgument
- func (*Book_Review) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Review) GetMessage() string
- func (x *Book_Review) GetUserName() string
- func (*Book_Review) Object() *graphql.Object
- func (*Book_Review) Output() graphql.Output
- func (*Book_Review) ProtoMessage()
- func (x *Book_Review) ProtoReflect() protoreflect.Message
- func (x *Book_Review) Reset()
- func (*Book_Review) Schema() map[string]interface{}
- func (x *Book_Review) String() string
- func (o *Book_Review) UnmarshalJSON(b []byte) error
- func (o *Book_Review) UnmarshalMap(values map[string]interface{})
- func (m *Book_Review) Validate() error
- func (m *Book_Review) ValidateAll() error
- type Book_ReviewMultiError
- type Book_ReviewValidationError
- func (e Book_ReviewValidationError) Cause() error
- func (e Book_ReviewValidationError) Error() string
- func (e Book_ReviewValidationError) ErrorName() string
- func (e Book_ReviewValidationError) Field() string
- func (e Book_ReviewValidationError) Key() bool
- func (e Book_ReviewValidationError) Reason() string
- type Book_ShortStory
- func (*Book_ShortStory) Argument() graphql.FieldConfigArgument
- func (*Book_ShortStory) Descriptor() ([]byte, []int)deprecated
- func (x *Book_ShortStory) GetIsCollection() bool
- func (x *Book_ShortStory) GetLengthPages() int32
- func (*Book_ShortStory) Object() *graphql.Object
- func (*Book_ShortStory) Output() graphql.Output
- func (*Book_ShortStory) ProtoMessage()
- func (x *Book_ShortStory) ProtoReflect() protoreflect.Message
- func (x *Book_ShortStory) Reset()
- func (*Book_ShortStory) Schema() map[string]interface{}
- func (x *Book_ShortStory) String() string
- func (o *Book_ShortStory) UnmarshalJSON(b []byte) error
- func (o *Book_ShortStory) UnmarshalMap(values map[string]interface{})
- func (m *Book_ShortStory) Validate() error
- func (m *Book_ShortStory) ValidateAll() error
- type Book_ShortStoryMultiError
- type Book_ShortStoryValidationError
- func (e Book_ShortStoryValidationError) Cause() error
- func (e Book_ShortStoryValidationError) Error() string
- func (e Book_ShortStoryValidationError) ErrorName() string
- func (e Book_ShortStoryValidationError) Field() string
- func (e Book_ShortStoryValidationError) Key() bool
- func (e Book_ShortStoryValidationError) Reason() string
- type Book_ShortStory_
- type Client
- func (*Client) Argument() graphql.FieldConfigArgument
- func (*Client) Descriptor() ([]byte, []int)deprecated
- func (x *Client) GetEmail() string
- func (x *Client) GetKey() string
- func (x *Client) GetMember() bool
- func (x *Client) GetName() string
- func (*Client) Object() *graphql.Object
- func (*Client) Output() graphql.Output
- func (*Client) ProtoMessage()
- func (x *Client) ProtoReflect() protoreflect.Message
- func (x *Client) Reset()
- func (*Client) Schema() map[string]interface{}
- func (x *Client) String() string
- func (o *Client) UnmarshalJSON(b []byte) error
- func (o *Client) UnmarshalMap(values map[string]interface{})
- func (m *Client) Validate() error
- func (m *Client) ValidateAll() error
- type ClientMultiError
- type ClientValidationError
- type DeleteBookRequest
- func (*DeleteBookRequest) Argument() graphql.FieldConfigArgument
- func (*DeleteBookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteBookRequest) GetKey() string
- func (*DeleteBookRequest) Object() *graphql.Object
- func (*DeleteBookRequest) Output() graphql.Output
- func (*DeleteBookRequest) ProtoMessage()
- func (x *DeleteBookRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteBookRequest) Reset()
- func (x *DeleteBookRequest) String() string
- func (m *DeleteBookRequest) Validate() error
- func (m *DeleteBookRequest) ValidateAll() error
- type DeleteBookRequestMultiError
- type DeleteBookRequestValidationError
- func (e DeleteBookRequestValidationError) Cause() error
- func (e DeleteBookRequestValidationError) Error() string
- func (e DeleteBookRequestValidationError) ErrorName() string
- func (e DeleteBookRequestValidationError) Field() string
- func (e DeleteBookRequestValidationError) Key() bool
- func (e DeleteBookRequestValidationError) Reason() string
- type Library
- func (*Library) Argument() graphql.FieldConfigArgument
- func (*Library) Descriptor() ([]byte, []int)deprecated
- func (x *Library) GetCategories() []v1.Category
- func (x *Library) GetCountry() v12.Country
- func (x *Library) GetKey() string
- func (x *Library) GetLocation() *v11.Location
- func (x *Library) GetName() string
- func (*Library) Object() *graphql.Object
- func (*Library) Output() graphql.Output
- func (*Library) ProtoMessage()
- func (x *Library) ProtoReflect() protoreflect.Message
- func (x *Library) Reset()
- func (*Library) Schema() map[string]interface{}
- func (x *Library) String() string
- func (o *Library) UnmarshalJSON(b []byte) error
- func (o *Library) UnmarshalMap(values map[string]interface{})
- func (m *Library) Validate() error
- func (m *Library) ValidateAll() error
- type LibraryMultiError
- type LibraryValidationError
- type ListBooksResponse
- func (*ListBooksResponse) Argument() graphql.FieldConfigArgument
- func (*ListBooksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBooksResponse) GetBooks() []*Book
- func (*ListBooksResponse) Object() *graphql.Object
- func (*ListBooksResponse) Output() graphql.Output
- func (*ListBooksResponse) ProtoMessage()
- func (x *ListBooksResponse) ProtoReflect() protoreflect.Message
- func (x *ListBooksResponse) Reset()
- func (x *ListBooksResponse) String() string
- func (m *ListBooksResponse) Validate() error
- func (m *ListBooksResponse) ValidateAll() error
- type ListBooksResponseMultiError
- type ListBooksResponseValidationError
- func (e ListBooksResponseValidationError) Cause() error
- func (e ListBooksResponseValidationError) Error() string
- func (e ListBooksResponseValidationError) ErrorName() string
- func (e ListBooksResponseValidationError) Field() string
- func (e ListBooksResponseValidationError) Key() bool
- func (e ListBooksResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var Book_Academic_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "Book_Academic_Input", Fields: graphql.InputObjectConfigFieldMap{ "subject": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, "edition": &graphql.InputObjectFieldConfig{ Type: graphql.Int, }, }, })
var Book_Academic_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Book_Academic", Fields: graphql.Fields{ "subject": &graphql.Field{ Type: graphql.String, }, "edition": &graphql.Field{ Type: graphql.Int, }, }, Description: "", })
var Book_Biography_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "Book_Biography_Input", Fields: graphql.InputObjectConfigFieldMap{ "subjectPerson": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, "notableAchievements": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, }, })
var Book_Biography_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Book_Biography", Fields: graphql.Fields{ "subjectPerson": &graphql.Field{ Type: graphql.String, }, "notableAchievements": &graphql.Field{ Type: graphql.String, }, }, Description: "", })
var Book_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "Book_Input", Fields: graphql.InputObjectConfigFieldMap{ "_key": &graphql.InputObjectFieldConfig{ Type: graphql.ID, }, "title": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, "author": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, "mainReview": &graphql.InputObjectFieldConfig{ Type: Book_Review_Input, }, "reviews": &graphql.InputObjectFieldConfig{ Type: graphql.NewList(Book_Review_Input), }, "tags": &graphql.InputObjectFieldConfig{ Type: graphql.NewList(graphql.String), }, "bookPrice": &graphql.InputObjectFieldConfig{ Type: utils.JSON, }, "chapters": &graphql.InputObjectFieldConfig{ Type: utils.JSON, }, "characters": &graphql.InputObjectFieldConfig{ Type: utils.JSON, }, "portrait": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, "gallery": &graphql.InputObjectFieldConfig{ Type: graphql.NewList(graphql.String), }, "category": &graphql.InputObjectFieldConfig{ Type: v1.Category_Enum, }, "Type": &graphql.InputObjectFieldConfig{ Type: utils.JSON, }, "Role": &graphql.InputObjectFieldConfig{ Type: utils.JSON, }, }, })
var Book_Novel_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "Book_Novel_Input", Fields: graphql.InputObjectConfigFieldMap{ "genre": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, "publicationYear": &graphql.InputObjectFieldConfig{ Type: graphql.Int, }, }, })
var Book_Novel_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Book_Novel", Fields: graphql.Fields{ "genre": &graphql.Field{ Type: graphql.String, }, "publicationYear": &graphql.Field{ Type: graphql.Int, }, }, Description: "", })
var Book_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Book", Fields: graphql.Fields{ "_key": &graphql.Field{ Type: graphql.ID, }, "title": &graphql.Field{ Type: graphql.String, }, "author": &graphql.Field{ Type: graphql.String, }, "mainReview": &graphql.Field{ Type: Book_Review_Object, }, "reviews": &graphql.Field{ Type: graphql.NewList(Book_Review_Object), }, "tags": &graphql.Field{ Type: graphql.NewList(graphql.String), }, "bookPrice": &graphql.Field{ Type: utils.JSON, }, "chapters": &graphql.Field{ Type: utils.JSON, }, "characters": &graphql.Field{ Type: utils.JSON, }, "portrait": &graphql.Field{ Type: utils.Bytes, }, "gallery": &graphql.Field{ Type: graphql.NewList(utils.Bytes), }, "category": &graphql.Field{ Type: v1.Category_Enum, }, "Type": &graphql.Field{ Type: graphql.NewUnion(graphql.UnionConfig{ Name: "Book_Type", Types: []*graphql.Object{ option_Book_Novel_, option_Book_ShortStory_, option_Book_Academic_, option_Book_Poetry_, option_Book_Biography_, }, ResolveType: func(p graphql.ResolveTypeParams) *graphql.Object { switch p.Value.(type) { case *Book_Novel_: return option_Book_Novel_ case *Book_ShortStory_: return option_Book_ShortStory_ case *Book_Academic_: return option_Book_Academic_ case *Book_Poetry_: return option_Book_Poetry_ case *Book_Biography_: return option_Book_Biography_ default: return nil } }, }), }, "Role": &graphql.Field{ Type: graphql.NewUnion(graphql.UnionConfig{ Name: "Book_Role", Types: []*graphql.Object{ option_Book_Admin, option_Book_Manager, option_Book_Client, option_Book_Other, }, ResolveType: func(p graphql.ResolveTypeParams) *graphql.Object { switch p.Value.(type) { case *Book_Admin: return option_Book_Admin case *Book_Manager: return option_Book_Manager case *Book_Client: return option_Book_Client case *Book_Other: return option_Book_Other default: return nil } }, }), }, }, Description: "", })
var Book_Poetry_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "Book_Poetry_Input", Fields: graphql.InputObjectConfigFieldMap{ "style": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, "isAnthology": &graphql.InputObjectFieldConfig{ Type: graphql.Boolean, }, }, })
var Book_Poetry_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Book_Poetry", Fields: graphql.Fields{ "style": &graphql.Field{ Type: graphql.String, }, "isAnthology": &graphql.Field{ Type: graphql.Boolean, }, }, Description: "", })
var Book_Review_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "Book_Review_Input", Fields: graphql.InputObjectConfigFieldMap{ "message": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, "name": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, }, })
var Book_Review_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Book_Review", Fields: graphql.Fields{ "message": &graphql.Field{ Type: graphql.String, }, "name": &graphql.Field{ Type: graphql.String, }, }, Description: "", })
var Book_ShortStory_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "Book_ShortStory_Input", Fields: graphql.InputObjectConfigFieldMap{ "lengthPages": &graphql.InputObjectFieldConfig{ Type: graphql.Int, }, "isCollection": &graphql.InputObjectFieldConfig{ Type: graphql.Boolean, }, }, })
var Book_ShortStory_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Book_ShortStory", Fields: graphql.Fields{ "lengthPages": &graphql.Field{ Type: graphql.Int, }, "isCollection": &graphql.Field{ Type: graphql.Boolean, }, }, Description: "", })
var Client_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "Client_Input", Fields: graphql.InputObjectConfigFieldMap{ "_key": &graphql.InputObjectFieldConfig{ Type: graphql.ID, }, "name": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, "email": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, "member": &graphql.InputObjectFieldConfig{ Type: graphql.Boolean, }, }, })
var Client_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Client", Fields: graphql.Fields{ "_key": &graphql.Field{ Type: graphql.ID, }, "name": &graphql.Field{ Type: graphql.String, }, "email": &graphql.Field{ Type: graphql.String, }, "member": &graphql.Field{ Type: graphql.Boolean, }, }, Description: "", })
var DeleteBookRequest_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "DeleteBookRequest_Input", Fields: graphql.InputObjectConfigFieldMap{ "key": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, }, })
var DeleteBookRequest_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "DeleteBookRequest", Fields: graphql.Fields{ "key": &graphql.Field{ Type: graphql.String, }, }, Description: "", })
var File_library_v1_book_proto protoreflect.FileDescriptor
var File_library_v1_client_proto protoreflect.FileDescriptor
var File_library_v1_library_proto protoreflect.FileDescriptor
var Library_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "Library_Input", Fields: graphql.InputObjectConfigFieldMap{ "_key": &graphql.InputObjectFieldConfig{ Type: graphql.ID, }, "name": &graphql.InputObjectFieldConfig{ Type: graphql.String, }, "categories": &graphql.InputObjectFieldConfig{ Type: graphql.NewList(v1.Category_Enum), }, "location": &graphql.InputObjectFieldConfig{ Type: v11.Location_Input, }, "country": &graphql.InputObjectFieldConfig{ Type: v12.Country_Enum, }, }, })
var Library_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Library", Fields: graphql.Fields{ "_key": &graphql.Field{ Type: graphql.ID, }, "name": &graphql.Field{ Type: graphql.String, }, "categories": &graphql.Field{ Type: graphql.NewList(v1.Category_Enum), }, "location": &graphql.Field{ Type: v11.Location_Object, }, "country": &graphql.Field{ Type: v12.Country_Enum, }, }, Description: "", })
var ListBooksResponse_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "ListBooksResponse_Input", Fields: graphql.InputObjectConfigFieldMap{ "books": &graphql.InputObjectFieldConfig{ Type: graphql.NewList(Book_Input), }, }, })
var ListBooksResponse_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "ListBooksResponse", Fields: graphql.Fields{ "books": &graphql.Field{ Type: graphql.NewList(Book_Object), }, }, Description: "", })
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct {
Key string `protobuf:"bytes,1,opt,name=_key,proto3" json:"_key,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
// Types that are assignable to Type:
//
// *Book_Novel_
// *Book_ShortStory_
// *Book_Academic_
// *Book_Poetry_
// *Book_Biography_
Type isBook_Type `protobuf_oneof:"type"`
MainReview *Book_Review `protobuf:"bytes,9,opt,name=mainReview,proto3" json:"mainReview,omitempty"`
Reviews []*Book_Review `protobuf:"bytes,10,rep,name=reviews,proto3" json:"reviews,omitempty"`
Tags []string `protobuf:"bytes,11,rep,name=tags,proto3" json:"tags,omitempty"`
BookPrice map[string]int32 `` /* 161-byte string literal not displayed */
Chapters map[int32]string `` /* 159-byte string literal not displayed */
Characters map[string]*v1.Character `` /* 162-byte string literal not displayed */
Portrait []byte `protobuf:"bytes,15,opt,name=portrait,proto3" json:"portrait,omitempty"`
Gallery [][]byte `protobuf:"bytes,16,rep,name=gallery,proto3" json:"gallery,omitempty"`
Category v1.Category `protobuf:"varint,17,opt,name=category,proto3,enum=common.v1.Category" json:"category,omitempty"`
// Types that are assignable to Role:
//
// *Book_Admin
// *Book_Manager
// *Book_Client
// *Book_Other
Role isBook_Role `protobuf_oneof:"role"`
// contains filtered or unexported fields
}
func (*Book) Argument ¶ added in v0.1.1
func (*Book) Argument() graphql.FieldConfigArgument
Argument ...
func (*Book) Descriptor
deprecated
func (*Book) GetAcademic ¶
func (x *Book) GetAcademic() *Book_Academic
func (*Book) GetBiography ¶
func (x *Book) GetBiography() *Book_Biography
func (*Book) GetBookPrice ¶
func (*Book) GetCategory ¶
func (*Book) GetChapters ¶
func (*Book) GetCharacters ¶ added in v0.0.2
func (*Book) GetGallery ¶
func (*Book) GetMainReview ¶
func (x *Book) GetMainReview() *Book_Review
func (*Book) GetManager ¶ added in v0.0.12
func (*Book) GetNovel ¶
func (x *Book) GetNovel() *Book_Novel
func (*Book) GetPoetry ¶
func (x *Book) GetPoetry() *Book_Poetry
func (*Book) GetPortrait ¶
func (*Book) GetReviews ¶
func (x *Book) GetReviews() []*Book_Review
func (*Book) GetShortStory ¶
func (x *Book) GetShortStory() *Book_ShortStory
func (*Book) ProtoMessage ¶
func (*Book) ProtoMessage()
func (*Book) ProtoReflect ¶
func (x *Book) ProtoReflect() protoreflect.Message
func (*Book) UnmarshalJSON ¶ added in v0.0.12
UnmarshalJSON ...
func (*Book) UnmarshalMap ¶ added in v0.0.12
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Book) Validate ¶ added in v0.4.44
Validate checks the field values on Book 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 (*Book) ValidateAll ¶ added in v0.4.44
ValidateAll checks the field values on Book 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 BookMultiError, or nil if none found.
type BookMultiError ¶ added in v0.4.44
type BookMultiError []error
BookMultiError is an error wrapping multiple validation errors returned by Book.ValidateAll() if the designated constraints aren't met.
func (BookMultiError) AllErrors ¶ added in v0.4.44
func (m BookMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BookMultiError) Error ¶ added in v0.4.44
func (m BookMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BookValidationError ¶ added in v0.4.44
type BookValidationError struct {
// contains filtered or unexported fields
}
BookValidationError is the validation error returned by Book.Validate if the designated constraints aren't met.
func (BookValidationError) Cause ¶ added in v0.4.44
func (e BookValidationError) Cause() error
Cause function returns cause value.
func (BookValidationError) Error ¶ added in v0.4.44
func (e BookValidationError) Error() string
Error satisfies the builtin error interface
func (BookValidationError) ErrorName ¶ added in v0.4.44
func (e BookValidationError) ErrorName() string
ErrorName returns error name.
func (BookValidationError) Field ¶ added in v0.4.44
func (e BookValidationError) Field() string
Field function returns field value.
func (BookValidationError) Key ¶ added in v0.4.44
func (e BookValidationError) Key() bool
Key function returns key value.
func (BookValidationError) Reason ¶ added in v0.4.44
func (e BookValidationError) Reason() string
Reason function returns reason value.
type Book_Academic ¶
type Book_Academic struct {
Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
Edition int32 `protobuf:"varint,2,opt,name=edition,proto3" json:"edition,omitempty"`
// contains filtered or unexported fields
}
func (*Book_Academic) Argument ¶ added in v0.1.1
func (*Book_Academic) Argument() graphql.FieldConfigArgument
Argument ...
func (*Book_Academic) Descriptor
deprecated
func (*Book_Academic) Descriptor() ([]byte, []int)
Deprecated: Use Book_Academic.ProtoReflect.Descriptor instead.
func (*Book_Academic) GetEdition ¶
func (x *Book_Academic) GetEdition() int32
func (*Book_Academic) GetSubject ¶
func (x *Book_Academic) GetSubject() string
func (*Book_Academic) Object ¶ added in v0.1.1
func (*Book_Academic) Object() *graphql.Object
Object ...
func (*Book_Academic) Output ¶ added in v0.1.1
func (*Book_Academic) Output() graphql.Output
Output ...
func (*Book_Academic) ProtoMessage ¶
func (*Book_Academic) ProtoMessage()
func (*Book_Academic) ProtoReflect ¶
func (x *Book_Academic) ProtoReflect() protoreflect.Message
func (*Book_Academic) Reset ¶
func (x *Book_Academic) Reset()
func (*Book_Academic) Schema ¶ added in v0.0.10
func (*Book_Academic) Schema() map[string]interface{}
Schema ...
func (*Book_Academic) String ¶
func (x *Book_Academic) String() string
func (*Book_Academic) UnmarshalJSON ¶ added in v0.0.12
func (o *Book_Academic) UnmarshalJSON(b []byte) error
UnmarshalJSON ...
func (*Book_Academic) UnmarshalMap ¶ added in v0.0.12
func (o *Book_Academic) UnmarshalMap(values map[string]interface{})
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Book_Academic) Validate ¶ added in v0.4.44
func (m *Book_Academic) Validate() error
Validate checks the field values on Book_Academic 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 (*Book_Academic) ValidateAll ¶ added in v0.4.44
func (m *Book_Academic) ValidateAll() error
ValidateAll checks the field values on Book_Academic 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 Book_AcademicMultiError, or nil if none found.
type Book_AcademicMultiError ¶ added in v0.4.44
type Book_AcademicMultiError []error
Book_AcademicMultiError is an error wrapping multiple validation errors returned by Book_Academic.ValidateAll() if the designated constraints aren't met.
func (Book_AcademicMultiError) AllErrors ¶ added in v0.4.44
func (m Book_AcademicMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Book_AcademicMultiError) Error ¶ added in v0.4.44
func (m Book_AcademicMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Book_AcademicValidationError ¶ added in v0.4.44
type Book_AcademicValidationError struct {
// contains filtered or unexported fields
}
Book_AcademicValidationError is the validation error returned by Book_Academic.Validate if the designated constraints aren't met.
func (Book_AcademicValidationError) Cause ¶ added in v0.4.44
func (e Book_AcademicValidationError) Cause() error
Cause function returns cause value.
func (Book_AcademicValidationError) Error ¶ added in v0.4.44
func (e Book_AcademicValidationError) Error() string
Error satisfies the builtin error interface
func (Book_AcademicValidationError) ErrorName ¶ added in v0.4.44
func (e Book_AcademicValidationError) ErrorName() string
ErrorName returns error name.
func (Book_AcademicValidationError) Field ¶ added in v0.4.44
func (e Book_AcademicValidationError) Field() string
Field function returns field value.
func (Book_AcademicValidationError) Key ¶ added in v0.4.44
func (e Book_AcademicValidationError) Key() bool
Key function returns key value.
func (Book_AcademicValidationError) Reason ¶ added in v0.4.44
func (e Book_AcademicValidationError) Reason() string
Reason function returns reason value.
type Book_Academic_ ¶
type Book_Academic_ struct {
Academic *Book_Academic `protobuf:"bytes,6,opt,name=academic,proto3,oneof"`
}
type Book_Admin ¶ added in v0.0.12
type Book_Admin struct {
Admin bool `protobuf:"varint,18,opt,name=admin,proto3,oneof"`
}
type Book_Biography ¶
type Book_Biography struct {
SubjectPerson string `protobuf:"bytes,1,opt,name=subjectPerson,proto3" json:"subjectPerson,omitempty"`
NotableAchievements string `protobuf:"bytes,2,opt,name=notableAchievements,proto3" json:"notableAchievements,omitempty"`
// contains filtered or unexported fields
}
func (*Book_Biography) Argument ¶ added in v0.1.1
func (*Book_Biography) Argument() graphql.FieldConfigArgument
Argument ...
func (*Book_Biography) Descriptor
deprecated
func (*Book_Biography) Descriptor() ([]byte, []int)
Deprecated: Use Book_Biography.ProtoReflect.Descriptor instead.
func (*Book_Biography) GetNotableAchievements ¶
func (x *Book_Biography) GetNotableAchievements() string
func (*Book_Biography) GetSubjectPerson ¶
func (x *Book_Biography) GetSubjectPerson() string
func (*Book_Biography) Object ¶ added in v0.1.1
func (*Book_Biography) Object() *graphql.Object
Object ...
func (*Book_Biography) Output ¶ added in v0.1.1
func (*Book_Biography) Output() graphql.Output
Output ...
func (*Book_Biography) ProtoMessage ¶
func (*Book_Biography) ProtoMessage()
func (*Book_Biography) ProtoReflect ¶
func (x *Book_Biography) ProtoReflect() protoreflect.Message
func (*Book_Biography) Reset ¶
func (x *Book_Biography) Reset()
func (*Book_Biography) Schema ¶ added in v0.0.10
func (*Book_Biography) Schema() map[string]interface{}
Schema ...
func (*Book_Biography) String ¶
func (x *Book_Biography) String() string
func (*Book_Biography) UnmarshalJSON ¶ added in v0.0.12
func (o *Book_Biography) UnmarshalJSON(b []byte) error
UnmarshalJSON ...
func (*Book_Biography) UnmarshalMap ¶ added in v0.0.12
func (o *Book_Biography) UnmarshalMap(values map[string]interface{})
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Book_Biography) Validate ¶ added in v0.4.44
func (m *Book_Biography) Validate() error
Validate checks the field values on Book_Biography 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 (*Book_Biography) ValidateAll ¶ added in v0.4.44
func (m *Book_Biography) ValidateAll() error
ValidateAll checks the field values on Book_Biography 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 Book_BiographyMultiError, or nil if none found.
type Book_BiographyMultiError ¶ added in v0.4.44
type Book_BiographyMultiError []error
Book_BiographyMultiError is an error wrapping multiple validation errors returned by Book_Biography.ValidateAll() if the designated constraints aren't met.
func (Book_BiographyMultiError) AllErrors ¶ added in v0.4.44
func (m Book_BiographyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Book_BiographyMultiError) Error ¶ added in v0.4.44
func (m Book_BiographyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Book_BiographyValidationError ¶ added in v0.4.44
type Book_BiographyValidationError struct {
// contains filtered or unexported fields
}
Book_BiographyValidationError is the validation error returned by Book_Biography.Validate if the designated constraints aren't met.
func (Book_BiographyValidationError) Cause ¶ added in v0.4.44
func (e Book_BiographyValidationError) Cause() error
Cause function returns cause value.
func (Book_BiographyValidationError) Error ¶ added in v0.4.44
func (e Book_BiographyValidationError) Error() string
Error satisfies the builtin error interface
func (Book_BiographyValidationError) ErrorName ¶ added in v0.4.44
func (e Book_BiographyValidationError) ErrorName() string
ErrorName returns error name.
func (Book_BiographyValidationError) Field ¶ added in v0.4.44
func (e Book_BiographyValidationError) Field() string
Field function returns field value.
func (Book_BiographyValidationError) Key ¶ added in v0.4.44
func (e Book_BiographyValidationError) Key() bool
Key function returns key value.
func (Book_BiographyValidationError) Reason ¶ added in v0.4.44
func (e Book_BiographyValidationError) Reason() string
Reason function returns reason value.
type Book_Biography_ ¶
type Book_Biography_ struct {
Biography *Book_Biography `protobuf:"bytes,8,opt,name=biography,proto3,oneof"`
}
type Book_Client ¶ added in v0.0.12
type Book_Client struct {
Client bool `protobuf:"varint,20,opt,name=client,proto3,oneof"`
}
type Book_Manager ¶ added in v0.0.12
type Book_Manager struct {
Manager bool `protobuf:"varint,19,opt,name=manager,proto3,oneof"`
}
type Book_Novel ¶
type Book_Novel struct {
Genre string `protobuf:"bytes,1,opt,name=genre,proto3" json:"genre,omitempty"`
PublicationYear int32 `protobuf:"varint,2,opt,name=publicationYear,proto3" json:"publicationYear,omitempty"`
// contains filtered or unexported fields
}
func (*Book_Novel) Argument ¶ added in v0.1.1
func (*Book_Novel) Argument() graphql.FieldConfigArgument
Argument ...
func (*Book_Novel) Descriptor
deprecated
func (*Book_Novel) Descriptor() ([]byte, []int)
Deprecated: Use Book_Novel.ProtoReflect.Descriptor instead.
func (*Book_Novel) GetGenre ¶
func (x *Book_Novel) GetGenre() string
func (*Book_Novel) GetPublicationYear ¶
func (x *Book_Novel) GetPublicationYear() int32
func (*Book_Novel) ProtoMessage ¶
func (*Book_Novel) ProtoMessage()
func (*Book_Novel) ProtoReflect ¶
func (x *Book_Novel) ProtoReflect() protoreflect.Message
func (*Book_Novel) Reset ¶
func (x *Book_Novel) Reset()
func (*Book_Novel) Schema ¶ added in v0.0.10
func (*Book_Novel) Schema() map[string]interface{}
Schema ...
func (*Book_Novel) String ¶
func (x *Book_Novel) String() string
func (*Book_Novel) UnmarshalJSON ¶ added in v0.0.12
func (o *Book_Novel) UnmarshalJSON(b []byte) error
UnmarshalJSON ...
func (*Book_Novel) UnmarshalMap ¶ added in v0.0.12
func (o *Book_Novel) UnmarshalMap(values map[string]interface{})
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Book_Novel) Validate ¶ added in v0.4.44
func (m *Book_Novel) Validate() error
Validate checks the field values on Book_Novel 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 (*Book_Novel) ValidateAll ¶ added in v0.4.44
func (m *Book_Novel) ValidateAll() error
ValidateAll checks the field values on Book_Novel 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 Book_NovelMultiError, or nil if none found.
type Book_NovelMultiError ¶ added in v0.4.44
type Book_NovelMultiError []error
Book_NovelMultiError is an error wrapping multiple validation errors returned by Book_Novel.ValidateAll() if the designated constraints aren't met.
func (Book_NovelMultiError) AllErrors ¶ added in v0.4.44
func (m Book_NovelMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Book_NovelMultiError) Error ¶ added in v0.4.44
func (m Book_NovelMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Book_NovelValidationError ¶ added in v0.4.44
type Book_NovelValidationError struct {
// contains filtered or unexported fields
}
Book_NovelValidationError is the validation error returned by Book_Novel.Validate if the designated constraints aren't met.
func (Book_NovelValidationError) Cause ¶ added in v0.4.44
func (e Book_NovelValidationError) Cause() error
Cause function returns cause value.
func (Book_NovelValidationError) Error ¶ added in v0.4.44
func (e Book_NovelValidationError) Error() string
Error satisfies the builtin error interface
func (Book_NovelValidationError) ErrorName ¶ added in v0.4.44
func (e Book_NovelValidationError) ErrorName() string
ErrorName returns error name.
func (Book_NovelValidationError) Field ¶ added in v0.4.44
func (e Book_NovelValidationError) Field() string
Field function returns field value.
func (Book_NovelValidationError) Key ¶ added in v0.4.44
func (e Book_NovelValidationError) Key() bool
Key function returns key value.
func (Book_NovelValidationError) Reason ¶ added in v0.4.44
func (e Book_NovelValidationError) Reason() string
Reason function returns reason value.
type Book_Novel_ ¶
type Book_Novel_ struct {
Novel *Book_Novel `protobuf:"bytes,4,opt,name=novel,proto3,oneof"`
}
type Book_Other ¶ added in v0.0.12
type Book_Other struct {
Other string `protobuf:"bytes,21,opt,name=other,proto3,oneof"`
}
type Book_Poetry ¶
type Book_Poetry struct {
Style string `protobuf:"bytes,1,opt,name=style,proto3" json:"style,omitempty"`
IsAnthology *bool `protobuf:"varint,2,opt,name=isAnthology,proto3,oneof" json:"isAnthology,omitempty"`
// contains filtered or unexported fields
}
func (*Book_Poetry) Argument ¶ added in v0.1.1
func (*Book_Poetry) Argument() graphql.FieldConfigArgument
Argument ...
func (*Book_Poetry) Descriptor
deprecated
func (*Book_Poetry) Descriptor() ([]byte, []int)
Deprecated: Use Book_Poetry.ProtoReflect.Descriptor instead.
func (*Book_Poetry) GetIsAnthology ¶
func (x *Book_Poetry) GetIsAnthology() bool
func (*Book_Poetry) GetStyle ¶
func (x *Book_Poetry) GetStyle() string
func (*Book_Poetry) Object ¶ added in v0.1.1
func (*Book_Poetry) Object() *graphql.Object
Object ...
func (*Book_Poetry) ProtoMessage ¶
func (*Book_Poetry) ProtoMessage()
func (*Book_Poetry) ProtoReflect ¶
func (x *Book_Poetry) ProtoReflect() protoreflect.Message
func (*Book_Poetry) Reset ¶
func (x *Book_Poetry) Reset()
func (*Book_Poetry) Schema ¶ added in v0.0.10
func (*Book_Poetry) Schema() map[string]interface{}
Schema ...
func (*Book_Poetry) String ¶
func (x *Book_Poetry) String() string
func (*Book_Poetry) UnmarshalJSON ¶ added in v0.0.12
func (o *Book_Poetry) UnmarshalJSON(b []byte) error
UnmarshalJSON ...
func (*Book_Poetry) UnmarshalMap ¶ added in v0.0.12
func (o *Book_Poetry) UnmarshalMap(values map[string]interface{})
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Book_Poetry) Validate ¶ added in v0.4.44
func (m *Book_Poetry) Validate() error
Validate checks the field values on Book_Poetry 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 (*Book_Poetry) ValidateAll ¶ added in v0.4.44
func (m *Book_Poetry) ValidateAll() error
ValidateAll checks the field values on Book_Poetry 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 Book_PoetryMultiError, or nil if none found.
type Book_PoetryMultiError ¶ added in v0.4.44
type Book_PoetryMultiError []error
Book_PoetryMultiError is an error wrapping multiple validation errors returned by Book_Poetry.ValidateAll() if the designated constraints aren't met.
func (Book_PoetryMultiError) AllErrors ¶ added in v0.4.44
func (m Book_PoetryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Book_PoetryMultiError) Error ¶ added in v0.4.44
func (m Book_PoetryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Book_PoetryValidationError ¶ added in v0.4.44
type Book_PoetryValidationError struct {
// contains filtered or unexported fields
}
Book_PoetryValidationError is the validation error returned by Book_Poetry.Validate if the designated constraints aren't met.
func (Book_PoetryValidationError) Cause ¶ added in v0.4.44
func (e Book_PoetryValidationError) Cause() error
Cause function returns cause value.
func (Book_PoetryValidationError) Error ¶ added in v0.4.44
func (e Book_PoetryValidationError) Error() string
Error satisfies the builtin error interface
func (Book_PoetryValidationError) ErrorName ¶ added in v0.4.44
func (e Book_PoetryValidationError) ErrorName() string
ErrorName returns error name.
func (Book_PoetryValidationError) Field ¶ added in v0.4.44
func (e Book_PoetryValidationError) Field() string
Field function returns field value.
func (Book_PoetryValidationError) Key ¶ added in v0.4.44
func (e Book_PoetryValidationError) Key() bool
Key function returns key value.
func (Book_PoetryValidationError) Reason ¶ added in v0.4.44
func (e Book_PoetryValidationError) Reason() string
Reason function returns reason value.
type Book_Poetry_ ¶
type Book_Poetry_ struct {
Poetry *Book_Poetry `protobuf:"bytes,7,opt,name=poetry,proto3,oneof"`
}
type Book_Review ¶
type Book_Review struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
UserName string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*Book_Review) Argument ¶ added in v0.1.1
func (*Book_Review) Argument() graphql.FieldConfigArgument
Argument ...
func (*Book_Review) Descriptor
deprecated
func (*Book_Review) Descriptor() ([]byte, []int)
Deprecated: Use Book_Review.ProtoReflect.Descriptor instead.
func (*Book_Review) GetMessage ¶
func (x *Book_Review) GetMessage() string
func (*Book_Review) GetUserName ¶
func (x *Book_Review) GetUserName() string
func (*Book_Review) Object ¶ added in v0.1.1
func (*Book_Review) Object() *graphql.Object
Object ...
func (*Book_Review) ProtoMessage ¶
func (*Book_Review) ProtoMessage()
func (*Book_Review) ProtoReflect ¶
func (x *Book_Review) ProtoReflect() protoreflect.Message
func (*Book_Review) Reset ¶
func (x *Book_Review) Reset()
func (*Book_Review) Schema ¶ added in v0.0.10
func (*Book_Review) Schema() map[string]interface{}
Schema ...
func (*Book_Review) String ¶
func (x *Book_Review) String() string
func (*Book_Review) UnmarshalJSON ¶ added in v0.0.12
func (o *Book_Review) UnmarshalJSON(b []byte) error
UnmarshalJSON ...
func (*Book_Review) UnmarshalMap ¶ added in v0.0.12
func (o *Book_Review) UnmarshalMap(values map[string]interface{})
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Book_Review) Validate ¶ added in v0.4.44
func (m *Book_Review) Validate() error
Validate checks the field values on Book_Review 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 (*Book_Review) ValidateAll ¶ added in v0.4.44
func (m *Book_Review) ValidateAll() error
ValidateAll checks the field values on Book_Review 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 Book_ReviewMultiError, or nil if none found.
type Book_ReviewMultiError ¶ added in v0.4.44
type Book_ReviewMultiError []error
Book_ReviewMultiError is an error wrapping multiple validation errors returned by Book_Review.ValidateAll() if the designated constraints aren't met.
func (Book_ReviewMultiError) AllErrors ¶ added in v0.4.44
func (m Book_ReviewMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Book_ReviewMultiError) Error ¶ added in v0.4.44
func (m Book_ReviewMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Book_ReviewValidationError ¶ added in v0.4.44
type Book_ReviewValidationError struct {
// contains filtered or unexported fields
}
Book_ReviewValidationError is the validation error returned by Book_Review.Validate if the designated constraints aren't met.
func (Book_ReviewValidationError) Cause ¶ added in v0.4.44
func (e Book_ReviewValidationError) Cause() error
Cause function returns cause value.
func (Book_ReviewValidationError) Error ¶ added in v0.4.44
func (e Book_ReviewValidationError) Error() string
Error satisfies the builtin error interface
func (Book_ReviewValidationError) ErrorName ¶ added in v0.4.44
func (e Book_ReviewValidationError) ErrorName() string
ErrorName returns error name.
func (Book_ReviewValidationError) Field ¶ added in v0.4.44
func (e Book_ReviewValidationError) Field() string
Field function returns field value.
func (Book_ReviewValidationError) Key ¶ added in v0.4.44
func (e Book_ReviewValidationError) Key() bool
Key function returns key value.
func (Book_ReviewValidationError) Reason ¶ added in v0.4.44
func (e Book_ReviewValidationError) Reason() string
Reason function returns reason value.
type Book_ShortStory ¶
type Book_ShortStory struct {
LengthPages int32 `protobuf:"varint,1,opt,name=lengthPages,proto3" json:"lengthPages,omitempty"`
IsCollection *bool `protobuf:"varint,2,opt,name=isCollection,proto3,oneof" json:"isCollection,omitempty"`
// contains filtered or unexported fields
}
func (*Book_ShortStory) Argument ¶ added in v0.1.1
func (*Book_ShortStory) Argument() graphql.FieldConfigArgument
Argument ...
func (*Book_ShortStory) Descriptor
deprecated
func (*Book_ShortStory) Descriptor() ([]byte, []int)
Deprecated: Use Book_ShortStory.ProtoReflect.Descriptor instead.
func (*Book_ShortStory) GetIsCollection ¶
func (x *Book_ShortStory) GetIsCollection() bool
func (*Book_ShortStory) GetLengthPages ¶
func (x *Book_ShortStory) GetLengthPages() int32
func (*Book_ShortStory) Object ¶ added in v0.1.1
func (*Book_ShortStory) Object() *graphql.Object
Object ...
func (*Book_ShortStory) Output ¶ added in v0.1.1
func (*Book_ShortStory) Output() graphql.Output
Output ...
func (*Book_ShortStory) ProtoMessage ¶
func (*Book_ShortStory) ProtoMessage()
func (*Book_ShortStory) ProtoReflect ¶
func (x *Book_ShortStory) ProtoReflect() protoreflect.Message
func (*Book_ShortStory) Reset ¶
func (x *Book_ShortStory) Reset()
func (*Book_ShortStory) Schema ¶ added in v0.0.10
func (*Book_ShortStory) Schema() map[string]interface{}
Schema ...
func (*Book_ShortStory) String ¶
func (x *Book_ShortStory) String() string
func (*Book_ShortStory) UnmarshalJSON ¶ added in v0.0.12
func (o *Book_ShortStory) UnmarshalJSON(b []byte) error
UnmarshalJSON ...
func (*Book_ShortStory) UnmarshalMap ¶ added in v0.0.12
func (o *Book_ShortStory) UnmarshalMap(values map[string]interface{})
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Book_ShortStory) Validate ¶ added in v0.4.44
func (m *Book_ShortStory) Validate() error
Validate checks the field values on Book_ShortStory 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 (*Book_ShortStory) ValidateAll ¶ added in v0.4.44
func (m *Book_ShortStory) ValidateAll() error
ValidateAll checks the field values on Book_ShortStory 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 Book_ShortStoryMultiError, or nil if none found.
type Book_ShortStoryMultiError ¶ added in v0.4.44
type Book_ShortStoryMultiError []error
Book_ShortStoryMultiError is an error wrapping multiple validation errors returned by Book_ShortStory.ValidateAll() if the designated constraints aren't met.
func (Book_ShortStoryMultiError) AllErrors ¶ added in v0.4.44
func (m Book_ShortStoryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Book_ShortStoryMultiError) Error ¶ added in v0.4.44
func (m Book_ShortStoryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Book_ShortStoryValidationError ¶ added in v0.4.44
type Book_ShortStoryValidationError struct {
// contains filtered or unexported fields
}
Book_ShortStoryValidationError is the validation error returned by Book_ShortStory.Validate if the designated constraints aren't met.
func (Book_ShortStoryValidationError) Cause ¶ added in v0.4.44
func (e Book_ShortStoryValidationError) Cause() error
Cause function returns cause value.
func (Book_ShortStoryValidationError) Error ¶ added in v0.4.44
func (e Book_ShortStoryValidationError) Error() string
Error satisfies the builtin error interface
func (Book_ShortStoryValidationError) ErrorName ¶ added in v0.4.44
func (e Book_ShortStoryValidationError) ErrorName() string
ErrorName returns error name.
func (Book_ShortStoryValidationError) Field ¶ added in v0.4.44
func (e Book_ShortStoryValidationError) Field() string
Field function returns field value.
func (Book_ShortStoryValidationError) Key ¶ added in v0.4.44
func (e Book_ShortStoryValidationError) Key() bool
Key function returns key value.
func (Book_ShortStoryValidationError) Reason ¶ added in v0.4.44
func (e Book_ShortStoryValidationError) Reason() string
Reason function returns reason value.
type Book_ShortStory_ ¶
type Book_ShortStory_ struct {
ShortStory *Book_ShortStory `protobuf:"bytes,5,opt,name=shortStory,proto3,oneof"`
}
type Client ¶ added in v0.0.8
type Client struct {
Key string `protobuf:"bytes,1,opt,name=_key,proto3" json:"_key,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
Member *bool `protobuf:"varint,4,opt,name=member,proto3,oneof" json:"member,omitempty"`
// contains filtered or unexported fields
}
func (*Client) Argument ¶ added in v0.1.1
func (*Client) Argument() graphql.FieldConfigArgument
Argument ...
func (*Client) Descriptor
deprecated
added in
v0.0.8
func (*Client) ProtoMessage ¶ added in v0.0.8
func (*Client) ProtoMessage()
func (*Client) ProtoReflect ¶ added in v0.0.8
func (x *Client) ProtoReflect() protoreflect.Message
func (*Client) UnmarshalJSON ¶ added in v0.0.12
UnmarshalJSON ...
func (*Client) UnmarshalMap ¶ added in v0.0.12
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Client) Validate ¶ added in v0.4.44
Validate checks the field values on Client 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 (*Client) ValidateAll ¶ added in v0.4.44
ValidateAll checks the field values on Client 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 ClientMultiError, or nil if none found.
type ClientMultiError ¶ added in v0.4.44
type ClientMultiError []error
ClientMultiError is an error wrapping multiple validation errors returned by Client.ValidateAll() if the designated constraints aren't met.
func (ClientMultiError) AllErrors ¶ added in v0.4.44
func (m ClientMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ClientMultiError) Error ¶ added in v0.4.44
func (m ClientMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ClientValidationError ¶ added in v0.4.44
type ClientValidationError struct {
// contains filtered or unexported fields
}
ClientValidationError is the validation error returned by Client.Validate if the designated constraints aren't met.
func (ClientValidationError) Cause ¶ added in v0.4.44
func (e ClientValidationError) Cause() error
Cause function returns cause value.
func (ClientValidationError) Error ¶ added in v0.4.44
func (e ClientValidationError) Error() string
Error satisfies the builtin error interface
func (ClientValidationError) ErrorName ¶ added in v0.4.44
func (e ClientValidationError) ErrorName() string
ErrorName returns error name.
func (ClientValidationError) Field ¶ added in v0.4.44
func (e ClientValidationError) Field() string
Field function returns field value.
func (ClientValidationError) Key ¶ added in v0.4.44
func (e ClientValidationError) Key() bool
Key function returns key value.
func (ClientValidationError) Reason ¶ added in v0.4.44
func (e ClientValidationError) Reason() string
Reason function returns reason value.
type DeleteBookRequest ¶ added in v0.1.1
type DeleteBookRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteBookRequest) Argument ¶ added in v0.1.1
func (*DeleteBookRequest) Argument() graphql.FieldConfigArgument
Argument ...
func (*DeleteBookRequest) Descriptor
deprecated
added in
v0.1.1
func (*DeleteBookRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBookRequest.ProtoReflect.Descriptor instead.
func (*DeleteBookRequest) GetKey ¶ added in v0.1.1
func (x *DeleteBookRequest) GetKey() string
func (*DeleteBookRequest) Object ¶ added in v0.1.1
func (*DeleteBookRequest) Object() *graphql.Object
Object ...
func (*DeleteBookRequest) Output ¶ added in v0.1.1
func (*DeleteBookRequest) Output() graphql.Output
Output ...
func (*DeleteBookRequest) ProtoMessage ¶ added in v0.1.1
func (*DeleteBookRequest) ProtoMessage()
func (*DeleteBookRequest) ProtoReflect ¶ added in v0.1.1
func (x *DeleteBookRequest) ProtoReflect() protoreflect.Message
func (*DeleteBookRequest) Reset ¶ added in v0.1.1
func (x *DeleteBookRequest) Reset()
func (*DeleteBookRequest) String ¶ added in v0.1.1
func (x *DeleteBookRequest) String() string
func (*DeleteBookRequest) Validate ¶ added in v0.4.44
func (m *DeleteBookRequest) Validate() error
Validate checks the field values on DeleteBookRequest 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 (*DeleteBookRequest) ValidateAll ¶ added in v0.4.44
func (m *DeleteBookRequest) ValidateAll() error
ValidateAll checks the field values on DeleteBookRequest 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 DeleteBookRequestMultiError, or nil if none found.
type DeleteBookRequestMultiError ¶ added in v0.4.44
type DeleteBookRequestMultiError []error
DeleteBookRequestMultiError is an error wrapping multiple validation errors returned by DeleteBookRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteBookRequestMultiError) AllErrors ¶ added in v0.4.44
func (m DeleteBookRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteBookRequestMultiError) Error ¶ added in v0.4.44
func (m DeleteBookRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteBookRequestValidationError ¶ added in v0.4.44
type DeleteBookRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteBookRequestValidationError is the validation error returned by DeleteBookRequest.Validate if the designated constraints aren't met.
func (DeleteBookRequestValidationError) Cause ¶ added in v0.4.44
func (e DeleteBookRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteBookRequestValidationError) Error ¶ added in v0.4.44
func (e DeleteBookRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteBookRequestValidationError) ErrorName ¶ added in v0.4.44
func (e DeleteBookRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteBookRequestValidationError) Field ¶ added in v0.4.44
func (e DeleteBookRequestValidationError) Field() string
Field function returns field value.
func (DeleteBookRequestValidationError) Key ¶ added in v0.4.44
func (e DeleteBookRequestValidationError) Key() bool
Key function returns key value.
func (DeleteBookRequestValidationError) Reason ¶ added in v0.4.44
func (e DeleteBookRequestValidationError) Reason() string
Reason function returns reason value.
type Library ¶ added in v0.0.12
type Library struct {
Key string `protobuf:"bytes,1,opt,name=_key,proto3" json:"_key,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Categories []v1.Category `protobuf:"varint,3,rep,packed,name=categories,proto3,enum=common.v1.Category" json:"categories,omitempty"`
Location *v11.Location `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
Country v12.Country `protobuf:"varint,5,opt,name=country,proto3,enum=graphify.collections.v1.Country" json:"country,omitempty"`
// contains filtered or unexported fields
}
func (*Library) Argument ¶ added in v0.1.0
func (*Library) Argument() graphql.FieldConfigArgument
Argument ...
func (*Library) Descriptor
deprecated
added in
v0.0.12
func (*Library) GetCategories ¶ added in v0.4.26
func (*Library) GetCountry ¶ added in v0.4.7
func (*Library) GetLocation ¶ added in v0.0.12
func (*Library) ProtoMessage ¶ added in v0.0.12
func (*Library) ProtoMessage()
func (*Library) ProtoReflect ¶ added in v0.0.12
func (x *Library) ProtoReflect() protoreflect.Message
func (*Library) UnmarshalJSON ¶ added in v0.0.12
UnmarshalJSON ...
func (*Library) UnmarshalMap ¶ added in v0.0.12
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Library) Validate ¶ added in v0.4.44
Validate checks the field values on Library 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 (*Library) ValidateAll ¶ added in v0.4.44
ValidateAll checks the field values on Library 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 LibraryMultiError, or nil if none found.
type LibraryMultiError ¶ added in v0.4.44
type LibraryMultiError []error
LibraryMultiError is an error wrapping multiple validation errors returned by Library.ValidateAll() if the designated constraints aren't met.
func (LibraryMultiError) AllErrors ¶ added in v0.4.44
func (m LibraryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LibraryMultiError) Error ¶ added in v0.4.44
func (m LibraryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LibraryValidationError ¶ added in v0.4.44
type LibraryValidationError struct {
// contains filtered or unexported fields
}
LibraryValidationError is the validation error returned by Library.Validate if the designated constraints aren't met.
func (LibraryValidationError) Cause ¶ added in v0.4.44
func (e LibraryValidationError) Cause() error
Cause function returns cause value.
func (LibraryValidationError) Error ¶ added in v0.4.44
func (e LibraryValidationError) Error() string
Error satisfies the builtin error interface
func (LibraryValidationError) ErrorName ¶ added in v0.4.44
func (e LibraryValidationError) ErrorName() string
ErrorName returns error name.
func (LibraryValidationError) Field ¶ added in v0.4.44
func (e LibraryValidationError) Field() string
Field function returns field value.
func (LibraryValidationError) Key ¶ added in v0.4.44
func (e LibraryValidationError) Key() bool
Key function returns key value.
func (LibraryValidationError) Reason ¶ added in v0.4.44
func (e LibraryValidationError) Reason() string
Reason function returns reason value.
type ListBooksResponse ¶ added in v0.1.1
type ListBooksResponse struct {
Books []*Book `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"`
// contains filtered or unexported fields
}
func (*ListBooksResponse) Argument ¶ added in v0.1.1
func (*ListBooksResponse) Argument() graphql.FieldConfigArgument
Argument ...
func (*ListBooksResponse) Descriptor
deprecated
added in
v0.1.1
func (*ListBooksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListBooksResponse.ProtoReflect.Descriptor instead.
func (*ListBooksResponse) GetBooks ¶ added in v0.1.1
func (x *ListBooksResponse) GetBooks() []*Book
func (*ListBooksResponse) Object ¶ added in v0.1.1
func (*ListBooksResponse) Object() *graphql.Object
Object ...
func (*ListBooksResponse) Output ¶ added in v0.1.1
func (*ListBooksResponse) Output() graphql.Output
Output ...
func (*ListBooksResponse) ProtoMessage ¶ added in v0.1.1
func (*ListBooksResponse) ProtoMessage()
func (*ListBooksResponse) ProtoReflect ¶ added in v0.1.1
func (x *ListBooksResponse) ProtoReflect() protoreflect.Message
func (*ListBooksResponse) Reset ¶ added in v0.1.1
func (x *ListBooksResponse) Reset()
func (*ListBooksResponse) String ¶ added in v0.1.1
func (x *ListBooksResponse) String() string
func (*ListBooksResponse) Validate ¶ added in v0.4.44
func (m *ListBooksResponse) Validate() error
Validate checks the field values on ListBooksResponse 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 (*ListBooksResponse) ValidateAll ¶ added in v0.4.44
func (m *ListBooksResponse) ValidateAll() error
ValidateAll checks the field values on ListBooksResponse 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 ListBooksResponseMultiError, or nil if none found.
type ListBooksResponseMultiError ¶ added in v0.4.44
type ListBooksResponseMultiError []error
ListBooksResponseMultiError is an error wrapping multiple validation errors returned by ListBooksResponse.ValidateAll() if the designated constraints aren't met.
func (ListBooksResponseMultiError) AllErrors ¶ added in v0.4.44
func (m ListBooksResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListBooksResponseMultiError) Error ¶ added in v0.4.44
func (m ListBooksResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListBooksResponseValidationError ¶ added in v0.4.44
type ListBooksResponseValidationError struct {
// contains filtered or unexported fields
}
ListBooksResponseValidationError is the validation error returned by ListBooksResponse.Validate if the designated constraints aren't met.
func (ListBooksResponseValidationError) Cause ¶ added in v0.4.44
func (e ListBooksResponseValidationError) Cause() error
Cause function returns cause value.
func (ListBooksResponseValidationError) Error ¶ added in v0.4.44
func (e ListBooksResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListBooksResponseValidationError) ErrorName ¶ added in v0.4.44
func (e ListBooksResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListBooksResponseValidationError) Field ¶ added in v0.4.44
func (e ListBooksResponseValidationError) Field() string
Field function returns field value.
func (ListBooksResponseValidationError) Key ¶ added in v0.4.44
func (e ListBooksResponseValidationError) Key() bool
Key function returns key value.
func (ListBooksResponseValidationError) Reason ¶ added in v0.4.44
func (e ListBooksResponseValidationError) Reason() string
Reason function returns reason value.