libraryv1

package
v0.12.12 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client_Role_name = map[int32]string{
		0: "ROLE_UNSPECIFIED",
		1: "ROLE_ADMIN",
		2: "ROLE_LIBRARIAN",
		3: "ROLE_OWNER",
		4: "ROLE_USER",
	}
	Client_Role_value = map[string]int32{
		"ROLE_UNSPECIFIED": 0,
		"ROLE_ADMIN":       1,
		"ROLE_LIBRARIAN":   2,
		"ROLE_OWNER":       3,
		"ROLE_USER":        4,
	}
)

Enum value maps for Client_Role.

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 Status:
	//
	//	*Book_Available
	//	*Book_Borrowed
	//	*Book_Lost
	//	*Book_Other
	Status isBook_Status `protobuf_oneof:"status"`
	// 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) GetAvailable

func (x *Book) GetAvailable() bool

func (*Book) GetBiography

func (x *Book) GetBiography() *Book_Biography

func (*Book) GetBookPrice

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

func (*Book) GetBorrowed

func (x *Book) GetBorrowed() bool

func (*Book) GetCategory

func (x *Book) GetCategory() v11.Category

func (*Book) GetChapters

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

func (*Book) GetCharacters

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

func (*Book) GetDescription

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

func (*Book) GetGallery

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

func (*Book) GetId

func (x *Book) GetId() string

func (*Book) GetKey

func (x *Book) GetKey() string

func (*Book) GetLost

func (x *Book) GetLost() bool

func (*Book) GetMainReview

func (x *Book) GetMainReview() *Book_Review

func (*Book) GetNovel

func (x *Book) GetNovel() *Book_Novel

func (*Book) GetOther

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

func (x *Book) GetRevision() string

func (*Book) GetShortStory

func (x *Book) GetShortStory() *Book_ShortStory

func (*Book) GetStatus added in v0.11.8

func (x *Book) GetStatus() isBook_Status

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

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

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

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

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_Available

type Book_Available struct {
	Available bool `protobuf:"varint,21,opt,name=available,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

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

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_Borrowed

type Book_Borrowed struct {
	Borrowed bool `protobuf:"varint,22,opt,name=borrowed,proto3,oneof"`
}

type Book_Lost

type Book_Lost struct {
	Lost bool `protobuf:"varint,23,opt,name=lost,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

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

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

type Book_Other struct {
	Other string `protobuf:"bytes,24,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

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

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

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

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

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

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

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"`
	Role        Client_Role   `protobuf:"varint,6,opt,name=role,proto3,enum=library.v1.Client_Role" json:"role,omitempty"`
	Active      *v1.DateRange `protobuf:"bytes,7,opt,name=active,proto3" json:"active,omitempty"`
	DateOfBirth *v1.Date      `protobuf:"bytes,8,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"`
	TimeOfBirth *v1.Time      `protobuf:"bytes,9,opt,name=time_of_birth,json=timeOfBirth,proto3" json:"time_of_birth,omitempty"`
	CreatedAt   *v1.DateTime  `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *v1.DateTime  `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Client) Descriptor deprecated

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

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetActive added in v0.11.27

func (x *Client) GetActive() *v1.DateRange

func (*Client) GetCreatedAt added in v0.11.8

func (x *Client) GetCreatedAt() *v1.DateTime

func (*Client) GetDateOfBirth added in v0.11.27

func (x *Client) GetDateOfBirth() *v1.Date

func (*Client) GetEmail

func (x *Client) GetEmail() string

func (*Client) GetId

func (x *Client) GetId() string

func (*Client) GetKey

func (x *Client) GetKey() string

func (*Client) GetName

func (x *Client) GetName() string

func (*Client) GetRevision

func (x *Client) GetRevision() string

func (*Client) GetRole

func (x *Client) GetRole() Client_Role

func (*Client) GetTimeOfBirth added in v0.11.27

func (x *Client) GetTimeOfBirth() *v1.Time

func (*Client) GetUpdatedAt added in v0.11.8

func (x *Client) GetUpdatedAt() *v1.DateTime

func (*Client) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

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

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

func (*Client) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

type Client_Role

type Client_Role int32
const (
	Client_ROLE_UNSPECIFIED Client_Role = 0
	Client_ROLE_ADMIN       Client_Role = 1
	Client_ROLE_LIBRARIAN   Client_Role = 2
	Client_ROLE_OWNER       Client_Role = 3
	Client_ROLE_USER        Client_Role = 4
)

func (Client_Role) Descriptor

func (Client_Role) Enum

func (x Client_Role) Enum() *Client_Role

func (Client_Role) EnumDescriptor deprecated

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

Deprecated: Use Client_Role.Descriptor instead.

func (Client_Role) Number

func (x Client_Role) Number() protoreflect.EnumNumber

func (Client_Role) String

func (x Client_Role) String() string

func (Client_Role) Type

type DeleteBookRequest

type DeleteBookRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteBookRequest) Descriptor deprecated

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

Deprecated: Use DeleteBookRequest.ProtoReflect.Descriptor instead.

func (*DeleteBookRequest) GetKey

func (x *DeleteBookRequest) GetKey() string

func (*DeleteBookRequest) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*DeleteBookRequest) ProtoMessage

func (*DeleteBookRequest) ProtoMessage()

func (*DeleteBookRequest) ProtoReflect

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

func (*DeleteBookRequest) Reset

func (x *DeleteBookRequest) Reset()

func (*DeleteBookRequest) String

func (x *DeleteBookRequest) String() string

func (*DeleteBookRequest) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

type Library

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.Point    `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"`
	Country    v12.Country   `protobuf:"varint,7,opt,name=country,proto3,enum=ftx.collections.v1.Country" json:"country,omitempty"`
	// contains filtered or unexported fields
}

func (*Library) Descriptor deprecated

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

Deprecated: Use Library.ProtoReflect.Descriptor instead.

func (*Library) GetCategories

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

func (*Library) GetCountry

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

func (*Library) GetId

func (x *Library) GetId() string

func (*Library) GetKey

func (x *Library) GetKey() string

func (*Library) GetLocation added in v0.11.23

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

func (*Library) GetName

func (x *Library) GetName() string

func (*Library) GetRevision

func (x *Library) GetRevision() string

func (*Library) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*Library) ProtoMessage

func (*Library) ProtoMessage()

func (*Library) ProtoReflect

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

func (*Library) Reset

func (x *Library) Reset()

func (*Library) String

func (x *Library) String() string

func (*Library) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

type ListBooksResponse

type ListBooksResponse struct {
	Books []*Book `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBooksResponse) Descriptor deprecated

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

Deprecated: Use ListBooksResponse.ProtoReflect.Descriptor instead.

func (*ListBooksResponse) GetBooks

func (x *ListBooksResponse) GetBooks() []*Book

func (*ListBooksResponse) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*ListBooksResponse) ProtoMessage

func (*ListBooksResponse) ProtoMessage()

func (*ListBooksResponse) ProtoReflect

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

func (*ListBooksResponse) Reset

func (x *ListBooksResponse) Reset()

func (*ListBooksResponse) String

func (x *ListBooksResponse) String() string

func (*ListBooksResponse) UnmarshalJSON

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