libraryv1

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_library_v1_book_proto protoreflect.FileDescriptor
View Source
var File_library_v1_client_proto protoreflect.FileDescriptor
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,json=_key,proto3" json:"key,omitempty"`
	Id          string       `protobuf:"bytes,2,opt,name=id,json=_id,proto3" json:"id,omitempty"`
	Revision    string       `protobuf:"bytes,3,opt,name=revision,json=_rev,proto3" json:"revision,omitempty"`
	Title       string       `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	Author      string       `protobuf:"bytes,5,opt,name=author,proto3" json:"author,omitempty"`
	Description *v1.RichText `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// Types that are valid to be assigned to Type:
	//
	//	*Book_Novel_
	//	*Book_ShortStory_
	//	*Book_Academic_
	//	*Book_Poetry_
	//	*Book_Biography_
	Type       isBook_Type               `protobuf_oneof:"type"`
	MainReview *Book_Review              `protobuf:"bytes,12,opt,name=main_review,json=mainReview,proto3" json:"main_review,omitempty"`
	Reviews    []*Book_Review            `protobuf:"bytes,13,rep,name=reviews,proto3" json:"reviews,omitempty"`
	Tags       []string                  `protobuf:"bytes,14,rep,name=tags,proto3" json:"tags,omitempty"`
	BookPrice  map[string]int32          `` /* 164-byte string literal not displayed */
	Chapters   map[int32]string          `` /* 145-byte string literal not displayed */
	Characters map[string]*v11.Character `` /* 148-byte string literal not displayed */
	Portrait   []byte                    `protobuf:"bytes,18,opt,name=portrait,proto3" json:"portrait,omitempty"`
	Gallery    [][]byte                  `protobuf:"bytes,19,rep,name=gallery,proto3" json:"gallery,omitempty"`
	Category   v11.Category              `protobuf:"varint,20,opt,name=category,proto3,enum=common.v1.Category" json:"category,omitempty"`
	// Types that are valid to be assigned to Role:
	//
	//	*Book_Admin
	//	*Book_Manager
	//	*Book_Other
	Role isBook_Role `protobuf_oneof:"role"`
	// 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) GetAdmin added in v0.0.12

func (x *Book) GetAdmin() bool

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() v11.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]*v11.Character

func (*Book) GetDescription added in v0.6.6

func (x *Book) GetDescription() *v1.RichText

func (*Book) GetGallery

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

func (*Book) GetId added in v0.7.0

func (x *Book) GetId() string

func (*Book) GetKey

func (x *Book) GetKey() string

func (*Book) GetMainReview

func (x *Book) GetMainReview() *Book_Review

func (*Book) GetManager added in v0.0.12

func (x *Book) GetManager() bool

func (*Book) GetNovel

func (x *Book) GetNovel() *Book_Novel

func (*Book) GetOther added in v0.0.12

func (x *Book) GetOther() string

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) GetRevision added in v0.7.0

func (x *Book) GetRevision() string

func (*Book) GetRole added in v0.0.12

func (x *Book) GetRole() isBook_Role

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 (x *Book) GetType() isBook_Type

func (*Book) MarshalJSON added in v0.7.0

func (msg *Book) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Book) ProtoMessage

func (*Book) ProtoMessage()

func (*Book) ProtoReflect

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

func (*Book) Reset

func (x *Book) Reset()

func (*Book) String

func (x *Book) String() string

func (*Book) UnmarshalJSON added in v0.0.12

func (msg *Book) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

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) MarshalJSON added in v0.7.0

func (msg *Book_Academic) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

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

func (*Book_Academic) UnmarshalJSON added in v0.0.12

func (msg *Book_Academic) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Book_Academic_

type Book_Academic_ struct {
	Academic *Book_Academic `protobuf:"bytes,9,opt,name=academic,proto3,oneof"`
}

type Book_Admin added in v0.0.12

type Book_Admin struct {
	Admin bool `protobuf:"varint,21,opt,name=admin,proto3,oneof"`
}

type Book_Biography

