Documentation
¶
Overview ¶
Package bookstore is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterBookstoreHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBookstoreHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BookstoreClient) error
- func RegisterBookstoreHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BookstoreServer) error
- func RegisterBookstoreServer(s grpc.ServiceRegistrar, srv BookstoreServer)
- type ApplyBookRequest
- func (*ApplyBookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyBookRequest) GetBook() *Book
- func (x *ApplyBookRequest) GetPath() string
- func (*ApplyBookRequest) ProtoMessage()
- func (x *ApplyBookRequest) ProtoReflect() protoreflect.Message
- func (x *ApplyBookRequest) Reset()
- func (x *ApplyBookRequest) String() string
- type ApplyPublisherRequest
- func (*ApplyPublisherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyPublisherRequest) GetPath() string
- func (x *ApplyPublisherRequest) GetPublisher() *Publisher
- func (*ApplyPublisherRequest) ProtoMessage()
- func (x *ApplyPublisherRequest) ProtoReflect() protoreflect.Message
- func (x *ApplyPublisherRequest) Reset()
- func (x *ApplyPublisherRequest) String() string
- type ArchiveBookRequest
- func (*ArchiveBookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ArchiveBookRequest) GetPath() string
- func (*ArchiveBookRequest) ProtoMessage()
- func (x *ArchiveBookRequest) ProtoReflect() protoreflect.Message
- func (x *ArchiveBookRequest) Reset()
- func (x *ArchiveBookRequest) String() string
- type ArchiveBookResponse
- func (*ArchiveBookResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ArchiveBookResponse) GetSuccess() bool
- func (*ArchiveBookResponse) ProtoMessage()
- func (x *ArchiveBookResponse) ProtoReflect() protoreflect.Message
- func (x *ArchiveBookResponse) Reset()
- func (x *ArchiveBookResponse) String() string
- type Book
- func (*Book) Descriptor() ([]byte, []int)deprecated
- func (x *Book) GetAuthor() []*Book_Author
- func (x *Book) GetEdition() int32
- func (x *Book) GetIsbn() []string
- func (x *Book) GetPath() string
- func (x *Book) GetPrice() float32
- func (x *Book) GetPublished() bool
- func (*Book) ProtoMessage()
- func (x *Book) ProtoReflect() protoreflect.Message
- func (x *Book) Reset()
- func (x *Book) String() string
- type BookEdition
- func (*BookEdition) Descriptor() ([]byte, []int)deprecated
- func (x *BookEdition) GetDisplayname() string
- func (x *BookEdition) GetPath() string
- func (*BookEdition) ProtoMessage()
- func (x *BookEdition) ProtoReflect() protoreflect.Message
- func (x *BookEdition) Reset()
- func (x *BookEdition) String() string
- type Book_Author
- func (*Book_Author) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Author) GetFirstName() string
- func (x *Book_Author) GetLastName() string
- func (*Book_Author) ProtoMessage()
- func (x *Book_Author) ProtoReflect() protoreflect.Message
- func (x *Book_Author) Reset()
- func (x *Book_Author) String() string
- type BookstoreClient
- type BookstoreServer
- type CreateBookEditionRequest
- func (*CreateBookEditionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBookEditionRequest) GetBookEdition() *BookEdition
- func (x *CreateBookEditionRequest) GetId() string
- func (x *CreateBookEditionRequest) GetParent() string
- func (*CreateBookEditionRequest) ProtoMessage()
- func (x *CreateBookEditionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBookEditionRequest) Reset()
- func (x *CreateBookEditionRequest) String() string
- type CreateBookRequest
- func (*CreateBookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBookRequest) GetBook() *Book
- func (x *CreateBookRequest) GetId() string
- func (x *CreateBookRequest) GetParent() string
- func (*CreateBookRequest) ProtoMessage()
- func (x *CreateBookRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBookRequest) Reset()
- func (x *CreateBookRequest) String() string
- type CreateIsbnRequest
- func (*CreateIsbnRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateIsbnRequest) GetId() string
- func (x *CreateIsbnRequest) GetIsbn() *Isbn
- func (x *CreateIsbnRequest) GetParent() string
- func (*CreateIsbnRequest) ProtoMessage()
- func (x *CreateIsbnRequest) ProtoReflect() protoreflect.Message
- func (x *CreateIsbnRequest) Reset()
- func (x *CreateIsbnRequest) String() string
- type CreatePublisherRequest
- func (*CreatePublisherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePublisherRequest) GetId() string
- func (x *CreatePublisherRequest) GetParent() string
- func (x *CreatePublisherRequest) GetPublisher() *Publisher
- func (*CreatePublisherRequest) ProtoMessage()
- func (x *CreatePublisherRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePublisherRequest) Reset()
- func (x *CreatePublisherRequest) String() string
- type DeleteBookEditionRequest
- func (*DeleteBookEditionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteBookEditionRequest) GetPath() string
- func (*DeleteBookEditionRequest) ProtoMessage()
- func (x *DeleteBookEditionRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteBookEditionRequest) Reset()
- func (x *DeleteBookEditionRequest) String() string
- type DeleteBookRequest
- func (*DeleteBookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteBookRequest) GetForce() bool
- func (x *DeleteBookRequest) GetPath() string
- func (*DeleteBookRequest) ProtoMessage()
- func (x *DeleteBookRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteBookRequest) Reset()
- func (x *DeleteBookRequest) String() string
- type DeletePublisherRequest
- func (*DeletePublisherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePublisherRequest) GetForce() bool
- func (x *DeletePublisherRequest) GetPath() string
- func (*DeletePublisherRequest) ProtoMessage()
- func (x *DeletePublisherRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePublisherRequest) Reset()
- func (x *DeletePublisherRequest) String() string
- type GetBookEditionRequest
- func (*GetBookEditionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookEditionRequest) GetPath() string
- func (*GetBookEditionRequest) ProtoMessage()
- func (x *GetBookEditionRequest) ProtoReflect() protoreflect.Message
- func (x *GetBookEditionRequest) Reset()
- func (x *GetBookEditionRequest) String() string
- type GetBookRequest
- type GetIsbnRequest
- type GetPublisherRequest
- func (*GetPublisherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPublisherRequest) GetPath() string
- func (*GetPublisherRequest) ProtoMessage()
- func (x *GetPublisherRequest) ProtoReflect() protoreflect.Message
- func (x *GetPublisherRequest) Reset()
- func (x *GetPublisherRequest) String() string
- type Isbn
- type ListBookEditionsRequest
- func (*ListBookEditionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListBookEditionsRequest) GetMaxPageSize() int32
- func (x *ListBookEditionsRequest) GetPageToken() string
- func (x *ListBookEditionsRequest) GetParent() string
- func (*ListBookEditionsRequest) ProtoMessage()
- func (x *ListBookEditionsRequest) ProtoReflect() protoreflect.Message
- func (x *ListBookEditionsRequest) Reset()
- func (x *ListBookEditionsRequest) String() string
- type ListBookEditionsResponse
- func (*ListBookEditionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBookEditionsResponse) GetNextPageToken() string
- func (x *ListBookEditionsResponse) GetResults() []*BookEdition
- func (*ListBookEditionsResponse) ProtoMessage()
- func (x *ListBookEditionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListBookEditionsResponse) Reset()
- func (x *ListBookEditionsResponse) String() string
- type ListBooksRequest
- func (*ListBooksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListBooksRequest) GetMaxPageSize() int32
- func (x *ListBooksRequest) GetPageToken() string
- func (x *ListBooksRequest) GetParent() string
- func (*ListBooksRequest) ProtoMessage()
- func (x *ListBooksRequest) ProtoReflect() protoreflect.Message
- func (x *ListBooksRequest) Reset()
- func (x *ListBooksRequest) String() string
- type ListBooksResponse
- func (*ListBooksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBooksResponse) GetNextPageToken() string
- func (x *ListBooksResponse) GetResults() []*Book
- func (x *ListBooksResponse) GetUnreachable() []*Book
- func (*ListBooksResponse) ProtoMessage()
- func (x *ListBooksResponse) ProtoReflect() protoreflect.Message
- func (x *ListBooksResponse) Reset()
- func (x *ListBooksResponse) String() string
- type ListIsbnsRequest
- func (*ListIsbnsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListIsbnsRequest) GetMaxPageSize() int32
- func (x *ListIsbnsRequest) GetPageToken() string
- func (x *ListIsbnsRequest) GetParent() string
- func (*ListIsbnsRequest) ProtoMessage()
- func (x *ListIsbnsRequest) ProtoReflect() protoreflect.Message
- func (x *ListIsbnsRequest) Reset()
- func (x *ListIsbnsRequest) String() string
- type ListIsbnsResponse
- func (*ListIsbnsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListIsbnsResponse) GetNextPageToken() string
- func (x *ListIsbnsResponse) GetResults() []*Isbn
- func (*ListIsbnsResponse) ProtoMessage()
- func (x *ListIsbnsResponse) ProtoReflect() protoreflect.Message
- func (x *ListIsbnsResponse) Reset()
- func (x *ListIsbnsResponse) String() string
- type ListPublishersRequest
- func (*ListPublishersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPublishersRequest) GetMaxPageSize() int32
- func (x *ListPublishersRequest) GetPageToken() string
- func (x *ListPublishersRequest) GetParent() string
- func (*ListPublishersRequest) ProtoMessage()
- func (x *ListPublishersRequest) ProtoReflect() protoreflect.Message
- func (x *ListPublishersRequest) Reset()
- func (x *ListPublishersRequest) String() string
- type ListPublishersResponse
- func (*ListPublishersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPublishersResponse) GetNextPageToken() string
- func (x *ListPublishersResponse) GetResults() []*Publisher
- func (*ListPublishersResponse) ProtoMessage()
- func (x *ListPublishersResponse) ProtoReflect() protoreflect.Message
- func (x *ListPublishersResponse) Reset()
- func (x *ListPublishersResponse) String() string
- type Publisher
- type UnimplementedBookstoreServer
- func (UnimplementedBookstoreServer) ApplyBook(context.Context, *ApplyBookRequest) (*Book, error)
- func (UnimplementedBookstoreServer) ApplyPublisher(context.Context, *ApplyPublisherRequest) (*Publisher, error)
- func (UnimplementedBookstoreServer) ArchiveBook(context.Context, *ArchiveBookRequest) (*ArchiveBookResponse, error)
- func (UnimplementedBookstoreServer) CreateBook(context.Context, *CreateBookRequest) (*Book, error)
- func (UnimplementedBookstoreServer) CreateBookEdition(context.Context, *CreateBookEditionRequest) (*BookEdition, error)
- func (UnimplementedBookstoreServer) CreateIsbn(context.Context, *CreateIsbnRequest) (*Isbn, error)
- func (UnimplementedBookstoreServer) CreatePublisher(context.Context, *CreatePublisherRequest) (*Publisher, error)
- func (UnimplementedBookstoreServer) DeleteBook(context.Context, *DeleteBookRequest) (*emptypb.Empty, error)
- func (UnimplementedBookstoreServer) DeleteBookEdition(context.Context, *DeleteBookEditionRequest) (*emptypb.Empty, error)
- func (UnimplementedBookstoreServer) DeletePublisher(context.Context, *DeletePublisherRequest) (*emptypb.Empty, error)
- func (UnimplementedBookstoreServer) GetBook(context.Context, *GetBookRequest) (*Book, error)
- func (UnimplementedBookstoreServer) GetBookEdition(context.Context, *GetBookEditionRequest) (*BookEdition, error)
- func (UnimplementedBookstoreServer) GetIsbn(context.Context, *GetIsbnRequest) (*Isbn, error)
- func (UnimplementedBookstoreServer) GetPublisher(context.Context, *GetPublisherRequest) (*Publisher, error)
- func (UnimplementedBookstoreServer) ListBookEditions(context.Context, *ListBookEditionsRequest) (*ListBookEditionsResponse, error)
- func (UnimplementedBookstoreServer) ListBooks(context.Context, *ListBooksRequest) (*ListBooksResponse, error)
- func (UnimplementedBookstoreServer) ListIsbns(context.Context, *ListIsbnsRequest) (*ListIsbnsResponse, error)
- func (UnimplementedBookstoreServer) ListPublishers(context.Context, *ListPublishersRequest) (*ListPublishersResponse, error)
- func (UnimplementedBookstoreServer) UpdateBook(context.Context, *UpdateBookRequest) (*Book, error)
- func (UnimplementedBookstoreServer) UpdatePublisher(context.Context, *UpdatePublisherRequest) (*Publisher, error)
- type UnsafeBookstoreServer
- type UpdateBookRequest
- func (*UpdateBookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBookRequest) GetBook() *Book
- func (x *UpdateBookRequest) GetPath() string
- func (x *UpdateBookRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateBookRequest) ProtoMessage()
- func (x *UpdateBookRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateBookRequest) Reset()
- func (x *UpdateBookRequest) String() string
- type UpdatePublisherRequest
- func (*UpdatePublisherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePublisherRequest) GetPath() string
- func (x *UpdatePublisherRequest) GetPublisher() *Publisher
- func (x *UpdatePublisherRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdatePublisherRequest) ProtoMessage()
- func (x *UpdatePublisherRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePublisherRequest) Reset()
- func (x *UpdatePublisherRequest) String() string
Constants ¶
const ( Bookstore_CreateBook_FullMethodName = "/example.bookstore.v1.Bookstore/CreateBook" Bookstore_GetBook_FullMethodName = "/example.bookstore.v1.Bookstore/GetBook" Bookstore_UpdateBook_FullMethodName = "/example.bookstore.v1.Bookstore/UpdateBook" Bookstore_DeleteBook_FullMethodName = "/example.bookstore.v1.Bookstore/DeleteBook" Bookstore_ListBooks_FullMethodName = "/example.bookstore.v1.Bookstore/ListBooks" Bookstore_ApplyBook_FullMethodName = "/example.bookstore.v1.Bookstore/ApplyBook" Bookstore_ArchiveBook_FullMethodName = "/example.bookstore.v1.Bookstore/archiveBook" Bookstore_CreateBookEdition_FullMethodName = "/example.bookstore.v1.Bookstore/CreateBookEdition" Bookstore_GetBookEdition_FullMethodName = "/example.bookstore.v1.Bookstore/GetBookEdition" Bookstore_DeleteBookEdition_FullMethodName = "/example.bookstore.v1.Bookstore/DeleteBookEdition" Bookstore_ListBookEditions_FullMethodName = "/example.bookstore.v1.Bookstore/ListBookEditions" Bookstore_CreateIsbn_FullMethodName = "/example.bookstore.v1.Bookstore/CreateIsbn" Bookstore_GetIsbn_FullMethodName = "/example.bookstore.v1.Bookstore/GetIsbn" Bookstore_ListIsbns_FullMethodName = "/example.bookstore.v1.Bookstore/ListIsbns" Bookstore_CreatePublisher_FullMethodName = "/example.bookstore.v1.Bookstore/CreatePublisher" Bookstore_GetPublisher_FullMethodName = "/example.bookstore.v1.Bookstore/GetPublisher" Bookstore_UpdatePublisher_FullMethodName = "/example.bookstore.v1.Bookstore/UpdatePublisher" Bookstore_DeletePublisher_FullMethodName = "/example.bookstore.v1.Bookstore/DeletePublisher" Bookstore_ListPublishers_FullMethodName = "/example.bookstore.v1.Bookstore/ListPublishers" Bookstore_ApplyPublisher_FullMethodName = "/example.bookstore.v1.Bookstore/ApplyPublisher" )
Variables ¶
var Bookstore_ServiceDesc = grpc.ServiceDesc{ ServiceName: "example.bookstore.v1.Bookstore", HandlerType: (*BookstoreServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateBook", Handler: _Bookstore_CreateBook_Handler, }, { MethodName: "GetBook", Handler: _Bookstore_GetBook_Handler, }, { MethodName: "UpdateBook", Handler: _Bookstore_UpdateBook_Handler, }, { MethodName: "DeleteBook", Handler: _Bookstore_DeleteBook_Handler, }, { MethodName: "ListBooks", Handler: _Bookstore_ListBooks_Handler, }, { MethodName: "ApplyBook", Handler: _Bookstore_ApplyBook_Handler, }, { MethodName: "archiveBook", Handler: _Bookstore_ArchiveBook_Handler, }, { MethodName: "CreateBookEdition", Handler: _Bookstore_CreateBookEdition_Handler, }, { MethodName: "GetBookEdition", Handler: _Bookstore_GetBookEdition_Handler, }, { MethodName: "DeleteBookEdition", Handler: _Bookstore_DeleteBookEdition_Handler, }, { MethodName: "ListBookEditions", Handler: _Bookstore_ListBookEditions_Handler, }, { MethodName: "CreateIsbn", Handler: _Bookstore_CreateIsbn_Handler, }, { MethodName: "GetIsbn", Handler: _Bookstore_GetIsbn_Handler, }, { MethodName: "ListIsbns", Handler: _Bookstore_ListIsbns_Handler, }, { MethodName: "CreatePublisher", Handler: _Bookstore_CreatePublisher_Handler, }, { MethodName: "GetPublisher", Handler: _Bookstore_GetPublisher_Handler, }, { MethodName: "UpdatePublisher", Handler: _Bookstore_UpdatePublisher_Handler, }, { MethodName: "DeletePublisher", Handler: _Bookstore_DeletePublisher_Handler, }, { MethodName: "ListPublishers", Handler: _Bookstore_ListPublishers_Handler, }, { MethodName: "ApplyPublisher", Handler: _Bookstore_ApplyPublisher_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "example/bookstore/v1/bookstore.proto", }
Bookstore_ServiceDesc is the grpc.ServiceDesc for Bookstore service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_example_bookstore_v1_bookstore_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBookstoreHandler ¶
func RegisterBookstoreHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBookstoreHandler registers the http handlers for service Bookstore to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBookstoreHandlerClient ¶
func RegisterBookstoreHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BookstoreClient) error
RegisterBookstoreHandlerClient registers the http handlers for service Bookstore to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BookstoreClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BookstoreClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BookstoreClient" to call the correct interceptors.
func RegisterBookstoreHandlerFromEndpoint ¶
func RegisterBookstoreHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBookstoreHandlerFromEndpoint is same as RegisterBookstoreHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBookstoreHandlerServer ¶
func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BookstoreServer) error
RegisterBookstoreHandlerServer registers the http handlers for service Bookstore to "mux". UnaryRPC :call BookstoreServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBookstoreHandlerFromEndpoint instead.
func RegisterBookstoreServer ¶
func RegisterBookstoreServer(s grpc.ServiceRegistrar, srv BookstoreServer)
Types ¶
type ApplyBookRequest ¶
type ApplyBookRequest struct { // The globally unique identifier for the resource Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // The resource to perform the operation on. Book *Book `protobuf:"bytes,10015,opt,name=book,proto3" json:"book,omitempty"` // contains filtered or unexported fields }
Request message for the Applybook method
func (*ApplyBookRequest) Descriptor
deprecated
func (*ApplyBookRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplyBookRequest.ProtoReflect.Descriptor instead.
func (*ApplyBookRequest) GetBook ¶
func (x *ApplyBookRequest) GetBook() *Book
func (*ApplyBookRequest) GetPath ¶
func (x *ApplyBookRequest) GetPath() string
func (*ApplyBookRequest) ProtoMessage ¶
func (*ApplyBookRequest) ProtoMessage()
func (*ApplyBookRequest) ProtoReflect ¶
func (x *ApplyBookRequest) ProtoReflect() protoreflect.Message
func (*ApplyBookRequest) Reset ¶
func (x *ApplyBookRequest) Reset()
func (*ApplyBookRequest) String ¶
func (x *ApplyBookRequest) String() string
type ApplyPublisherRequest ¶
type ApplyPublisherRequest struct { // The globally unique identifier for the resource Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // The resource to perform the operation on. Publisher *Publisher `protobuf:"bytes,10015,opt,name=publisher,proto3" json:"publisher,omitempty"` // contains filtered or unexported fields }
Request message for the Applypublisher method
func (*ApplyPublisherRequest) Descriptor
deprecated
func (*ApplyPublisherRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplyPublisherRequest.ProtoReflect.Descriptor instead.
func (*ApplyPublisherRequest) GetPath ¶
func (x *ApplyPublisherRequest) GetPath() string
func (*ApplyPublisherRequest) GetPublisher ¶
func (x *ApplyPublisherRequest) GetPublisher() *Publisher
func (*ApplyPublisherRequest) ProtoMessage ¶
func (*ApplyPublisherRequest) ProtoMessage()
func (*ApplyPublisherRequest) ProtoReflect ¶
func (x *ApplyPublisherRequest) ProtoReflect() protoreflect.Message
func (*ApplyPublisherRequest) Reset ¶
func (x *ApplyPublisherRequest) Reset()
func (*ApplyPublisherRequest) String ¶
func (x *ApplyPublisherRequest) String() string
type ArchiveBookRequest ¶
type ArchiveBookRequest struct { // The globally unique identifier for the resource Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
Request message for the archive method
func (*ArchiveBookRequest) Descriptor
deprecated
func (*ArchiveBookRequest) Descriptor() ([]byte, []int)
Deprecated: Use ArchiveBookRequest.ProtoReflect.Descriptor instead.
func (*ArchiveBookRequest) GetPath ¶
func (x *ArchiveBookRequest) GetPath() string
func (*ArchiveBookRequest) ProtoMessage ¶
func (*ArchiveBookRequest) ProtoMessage()
func (*ArchiveBookRequest) ProtoReflect ¶
func (x *ArchiveBookRequest) ProtoReflect() protoreflect.Message
func (*ArchiveBookRequest) Reset ¶
func (x *ArchiveBookRequest) Reset()
func (*ArchiveBookRequest) String ¶
func (x *ArchiveBookRequest) String() string
type ArchiveBookResponse ¶
type ArchiveBookResponse struct { // Field for success. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
Response message for the archive method
func (*ArchiveBookResponse) Descriptor
deprecated
func (*ArchiveBookResponse) Descriptor() ([]byte, []int)
Deprecated: Use ArchiveBookResponse.ProtoReflect.Descriptor instead.
func (*ArchiveBookResponse) GetSuccess ¶
func (x *ArchiveBookResponse) GetSuccess() bool
func (*ArchiveBookResponse) ProtoMessage ¶
func (*ArchiveBookResponse) ProtoMessage()
func (*ArchiveBookResponse) ProtoReflect ¶
func (x *ArchiveBookResponse) ProtoReflect() protoreflect.Message
func (*ArchiveBookResponse) Reset ¶
func (x *ArchiveBookResponse) Reset()
func (*ArchiveBookResponse) String ¶
func (x *ArchiveBookResponse) String() string
type Book ¶
type Book struct { // Field for author. Author []*Book_Author `protobuf:"bytes,5,rep,name=author,proto3" json:"author,omitempty"` // Field for isbn. Isbn []string `protobuf:"bytes,1,rep,name=isbn,proto3" json:"isbn,omitempty"` // Field for price. Price float32 `protobuf:"fixed32,2,opt,name=price,proto3" json:"price,omitempty"` // Field for published. Published bool `protobuf:"varint,3,opt,name=published,proto3" json:"published,omitempty"` // Field for edition. Edition int32 `protobuf:"varint,4,opt,name=edition,proto3" json:"edition,omitempty"` // Field for path. Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
A Book.
func (*Book) Descriptor
deprecated
func (*Book) GetAuthor ¶
func (x *Book) GetAuthor() []*Book_Author
func (*Book) GetEdition ¶
func (*Book) GetPublished ¶
func (*Book) ProtoMessage ¶
func (*Book) ProtoMessage()
func (*Book) ProtoReflect ¶
func (x *Book) ProtoReflect() protoreflect.Message
type BookEdition ¶
type BookEdition struct { // Field for displayname. Displayname string `protobuf:"bytes,1,opt,name=displayname,proto3" json:"displayname,omitempty"` // Field for path. Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
A BookEdition.
func (*BookEdition) Descriptor
deprecated
func (*BookEdition) Descriptor() ([]byte, []int)
Deprecated: Use BookEdition.ProtoReflect.Descriptor instead.
func (*BookEdition) GetDisplayname ¶
func (x *BookEdition) GetDisplayname() string
func (*BookEdition) GetPath ¶
func (x *BookEdition) GetPath() string
func (*BookEdition) ProtoMessage ¶
func (*BookEdition) ProtoMessage()
func (*BookEdition) ProtoReflect ¶
func (x *BookEdition) ProtoReflect() protoreflect.Message
func (*BookEdition) Reset ¶
func (x *BookEdition) Reset()
func (*BookEdition) String ¶
func (x *BookEdition) String() string
type Book_Author ¶
type Book_Author struct { // Field for firstName. FirstName string `protobuf:"bytes,1,opt,name=firstName,proto3" json:"firstName,omitempty"` // Field for lastName. LastName string `protobuf:"bytes,2,opt,name=lastName,proto3" json:"lastName,omitempty"` // contains filtered or unexported fields }
A Author.
func (*Book_Author) Descriptor
deprecated
func (*Book_Author) Descriptor() ([]byte, []int)
Deprecated: Use Book_Author.ProtoReflect.Descriptor instead.
func (*Book_Author) GetFirstName ¶
func (x *Book_Author) GetFirstName() string
func (*Book_Author) GetLastName ¶
func (x *Book_Author) GetLastName() string
func (*Book_Author) ProtoMessage ¶
func (*Book_Author) ProtoMessage()
func (*Book_Author) ProtoReflect ¶
func (x *Book_Author) ProtoReflect() protoreflect.Message
func (*Book_Author) Reset ¶
func (x *Book_Author) Reset()
func (*Book_Author) String ¶
func (x *Book_Author) String() string
type BookstoreClient ¶
type BookstoreClient interface { // An aep-compliant Create method for book. CreateBook(ctx context.Context, in *CreateBookRequest, opts ...grpc.CallOption) (*Book, error) // An aep-compliant Get method for book. GetBook(ctx context.Context, in *GetBookRequest, opts ...grpc.CallOption) (*Book, error) // An aep-compliant Update method for book. UpdateBook(ctx context.Context, in *UpdateBookRequest, opts ...grpc.CallOption) (*Book, error) // An aep-compliant Delete method for book. DeleteBook(ctx context.Context, in *DeleteBookRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // An aep-compliant List method for books. ListBooks(ctx context.Context, in *ListBooksRequest, opts ...grpc.CallOption) (*ListBooksResponse, error) // An aep-compliant Apply method for books. ApplyBook(ctx context.Context, in *ApplyBookRequest, opts ...grpc.CallOption) (*Book, error) // archive a book. ArchiveBook(ctx context.Context, in *ArchiveBookRequest, opts ...grpc.CallOption) (*ArchiveBookResponse, error) // An aep-compliant Create method for book-edition. CreateBookEdition(ctx context.Context, in *CreateBookEditionRequest, opts ...grpc.CallOption) (*BookEdition, error) // An aep-compliant Get method for book-edition. GetBookEdition(ctx context.Context, in *GetBookEditionRequest, opts ...grpc.CallOption) (*BookEdition, error) // An aep-compliant Delete method for book-edition. DeleteBookEdition(ctx context.Context, in *DeleteBookEditionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // An aep-compliant List method for book-editions. ListBookEditions(ctx context.Context, in *ListBookEditionsRequest, opts ...grpc.CallOption) (*ListBookEditionsResponse, error) // An aep-compliant Create method for isbn. CreateIsbn(ctx context.Context, in *CreateIsbnRequest, opts ...grpc.CallOption) (*Isbn, error) // An aep-compliant Get method for isbn. GetIsbn(ctx context.Context, in *GetIsbnRequest, opts ...grpc.CallOption) (*Isbn, error) // An aep-compliant List method for isbns. ListIsbns(ctx context.Context, in *ListIsbnsRequest, opts ...grpc.CallOption) (*ListIsbnsResponse, error) // An aep-compliant Create method for publisher. CreatePublisher(ctx context.Context, in *CreatePublisherRequest, opts ...grpc.CallOption) (*Publisher, error) // An aep-compliant Get method for publisher. GetPublisher(ctx context.Context, in *GetPublisherRequest, opts ...grpc.CallOption) (*Publisher, error) // An aep-compliant Update method for publisher. UpdatePublisher(ctx context.Context, in *UpdatePublisherRequest, opts ...grpc.CallOption) (*Publisher, error) // An aep-compliant Delete method for publisher. DeletePublisher(ctx context.Context, in *DeletePublisherRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // An aep-compliant List method for publishers. ListPublishers(ctx context.Context, in *ListPublishersRequest, opts ...grpc.CallOption) (*ListPublishersResponse, error) // An aep-compliant Apply method for publishers. ApplyPublisher(ctx context.Context, in *ApplyPublisherRequest, opts ...grpc.CallOption) (*Publisher, error) }
BookstoreClient is the client API for Bookstore 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 NewBookstoreClient ¶
func NewBookstoreClient(cc grpc.ClientConnInterface) BookstoreClient
type BookstoreServer ¶
type BookstoreServer interface { // An aep-compliant Create method for book. CreateBook(context.Context, *CreateBookRequest) (*Book, error) // An aep-compliant Get method for book. GetBook(context.Context, *GetBookRequest) (*Book, error) // An aep-compliant Update method for book. UpdateBook(context.Context, *UpdateBookRequest) (*Book, error) // An aep-compliant Delete method for book. DeleteBook(context.Context, *DeleteBookRequest) (*emptypb.Empty, error) // An aep-compliant List method for books. ListBooks(context.Context, *ListBooksRequest) (*ListBooksResponse, error) // An aep-compliant Apply method for books. ApplyBook(context.Context, *ApplyBookRequest) (*Book, error) // archive a book. ArchiveBook(context.Context, *ArchiveBookRequest) (*ArchiveBookResponse, error) // An aep-compliant Create method for book-edition. CreateBookEdition(context.Context, *CreateBookEditionRequest) (*BookEdition, error) // An aep-compliant Get method for book-edition. GetBookEdition(context.Context, *GetBookEditionRequest) (*BookEdition, error) // An aep-compliant Delete method for book-edition. DeleteBookEdition(context.Context, *DeleteBookEditionRequest) (*emptypb.Empty, error) // An aep-compliant List method for book-editions. ListBookEditions(context.Context, *ListBookEditionsRequest) (*ListBookEditionsResponse, error) // An aep-compliant Create method for isbn. CreateIsbn(context.Context, *CreateIsbnRequest) (*Isbn, error) // An aep-compliant Get method for isbn. GetIsbn(context.Context, *GetIsbnRequest) (*Isbn, error) // An aep-compliant List method for isbns. ListIsbns(context.Context, *ListIsbnsRequest) (*ListIsbnsResponse, error) // An aep-compliant Create method for publisher. CreatePublisher(context.Context, *CreatePublisherRequest) (*Publisher, error) // An aep-compliant Get method for publisher. GetPublisher(context.Context, *GetPublisherRequest) (*Publisher, error) // An aep-compliant Update method for publisher. UpdatePublisher(context.Context, *UpdatePublisherRequest) (*Publisher, error) // An aep-compliant Delete method for publisher. DeletePublisher(context.Context, *DeletePublisherRequest) (*emptypb.Empty, error) // An aep-compliant List method for publishers. ListPublishers(context.Context, *ListPublishersRequest) (*ListPublishersResponse, error) // An aep-compliant Apply method for publishers. ApplyPublisher(context.Context, *ApplyPublisherRequest) (*Publisher, error) // contains filtered or unexported methods }
BookstoreServer is the server API for Bookstore service. All implementations must embed UnimplementedBookstoreServer for forward compatibility
type CreateBookEditionRequest ¶
type CreateBookEditionRequest struct { // A field for the parent of book-edition Parent string `protobuf:"bytes,10013,opt,name=parent,proto3" json:"parent,omitempty"` // An id that uniquely identifies the resource within the collection Id string `protobuf:"bytes,10014,opt,name=id,proto3" json:"id,omitempty"` // The resource to perform the operation on. BookEdition *BookEdition `protobuf:"bytes,10015,opt,name=book_edition,json=bookEdition,proto3" json:"book_edition,omitempty"` // contains filtered or unexported fields }
A Create request for a book-edition resource.
func (*CreateBookEditionRequest) Descriptor
deprecated
func (*CreateBookEditionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBookEditionRequest.ProtoReflect.Descriptor instead.
func (*CreateBookEditionRequest) GetBookEdition ¶
func (x *CreateBookEditionRequest) GetBookEdition() *BookEdition
func (*CreateBookEditionRequest) GetId ¶
func (x *CreateBookEditionRequest) GetId() string
func (*CreateBookEditionRequest) GetParent ¶
func (x *CreateBookEditionRequest) GetParent() string
func (*CreateBookEditionRequest) ProtoMessage ¶
func (*CreateBookEditionRequest) ProtoMessage()
func (*CreateBookEditionRequest) ProtoReflect ¶
func (x *CreateBookEditionRequest) ProtoReflect() protoreflect.Message
func (*CreateBookEditionRequest) Reset ¶
func (x *CreateBookEditionRequest) Reset()
func (*CreateBookEditionRequest) String ¶
func (x *CreateBookEditionRequest) String() string
type CreateBookRequest ¶
type CreateBookRequest struct { // A field for the parent of book Parent string `protobuf:"bytes,10013,opt,name=parent,proto3" json:"parent,omitempty"` // An id that uniquely identifies the resource within the collection Id string `protobuf:"bytes,10014,opt,name=id,proto3" json:"id,omitempty"` // The resource to perform the operation on. Book *Book `protobuf:"bytes,10015,opt,name=book,proto3" json:"book,omitempty"` // contains filtered or unexported fields }
A Create request for a book resource.
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) GetId ¶
func (x *CreateBookRequest) GetId() string
func (*CreateBookRequest) GetParent ¶
func (x *CreateBookRequest) GetParent() 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 CreateIsbnRequest ¶
type CreateIsbnRequest struct { // A field for the parent of isbn Parent string `protobuf:"bytes,10013,opt,name=parent,proto3" json:"parent,omitempty"` // An id that uniquely identifies the resource within the collection Id string `protobuf:"bytes,10014,opt,name=id,proto3" json:"id,omitempty"` // The resource to perform the operation on. Isbn *Isbn `protobuf:"bytes,10015,opt,name=isbn,proto3" json:"isbn,omitempty"` // contains filtered or unexported fields }
A Create request for a isbn resource.
func (*CreateIsbnRequest) Descriptor
deprecated
func (*CreateIsbnRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateIsbnRequest.ProtoReflect.Descriptor instead.
func (*CreateIsbnRequest) GetId ¶
func (x *CreateIsbnRequest) GetId() string
func (*CreateIsbnRequest) GetIsbn ¶
func (x *CreateIsbnRequest) GetIsbn() *Isbn
func (*CreateIsbnRequest) GetParent ¶
func (x *CreateIsbnRequest) GetParent() string
func (*CreateIsbnRequest) ProtoMessage ¶
func (*CreateIsbnRequest) ProtoMessage()
func (*CreateIsbnRequest) ProtoReflect ¶
func (x *CreateIsbnRequest) ProtoReflect() protoreflect.Message
func (*CreateIsbnRequest) Reset ¶
func (x *CreateIsbnRequest) Reset()
func (*CreateIsbnRequest) String ¶
func (x *CreateIsbnRequest) String() string
type CreatePublisherRequest ¶
type CreatePublisherRequest struct { // A field for the parent of publisher Parent string `protobuf:"bytes,10013,opt,name=parent,proto3" json:"parent,omitempty"` // An id that uniquely identifies the resource within the collection Id string `protobuf:"bytes,10014,opt,name=id,proto3" json:"id,omitempty"` // The resource to perform the operation on. Publisher *Publisher `protobuf:"bytes,10015,opt,name=publisher,proto3" json:"publisher,omitempty"` // contains filtered or unexported fields }
A Create request for a publisher resource.
func (*CreatePublisherRequest) Descriptor
deprecated
func (*CreatePublisherRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePublisherRequest.ProtoReflect.Descriptor instead.
func (*CreatePublisherRequest) GetId ¶
func (x *CreatePublisherRequest) GetId() string
func (*CreatePublisherRequest) GetParent ¶
func (x *CreatePublisherRequest) GetParent() string
func (*CreatePublisherRequest) GetPublisher ¶
func (x *CreatePublisherRequest) GetPublisher() *Publisher
func (*CreatePublisherRequest) ProtoMessage ¶
func (*CreatePublisherRequest) ProtoMessage()
func (*CreatePublisherRequest) ProtoReflect ¶
func (x *CreatePublisherRequest) ProtoReflect() protoreflect.Message
func (*CreatePublisherRequest) Reset ¶
func (x *CreatePublisherRequest) Reset()
func (*CreatePublisherRequest) String ¶
func (x *CreatePublisherRequest) String() string
type DeleteBookEditionRequest ¶
type DeleteBookEditionRequest struct { // The globally unique identifier for the resource Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
Request message for the DeleteBookEdition method
func (*DeleteBookEditionRequest) Descriptor
deprecated
func (*DeleteBookEditionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBookEditionRequest.ProtoReflect.Descriptor instead.
func (*DeleteBookEditionRequest) GetPath ¶
func (x *DeleteBookEditionRequest) GetPath() string
func (*DeleteBookEditionRequest) ProtoMessage ¶
func (*DeleteBookEditionRequest) ProtoMessage()
func (*DeleteBookEditionRequest) ProtoReflect ¶
func (x *DeleteBookEditionRequest) ProtoReflect() protoreflect.Message
func (*DeleteBookEditionRequest) Reset ¶
func (x *DeleteBookEditionRequest) Reset()
func (*DeleteBookEditionRequest) String ¶
func (x *DeleteBookEditionRequest) String() string
type DeleteBookRequest ¶
type DeleteBookRequest struct { // The globally unique identifier for the resource Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // If true, the resource will be deleted, even if children still exist. Force bool `protobuf:"varint,10020,opt,name=force,proto3" json:"force,omitempty"` // contains filtered or unexported fields }
Request message for the DeleteBook method
func (*DeleteBookRequest) Descriptor
deprecated
func (*DeleteBookRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBookRequest.ProtoReflect.Descriptor instead.
func (*DeleteBookRequest) GetForce ¶
func (x *DeleteBookRequest) GetForce() bool
func (*DeleteBookRequest) GetPath ¶
func (x *DeleteBookRequest) GetPath() string
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 DeletePublisherRequest ¶
type DeletePublisherRequest struct { // The globally unique identifier for the resource Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // If true, the resource will be deleted, even if children still exist. Force bool `protobuf:"varint,10020,opt,name=force,proto3" json:"force,omitempty"` // contains filtered or unexported fields }
Request message for the DeletePublisher method
func (*DeletePublisherRequest) Descriptor
deprecated
func (*DeletePublisherRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePublisherRequest.ProtoReflect.Descriptor instead.
func (*DeletePublisherRequest) GetForce ¶
func (x *DeletePublisherRequest) GetForce() bool
func (*DeletePublisherRequest) GetPath ¶
func (x *DeletePublisherRequest) GetPath() string
func (*DeletePublisherRequest) ProtoMessage ¶
func (*DeletePublisherRequest) ProtoMessage()
func (*DeletePublisherRequest) ProtoReflect ¶
func (x *DeletePublisherRequest) ProtoReflect() protoreflect.Message
func (*DeletePublisherRequest) Reset ¶
func (x *DeletePublisherRequest) Reset()
func (*DeletePublisherRequest) String ¶
func (x *DeletePublisherRequest) String() string
type GetBookEditionRequest ¶
type GetBookEditionRequest struct { // The globally unique identifier for the resource Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
Request message for the Getbook-edition method
func (*GetBookEditionRequest) Descriptor
deprecated
func (*GetBookEditionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBookEditionRequest.ProtoReflect.Descriptor instead.
func (*GetBookEditionRequest) GetPath ¶
func (x *GetBookEditionRequest) GetPath() string
func (*GetBookEditionRequest) ProtoMessage ¶
func (*GetBookEditionRequest) ProtoMessage()
func (*GetBookEditionRequest) ProtoReflect ¶
func (x *GetBookEditionRequest) ProtoReflect() protoreflect.Message
func (*GetBookEditionRequest) Reset ¶
func (x *GetBookEditionRequest) Reset()
func (*GetBookEditionRequest) String ¶
func (x *GetBookEditionRequest) String() string
type GetBookRequest ¶
type GetBookRequest struct { // The globally unique identifier for the resource Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
Request message for the Getbook method
func (*GetBookRequest) Descriptor
deprecated
func (*GetBookRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBookRequest.ProtoReflect.Descriptor instead.
func (*GetBookRequest) GetPath ¶
func (x *GetBookRequest) GetPath() 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 GetIsbnRequest ¶
type GetIsbnRequest struct { // The globally unique identifier for the resource Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
Request message for the Getisbn method
func (*GetIsbnRequest) Descriptor
deprecated
func (*GetIsbnRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetIsbnRequest.ProtoReflect.Descriptor instead.
func (*GetIsbnRequest) GetPath ¶
func (x *GetIsbnRequest) GetPath() string
func (*GetIsbnRequest) ProtoMessage ¶
func (*GetIsbnRequest) ProtoMessage()
func (*GetIsbnRequest) ProtoReflect ¶
func (x *GetIsbnRequest) ProtoReflect() protoreflect.Message
func (*GetIsbnRequest) Reset ¶
func (x *GetIsbnRequest) Reset()
func (*GetIsbnRequest) String ¶
func (x *GetIsbnRequest) String() string
type GetPublisherRequest ¶
type GetPublisherRequest struct { // The globally unique identifier for the resource Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
Request message for the Getpublisher method
func (*GetPublisherRequest) Descriptor
deprecated
func (*GetPublisherRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPublisherRequest.ProtoReflect.Descriptor instead.
func (*GetPublisherRequest) GetPath ¶
func (x *GetPublisherRequest) GetPath() string
func (*GetPublisherRequest) ProtoMessage ¶
func (*GetPublisherRequest) ProtoMessage()
func (*GetPublisherRequest) ProtoReflect ¶
func (x *GetPublisherRequest) ProtoReflect() protoreflect.Message
func (*GetPublisherRequest) Reset ¶
func (x *GetPublisherRequest) Reset()
func (*GetPublisherRequest) String ¶
func (x *GetPublisherRequest) String() string
type Isbn ¶
type Isbn struct { // Field for path. Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
A Isbn.
func (*Isbn) Descriptor
deprecated
func (*Isbn) ProtoMessage ¶
func (*Isbn) ProtoMessage()
func (*Isbn) ProtoReflect ¶
func (x *Isbn) ProtoReflect() protoreflect.Message
type ListBookEditionsRequest ¶
type ListBookEditionsRequest struct { // A field for the parent of book-edition Parent string `protobuf:"bytes,10013,opt,name=parent,proto3" json:"parent,omitempty"` // The page token indicating the starting point of the page PageToken string `protobuf:"bytes,10010,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // The maximum number of resources to return in a single page. MaxPageSize int32 `protobuf:"varint,10017,opt,name=max_page_size,json=maxPageSize,proto3" json:"max_page_size,omitempty"` // contains filtered or unexported fields }
Request message for the Listbook-edition method
func (*ListBookEditionsRequest) Descriptor
deprecated
func (*ListBookEditionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBookEditionsRequest.ProtoReflect.Descriptor instead.
func (*ListBookEditionsRequest) GetMaxPageSize ¶
func (x *ListBookEditionsRequest) GetMaxPageSize() int32
func (*ListBookEditionsRequest) GetPageToken ¶
func (x *ListBookEditionsRequest) GetPageToken() string
func (*ListBookEditionsRequest) GetParent ¶
func (x *ListBookEditionsRequest) GetParent() string
func (*ListBookEditionsRequest) ProtoMessage ¶
func (*ListBookEditionsRequest) ProtoMessage()
func (*ListBookEditionsRequest) ProtoReflect ¶
func (x *ListBookEditionsRequest) ProtoReflect() protoreflect.Message
func (*ListBookEditionsRequest) Reset ¶
func (x *ListBookEditionsRequest) Reset()
func (*ListBookEditionsRequest) String ¶
func (x *ListBookEditionsRequest) String() string
type ListBookEditionsResponse ¶
type ListBookEditionsResponse struct { // A list of book-editions Results []*BookEdition `protobuf:"bytes,10016,rep,name=results,proto3" json:"results,omitempty"` // The page token indicating the ending point of this response. NextPageToken string `protobuf:"bytes,10011,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response message for the Listbook-edition method
func (*ListBookEditionsResponse) Descriptor
deprecated
func (*ListBookEditionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListBookEditionsResponse.ProtoReflect.Descriptor instead.
func (*ListBookEditionsResponse) GetNextPageToken ¶
func (x *ListBookEditionsResponse) GetNextPageToken() string
func (*ListBookEditionsResponse) GetResults ¶
func (x *ListBookEditionsResponse) GetResults() []*BookEdition
func (*ListBookEditionsResponse) ProtoMessage ¶
func (*ListBookEditionsResponse) ProtoMessage()
func (*ListBookEditionsResponse) ProtoReflect ¶
func (x *ListBookEditionsResponse) ProtoReflect() protoreflect.Message
func (*ListBookEditionsResponse) Reset ¶
func (x *ListBookEditionsResponse) Reset()
func (*ListBookEditionsResponse) String ¶
func (x *ListBookEditionsResponse) String() string
type ListBooksRequest ¶
type ListBooksRequest struct { // A field for the parent of book Parent string `protobuf:"bytes,10013,opt,name=parent,proto3" json:"parent,omitempty"` // The page token indicating the starting point of the page PageToken string `protobuf:"bytes,10010,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // The maximum number of resources to return in a single page. MaxPageSize int32 `protobuf:"varint,10017,opt,name=max_page_size,json=maxPageSize,proto3" json:"max_page_size,omitempty"` // contains filtered or unexported fields }
Request message for the Listbook method
func (*ListBooksRequest) Descriptor
deprecated
func (*ListBooksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBooksRequest.ProtoReflect.Descriptor instead.
func (*ListBooksRequest) GetMaxPageSize ¶
func (x *ListBooksRequest) GetMaxPageSize() int32
func (*ListBooksRequest) GetPageToken ¶
func (x *ListBooksRequest) GetPageToken() string
func (*ListBooksRequest) GetParent ¶
func (x *ListBooksRequest) GetParent() 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 ListBooksResponse ¶
type ListBooksResponse struct { // A list of books Results []*Book `protobuf:"bytes,10016,rep,name=results,proto3" json:"results,omitempty"` // The page token indicating the ending point of this response. NextPageToken string `protobuf:"bytes,10011,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // A list of books that were not reachable. Unreachable []*Book `protobuf:"bytes,10019,rep,name=unreachable,proto3" json:"unreachable,omitempty"` // contains filtered or unexported fields }
Response message for the Listbook method
func (*ListBooksResponse) Descriptor
deprecated
func (*ListBooksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListBooksResponse.ProtoReflect.Descriptor instead.
func (*ListBooksResponse) GetNextPageToken ¶
func (x *ListBooksResponse) GetNextPageToken() string
func (*ListBooksResponse) GetResults ¶
func (x *ListBooksResponse) GetResults() []*Book
func (*ListBooksResponse) GetUnreachable ¶
func (x *ListBooksResponse) GetUnreachable() []*Book
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
type ListIsbnsRequest ¶
type ListIsbnsRequest struct { // A field for the parent of isbn Parent string `protobuf:"bytes,10013,opt,name=parent,proto3" json:"parent,omitempty"` // The page token indicating the starting point of the page PageToken string `protobuf:"bytes,10010,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // The maximum number of resources to return in a single page. MaxPageSize int32 `protobuf:"varint,10017,opt,name=max_page_size,json=maxPageSize,proto3" json:"max_page_size,omitempty"` // contains filtered or unexported fields }
Request message for the Listisbn method
func (*ListIsbnsRequest) Descriptor
deprecated
func (*ListIsbnsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListIsbnsRequest.ProtoReflect.Descriptor instead.
func (*ListIsbnsRequest) GetMaxPageSize ¶
func (x *ListIsbnsRequest) GetMaxPageSize() int32
func (*ListIsbnsRequest) GetPageToken ¶
func (x *ListIsbnsRequest) GetPageToken() string
func (*ListIsbnsRequest) GetParent ¶
func (x *ListIsbnsRequest) GetParent() string
func (*ListIsbnsRequest) ProtoMessage ¶
func (*ListIsbnsRequest) ProtoMessage()
func (*ListIsbnsRequest) ProtoReflect ¶
func (x *ListIsbnsRequest) ProtoReflect() protoreflect.Message
func (*ListIsbnsRequest) Reset ¶
func (x *ListIsbnsRequest) Reset()
func (*ListIsbnsRequest) String ¶
func (x *ListIsbnsRequest) String() string
type ListIsbnsResponse ¶
type ListIsbnsResponse struct { // A list of isbns Results []*Isbn `protobuf:"bytes,10016,rep,name=results,proto3" json:"results,omitempty"` // The page token indicating the ending point of this response. NextPageToken string `protobuf:"bytes,10011,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response message for the Listisbn method
func (*ListIsbnsResponse) Descriptor
deprecated
func (*ListIsbnsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListIsbnsResponse.ProtoReflect.Descriptor instead.
func (*ListIsbnsResponse) GetNextPageToken ¶
func (x *ListIsbnsResponse) GetNextPageToken() string
func (*ListIsbnsResponse) GetResults ¶
func (x *ListIsbnsResponse) GetResults() []*Isbn
func (*ListIsbnsResponse) ProtoMessage ¶
func (*ListIsbnsResponse) ProtoMessage()
func (*ListIsbnsResponse) ProtoReflect ¶
func (x *ListIsbnsResponse) ProtoReflect() protoreflect.Message
func (*ListIsbnsResponse) Reset ¶
func (x *ListIsbnsResponse) Reset()
func (*ListIsbnsResponse) String ¶
func (x *ListIsbnsResponse) String() string
type ListPublishersRequest ¶
type ListPublishersRequest struct { // A field for the parent of publisher Parent string `protobuf:"bytes,10013,opt,name=parent,proto3" json:"parent,omitempty"` // The page token indicating the starting point of the page PageToken string `protobuf:"bytes,10010,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // The maximum number of resources to return in a single page. MaxPageSize int32 `protobuf:"varint,10017,opt,name=max_page_size,json=maxPageSize,proto3" json:"max_page_size,omitempty"` // contains filtered or unexported fields }
Request message for the Listpublisher method
func (*ListPublishersRequest) Descriptor
deprecated
func (*ListPublishersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPublishersRequest.ProtoReflect.Descriptor instead.
func (*ListPublishersRequest) GetMaxPageSize ¶
func (x *ListPublishersRequest) GetMaxPageSize() int32
func (*ListPublishersRequest) GetPageToken ¶
func (x *ListPublishersRequest) GetPageToken() string
func (*ListPublishersRequest) GetParent ¶
func (x *ListPublishersRequest) GetParent() string
func (*ListPublishersRequest) ProtoMessage ¶
func (*ListPublishersRequest) ProtoMessage()
func (*ListPublishersRequest) ProtoReflect ¶
func (x *ListPublishersRequest) ProtoReflect() protoreflect.Message
func (*ListPublishersRequest) Reset ¶
func (x *ListPublishersRequest) Reset()
func (*ListPublishersRequest) String ¶
func (x *ListPublishersRequest) String() string
type ListPublishersResponse ¶
type ListPublishersResponse struct { // A list of publishers Results []*Publisher `protobuf:"bytes,10016,rep,name=results,proto3" json:"results,omitempty"` // The page token indicating the ending point of this response. NextPageToken string `protobuf:"bytes,10011,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response message for the Listpublisher method
func (*ListPublishersResponse) Descriptor
deprecated
func (*ListPublishersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPublishersResponse.ProtoReflect.Descriptor instead.
func (*ListPublishersResponse) GetNextPageToken ¶
func (x *ListPublishersResponse) GetNextPageToken() string
func (*ListPublishersResponse) GetResults ¶
func (x *ListPublishersResponse) GetResults() []*Publisher
func (*ListPublishersResponse) ProtoMessage ¶
func (*ListPublishersResponse) ProtoMessage()
func (*ListPublishersResponse) ProtoReflect ¶
func (x *ListPublishersResponse) ProtoReflect() protoreflect.Message
func (*ListPublishersResponse) Reset ¶
func (x *ListPublishersResponse) Reset()
func (*ListPublishersResponse) String ¶
func (x *ListPublishersResponse) String() string
type Publisher ¶
type Publisher struct { // Field for description. Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` // Field for path. Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
A Publisher.
func (*Publisher) Descriptor
deprecated
func (*Publisher) GetDescription ¶
func (*Publisher) ProtoMessage ¶
func (*Publisher) ProtoMessage()
func (*Publisher) ProtoReflect ¶
func (x *Publisher) ProtoReflect() protoreflect.Message
type UnimplementedBookstoreServer ¶
type UnimplementedBookstoreServer struct { }
UnimplementedBookstoreServer must be embedded to have forward compatible implementations.
func (UnimplementedBookstoreServer) ApplyBook ¶
func (UnimplementedBookstoreServer) ApplyBook(context.Context, *ApplyBookRequest) (*Book, error)
func (UnimplementedBookstoreServer) ApplyPublisher ¶
func (UnimplementedBookstoreServer) ApplyPublisher(context.Context, *ApplyPublisherRequest) (*Publisher, error)
func (UnimplementedBookstoreServer) ArchiveBook ¶
func (UnimplementedBookstoreServer) ArchiveBook(context.Context, *ArchiveBookRequest) (*ArchiveBookResponse, error)
func (UnimplementedBookstoreServer) CreateBook ¶
func (UnimplementedBookstoreServer) CreateBook(context.Context, *CreateBookRequest) (*Book, error)
func (UnimplementedBookstoreServer) CreateBookEdition ¶
func (UnimplementedBookstoreServer) CreateBookEdition(context.Context, *CreateBookEditionRequest) (*BookEdition, error)
func (UnimplementedBookstoreServer) CreateIsbn ¶
func (UnimplementedBookstoreServer) CreateIsbn(context.Context, *CreateIsbnRequest) (*Isbn, error)
func (UnimplementedBookstoreServer) CreatePublisher ¶
func (UnimplementedBookstoreServer) CreatePublisher(context.Context, *CreatePublisherRequest) (*Publisher, error)
func (UnimplementedBookstoreServer) DeleteBook ¶
func (UnimplementedBookstoreServer) DeleteBook(context.Context, *DeleteBookRequest) (*emptypb.Empty, error)
func (UnimplementedBookstoreServer) DeleteBookEdition ¶
func (UnimplementedBookstoreServer) DeleteBookEdition(context.Context, *DeleteBookEditionRequest) (*emptypb.Empty, error)
func (UnimplementedBookstoreServer) DeletePublisher ¶
func (UnimplementedBookstoreServer) DeletePublisher(context.Context, *DeletePublisherRequest) (*emptypb.Empty, error)
func (UnimplementedBookstoreServer) GetBook ¶
func (UnimplementedBookstoreServer) GetBook(context.Context, *GetBookRequest) (*Book, error)
func (UnimplementedBookstoreServer) GetBookEdition ¶
func (UnimplementedBookstoreServer) GetBookEdition(context.Context, *GetBookEditionRequest) (*BookEdition, error)
func (UnimplementedBookstoreServer) GetIsbn ¶
func (UnimplementedBookstoreServer) GetIsbn(context.Context, *GetIsbnRequest) (*Isbn, error)
func (UnimplementedBookstoreServer) GetPublisher ¶
func (UnimplementedBookstoreServer) GetPublisher(context.Context, *GetPublisherRequest) (*Publisher, error)
func (UnimplementedBookstoreServer) ListBookEditions ¶
func (UnimplementedBookstoreServer) ListBookEditions(context.Context, *ListBookEditionsRequest) (*ListBookEditionsResponse, error)
func (UnimplementedBookstoreServer) ListBooks ¶
func (UnimplementedBookstoreServer) ListBooks(context.Context, *ListBooksRequest) (*ListBooksResponse, error)
func (UnimplementedBookstoreServer) ListIsbns ¶
func (UnimplementedBookstoreServer) ListIsbns(context.Context, *ListIsbnsRequest) (*ListIsbnsResponse, error)
func (UnimplementedBookstoreServer) ListPublishers ¶
func (UnimplementedBookstoreServer) ListPublishers(context.Context, *ListPublishersRequest) (*ListPublishersResponse, error)
func (UnimplementedBookstoreServer) UpdateBook ¶
func (UnimplementedBookstoreServer) UpdateBook(context.Context, *UpdateBookRequest) (*Book, error)
func (UnimplementedBookstoreServer) UpdatePublisher ¶
func (UnimplementedBookstoreServer) UpdatePublisher(context.Context, *UpdatePublisherRequest) (*Publisher, error)
type UnsafeBookstoreServer ¶
type UnsafeBookstoreServer interface {
// contains filtered or unexported methods
}
UnsafeBookstoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BookstoreServer will result in compilation errors.
type UpdateBookRequest ¶
type UpdateBookRequest struct { // The globally unique identifier for the resource Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // The resource to perform the operation on. Book *Book `protobuf:"bytes,10015,opt,name=book,proto3" json:"book,omitempty"` // The update mask for the resource UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,10012,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request message for the 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) GetPath ¶
func (x *UpdateBookRequest) GetPath() string
func (*UpdateBookRequest) GetUpdateMask ¶
func (x *UpdateBookRequest) GetUpdateMask() *fieldmaskpb.FieldMask
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 UpdatePublisherRequest ¶
type UpdatePublisherRequest struct { // The globally unique identifier for the resource Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` // The resource to perform the operation on. Publisher *Publisher `protobuf:"bytes,10015,opt,name=publisher,proto3" json:"publisher,omitempty"` // The update mask for the resource UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,10012,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request message for the UpdatePublisher method
func (*UpdatePublisherRequest) Descriptor
deprecated
func (*UpdatePublisherRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePublisherRequest.ProtoReflect.Descriptor instead.
func (*UpdatePublisherRequest) GetPath ¶
func (x *UpdatePublisherRequest) GetPath() string
func (*UpdatePublisherRequest) GetPublisher ¶
func (x *UpdatePublisherRequest) GetPublisher() *Publisher
func (*UpdatePublisherRequest) GetUpdateMask ¶
func (x *UpdatePublisherRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdatePublisherRequest) ProtoMessage ¶
func (*UpdatePublisherRequest) ProtoMessage()
func (*UpdatePublisherRequest) ProtoReflect ¶
func (x *UpdatePublisherRequest) ProtoReflect() protoreflect.Message
func (*UpdatePublisherRequest) Reset ¶
func (x *UpdatePublisherRequest) Reset()
func (*UpdatePublisherRequest) String ¶
func (x *UpdatePublisherRequest) String() string