Documentation ¶
Index ¶
- Variables
- func RegisterBookstoreServer(s *grpc.Server, srv BookstoreServer)
- type Book
- func (*Book) Descriptor() ([]byte, []int)
- func (m *Book) GetAuthor() string
- func (m *Book) GetId() int64
- func (m *Book) GetPriceInUsd() int32
- func (m *Book) GetTitle() string
- func (m *Book) GetType() Book_TYPE
- func (*Book) ProtoMessage()
- func (m *Book) Reset()
- func (m *Book) String() string
- func (m *Book) XXX_DiscardUnknown()
- func (m *Book) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Book) XXX_Merge(src proto.Message)
- func (m *Book) XXX_Size() int
- func (m *Book) XXX_Unmarshal(b []byte) error
- type Book_TYPE
- type BookstoreClient
- type BookstoreServer
- type CreateBookRequest
- func (*CreateBookRequest) Descriptor() ([]byte, []int)
- func (m *CreateBookRequest) GetBook() *Book
- func (m *CreateBookRequest) GetShelf() int64
- func (*CreateBookRequest) ProtoMessage()
- func (m *CreateBookRequest) Reset()
- func (m *CreateBookRequest) String() string
- func (m *CreateBookRequest) XXX_DiscardUnknown()
- func (m *CreateBookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateBookRequest) XXX_Merge(src proto.Message)
- func (m *CreateBookRequest) XXX_Size() int
- func (m *CreateBookRequest) XXX_Unmarshal(b []byte) error
- type CreateShelfRequest
- func (*CreateShelfRequest) Descriptor() ([]byte, []int)
- func (m *CreateShelfRequest) GetShelf() *Shelf
- func (*CreateShelfRequest) ProtoMessage()
- func (m *CreateShelfRequest) Reset()
- func (m *CreateShelfRequest) String() string
- func (m *CreateShelfRequest) XXX_DiscardUnknown()
- func (m *CreateShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateShelfRequest) XXX_Merge(src proto.Message)
- func (m *CreateShelfRequest) XXX_Size() int
- func (m *CreateShelfRequest) XXX_Unmarshal(b []byte) error
- type DeleteBookRequest
- func (*DeleteBookRequest) Descriptor() ([]byte, []int)
- func (m *DeleteBookRequest) GetBook() int64
- func (m *DeleteBookRequest) GetShelf() int64
- func (*DeleteBookRequest) ProtoMessage()
- func (m *DeleteBookRequest) Reset()
- func (m *DeleteBookRequest) String() string
- func (m *DeleteBookRequest) XXX_DiscardUnknown()
- func (m *DeleteBookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteBookRequest) XXX_Merge(src proto.Message)
- func (m *DeleteBookRequest) XXX_Size() int
- func (m *DeleteBookRequest) XXX_Unmarshal(b []byte) error
- type DeleteShelfRequest
- func (*DeleteShelfRequest) Descriptor() ([]byte, []int)
- func (m *DeleteShelfRequest) GetShelf() int64
- func (*DeleteShelfRequest) ProtoMessage()
- func (m *DeleteShelfRequest) Reset()
- func (m *DeleteShelfRequest) String() string
- func (m *DeleteShelfRequest) XXX_DiscardUnknown()
- func (m *DeleteShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteShelfRequest) XXX_Merge(src proto.Message)
- func (m *DeleteShelfRequest) XXX_Size() int
- func (m *DeleteShelfRequest) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type GetBookRequest
- func (*GetBookRequest) Descriptor() ([]byte, []int)
- func (m *GetBookRequest) GetBook() int64
- func (m *GetBookRequest) GetShelf() int64
- func (*GetBookRequest) ProtoMessage()
- func (m *GetBookRequest) Reset()
- func (m *GetBookRequest) String() string
- func (m *GetBookRequest) XXX_DiscardUnknown()
- func (m *GetBookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBookRequest) XXX_Merge(src proto.Message)
- func (m *GetBookRequest) XXX_Size() int
- func (m *GetBookRequest) XXX_Unmarshal(b []byte) error
- type GetShelfRequest
- func (*GetShelfRequest) Descriptor() ([]byte, []int)
- func (m *GetShelfRequest) GetShelf() int64
- func (*GetShelfRequest) ProtoMessage()
- func (m *GetShelfRequest) Reset()
- func (m *GetShelfRequest) String() string
- func (m *GetShelfRequest) XXX_DiscardUnknown()
- func (m *GetShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetShelfRequest) XXX_Merge(src proto.Message)
- func (m *GetShelfRequest) XXX_Size() int
- func (m *GetShelfRequest) XXX_Unmarshal(b []byte) error
- type ListBooksRequest
- func (*ListBooksRequest) Descriptor() ([]byte, []int)
- func (m *ListBooksRequest) GetShelf() int64
- func (*ListBooksRequest) ProtoMessage()
- func (m *ListBooksRequest) Reset()
- func (m *ListBooksRequest) String() string
- func (m *ListBooksRequest) XXX_DiscardUnknown()
- func (m *ListBooksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListBooksRequest) XXX_Merge(src proto.Message)
- func (m *ListBooksRequest) XXX_Size() int
- func (m *ListBooksRequest) XXX_Unmarshal(b []byte) error
- type ListBooksResponse
- func (*ListBooksResponse) Descriptor() ([]byte, []int)
- func (m *ListBooksResponse) GetBooks() []*Book
- func (*ListBooksResponse) ProtoMessage()
- func (m *ListBooksResponse) Reset()
- func (m *ListBooksResponse) String() string
- func (m *ListBooksResponse) XXX_DiscardUnknown()
- func (m *ListBooksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListBooksResponse) XXX_Merge(src proto.Message)
- func (m *ListBooksResponse) XXX_Size() int
- func (m *ListBooksResponse) XXX_Unmarshal(b []byte) error
- type ListShelvesResponse
- func (*ListShelvesResponse) Descriptor() ([]byte, []int)
- func (m *ListShelvesResponse) GetShelves() []*Shelf
- func (*ListShelvesResponse) ProtoMessage()
- func (m *ListShelvesResponse) Reset()
- func (m *ListShelvesResponse) String() string
- func (m *ListShelvesResponse) XXX_DiscardUnknown()
- func (m *ListShelvesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListShelvesResponse) XXX_Merge(src proto.Message)
- func (m *ListShelvesResponse) XXX_Size() int
- func (m *ListShelvesResponse) XXX_Unmarshal(b []byte) error
- type ObjectOnlyForAny
- func (*ObjectOnlyForAny) Descriptor() ([]byte, []int)
- func (m *ObjectOnlyForAny) GetId() int32
- func (m *ObjectOnlyForAny) GetName() string
- func (*ObjectOnlyForAny) ProtoMessage()
- func (m *ObjectOnlyForAny) Reset()
- func (m *ObjectOnlyForAny) String() string
- func (m *ObjectOnlyForAny) XXX_DiscardUnknown()
- func (m *ObjectOnlyForAny) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ObjectOnlyForAny) XXX_Merge(src proto.Message)
- func (m *ObjectOnlyForAny) XXX_Size() int
- func (m *ObjectOnlyForAny) XXX_Unmarshal(b []byte) error
- type Shelf
- func (*Shelf) Descriptor() ([]byte, []int)
- func (m *Shelf) GetAny() *anypb.Any
- func (m *Shelf) GetId() int64
- func (m *Shelf) GetTheme() string
- func (*Shelf) ProtoMessage()
- func (m *Shelf) Reset()
- func (m *Shelf) String() string
- func (m *Shelf) XXX_DiscardUnknown()
- func (m *Shelf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Shelf) XXX_Merge(src proto.Message)
- func (m *Shelf) XXX_Size() int
- func (m *Shelf) XXX_Unmarshal(b []byte) error
- type UnimplementedBookstoreServer
- func (*UnimplementedBookstoreServer) CreateBook(ctx context.Context, req *CreateBookRequest) (*Book, error)
- func (*UnimplementedBookstoreServer) CreateBookWithCustomVerb(ctx context.Context, req *CreateBookRequest) (*Book, error)
- func (*UnimplementedBookstoreServer) CreateBookWithTrailingDoubleWildcard(ctx context.Context, req *CreateBookRequest) (*Book, error)
- func (*UnimplementedBookstoreServer) CreateBookWithTrailingSingleWildcard(ctx context.Context, req *CreateBookRequest) (*Book, error)
- func (*UnimplementedBookstoreServer) CreateShelf(ctx context.Context, req *CreateShelfRequest) (*Shelf, error)
- func (*UnimplementedBookstoreServer) DeleteBook(ctx context.Context, req *DeleteBookRequest) (*Empty, error)
- func (*UnimplementedBookstoreServer) DeleteShelf(ctx context.Context, req *DeleteShelfRequest) (*Empty, error)
- func (*UnimplementedBookstoreServer) GetBook(ctx context.Context, req *GetBookRequest) (*Book, error)
- func (*UnimplementedBookstoreServer) GetShelf(ctx context.Context, req *GetShelfRequest) (*Shelf, error)
- func (*UnimplementedBookstoreServer) ListBooks(ctx context.Context, req *ListBooksRequest) (*ListBooksResponse, error)
- func (*UnimplementedBookstoreServer) ListShelves(ctx context.Context, req *Empty) (*ListShelvesResponse, error)
- func (*UnimplementedBookstoreServer) ReturnBadStatus(ctx context.Context, req *Empty) (*Empty, error)
Constants ¶
This section is empty.
Variables ¶
var Book_TYPE_name = map[int32]string{
0: "CLASSIC",
1: "COMIC",
2: "HORROR",
3: "OTHER",
}
var Book_TYPE_value = map[string]int32{
"CLASSIC": 0,
"COMIC": 1,
"HORROR": 2,
"OTHER": 3,
}
Functions ¶
func RegisterBookstoreServer ¶
func RegisterBookstoreServer(s *grpc.Server, srv BookstoreServer)
Types ¶
type Book ¶
type Book struct { // A unique book id. Id int64 `protobuf:"varint,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"` // The book type. Type Book_TYPE `protobuf:"varint,4,opt,name=type,proto3,enum=endpoints.examples.bookstore.Book_TYPE" json:"type,omitempty"` PriceInUsd int32 `protobuf:"varint,5,opt,name=price_in_usd,json=priceInUsd,proto3" json:"price_in_usd,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A book resource.
func (*Book) Descriptor ¶
func (*Book) GetPriceInUsd ¶
func (*Book) ProtoMessage ¶
func (*Book) ProtoMessage()
func (*Book) XXX_DiscardUnknown ¶
func (m *Book) XXX_DiscardUnknown()
func (*Book) XXX_Unmarshal ¶
type BookstoreClient ¶
type BookstoreClient interface { // Returns a list of all shelves in the bookstore. ListShelves(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListShelvesResponse, error) // Creates a new shelf in the bookstore. CreateShelf(ctx context.Context, in *CreateShelfRequest, opts ...grpc.CallOption) (*Shelf, error) // Returns a specific bookstore shelf. GetShelf(ctx context.Context, in *GetShelfRequest, opts ...grpc.CallOption) (*Shelf, error) // Deletes a shelf, including all books that are stored on the shelf. DeleteShelf(ctx context.Context, in *DeleteShelfRequest, opts ...grpc.CallOption) (*Empty, error) // Returns a list of books on a shelf. ListBooks(ctx context.Context, in *ListBooksRequest, opts ...grpc.CallOption) (*ListBooksResponse, error) // Creates a new book. CreateBook(ctx context.Context, in *CreateBookRequest, opts ...grpc.CallOption) (*Book, error) // Creates a new book with http template containing a single wildcard. CreateBookWithTrailingSingleWildcard(ctx context.Context, in *CreateBookRequest, opts ...grpc.CallOption) (*Book, error) // Creates a new book with http template containing a double wildcard. CreateBookWithTrailingDoubleWildcard(ctx context.Context, in *CreateBookRequest, opts ...grpc.CallOption) (*Book, error) // Creates a new book with http template containing custom verb. CreateBookWithCustomVerb(ctx context.Context, in *CreateBookRequest, opts ...grpc.CallOption) (*Book, error) // Returns a specific book. GetBook(ctx context.Context, in *GetBookRequest, opts ...grpc.CallOption) (*Book, error) // Deletes a book from a shelf. DeleteBook(ctx context.Context, in *DeleteBookRequest, opts ...grpc.CallOption) (*Empty, error) // Returns a user-defined non-canonical grpc status code. ReturnBadStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) }
BookstoreClient is the client API for Bookstore service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBookstoreClient ¶
func NewBookstoreClient(cc grpc.ClientConnInterface) BookstoreClient
type BookstoreServer ¶
type BookstoreServer interface { // Returns a list of all shelves in the bookstore. ListShelves(context.Context, *Empty) (*ListShelvesResponse, error) // Creates a new shelf in the bookstore. CreateShelf(context.Context, *CreateShelfRequest) (*Shelf, error) // Returns a specific bookstore shelf. GetShelf(context.Context, *GetShelfRequest) (*Shelf, error) // Deletes a shelf, including all books that are stored on the shelf. DeleteShelf(context.Context, *DeleteShelfRequest) (*Empty, error) // Returns a list of books on a shelf. ListBooks(context.Context, *ListBooksRequest) (*ListBooksResponse, error) // Creates a new book. CreateBook(context.Context, *CreateBookRequest) (*Book, error) // Creates a new book with http template containing a single wildcard. CreateBookWithTrailingSingleWildcard(context.Context, *CreateBookRequest) (*Book, error) // Creates a new book with http template containing a double wildcard. CreateBookWithTrailingDoubleWildcard(context.Context, *CreateBookRequest) (*Book, error) // Creates a new book with http template containing custom verb. CreateBookWithCustomVerb(context.Context, *CreateBookRequest) (*Book, error) // Returns a specific book. GetBook(context.Context, *GetBookRequest) (*Book, error) // Deletes a book from a shelf. DeleteBook(context.Context, *DeleteBookRequest) (*Empty, error) // Returns a user-defined non-canonical grpc status code. ReturnBadStatus(context.Context, *Empty) (*Empty, error) }
BookstoreServer is the server API for Bookstore service.
type CreateBookRequest ¶
type CreateBookRequest struct { // The ID of the shelf on which to create a book. Shelf int64 `protobuf:"varint,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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for CreateBook method.
func (*CreateBookRequest) Descriptor ¶
func (*CreateBookRequest) Descriptor() ([]byte, []int)
func (*CreateBookRequest) GetBook ¶
func (m *CreateBookRequest) GetBook() *Book
func (*CreateBookRequest) GetShelf ¶
func (m *CreateBookRequest) GetShelf() int64
func (*CreateBookRequest) ProtoMessage ¶
func (*CreateBookRequest) ProtoMessage()
func (*CreateBookRequest) Reset ¶
func (m *CreateBookRequest) Reset()
func (*CreateBookRequest) String ¶
func (m *CreateBookRequest) String() string
func (*CreateBookRequest) XXX_DiscardUnknown ¶
func (m *CreateBookRequest) XXX_DiscardUnknown()
func (*CreateBookRequest) XXX_Marshal ¶
func (m *CreateBookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateBookRequest) XXX_Merge ¶
func (m *CreateBookRequest) XXX_Merge(src proto.Message)
func (*CreateBookRequest) XXX_Size ¶
func (m *CreateBookRequest) XXX_Size() int
func (*CreateBookRequest) XXX_Unmarshal ¶
func (m *CreateBookRequest) XXX_Unmarshal(b []byte) error
type CreateShelfRequest ¶
type CreateShelfRequest struct { // The shelf resource to create. Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for CreateShelf method.
func (*CreateShelfRequest) Descriptor ¶
func (*CreateShelfRequest) Descriptor() ([]byte, []int)
func (*CreateShelfRequest) GetShelf ¶
func (m *CreateShelfRequest) GetShelf() *Shelf
func (*CreateShelfRequest) ProtoMessage ¶
func (*CreateShelfRequest) ProtoMessage()
func (*CreateShelfRequest) Reset ¶
func (m *CreateShelfRequest) Reset()
func (*CreateShelfRequest) String ¶
func (m *CreateShelfRequest) String() string
func (*CreateShelfRequest) XXX_DiscardUnknown ¶
func (m *CreateShelfRequest) XXX_DiscardUnknown()
func (*CreateShelfRequest) XXX_Marshal ¶
func (m *CreateShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateShelfRequest) XXX_Merge ¶
func (m *CreateShelfRequest) XXX_Merge(src proto.Message)
func (*CreateShelfRequest) XXX_Size ¶
func (m *CreateShelfRequest) XXX_Size() int
func (*CreateShelfRequest) XXX_Unmarshal ¶
func (m *CreateShelfRequest) XXX_Unmarshal(b []byte) error
type DeleteBookRequest ¶
type DeleteBookRequest struct { // The ID of the shelf from which to delete a book. Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // The ID of the book to delete. Book int64 `protobuf:"varint,2,opt,name=book,proto3" json:"book,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for DeleteBook method.
func (*DeleteBookRequest) Descriptor ¶
func (*DeleteBookRequest) Descriptor() ([]byte, []int)
func (*DeleteBookRequest) GetBook ¶
func (m *DeleteBookRequest) GetBook() int64
func (*DeleteBookRequest) GetShelf ¶
func (m *DeleteBookRequest) GetShelf() int64
func (*DeleteBookRequest) ProtoMessage ¶
func (*DeleteBookRequest) ProtoMessage()
func (*DeleteBookRequest) Reset ¶
func (m *DeleteBookRequest) Reset()
func (*DeleteBookRequest) String ¶
func (m *DeleteBookRequest) String() string
func (*DeleteBookRequest) XXX_DiscardUnknown ¶
func (m *DeleteBookRequest) XXX_DiscardUnknown()
func (*DeleteBookRequest) XXX_Marshal ¶
func (m *DeleteBookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteBookRequest) XXX_Merge ¶
func (m *DeleteBookRequest) XXX_Merge(src proto.Message)
func (*DeleteBookRequest) XXX_Size ¶
func (m *DeleteBookRequest) XXX_Size() int
func (*DeleteBookRequest) XXX_Unmarshal ¶
func (m *DeleteBookRequest) XXX_Unmarshal(b []byte) error
type DeleteShelfRequest ¶
type DeleteShelfRequest struct { // The ID of the shelf to delete. Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for DeleteShelf method.
func (*DeleteShelfRequest) Descriptor ¶
func (*DeleteShelfRequest) Descriptor() ([]byte, []int)
func (*DeleteShelfRequest) GetShelf ¶
func (m *DeleteShelfRequest) GetShelf() int64
func (*DeleteShelfRequest) ProtoMessage ¶
func (*DeleteShelfRequest) ProtoMessage()
func (*DeleteShelfRequest) Reset ¶
func (m *DeleteShelfRequest) Reset()
func (*DeleteShelfRequest) String ¶
func (m *DeleteShelfRequest) String() string
func (*DeleteShelfRequest) XXX_DiscardUnknown ¶
func (m *DeleteShelfRequest) XXX_DiscardUnknown()
func (*DeleteShelfRequest) XXX_Marshal ¶
func (m *DeleteShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteShelfRequest) XXX_Merge ¶
func (m *DeleteShelfRequest) XXX_Merge(src proto.Message)
func (*DeleteShelfRequest) XXX_Size ¶
func (m *DeleteShelfRequest) XXX_Size() int
func (*DeleteShelfRequest) XXX_Unmarshal ¶
func (m *DeleteShelfRequest) XXX_Unmarshal(b []byte) error
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type GetBookRequest ¶
type GetBookRequest struct { // The ID of the shelf from which to retrieve a book. Shelf int64 `protobuf:"varint,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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for GetBook method.
func (*GetBookRequest) Descriptor ¶
func (*GetBookRequest) Descriptor() ([]byte, []int)
func (*GetBookRequest) GetBook ¶
func (m *GetBookRequest) GetBook() int64
func (*GetBookRequest) GetShelf ¶
func (m *GetBookRequest) GetShelf() int64
func (*GetBookRequest) ProtoMessage ¶
func (*GetBookRequest) ProtoMessage()
func (*GetBookRequest) Reset ¶
func (m *GetBookRequest) Reset()
func (*GetBookRequest) String ¶
func (m *GetBookRequest) String() string
func (*GetBookRequest) XXX_DiscardUnknown ¶
func (m *GetBookRequest) XXX_DiscardUnknown()
func (*GetBookRequest) XXX_Marshal ¶
func (m *GetBookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBookRequest) XXX_Merge ¶
func (m *GetBookRequest) XXX_Merge(src proto.Message)
func (*GetBookRequest) XXX_Size ¶
func (m *GetBookRequest) XXX_Size() int
func (*GetBookRequest) XXX_Unmarshal ¶
func (m *GetBookRequest) XXX_Unmarshal(b []byte) error
type GetShelfRequest ¶
type GetShelfRequest struct { // The ID of the shelf resource to retrieve. Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for GetShelf method.
func (*GetShelfRequest) Descriptor ¶
func (*GetShelfRequest) Descriptor() ([]byte, []int)
func (*GetShelfRequest) GetShelf ¶
func (m *GetShelfRequest) GetShelf() int64
func (*GetShelfRequest) ProtoMessage ¶
func (*GetShelfRequest) ProtoMessage()
func (*GetShelfRequest) Reset ¶
func (m *GetShelfRequest) Reset()
func (*GetShelfRequest) String ¶
func (m *GetShelfRequest) String() string
func (*GetShelfRequest) XXX_DiscardUnknown ¶
func (m *GetShelfRequest) XXX_DiscardUnknown()
func (*GetShelfRequest) XXX_Marshal ¶
func (m *GetShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetShelfRequest) XXX_Merge ¶
func (m *GetShelfRequest) XXX_Merge(src proto.Message)
func (*GetShelfRequest) XXX_Size ¶
func (m *GetShelfRequest) XXX_Size() int
func (*GetShelfRequest) XXX_Unmarshal ¶
func (m *GetShelfRequest) XXX_Unmarshal(b []byte) error
type ListBooksRequest ¶
type ListBooksRequest struct { // ID of the shelf which books to list. Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for ListBooks method.
func (*ListBooksRequest) Descriptor ¶
func (*ListBooksRequest) Descriptor() ([]byte, []int)
func (*ListBooksRequest) GetShelf ¶
func (m *ListBooksRequest) GetShelf() int64
func (*ListBooksRequest) ProtoMessage ¶
func (*ListBooksRequest) ProtoMessage()
func (*ListBooksRequest) Reset ¶
func (m *ListBooksRequest) Reset()
func (*ListBooksRequest) String ¶
func (m *ListBooksRequest) String() string
func (*ListBooksRequest) XXX_DiscardUnknown ¶
func (m *ListBooksRequest) XXX_DiscardUnknown()
func (*ListBooksRequest) XXX_Marshal ¶
func (m *ListBooksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListBooksRequest) XXX_Merge ¶
func (m *ListBooksRequest) XXX_Merge(src proto.Message)
func (*ListBooksRequest) XXX_Size ¶
func (m *ListBooksRequest) XXX_Size() int
func (*ListBooksRequest) XXX_Unmarshal ¶
func (m *ListBooksRequest) XXX_Unmarshal(b []byte) error
type ListBooksResponse ¶
type ListBooksResponse struct { // The books on the shelf. Books []*Book `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response message to ListBooks method.
func (*ListBooksResponse) Descriptor ¶
func (*ListBooksResponse) Descriptor() ([]byte, []int)
func (*ListBooksResponse) GetBooks ¶
func (m *ListBooksResponse) GetBooks() []*Book
func (*ListBooksResponse) ProtoMessage ¶
func (*ListBooksResponse) ProtoMessage()
func (*ListBooksResponse) Reset ¶
func (m *ListBooksResponse) Reset()
func (*ListBooksResponse) String ¶
func (m *ListBooksResponse) String() string
func (*ListBooksResponse) XXX_DiscardUnknown ¶
func (m *ListBooksResponse) XXX_DiscardUnknown()
func (*ListBooksResponse) XXX_Marshal ¶
func (m *ListBooksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListBooksResponse) XXX_Merge ¶
func (m *ListBooksResponse) XXX_Merge(src proto.Message)
func (*ListBooksResponse) XXX_Size ¶
func (m *ListBooksResponse) XXX_Size() int
func (*ListBooksResponse) XXX_Unmarshal ¶
func (m *ListBooksResponse) XXX_Unmarshal(b []byte) error
type ListShelvesResponse ¶
type ListShelvesResponse struct { // Shelves in the bookstore. Shelves []*Shelf `protobuf:"bytes,1,rep,name=shelves,proto3" json:"shelves,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response to ListShelves call.
func (*ListShelvesResponse) Descriptor ¶
func (*ListShelvesResponse) Descriptor() ([]byte, []int)
func (*ListShelvesResponse) GetShelves ¶
func (m *ListShelvesResponse) GetShelves() []*Shelf
func (*ListShelvesResponse) ProtoMessage ¶
func (*ListShelvesResponse) ProtoMessage()
func (*ListShelvesResponse) Reset ¶
func (m *ListShelvesResponse) Reset()
func (*ListShelvesResponse) String ¶
func (m *ListShelvesResponse) String() string
func (*ListShelvesResponse) XXX_DiscardUnknown ¶
func (m *ListShelvesResponse) XXX_DiscardUnknown()
func (*ListShelvesResponse) XXX_Marshal ¶
func (m *ListShelvesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListShelvesResponse) XXX_Merge ¶
func (m *ListShelvesResponse) XXX_Merge(src proto.Message)
func (*ListShelvesResponse) XXX_Size ¶
func (m *ListShelvesResponse) XXX_Size() int
func (*ListShelvesResponse) XXX_Unmarshal ¶
func (m *ListShelvesResponse) XXX_Unmarshal(b []byte) error
type ObjectOnlyForAny ¶
type ObjectOnlyForAny struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ObjectOnlyForAny) Descriptor ¶
func (*ObjectOnlyForAny) Descriptor() ([]byte, []int)
func (*ObjectOnlyForAny) GetId ¶
func (m *ObjectOnlyForAny) GetId() int32
func (*ObjectOnlyForAny) GetName ¶
func (m *ObjectOnlyForAny) GetName() string
func (*ObjectOnlyForAny) ProtoMessage ¶
func (*ObjectOnlyForAny) ProtoMessage()
func (*ObjectOnlyForAny) Reset ¶
func (m *ObjectOnlyForAny) Reset()
func (*ObjectOnlyForAny) String ¶
func (m *ObjectOnlyForAny) String() string
func (*ObjectOnlyForAny) XXX_DiscardUnknown ¶
func (m *ObjectOnlyForAny) XXX_DiscardUnknown()
func (*ObjectOnlyForAny) XXX_Marshal ¶
func (m *ObjectOnlyForAny) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ObjectOnlyForAny) XXX_Merge ¶
func (m *ObjectOnlyForAny) XXX_Merge(src proto.Message)
func (*ObjectOnlyForAny) XXX_Size ¶
func (m *ObjectOnlyForAny) XXX_Size() int
func (*ObjectOnlyForAny) XXX_Unmarshal ¶
func (m *ObjectOnlyForAny) XXX_Unmarshal(b []byte) error
type Shelf ¶
type Shelf struct { // A unique shelf id. Id int64 `protobuf:"varint,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"` Any *anypb.Any `protobuf:"bytes,3,opt,name=any,proto3" json:"any,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A shelf resource.
func (*Shelf) Descriptor ¶
func (*Shelf) ProtoMessage ¶
func (*Shelf) ProtoMessage()
func (*Shelf) XXX_DiscardUnknown ¶
func (m *Shelf) XXX_DiscardUnknown()
func (*Shelf) XXX_Marshal ¶
func (*Shelf) XXX_Unmarshal ¶
type UnimplementedBookstoreServer ¶
type UnimplementedBookstoreServer struct { }
UnimplementedBookstoreServer can be embedded to have forward compatible implementations.
func (*UnimplementedBookstoreServer) CreateBook ¶
func (*UnimplementedBookstoreServer) CreateBook(ctx context.Context, req *CreateBookRequest) (*Book, error)
func (*UnimplementedBookstoreServer) CreateBookWithCustomVerb ¶
func (*UnimplementedBookstoreServer) CreateBookWithCustomVerb(ctx context.Context, req *CreateBookRequest) (*Book, error)
func (*UnimplementedBookstoreServer) CreateBookWithTrailingDoubleWildcard ¶
func (*UnimplementedBookstoreServer) CreateBookWithTrailingDoubleWildcard(ctx context.Context, req *CreateBookRequest) (*Book, error)
func (*UnimplementedBookstoreServer) CreateBookWithTrailingSingleWildcard ¶
func (*UnimplementedBookstoreServer) CreateBookWithTrailingSingleWildcard(ctx context.Context, req *CreateBookRequest) (*Book, error)
func (*UnimplementedBookstoreServer) CreateShelf ¶
func (*UnimplementedBookstoreServer) CreateShelf(ctx context.Context, req *CreateShelfRequest) (*Shelf, error)
func (*UnimplementedBookstoreServer) DeleteBook ¶
func (*UnimplementedBookstoreServer) DeleteBook(ctx context.Context, req *DeleteBookRequest) (*Empty, error)
func (*UnimplementedBookstoreServer) DeleteShelf ¶
func (*UnimplementedBookstoreServer) DeleteShelf(ctx context.Context, req *DeleteShelfRequest) (*Empty, error)
func (*UnimplementedBookstoreServer) GetBook ¶
func (*UnimplementedBookstoreServer) GetBook(ctx context.Context, req *GetBookRequest) (*Book, error)
func (*UnimplementedBookstoreServer) GetShelf ¶
func (*UnimplementedBookstoreServer) GetShelf(ctx context.Context, req *GetShelfRequest) (*Shelf, error)
func (*UnimplementedBookstoreServer) ListBooks ¶
func (*UnimplementedBookstoreServer) ListBooks(ctx context.Context, req *ListBooksRequest) (*ListBooksResponse, error)
func (*UnimplementedBookstoreServer) ListShelves ¶
func (*UnimplementedBookstoreServer) ListShelves(ctx context.Context, req *Empty) (*ListShelvesResponse, error)