Documentation ¶
Overview ¶
Code generated by protoc-gen-apigw 0.1.28 from bookstore/v1/bookstore.proto. DO NOT EDIT
Index ¶
- Constants
- Variables
- func RegisterBookstoreServiceServer(s grpc.ServiceRegistrar, srv BookstoreServiceServer)
- func RegisterGatewayBookstoreServiceServer(s apigw_v1.ServiceRegistrar, srv BookstoreServiceServer)
- type Author
- func (*Author) Descriptor() ([]byte, []int)deprecated
- func (x *Author) GetBooks() []*anypb.Any
- func (x *Author) GetCreatedAt() *timestamppb.Timestamp
- func (x *Author) GetFirstName() string
- func (x *Author) GetGender() Author_Gender
- func (x *Author) GetId() int64
- func (x *Author) GetLastName() string
- func (x *Author) GetMetadata() string
- func (*Author) ProtoMessage()
- func (x *Author) ProtoReflect() protoreflect.Message
- func (x *Author) Reset()
- func (x *Author) String() string
- type Author_Gender
- func (Author_Gender) Descriptor() protoreflect.EnumDescriptor
- func (x Author_Gender) Enum() *Author_Gender
- func (Author_Gender) EnumDescriptor() ([]byte, []int)deprecated
- func (x Author_Gender) Number() protoreflect.EnumNumber
- func (x Author_Gender) String() string
- func (Author_Gender) Type() protoreflect.EnumType
- type Book
- func (*Book) Descriptor() ([]byte, []int)deprecated
- func (x *Book) GetAuthor() string
- func (x *Book) GetId() string
- func (x *Book) GetQuotes() []string
- func (x *Book) GetShelfId() string
- func (x *Book) GetTitle() string
- func (*Book) ProtoMessage()
- func (x *Book) ProtoReflect() protoreflect.Message
- func (x *Book) Reset()
- func (x *Book) String() string
- type BookstoreServiceClient
- type BookstoreServiceServer
- type CreateBookRequest
- func (*CreateBookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBookRequest) GetBook() *Book
- func (x *CreateBookRequest) GetShelf() string
- func (*CreateBookRequest) ProtoMessage()
- func (x *CreateBookRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBookRequest) Reset()
- func (x *CreateBookRequest) String() string
- type CreateBookResponse
- type CreateShelfRequest
- func (*CreateShelfRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateShelfRequest) GetShelf() *Shelf
- func (*CreateShelfRequest) ProtoMessage()
- func (x *CreateShelfRequest) ProtoReflect() protoreflect.Message
- func (x *CreateShelfRequest) Reset()
- func (x *CreateShelfRequest) String() string
- type CreateShelfResponse
- func (*CreateShelfResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateShelfResponse) GetShelf() *Shelf
- func (*CreateShelfResponse) ProtoMessage()
- func (x *CreateShelfResponse) ProtoReflect() protoreflect.Message
- func (x *CreateShelfResponse) Reset()
- func (x *CreateShelfResponse) String() string
- type DeleteBookRequest
- type DeleteBookResponse
- type DeleteShelfRequest
- func (*DeleteShelfRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteShelfRequest) GetShelf() string
- func (*DeleteShelfRequest) ProtoMessage()
- func (x *DeleteShelfRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteShelfRequest) Reset()
- func (x *DeleteShelfRequest) String() string
- type DeleteShelfResponse
- type GetAuthorRequest
- type GetAuthorResponse
- func (*GetAuthorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthorResponse) GetAuthor() *Author
- func (x *GetAuthorResponse) GetFiction() bool
- func (m *GetAuthorResponse) GetGenre() isGetAuthorResponse_Genre
- func (x *GetAuthorResponse) GetNonfiction() bool
- func (*GetAuthorResponse) ProtoMessage()
- func (x *GetAuthorResponse) ProtoReflect() protoreflect.Message
- func (x *GetAuthorResponse) Reset()
- func (x *GetAuthorResponse) String() string
- type GetAuthorResponse_Fiction
- type GetAuthorResponse_Nonfiction
- type GetBookRequest
- func (*GetBookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookRequest) GetBook() int64
- func (x *GetBookRequest) GetIncludeAuthor() bool
- func (x *GetBookRequest) GetPageSize() int32
- func (x *GetBookRequest) GetPageToken() string
- func (x *GetBookRequest) GetShelf() string
- func (*GetBookRequest) ProtoMessage()
- func (x *GetBookRequest) ProtoReflect() protoreflect.Message
- func (x *GetBookRequest) Reset()
- func (x *GetBookRequest) String() string
- type GetBookResponse
- type GetShelfRequest
- type ListBooksRequest
- type ListShelvesRequest
- type ListShelvesResponse
- func (*ListShelvesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListShelvesResponse) GetMask() *fieldmaskpb.FieldMask
- func (x *ListShelvesResponse) GetShelves() []*Shelf
- func (*ListShelvesResponse) ProtoMessage()
- func (x *ListShelvesResponse) ProtoReflect() protoreflect.Message
- func (x *ListShelvesResponse) Reset()
- func (x *ListShelvesResponse) String() string
- type Shelf
- func (*Shelf) Descriptor() ([]byte, []int)deprecated
- func (x *Shelf) GetId() string
- func (x *Shelf) GetSearchDecoded() string
- func (x *Shelf) GetSearchEncoded() string
- func (x *Shelf) GetTheme() string
- func (*Shelf) ProtoMessage()
- func (x *Shelf) ProtoReflect() protoreflect.Message
- func (x *Shelf) Reset()
- func (x *Shelf) String() string
- type UnimplementedBookstoreServiceServer
- func (UnimplementedBookstoreServiceServer) CreateBook(context.Context, *CreateBookRequest) (*CreateBookResponse, error)
- func (UnimplementedBookstoreServiceServer) CreateShelf(context.Context, *CreateShelfRequest) (*CreateShelfResponse, error)
- func (UnimplementedBookstoreServiceServer) DeleteBook(context.Context, *DeleteBookRequest) (*DeleteBookResponse, error)
- func (UnimplementedBookstoreServiceServer) DeleteShelf(context.Context, *DeleteShelfRequest) (*DeleteShelfResponse, error)
- func (UnimplementedBookstoreServiceServer) GetAuthor(context.Context, *GetAuthorRequest) (*GetAuthorResponse, error)
- func (UnimplementedBookstoreServiceServer) GetBook(context.Context, *GetBookRequest) (*GetBookResponse, error)
- func (UnimplementedBookstoreServiceServer) ListShelves(context.Context, *ListShelvesRequest) (*ListShelvesResponse, error)
- func (UnimplementedBookstoreServiceServer) UpdateBook(context.Context, *UpdateBookRequest) (*UpdateBookResponse, error)
- type UnsafeBookstoreServiceServer
- type UpdateBookRequest
- func (*UpdateBookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBookRequest) GetBook() *Book
- func (x *UpdateBookRequest) GetShelf() string
- func (*UpdateBookRequest) ProtoMessage()
- func (x *UpdateBookRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateBookRequest) Reset()
- func (x *UpdateBookRequest) String() string
- type UpdateBookResponse
Constants ¶
const ( BookstoreService_ListShelves_FullMethodName = "/bookstore.v1.BookstoreService/ListShelves" BookstoreService_CreateShelf_FullMethodName = "/bookstore.v1.BookstoreService/CreateShelf" BookstoreService_DeleteShelf_FullMethodName = "/bookstore.v1.BookstoreService/DeleteShelf" BookstoreService_CreateBook_FullMethodName = "/bookstore.v1.BookstoreService/CreateBook" BookstoreService_GetBook_FullMethodName = "/bookstore.v1.BookstoreService/GetBook" BookstoreService_DeleteBook_FullMethodName = "/bookstore.v1.BookstoreService/DeleteBook" BookstoreService_UpdateBook_FullMethodName = "/bookstore.v1.BookstoreService/UpdateBook" BookstoreService_GetAuthor_FullMethodName = "/bookstore.v1.BookstoreService/GetAuthor" )
Variables ¶
var ( Author_Gender_name = map[int32]string{ 0: "GENDER_UNSPECIFIED", 1: "GENDER_MALE", 2: "GENDER_FEMALE", } Author_Gender_value = map[string]int32{ "GENDER_UNSPECIFIED": 0, "GENDER_MALE": 1, "GENDER_FEMALE": 2, } )
Enum value maps for Author_Gender.
var APIGW_OAS31_BookstoreServiceServer string
var BookstoreService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bookstore.v1.BookstoreService", HandlerType: (*BookstoreServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListShelves", Handler: _BookstoreService_ListShelves_Handler, }, { MethodName: "CreateShelf", Handler: _BookstoreService_CreateShelf_Handler, }, { MethodName: "DeleteShelf", Handler: _BookstoreService_DeleteShelf_Handler, }, { MethodName: "CreateBook", Handler: _BookstoreService_CreateBook_Handler, }, { MethodName: "GetBook", Handler: _BookstoreService_GetBook_Handler, }, { MethodName: "DeleteBook", Handler: _BookstoreService_DeleteBook_Handler, }, { MethodName: "UpdateBook", Handler: _BookstoreService_UpdateBook_Handler, }, { MethodName: "GetAuthor", Handler: _BookstoreService_GetAuthor_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "bookstore/v1/bookstore.proto", }
BookstoreService_ServiceDesc is the grpc.ServiceDesc for BookstoreService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_bookstore_v1_bookstore_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBookstoreServiceServer ¶
func RegisterBookstoreServiceServer(s grpc.ServiceRegistrar, srv BookstoreServiceServer)
func RegisterGatewayBookstoreServiceServer ¶
func RegisterGatewayBookstoreServiceServer(s apigw_v1.ServiceRegistrar, srv BookstoreServiceServer)
Types ¶
type Author ¶
type Author struct { // A unique author id. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Gender Author_Gender `protobuf:"varint,2,opt,name=gender,proto3,enum=bookstore.v1.Author_Gender" json:"gender,omitempty"` FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,4,opt,name=last_name,json=lname,proto3" json:"last_name,omitempty"` Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Books []*anypb.Any `protobuf:"bytes,7,rep,name=books,proto3" json:"books,omitempty"` // contains filtered or unexported fields }
An author resource.
func (*Author) Descriptor
deprecated
func (*Author) GetCreatedAt ¶
func (x *Author) GetCreatedAt() *timestamppb.Timestamp
func (*Author) GetFirstName ¶
func (*Author) GetGender ¶
func (x *Author) GetGender() Author_Gender
func (*Author) GetLastName ¶
func (*Author) GetMetadata ¶
func (*Author) ProtoMessage ¶
func (*Author) ProtoMessage()
func (*Author) ProtoReflect ¶
func (x *Author) ProtoReflect() protoreflect.Message
type Author_Gender ¶
type Author_Gender int32
const ( Author_GENDER_UNSPECIFIED Author_Gender = 0 Author_GENDER_MALE Author_Gender = 1 Author_GENDER_FEMALE Author_Gender = 2 )
func (Author_Gender) Descriptor ¶
func (Author_Gender) Descriptor() protoreflect.EnumDescriptor
func (Author_Gender) Enum ¶
func (x Author_Gender) Enum() *Author_Gender
func (Author_Gender) EnumDescriptor
deprecated
func (Author_Gender) EnumDescriptor() ([]byte, []int)
Deprecated: Use Author_Gender.Descriptor instead.
func (Author_Gender) Number ¶
func (x Author_Gender) Number() protoreflect.EnumNumber
func (Author_Gender) String ¶
func (x Author_Gender) String() string
func (Author_Gender) Type ¶
func (Author_Gender) Type() protoreflect.EnumType
type Book ¶
type Book struct { // A unique book id. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // An author of the book. Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` // A book title. Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // Quotes from the book. Quotes []string `protobuf:"bytes,4,rep,name=quotes,proto3" json:"quotes,omitempty"` ShelfId string `protobuf:"bytes,5,opt,name=shelf_id,json=shelfId,proto3" json:"shelf_id,omitempty"` // contains filtered or unexported fields }
A book resource.
func (*Book) Descriptor
deprecated
func (*Book) GetShelfId ¶
func (*Book) ProtoMessage ¶
func (*Book) ProtoMessage()
func (*Book) ProtoReflect ¶
func (x *Book) ProtoReflect() protoreflect.Message
type BookstoreServiceClient ¶
type BookstoreServiceClient interface { // Returns a list of all shelves in the bookstore. ListShelves(ctx context.Context, in *ListShelvesRequest, opts ...grpc.CallOption) (*ListShelvesResponse, error) // Creates a new shelf in the bookstore. CreateShelf(ctx context.Context, in *CreateShelfRequest, opts ...grpc.CallOption) (*CreateShelfResponse, error) // Deletes a shelf, including all books that are stored on the shelf. DeleteShelf(ctx context.Context, in *DeleteShelfRequest, opts ...grpc.CallOption) (*DeleteShelfResponse, error) // Creates a new book. CreateBook(ctx context.Context, in *CreateBookRequest, opts ...grpc.CallOption) (*CreateBookResponse, error) // Returns a specific book. GetBook(ctx context.Context, in *GetBookRequest, opts ...grpc.CallOption) (*GetBookResponse, error) // Deletes a book from a shelf. DeleteBook(ctx context.Context, in *DeleteBookRequest, opts ...grpc.CallOption) (*DeleteBookResponse, error) UpdateBook(ctx context.Context, in *UpdateBookRequest, opts ...grpc.CallOption) (*UpdateBookResponse, error) // Returns a specific author. GetAuthor(ctx context.Context, in *GetAuthorRequest, opts ...grpc.CallOption) (*GetAuthorResponse, error) }
BookstoreServiceClient is the client API for BookstoreService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBookstoreServiceClient ¶
func NewBookstoreServiceClient(cc grpc.ClientConnInterface) BookstoreServiceClient
type BookstoreServiceServer ¶
type BookstoreServiceServer interface { // Returns a list of all shelves in the bookstore. ListShelves(context.Context, *ListShelvesRequest) (*ListShelvesResponse, error) // Creates a new shelf in the bookstore. CreateShelf(context.Context, *CreateShelfRequest) (*CreateShelfResponse, error) // Deletes a shelf, including all books that are stored on the shelf. DeleteShelf(context.Context, *DeleteShelfRequest) (*DeleteShelfResponse, error) // Creates a new book. CreateBook(context.Context, *CreateBookRequest) (*CreateBookResponse, error) // Returns a specific book. GetBook(context.Context, *GetBookRequest) (*GetBookResponse, error) // Deletes a book from a shelf. DeleteBook(context.Context, *DeleteBookRequest) (*DeleteBookResponse, error) UpdateBook(context.Context, *UpdateBookRequest) (*UpdateBookResponse, error) // Returns a specific author. GetAuthor(context.Context, *GetAuthorRequest) (*GetAuthorResponse, error) // contains filtered or unexported methods }
BookstoreServiceServer is the server API for BookstoreService service. All implementations must embed UnimplementedBookstoreServiceServer for forward compatibility
type CreateBookRequest ¶
type CreateBookRequest struct { // The ID of the shelf on which to create a book. Shelf string `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // A book resource to create on the shelf. Book *Book `protobuf:"bytes,2,opt,name=book,proto3" json:"book,omitempty"` // contains filtered or unexported fields }
Request message for CreateBook method.
func (*CreateBookRequest) Descriptor
deprecated
func (*CreateBookRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBookRequest.ProtoReflect.Descriptor instead.
func (*CreateBookRequest) GetBook ¶
func (x *CreateBookRequest) GetBook() *Book
func (*CreateBookRequest) GetShelf ¶
func (x *CreateBookRequest) GetShelf() string
func (*CreateBookRequest) ProtoMessage ¶
func (*CreateBookRequest) ProtoMessage()
func (*CreateBookRequest) ProtoReflect ¶
func (x *CreateBookRequest) ProtoReflect() protoreflect.Message
func (*CreateBookRequest) Reset ¶
func (x *CreateBookRequest) Reset()
func (*CreateBookRequest) String ¶
func (x *CreateBookRequest) String() string
type CreateBookResponse ¶
type CreateBookResponse struct { Book *Book `protobuf:"bytes,1,opt,name=book,proto3" json:"book,omitempty"` // contains filtered or unexported fields }
func (*CreateBookResponse) Descriptor
deprecated
func (*CreateBookResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateBookResponse.ProtoReflect.Descriptor instead.
func (*CreateBookResponse) GetBook ¶
func (x *CreateBookResponse) GetBook() *Book
func (*CreateBookResponse) ProtoMessage ¶
func (*CreateBookResponse) ProtoMessage()
func (*CreateBookResponse) ProtoReflect ¶
func (x *CreateBookResponse) ProtoReflect() protoreflect.Message
func (*CreateBookResponse) Reset ¶
func (x *CreateBookResponse) Reset()
func (*CreateBookResponse) String ¶
func (x *CreateBookResponse) String() string
type CreateShelfRequest ¶
type CreateShelfRequest struct { // The shelf resource to create. Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // contains filtered or unexported fields }
Request message for CreateShelf method.
func (*CreateShelfRequest) Descriptor
deprecated
func (*CreateShelfRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateShelfRequest.ProtoReflect.Descriptor instead.
func (*CreateShelfRequest) GetShelf ¶
func (x *CreateShelfRequest) GetShelf() *Shelf
func (*CreateShelfRequest) ProtoMessage ¶
func (*CreateShelfRequest) ProtoMessage()
func (*CreateShelfRequest) ProtoReflect ¶
func (x *CreateShelfRequest) ProtoReflect() protoreflect.Message
func (*CreateShelfRequest) Reset ¶
func (x *CreateShelfRequest) Reset()
func (*CreateShelfRequest) String ¶
func (x *CreateShelfRequest) String() string
type CreateShelfResponse ¶
type CreateShelfResponse struct { Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // contains filtered or unexported fields }
func (*CreateShelfResponse) Descriptor
deprecated
func (*CreateShelfResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateShelfResponse.ProtoReflect.Descriptor instead.
func (*CreateShelfResponse) GetShelf ¶
func (x *CreateShelfResponse) GetShelf() *Shelf
func (*CreateShelfResponse) ProtoMessage ¶
func (*CreateShelfResponse) ProtoMessage()
func (*CreateShelfResponse) ProtoReflect ¶
func (x *CreateShelfResponse) ProtoReflect() protoreflect.Message
func (*CreateShelfResponse) Reset ¶
func (x *CreateShelfResponse) Reset()
func (*CreateShelfResponse) String ¶
func (x *CreateShelfResponse) String() string
type DeleteBookRequest ¶
type DeleteBookRequest struct { // The book resource to delete. Book *Book `protobuf:"bytes,1,opt,name=book,proto3" json:"book,omitempty"` // contains filtered or unexported fields }
Request message for DeleteBook method.
func (*DeleteBookRequest) Descriptor
deprecated
func (*DeleteBookRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBookRequest.ProtoReflect.Descriptor instead.
func (*DeleteBookRequest) GetBook ¶
func (x *DeleteBookRequest) GetBook() *Book
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
type DeleteBookResponse ¶
type DeleteBookResponse struct {
// contains filtered or unexported fields
}
func (*DeleteBookResponse) Descriptor
deprecated
func (*DeleteBookResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBookResponse.ProtoReflect.Descriptor instead.
func (*DeleteBookResponse) ProtoMessage ¶
func (*DeleteBookResponse) ProtoMessage()
func (*DeleteBookResponse) ProtoReflect ¶
func (x *DeleteBookResponse) ProtoReflect() protoreflect.Message
func (*DeleteBookResponse) Reset ¶
func (x *DeleteBookResponse) Reset()
func (*DeleteBookResponse) String ¶
func (x *DeleteBookResponse) String() string
type DeleteShelfRequest ¶
type DeleteShelfRequest struct { // The ID of the shelf to delete. Shelf string `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // contains filtered or unexported fields }
Request message for DeleteShelf method.
func (*DeleteShelfRequest) Descriptor
deprecated
func (*DeleteShelfRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteShelfRequest.ProtoReflect.Descriptor instead.
func (*DeleteShelfRequest) GetShelf ¶
func (x *DeleteShelfRequest) GetShelf() string
func (*DeleteShelfRequest) ProtoMessage ¶
func (*DeleteShelfRequest) ProtoMessage()
func (*DeleteShelfRequest) ProtoReflect ¶
func (x *DeleteShelfRequest) ProtoReflect() protoreflect.Message
func (*DeleteShelfRequest) Reset ¶
func (x *DeleteShelfRequest) Reset()
func (*DeleteShelfRequest) String ¶
func (x *DeleteShelfRequest) String() string
type DeleteShelfResponse ¶
type DeleteShelfResponse struct {
// contains filtered or unexported fields
}
func (*DeleteShelfResponse) Descriptor
deprecated
func (*DeleteShelfResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteShelfResponse.ProtoReflect.Descriptor instead.
func (*DeleteShelfResponse) ProtoMessage ¶
func (*DeleteShelfResponse) ProtoMessage()
func (*DeleteShelfResponse) ProtoReflect ¶
func (x *DeleteShelfResponse) ProtoReflect() protoreflect.Message
func (*DeleteShelfResponse) Reset ¶
func (x *DeleteShelfResponse) Reset()
func (*DeleteShelfResponse) String ¶
func (x *DeleteShelfResponse) String() string
type GetAuthorRequest ¶
type GetAuthorRequest struct { // The ID of the author resource to retrieve. Author int64 `protobuf:"varint,1,opt,name=author,proto3" json:"author,omitempty"` // contains filtered or unexported fields }
Request message for GetAuthor method.
func (*GetAuthorRequest) Descriptor
deprecated
func (*GetAuthorRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthorRequest.ProtoReflect.Descriptor instead.
func (*GetAuthorRequest) GetAuthor ¶
func (x *GetAuthorRequest) GetAuthor() int64
func (*GetAuthorRequest) ProtoMessage ¶
func (*GetAuthorRequest) ProtoMessage()
func (*GetAuthorRequest) ProtoReflect ¶
func (x *GetAuthorRequest) ProtoReflect() protoreflect.Message
func (*GetAuthorRequest) Reset ¶
func (x *GetAuthorRequest) Reset()
func (*GetAuthorRequest) String ¶
func (x *GetAuthorRequest) String() string
type GetAuthorResponse ¶
type GetAuthorResponse struct { Author *Author `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"` // Types that are assignable to Genre: // // *GetAuthorResponse_Fiction // *GetAuthorResponse_Nonfiction Genre isGetAuthorResponse_Genre `protobuf_oneof:"genre"` // contains filtered or unexported fields }
func (*GetAuthorResponse) Descriptor
deprecated
func (*GetAuthorResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthorResponse.ProtoReflect.Descriptor instead.
func (*GetAuthorResponse) GetAuthor ¶
func (x *GetAuthorResponse) GetAuthor() *Author
func (*GetAuthorResponse) GetFiction ¶
func (x *GetAuthorResponse) GetFiction() bool
func (*GetAuthorResponse) GetGenre ¶
func (m *GetAuthorResponse) GetGenre() isGetAuthorResponse_Genre
func (*GetAuthorResponse) GetNonfiction ¶
func (x *GetAuthorResponse) GetNonfiction() bool
func (*GetAuthorResponse) ProtoMessage ¶
func (*GetAuthorResponse) ProtoMessage()
func (*GetAuthorResponse) ProtoReflect ¶
func (x *GetAuthorResponse) ProtoReflect() protoreflect.Message
func (*GetAuthorResponse) Reset ¶
func (x *GetAuthorResponse) Reset()
func (*GetAuthorResponse) String ¶
func (x *GetAuthorResponse) String() string
type GetAuthorResponse_Fiction ¶
type GetAuthorResponse_Fiction struct {
Fiction bool `protobuf:"varint,2,opt,name=fiction,proto3,oneof"`
}
type GetAuthorResponse_Nonfiction ¶
type GetAuthorResponse_Nonfiction struct {
Nonfiction bool `protobuf:"varint,3,opt,name=nonfiction,proto3,oneof"`
}
type GetBookRequest ¶
type GetBookRequest struct { // The ID of the shelf from which to retrieve a book. Shelf string `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // The ID of the book to retrieve. Book int64 `protobuf:"varint,2,opt,name=book,proto3" json:"book,omitempty"` IncludeAuthor bool `protobuf:"varint,3,opt,name=include_author,json=includeAuthor,proto3" json:"include_author,omitempty"` PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request message for GetBook method.
func (*GetBookRequest) Descriptor
deprecated
func (*GetBookRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBookRequest.ProtoReflect.Descriptor instead.
func (*GetBookRequest) GetBook ¶
func (x *GetBookRequest) GetBook() int64
func (*GetBookRequest) GetIncludeAuthor ¶
func (x *GetBookRequest) GetIncludeAuthor() bool
func (*GetBookRequest) GetPageSize ¶ added in v0.1.26
func (x *GetBookRequest) GetPageSize() int32
func (*GetBookRequest) GetPageToken ¶ added in v0.1.26
func (x *GetBookRequest) GetPageToken() string
func (*GetBookRequest) GetShelf ¶
func (x *GetBookRequest) GetShelf() string
func (*GetBookRequest) ProtoMessage ¶
func (*GetBookRequest) ProtoMessage()
func (*GetBookRequest) ProtoReflect ¶
func (x *GetBookRequest) ProtoReflect() protoreflect.Message
func (*GetBookRequest) Reset ¶
func (x *GetBookRequest) Reset()
func (*GetBookRequest) String ¶
func (x *GetBookRequest) String() string
type GetBookResponse ¶
type GetBookResponse struct { Book *Book `protobuf:"bytes,1,opt,name=book,proto3" json:"book,omitempty"` // contains filtered or unexported fields }
func (*GetBookResponse) Descriptor
deprecated
func (*GetBookResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBookResponse.ProtoReflect.Descriptor instead.
func (*GetBookResponse) GetBook ¶
func (x *GetBookResponse) GetBook() *Book
func (*GetBookResponse) ProtoMessage ¶
func (*GetBookResponse) ProtoMessage()
func (*GetBookResponse) ProtoReflect ¶
func (x *GetBookResponse) ProtoReflect() protoreflect.Message
func (*GetBookResponse) Reset ¶
func (x *GetBookResponse) Reset()
func (*GetBookResponse) String ¶
func (x *GetBookResponse) String() string
type GetShelfRequest ¶
type GetShelfRequest struct { // The ID of the shelf resource to retrieve. Shelf string `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // contains filtered or unexported fields }
Request message for GetShelf method.
func (*GetShelfRequest) Descriptor
deprecated
func (*GetShelfRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetShelfRequest.ProtoReflect.Descriptor instead.
func (*GetShelfRequest) GetShelf ¶
func (x *GetShelfRequest) GetShelf() string
func (*GetShelfRequest) ProtoMessage ¶
func (*GetShelfRequest) ProtoMessage()
func (*GetShelfRequest) ProtoReflect ¶
func (x *GetShelfRequest) ProtoReflect() protoreflect.Message
func (*GetShelfRequest) Reset ¶
func (x *GetShelfRequest) Reset()
func (*GetShelfRequest) String ¶
func (x *GetShelfRequest) String() string
type ListBooksRequest ¶
type ListBooksRequest struct { // ID of the shelf which books to list. Shelf string `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // contains filtered or unexported fields }
Request message for ListBooks method.
func (*ListBooksRequest) Descriptor
deprecated
func (*ListBooksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBooksRequest.ProtoReflect.Descriptor instead.
func (*ListBooksRequest) GetShelf ¶
func (x *ListBooksRequest) GetShelf() string
func (*ListBooksRequest) ProtoMessage ¶
func (*ListBooksRequest) ProtoMessage()
func (*ListBooksRequest) ProtoReflect ¶
func (x *ListBooksRequest) ProtoReflect() protoreflect.Message
func (*ListBooksRequest) Reset ¶
func (x *ListBooksRequest) Reset()
func (*ListBooksRequest) String ¶
func (x *ListBooksRequest) String() string
type ListShelvesRequest ¶
type ListShelvesRequest struct {
// contains filtered or unexported fields
}
func (*ListShelvesRequest) Descriptor
deprecated
func (*ListShelvesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListShelvesRequest.ProtoReflect.Descriptor instead.
func (*ListShelvesRequest) ProtoMessage ¶
func (*ListShelvesRequest) ProtoMessage()
func (*ListShelvesRequest) ProtoReflect ¶
func (x *ListShelvesRequest) ProtoReflect() protoreflect.Message
func (*ListShelvesRequest) Reset ¶
func (x *ListShelvesRequest) Reset()
func (*ListShelvesRequest) String ¶
func (x *ListShelvesRequest) String() string
type ListShelvesResponse ¶
type ListShelvesResponse struct { // Shelves in the bookstore. Shelves []*Shelf `protobuf:"bytes,1,rep,name=shelves,proto3" json:"shelves,omitempty"` Mask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=mask,proto3" json:"mask,omitempty"` // contains filtered or unexported fields }
Response to ListShelves call.
func (*ListShelvesResponse) Descriptor
deprecated
func (*ListShelvesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListShelvesResponse.ProtoReflect.Descriptor instead.
func (*ListShelvesResponse) GetMask ¶
func (x *ListShelvesResponse) GetMask() *fieldmaskpb.FieldMask
func (*ListShelvesResponse) GetShelves ¶
func (x *ListShelvesResponse) GetShelves() []*Shelf
func (*ListShelvesResponse) ProtoMessage ¶
func (*ListShelvesResponse) ProtoMessage()
func (*ListShelvesResponse) ProtoReflect ¶
func (x *ListShelvesResponse) ProtoReflect() protoreflect.Message
func (*ListShelvesResponse) Reset ¶
func (x *ListShelvesResponse) Reset()
func (*ListShelvesResponse) String ¶
func (x *ListShelvesResponse) String() string
type Shelf ¶
type Shelf struct { // A unique shelf id. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // A theme of the shelf (fiction, poetry, etc). Theme string `protobuf:"bytes,2,opt,name=theme,proto3" json:"theme,omitempty"` // To test json name is percentage decoded SearchDecoded string `protobuf:"bytes,3,opt,name=search_decoded,json=search[decoded],proto3" json:"search_decoded,omitempty"` // To test json name is percentage encoded SearchEncoded string `protobuf:"bytes,4,opt,name=search_encoded,json=search%5Bencoded%5D,proto3" json:"search_encoded,omitempty"` // contains filtered or unexported fields }
A shelf resource.
func (*Shelf) Descriptor
deprecated
func (*Shelf) GetSearchDecoded ¶
func (*Shelf) GetSearchEncoded ¶
func (*Shelf) ProtoMessage ¶
func (*Shelf) ProtoMessage()
func (*Shelf) ProtoReflect ¶
func (x *Shelf) ProtoReflect() protoreflect.Message
type UnimplementedBookstoreServiceServer ¶
type UnimplementedBookstoreServiceServer struct { }
UnimplementedBookstoreServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedBookstoreServiceServer) CreateBook ¶
func (UnimplementedBookstoreServiceServer) CreateBook(context.Context, *CreateBookRequest) (*CreateBookResponse, error)
func (UnimplementedBookstoreServiceServer) CreateShelf ¶
func (UnimplementedBookstoreServiceServer) CreateShelf(context.Context, *CreateShelfRequest) (*CreateShelfResponse, error)
func (UnimplementedBookstoreServiceServer) DeleteBook ¶
func (UnimplementedBookstoreServiceServer) DeleteBook(context.Context, *DeleteBookRequest) (*DeleteBookResponse, error)
func (UnimplementedBookstoreServiceServer) DeleteShelf ¶
func (UnimplementedBookstoreServiceServer) DeleteShelf(context.Context, *DeleteShelfRequest) (*DeleteShelfResponse, error)
func (UnimplementedBookstoreServiceServer) GetAuthor ¶
func (UnimplementedBookstoreServiceServer) GetAuthor(context.Context, *GetAuthorRequest) (*GetAuthorResponse, error)
func (UnimplementedBookstoreServiceServer) GetBook ¶
func (UnimplementedBookstoreServiceServer) GetBook(context.Context, *GetBookRequest) (*GetBookResponse, error)
func (UnimplementedBookstoreServiceServer) ListShelves ¶
func (UnimplementedBookstoreServiceServer) ListShelves(context.Context, *ListShelvesRequest) (*ListShelvesResponse, error)
func (UnimplementedBookstoreServiceServer) UpdateBook ¶
func (UnimplementedBookstoreServiceServer) UpdateBook(context.Context, *UpdateBookRequest) (*UpdateBookResponse, error)
type UnsafeBookstoreServiceServer ¶
type UnsafeBookstoreServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBookstoreServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BookstoreServiceServer will result in compilation errors.
type UpdateBookRequest ¶
type UpdateBookRequest struct { // The ID of the shelf from which to retrieve a book. Shelf string `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // A book resource to update on the shelf. Book *Book `protobuf:"bytes,2,opt,name=book,proto3" json:"book,omitempty"` // contains filtered or unexported fields }
Request message for UpdateBook method
func (*UpdateBookRequest) Descriptor
deprecated
func (*UpdateBookRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBookRequest.ProtoReflect.Descriptor instead.
func (*UpdateBookRequest) GetBook ¶
func (x *UpdateBookRequest) GetBook() *Book
func (*UpdateBookRequest) GetShelf ¶
func (x *UpdateBookRequest) GetShelf() string
func (*UpdateBookRequest) ProtoMessage ¶
func (*UpdateBookRequest) ProtoMessage()
func (*UpdateBookRequest) ProtoReflect ¶
func (x *UpdateBookRequest) ProtoReflect() protoreflect.Message
func (*UpdateBookRequest) Reset ¶
func (x *UpdateBookRequest) Reset()
func (*UpdateBookRequest) String ¶
func (x *UpdateBookRequest) String() string
type UpdateBookResponse ¶
type UpdateBookResponse struct { Book *Book `protobuf:"bytes,1,opt,name=book,proto3" json:"book,omitempty"` // contains filtered or unexported fields }
func (*UpdateBookResponse) Descriptor
deprecated
func (*UpdateBookResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBookResponse.ProtoReflect.Descriptor instead.
func (*UpdateBookResponse) GetBook ¶
func (x *UpdateBookResponse) GetBook() *Book
func (*UpdateBookResponse) ProtoMessage ¶
func (*UpdateBookResponse) ProtoMessage()
func (*UpdateBookResponse) ProtoReflect ¶
func (x *UpdateBookResponse) ProtoReflect() protoreflect.Message
func (*UpdateBookResponse) Reset ¶
func (x *UpdateBookResponse) Reset()
func (*UpdateBookResponse) String ¶
func (x *UpdateBookResponse) String() string