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) GetAvailable() bool
- func (x *Book) GetBiography() *Book_Biography
- func (x *Book) GetBookPrice() map[string]int32
- func (x *Book) GetBorrowed() bool
- func (x *Book) GetCategory() v11.Category
- func (x *Book) GetChapters() map[int32]string
- func (x *Book) GetCharacters() map[string]*v11.Character
- func (x *Book) GetDescription() *v1.RichText
- func (x *Book) GetGallery() [][]byte
- func (x *Book) GetId() string
- func (x *Book) GetKey() string
- func (x *Book) GetLost() bool
- func (x *Book) GetMainReview() *Book_Review
- 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 (x *Book) GetRevision() string
- func (x *Book) GetShortStory() *Book_ShortStory
- func (x *Book) GetStatus() isBook_Status
- func (x *Book) GetTags() []string
- func (x *Book) GetTitle() string
- func (x *Book) GetType() isBook_Type
- func (msg *Book) MarshalJSON() ([]byte, error)
- func (*Book) ProtoMessage()
- func (x *Book) ProtoReflect() protoreflect.Message
- func (x *Book) Reset()
- func (x *Book) String() string
- func (msg *Book) UnmarshalJSON(b []byte) error
- type Book_Academic
- func (*Book_Academic) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Academic) GetEdition() int32
- func (x *Book_Academic) GetSubject() string
- func (msg *Book_Academic) MarshalJSON() ([]byte, error)
- func (*Book_Academic) ProtoMessage()
- func (x *Book_Academic) ProtoReflect() protoreflect.Message
- func (x *Book_Academic) Reset()
- func (x *Book_Academic) String() string
- func (msg *Book_Academic) UnmarshalJSON(b []byte) error
- type Book_Academic_
- type Book_Available
- type Book_Biography
- func (*Book_Biography) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Biography) GetNotableAchievements() string
- func (x *Book_Biography) GetSubjectPerson() string
- func (msg *Book_Biography) MarshalJSON() ([]byte, error)
- func (*Book_Biography) ProtoMessage()
- func (x *Book_Biography) ProtoReflect() protoreflect.Message
- func (x *Book_Biography) Reset()
- func (x *Book_Biography) String() string
- func (msg *Book_Biography) UnmarshalJSON(b []byte) error
- type Book_Biography_
- type Book_Borrowed
- type Book_Lost
- type Book_Novel
- func (*Book_Novel) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Novel) GetGenre() string
- func (x *Book_Novel) GetPublicationYear() int32
- func (msg *Book_Novel) MarshalJSON() ([]byte, error)
- func (*Book_Novel) ProtoMessage()
- func (x *Book_Novel) ProtoReflect() protoreflect.Message
- func (x *Book_Novel) Reset()
- func (x *Book_Novel) String() string
- func (msg *Book_Novel) UnmarshalJSON(b []byte) error
- type Book_Novel_
- type Book_Other
- type Book_Poetry
- func (*Book_Poetry) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Poetry) GetIsAnthology() bool
- func (x *Book_Poetry) GetStyle() string
- func (msg *Book_Poetry) MarshalJSON() ([]byte, error)
- func (*Book_Poetry) ProtoMessage()
- func (x *Book_Poetry) ProtoReflect() protoreflect.Message
- func (x *Book_Poetry) Reset()
- func (x *Book_Poetry) String() string
- func (msg *Book_Poetry) UnmarshalJSON(b []byte) error
- 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 (msg *Book_Review) MarshalJSON() ([]byte, error)
- func (*Book_Review) ProtoMessage()
- func (x *Book_Review) ProtoReflect() protoreflect.Message
- func (x *Book_Review) Reset()
- func (x *Book_Review) String() string
- func (msg *Book_Review) UnmarshalJSON(b []byte) error
- type Book_ShortStory
- func (*Book_ShortStory) Descriptor() ([]byte, []int)deprecated
- func (x *Book_ShortStory) GetIsCollection() bool
- func (x *Book_ShortStory) GetLengthPages() int32
- func (msg *Book_ShortStory) MarshalJSON() ([]byte, error)
- func (*Book_ShortStory) ProtoMessage()
- func (x *Book_ShortStory) ProtoReflect() protoreflect.Message
- func (x *Book_ShortStory) Reset()
- func (x *Book_ShortStory) String() string
- func (msg *Book_ShortStory) UnmarshalJSON(b []byte) error
- type Book_ShortStory_
- type Client
- func (*Client) Descriptor() ([]byte, []int)deprecated
- func (x *Client) GetActive() *v1.DateRange
- func (x *Client) GetCreatedAt() *v1.DateTime
- func (x *Client) GetDateOfBirth() *v1.Date
- func (x *Client) GetEmail() string
- func (x *Client) GetId() string
- func (x *Client) GetKey() string
- func (x *Client) GetName() string
- func (x *Client) GetRevision() string
- func (x *Client) GetRole() Client_Role
- func (x *Client) GetTimeOfBirth() *v1.Time
- func (x *Client) GetUpdatedAt() *v1.DateTime
- func (msg *Client) MarshalJSON() ([]byte, error)
- func (*Client) ProtoMessage()
- func (x *Client) ProtoReflect() protoreflect.Message
- func (x *Client) Reset()
- func (x *Client) String() string
- func (msg *Client) UnmarshalJSON(b []byte) error
- type Client_Role
- func (Client_Role) Descriptor() protoreflect.EnumDescriptor
- func (x Client_Role) Enum() *Client_Role
- func (Client_Role) EnumDescriptor() ([]byte, []int)deprecated
- func (x Client_Role) Number() protoreflect.EnumNumber
- func (x Client_Role) String() string
- func (Client_Role) Type() protoreflect.EnumType
- type DeleteBookRequest
- func (*DeleteBookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteBookRequest) GetKey() string
- func (msg *DeleteBookRequest) MarshalJSON() ([]byte, error)
- func (*DeleteBookRequest) ProtoMessage()
- func (x *DeleteBookRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteBookRequest) Reset()
- func (x *DeleteBookRequest) String() string
- func (msg *DeleteBookRequest) UnmarshalJSON(b []byte) error
- type Library
- func (*Library) Descriptor() ([]byte, []int)deprecated
- func (x *Library) GetCategories() []v1.Category
- func (x *Library) GetCountry() v12.Country
- func (x *Library) GetId() string
- func (x *Library) GetKey() string
- func (x *Library) GetLocation() *v11.Point
- func (x *Library) GetName() string
- func (x *Library) GetRevision() string
- func (msg *Library) MarshalJSON() ([]byte, error)
- func (*Library) ProtoMessage()
- func (x *Library) ProtoReflect() protoreflect.Message
- func (x *Library) Reset()
- func (x *Library) String() string
- func (msg *Library) UnmarshalJSON(b []byte) error
- type ListBooksResponse
- func (*ListBooksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBooksResponse) GetBooks() []*Book
- func (msg *ListBooksResponse) MarshalJSON() ([]byte, error)
- func (*ListBooksResponse) ProtoMessage()
- func (x *ListBooksResponse) ProtoReflect() protoreflect.Message
- func (x *ListBooksResponse) Reset()
- func (x *ListBooksResponse) String() string
- func (msg *ListBooksResponse) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
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.
var File_library_v1_book_proto protoreflect.FileDescriptor
var File_library_v1_client_proto protoreflect.FileDescriptor
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) GetAcademic ¶
func (x *Book) GetAcademic() *Book_Academic
func (*Book) GetAvailable ¶
func (*Book) GetBiography ¶
func (x *Book) GetBiography() *Book_Biography
func (*Book) GetBookPrice ¶
func (*Book) GetBorrowed ¶
func (*Book) GetCategory ¶
func (*Book) GetChapters ¶
func (*Book) GetDescription ¶
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) GetRevision ¶
func (*Book) GetShortStory ¶
func (x *Book) GetShortStory() *Book_ShortStory
func (*Book) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Book) ProtoMessage ¶
func (*Book) ProtoMessage()
func (*Book) ProtoReflect ¶
func (x *Book) ProtoReflect() protoreflect.Message
func (*Book) UnmarshalJSON ¶
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) GetCreatedAt ¶ added in v0.11.8
func (*Client) GetDateOfBirth ¶ added in v0.11.27
func (*Client) GetRevision ¶
func (*Client) GetRole ¶
func (x *Client) GetRole() Client_Role
func (*Client) GetTimeOfBirth ¶ added in v0.11.27
func (*Client) GetUpdatedAt ¶ added in v0.11.8
func (*Client) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Client) ProtoMessage ¶
func (*Client) ProtoMessage()
func (*Client) ProtoReflect ¶
func (x *Client) ProtoReflect() protoreflect.Message
func (*Client) UnmarshalJSON ¶
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) Descriptor() protoreflect.EnumDescriptor
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 ¶
func (Client_Role) Type() protoreflect.EnumType
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) GetCategories ¶
func (*Library) GetCountry ¶
func (*Library) GetLocation ¶ added in v0.11.23
func (*Library) GetRevision ¶
func (*Library) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Library) ProtoMessage ¶
func (*Library) ProtoMessage()
func (*Library) ProtoReflect ¶
func (x *Library) ProtoReflect() protoreflect.Message
func (*Library) UnmarshalJSON ¶
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