type Book_Biography struct {
	SubjectPerson       string `protobuf:"bytes,1,opt,name=subject_person,json=subjectPerson,proto3" json:"subject_person,omitempty"`
	NotableAchievements string `protobuf:"bytes,2,opt,name=notable_achievements,json=notableAchievements,proto3" json:"notable_achievements,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) MarshalJSON added in v0.7.0

func (msg *Book_Biography) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

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

func (*Book_Biography) UnmarshalJSON added in v0.0.12

func (msg *Book_Biography) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Book_Biography_

type Book_Biography_ struct {
	Biography *Book_Biography `protobuf:"bytes,11,opt,name=biography,proto3,oneof"`
}

type Book_Manager added in v0.0.12

type Book_Manager struct {
	Manager bool `protobuf:"varint,22,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=publication_year,json=publicationYear,proto3" json:"publication_year,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) MarshalJSON added in v0.7.0

func (msg *Book_Novel) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

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

func (*Book_Novel) UnmarshalJSON added in v0.0.12

func (msg *Book_Novel) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Book_Novel_

type Book_Novel_ struct {
	Novel *Book_Novel `protobuf:"bytes,7,opt,name=novel,proto3,oneof"`
}

type Book_Other added in v0.0.12

type Book_Other struct {
	Other string `protobuf:"bytes,23,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=is_anthology,json=isAnthology,proto3,oneof" json:"is_anthology,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) MarshalJSON added in v0.7.0

func (msg *Book_Poetry) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

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

func (*Book_Poetry) UnmarshalJSON added in v0.0.12

func (msg *Book_Poetry) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Book_Poetry_

type Book_Poetry_ struct {
	Poetry *Book_Poetry `protobuf:"bytes,10,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=user_name,json=name,proto3" json:"user_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) MarshalJSON added in v0.7.0

func (msg *Book_Review) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

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

func (*Book_Review) UnmarshalJSON added in v0.0.12

func (msg *Book_Review) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Book_ShortStory

type Book_ShortStory struct {
	LengthPages  int32 `protobuf:"varint,1,opt,name=length_pages,json=lengthPages,proto3" json:"length_pages,omitempty"`
	IsCollection *bool `protobuf:"varint,2,opt,name=is_collection,json=isCollection,proto3,oneof" json:"is_collection,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) MarshalJSON added in v0.7.0

func (msg *Book_ShortStory) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

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

func (*Book_ShortStory) UnmarshalJSON added in v0.0.12

func (msg *Book_ShortStory) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Book_ShortStory_

type Book_ShortStory_ struct {
	ShortStory *Book_ShortStory `protobuf:"bytes,8,opt,name=short_story,json=shortStory,proto3,oneof"`
}

type Client added in v0.0.8

type Client struct {
	Key      string `protobuf:"bytes,1,opt,name=key,json=_key,proto3" json:"key,omitempty"`
	Id       string `protobuf:"bytes,2,opt,name=id,json=_id,proto3" json:"id,omitempty"`
	Revision string `protobuf:"bytes,3,opt,name=revision,json=_rev,proto3" json:"revision,omitempty"`
	Name     string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Email    string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	Member   *bool  `protobuf:"varint,6,opt,name=member,proto3,oneof" json:"member,omitempty"`
	// contains filtered or unexported fields
}

func (*Client) Descriptor deprecated added in v0.0.8

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

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetEmail added in v0.0.8

func (x *Client) GetEmail() string

func (*Client) GetId added in v0.7.0

func (x *Client) GetId() string

func (*Client) GetKey added in v0.0.8

func (x *Client) GetKey() string

func (*Client) GetMember added in v0.0.8

func (x *Client) GetMember() bool

func (*Client) GetName added in v0.0.8

func (x *Client) GetName() string

func (*Client) GetRevision added in v0.7.0

func (x *Client) GetRevision() string

func (*Client) MarshalJSON added in v0.7.0

func (msg *Client) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

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) Reset added in v0.0.8

func (x *Client) Reset()

func (*Client) String added in v0.0.8

func (x *Client) String() string

func (*Client) UnmarshalJSON added in v0.0.12

func (msg *Client) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

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) 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) MarshalJSON added in v0.7.0

func (msg *DeleteBookRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

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) UnmarshalJSON added in v0.1.1

func (msg *DeleteBookRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Library added in v0.0.12

type Library struct {
	Key        string        `protobuf:"bytes,1,opt,name=key,json=_key,proto3" json:"key,omitempty"`
	Id         string        `protobuf:"bytes,2,opt,name=id,json=_id,proto3" json:"id,omitempty"`
	Revision   string        `protobuf:"bytes,3,opt,name=revision,json=_rev,proto3" json:"revision,omitempty"`
	Name       string        `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Categories []v1.Category `protobuf:"varint,5,rep,packed,name=categories,proto3,enum=common.v1.Category" json:"categories,omitempty"`
	Location   *v11.Location `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"`
	Country    v12.Country   `protobuf:"varint,7,opt,name=country,proto3,enum=graphify.collections.v1.Country" json:"country,omitempty"`
	// contains filtered or unexported fields
}

func (*Library) Descriptor deprecated added in v0.0.12

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

Deprecated: Use Library.ProtoReflect.Descriptor instead.

func (*Library) GetCategories added in v0.4.26

func (x *Library) GetCategories() []v1.Category

func (*Library) GetCountry added in v0.4.7

func (x *Library) GetCountry() v12.Country

func (*Library) GetId added in v0.7.0

func (x *Library) GetId() string

func (*Library) GetKey added in v0.0.12

func (x *Library) GetKey() string

func (*Library) GetLocation added in v0.0.12

func (x *Library) GetLocation() *v11.Location

func (*Library) GetName added in v0.0.12

func (x *Library) GetName() string

func (*Library) GetRevision added in v0.7.0

func (x *Library) GetRevision() string

func (*Library) MarshalJSON added in v0.7.0

func (msg *Library) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

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) Reset added in v0.0.12

func (x *Library) Reset()

func (*Library) String added in v0.0.12

func (x *Library) String() string

func (*Library) UnmarshalJSON added in v0.0.12

func (msg *Library) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

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) 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) MarshalJSON added in v0.7.0

func (msg *ListBooksResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

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) UnmarshalJSON added in v0.1.1

func (msg *ListBooksResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

Jump to

Keyboard shortcuts

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