Documentation ¶
Index ¶
- Variables
- type Book
- func (*Book) Descriptor() ([]byte, []int)deprecated
- func (x *Book) GetAcademic() *Book_Academic
- func (x *Book) GetAuthor() string
- func (x *Book) GetBiography() *Book_Biography
- func (x *Book) GetBookPrice() map[string]int32
- func (x *Book) GetCategory() Category
- func (x *Book) GetChapters() map[int32]string
- func (x *Book) GetCharacters() map[string]*Character
- func (x *Book) GetGallery() [][]byte
- func (x *Book) GetKey() string
- func (x *Book) GetMainReview() *Book_Review
- func (x *Book) GetNovel() *Book_Novel
- func (x *Book) GetPoetry() *Book_Poetry
- func (x *Book) GetPortrait() []byte
- func (x *Book) GetReviews() []*Book_Review
- func (x *Book) GetShortStory() *Book_ShortStory
- func (x *Book) GetTags() []string
- func (x *Book) GetTitle() string
- func (m *Book) GetType() isBook_Type
- func (o *Book) LoadMap(values map[string]interface{})
- func (*Book) ProtoMessage()
- func (x *Book) ProtoReflect() protoreflect.Message
- func (x *Book) Reset()
- func (*Book) Specs() []byte
- func (x *Book) String() string
- type Book_Academic
- func (*Book_Academic) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Academic) GetEdition() int32
- func (x *Book_Academic) GetSubject() string
- func (o *Book_Academic) LoadMap(values map[string]interface{})
- func (*Book_Academic) ProtoMessage()
- func (x *Book_Academic) ProtoReflect() protoreflect.Message
- func (x *Book_Academic) Reset()
- func (*Book_Academic) Specs() []byte
- func (x *Book_Academic) String() string
- type Book_Academic_
- type Book_Biography
- func (*Book_Biography) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Biography) GetNotableAchievements() string
- func (x *Book_Biography) GetSubjectPerson() string
- func (o *Book_Biography) LoadMap(values map[string]interface{})
- func (*Book_Biography) ProtoMessage()
- func (x *Book_Biography) ProtoReflect() protoreflect.Message
- func (x *Book_Biography) Reset()
- func (*Book_Biography) Specs() []byte
- func (x *Book_Biography) String() string
- type Book_Biography_
- type Book_Novel
- func (*Book_Novel) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Novel) GetGenre() string
- func (x *Book_Novel) GetPublicationYear() int32
- func (o *Book_Novel) LoadMap(values map[string]interface{})
- func (*Book_Novel) ProtoMessage()
- func (x *Book_Novel) ProtoReflect() protoreflect.Message
- func (x *Book_Novel) Reset()
- func (*Book_Novel) Specs() []byte
- func (x *Book_Novel) String() string
- type Book_Novel_
- type Book_Poetry
- func (*Book_Poetry) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Poetry) GetIsAnthology() bool
- func (x *Book_Poetry) GetStyle() string
- func (o *Book_Poetry) LoadMap(values map[string]interface{})
- func (*Book_Poetry) ProtoMessage()
- func (x *Book_Poetry) ProtoReflect() protoreflect.Message
- func (x *Book_Poetry) Reset()
- func (*Book_Poetry) Specs() []byte
- func (x *Book_Poetry) String() string
- type Book_Poetry_
- type Book_Review
- func (*Book_Review) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Review) GetMessage() string
- func (x *Book_Review) GetUserName() string
- func (o *Book_Review) LoadMap(values map[string]interface{})
- func (*Book_Review) ProtoMessage()
- func (x *Book_Review) ProtoReflect() protoreflect.Message
- func (x *Book_Review) Reset()
- func (*Book_Review) Specs() []byte
- func (x *Book_Review) String() string
- type Book_ShortStory
- func (*Book_ShortStory) Descriptor() ([]byte, []int)deprecated
- func (x *Book_ShortStory) GetIsCollection() bool
- func (x *Book_ShortStory) GetLengthPages() int32
- func (o *Book_ShortStory) LoadMap(values map[string]interface{})
- func (*Book_ShortStory) ProtoMessage()
- func (x *Book_ShortStory) ProtoReflect() protoreflect.Message
- func (x *Book_ShortStory) Reset()
- func (*Book_ShortStory) Specs() []byte
- func (x *Book_ShortStory) String() string
- type Book_ShortStory_
- type Category
- type Character
- func (*Character) Descriptor() ([]byte, []int)deprecated
- func (x *Character) GetName() string
- func (x *Character) GetRole() string
- func (o *Character) LoadMap(values map[string]interface{})
- func (*Character) ProtoMessage()
- func (x *Character) ProtoReflect() protoreflect.Message
- func (x *Character) Reset()
- func (*Character) Specs() []byte
- func (x *Character) String() string
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 File_library_v1_library_proto protoreflect.FileDescriptor
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]*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 Category `protobuf:"varint,17,opt,name=category,proto3,enum=library.v1.Category" json:"category,omitempty"` // contains filtered or unexported fields }
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) 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) LoadMap ¶
LoadMap populates struct fields from a map, handling decoding for special fields.
func (*Book) ProtoMessage ¶
func (*Book) ProtoMessage()
func (*Book) ProtoReflect ¶
func (x *Book) ProtoReflect() protoreflect.Message
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) 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) LoadMap ¶
func (o *Book_Academic) LoadMap(values map[string]interface{})
LoadMap populates struct fields from a map, handling decoding for special fields.
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) String ¶
func (x *Book_Academic) String() string
type Book_Academic_ ¶
type Book_Academic_ struct {
Academic *Book_Academic `protobuf:"bytes,6,opt,name=academic,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) 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) LoadMap ¶
func (o *Book_Biography) LoadMap(values map[string]interface{})
LoadMap populates struct fields from a map, handling decoding for special fields.
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) String ¶
func (x *Book_Biography) String() string
type Book_Biography_ ¶
type Book_Biography_ struct {
Biography *Book_Biography `protobuf:"bytes,8,opt,name=biography,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) 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) LoadMap ¶
func (o *Book_Novel) LoadMap(values map[string]interface{})
LoadMap populates struct fields from a map, handling decoding for special fields.
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) String ¶
func (x *Book_Novel) String() string
type Book_Novel_ ¶
type Book_Novel_ struct {
Novel *Book_Novel `protobuf:"bytes,4,opt,name=novel,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" json:"isAnthology,omitempty"` // contains filtered or unexported fields }
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) LoadMap ¶
func (o *Book_Poetry) LoadMap(values map[string]interface{})
LoadMap populates struct fields from a map, handling decoding for special fields.
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) String ¶
func (x *Book_Poetry) String() string
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) 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) LoadMap ¶
func (o *Book_Review) LoadMap(values map[string]interface{})
LoadMap populates struct fields from a map, handling decoding for special fields.
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) String ¶
func (x *Book_Review) String() string
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" json:"isCollection,omitempty"` // contains filtered or unexported fields }
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) LoadMap ¶
func (o *Book_ShortStory) LoadMap(values map[string]interface{})
LoadMap populates struct fields from a map, handling decoding for special fields.
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) String ¶
func (x *Book_ShortStory) String() string
type Book_ShortStory_ ¶
type Book_ShortStory_ struct {
ShortStory *Book_ShortStory `protobuf:"bytes,5,opt,name=shortStory,proto3,oneof"`
}
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 ¶ added in v0.0.2
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
added in
v0.0.2
func (*Character) LoadMap ¶ added in v0.0.2
LoadMap populates struct fields from a map, handling decoding for special fields.
func (*Character) ProtoMessage ¶ added in v0.0.2
func (*Character) ProtoMessage()
func (*Character) ProtoReflect ¶ added in v0.0.2
func (x *Character) ProtoReflect() protoreflect.Message