libraryv1

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Book.ProtoReflect.Descriptor instead.

func (*Book) GetAcademic

func (x *Book) GetAcademic() *Book_Academic

func (*Book) GetAuthor

func (x *Book) GetAuthor() string

func (*Book) GetBiography

func (x *Book) GetBiography() *Book_Biography

func (*Book) GetBookPrice

func (x *Book) GetBookPrice() map[string]int32

func (*Book) GetCategory

func (x *Book) GetCategory() Category

func (*Book) GetChapters

func (x *Book) GetChapters() map[int32]string

func (*Book) GetCharacters added in v0.0.2

func (x *Book) GetCharacters() map[string]*Character

func (*Book) GetGallery

func (x *Book) GetGallery() [][]byte

func (*Book) GetKey

func (x *Book) GetKey() string

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 (x *Book) GetPortrait() []byte

func (*Book) GetReviews

func (x *Book) GetReviews() []*Book_Review

func (*Book) GetShortStory

func (x *Book) GetShortStory() *Book_ShortStory

func (*Book) GetTags

func (x *Book) GetTags() []string

func (*Book) GetTitle

func (x *Book) GetTitle() string

func (*Book) GetType

func (m *Book) GetType() isBook_Type

func (*Book) LoadMap

func (o *Book) LoadMap(values map[string]interface{})

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

func (*Book) Reset

func (x *Book) Reset()

func (*Book) Specs added in v0.0.2

func (*Book) Specs() []byte

Specs ...

func (*Book) String

func (x *Book) String() string

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) Specs added in v0.0.2

func (*Book_Academic) Specs() []byte

Specs ...

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) Specs added in v0.0.2

func (*Book_Biography) Specs() []byte

Specs ...

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) Specs added in v0.0.2

func (*Book_Novel) Specs() []byte

Specs ...

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) Specs added in v0.0.2

func (*Book_Poetry) Specs() []byte

Specs ...

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) Specs added in v0.0.2

func (*Book_Review) Specs() []byte

Specs ...

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) Specs added in v0.0.2

func (*Book_ShortStory) Specs() []byte

Specs ...

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
const (
	Category_CATEGORY_UNSPECIFIED Category = 0
	Category_CATEGORY_DRAMA       Category = 1
	Category_CATEGORY_HORROR      Category = 2
)

func (Category) Descriptor

func (Category) Descriptor() protoreflect.EnumDescriptor

func (Category) Enum

func (x Category) Enum() *Category

func (Category) EnumDescriptor deprecated

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

Deprecated: Use Category.Descriptor instead.

func (Category) Number

func (x Category) Number() protoreflect.EnumNumber

func (Category) String

func (x Category) String() string

func (Category) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Character.ProtoReflect.Descriptor instead.

func (*Character) GetName added in v0.0.2

func (x *Character) GetName() string

func (*Character) GetRole added in v0.0.2

func (x *Character) GetRole() string

func (*Character) LoadMap added in v0.0.2

func (o *Character) LoadMap(values map[string]interface{})

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

func (*Character) Reset added in v0.0.2

func (x *Character) Reset()

func (*Character) Specs added in v0.0.2

func (*Character) Specs() []byte

Specs ...

func (*Character) String added in v0.0.2

func (x *Character) String() string

Jump to

Keyboard shortcuts

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