genproto: google.golang.org/genproto/googleapis/example/library/v1 Index | Files

package library

import "google.golang.org/genproto/googleapis/example/library/v1"

Index

Package Files

library.pb.go

Variables

var File_google_example_library_v1_library_proto protoreflect.FileDescriptor

func RegisterLibraryServiceServer Uses

func RegisterLibraryServiceServer(s *grpc.Server, srv LibraryServiceServer)

type Book Uses

type Book struct {

    // The resource name of the book.
    // Book names have the form `shelves/{shelf_id}/books/{book_id}`.
    // The name is ignored when creating a book.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The name of the book author.
    Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
    // The title of the book.
    Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
    // Value indicating whether the book has been read.
    Read bool `protobuf:"varint,4,opt,name=read,proto3" json:"read,omitempty"`
    // contains filtered or unexported fields
}

A single book in the library.

func (*Book) Descriptor Uses

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

Deprecated: Use Book.ProtoReflect.Descriptor instead.

func (*Book) GetAuthor Uses

func (x *Book) GetAuthor() string

func (*Book) GetName Uses

func (x *Book) GetName() string

func (*Book) GetRead Uses

func (x *Book) GetRead() bool

func (*Book) GetTitle Uses

func (x *Book) GetTitle() string

func (*Book) ProtoMessage Uses

func (*Book) ProtoMessage()

func (*Book) ProtoReflect Uses

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

func (*Book) Reset Uses

func (x *Book) Reset()

func (*Book) String Uses

func (x *Book) String() string

type CreateBookRequest Uses

type CreateBookRequest struct {

    // The name of the shelf in which the book is created.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The book to create.
    Book *Book `protobuf:"bytes,2,opt,name=book,proto3" json:"book,omitempty"`
    // contains filtered or unexported fields
}

Request message for LibraryService.CreateBook.

func (*CreateBookRequest) Descriptor Uses

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

Deprecated: Use CreateBookRequest.ProtoReflect.Descriptor instead.

func (*CreateBookRequest) GetBook Uses

func (x *CreateBookRequest) GetBook() *Book

func (*CreateBookRequest) GetName Uses

func (x *CreateBookRequest) GetName() string

func (*CreateBookRequest) ProtoMessage Uses

func (*CreateBookRequest) ProtoMessage()

func (*CreateBookRequest) ProtoReflect Uses

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

func (*CreateBookRequest) Reset Uses

func (x *CreateBookRequest) Reset()

func (*CreateBookRequest) String Uses

func (x *CreateBookRequest) String() string

type CreateShelfRequest Uses

type CreateShelfRequest struct {

    // The shelf to create.
    Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"`
    // contains filtered or unexported fields
}

Request message for LibraryService.CreateShelf.

func (*CreateShelfRequest) Descriptor Uses

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

Deprecated: Use CreateShelfRequest.ProtoReflect.Descriptor instead.

func (*CreateShelfRequest) GetShelf Uses

func (x *CreateShelfRequest) GetShelf() *Shelf

func (*CreateShelfRequest) ProtoMessage Uses

func (*CreateShelfRequest) ProtoMessage()

func (*CreateShelfRequest) ProtoReflect Uses

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

func (*CreateShelfRequest) Reset Uses

func (x *CreateShelfRequest) Reset()

func (*CreateShelfRequest) String Uses

func (x *CreateShelfRequest) String() string

type DeleteBookRequest Uses

type DeleteBookRequest struct {

    // The name of the book to delete.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request message for LibraryService.DeleteBook.

func (*DeleteBookRequest) Descriptor Uses

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

Deprecated: Use DeleteBookRequest.ProtoReflect.Descriptor instead.

func (*DeleteBookRequest) GetName Uses

func (x *DeleteBookRequest) GetName() string

func (*DeleteBookRequest) ProtoMessage Uses

func (*DeleteBookRequest) ProtoMessage()

func (*DeleteBookRequest) ProtoReflect Uses

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

func (*DeleteBookRequest) Reset Uses

func (x *DeleteBookRequest) Reset()

func (*DeleteBookRequest) String Uses

func (x *DeleteBookRequest) String() string

type DeleteShelfRequest Uses

type DeleteShelfRequest struct {

    // The name of the shelf to delete.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request message for LibraryService.DeleteShelf.

func (*DeleteShelfRequest) Descriptor Uses

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

Deprecated: Use DeleteShelfRequest.ProtoReflect.Descriptor instead.

func (*DeleteShelfRequest) GetName Uses

func (x *DeleteShelfRequest) GetName() string

func (*DeleteShelfRequest) ProtoMessage Uses

func (*DeleteShelfRequest) ProtoMessage()

func (*DeleteShelfRequest) ProtoReflect Uses

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

func (*DeleteShelfRequest) Reset Uses

func (x *DeleteShelfRequest) Reset()

func (*DeleteShelfRequest) String Uses

func (x *DeleteShelfRequest) String() string

type GetBookRequest Uses

type GetBookRequest struct {

    // The name of the book to retrieve.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request message for LibraryService.GetBook.

func (*GetBookRequest) Descriptor Uses

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

Deprecated: Use GetBookRequest.ProtoReflect.Descriptor instead.

func (*GetBookRequest) GetName Uses

func (x *GetBookRequest) GetName() string

func (*GetBookRequest) ProtoMessage Uses

func (*GetBookRequest) ProtoMessage()

func (*GetBookRequest) ProtoReflect Uses

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

func (*GetBookRequest) Reset Uses

func (x *GetBookRequest) Reset()

func (*GetBookRequest) String Uses

func (x *GetBookRequest) String() string

type GetShelfRequest Uses

type GetShelfRequest struct {

    // The name of the shelf to retrieve.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request message for LibraryService.GetShelf.

func (*GetShelfRequest) Descriptor Uses

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

Deprecated: Use GetShelfRequest.ProtoReflect.Descriptor instead.

func (*GetShelfRequest) GetName Uses

func (x *GetShelfRequest) GetName() string

func (*GetShelfRequest) ProtoMessage Uses

func (*GetShelfRequest) ProtoMessage()

func (*GetShelfRequest) ProtoReflect Uses

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

func (*GetShelfRequest) Reset Uses

func (x *GetShelfRequest) Reset()

func (*GetShelfRequest) String Uses

func (x *GetShelfRequest) String() string

type LibraryServiceClient Uses

type LibraryServiceClient interface {
    // Creates a shelf, and returns the new Shelf.
    CreateShelf(ctx context.Context, in *CreateShelfRequest, opts ...grpc.CallOption) (*Shelf, error)
    // Gets a shelf. Returns NOT_FOUND if the shelf does not exist.
    GetShelf(ctx context.Context, in *GetShelfRequest, opts ...grpc.CallOption) (*Shelf, error)
    // Lists shelves. The order is unspecified but deterministic. Newly created
    // shelves will not necessarily be added to the end of this list.
    ListShelves(ctx context.Context, in *ListShelvesRequest, opts ...grpc.CallOption) (*ListShelvesResponse, error)
    // Deletes a shelf. Returns NOT_FOUND if the shelf does not exist.
    DeleteShelf(ctx context.Context, in *DeleteShelfRequest, opts ...grpc.CallOption) (*empty.Empty, error)
    // Merges two shelves by adding all books from the shelf named
    // `other_shelf_name` to shelf `name`, and deletes
    // `other_shelf_name`. Returns the updated shelf.
    // The book ids of the moved books may not be the same as the original books.
    //
    // Returns NOT_FOUND if either shelf does not exist.
    // This call is a no-op if the specified shelves are the same.
    MergeShelves(ctx context.Context, in *MergeShelvesRequest, opts ...grpc.CallOption) (*Shelf, error)
    // Creates a book, and returns the new Book.
    CreateBook(ctx context.Context, in *CreateBookRequest, opts ...grpc.CallOption) (*Book, error)
    // Gets a book. Returns NOT_FOUND if the book does not exist.
    GetBook(ctx context.Context, in *GetBookRequest, opts ...grpc.CallOption) (*Book, error)
    // Lists books in a shelf. The order is unspecified but deterministic. Newly
    // created books will not necessarily be added to the end of this list.
    // Returns NOT_FOUND if the shelf does not exist.
    ListBooks(ctx context.Context, in *ListBooksRequest, opts ...grpc.CallOption) (*ListBooksResponse, error)
    // Deletes a book. Returns NOT_FOUND if the book does not exist.
    DeleteBook(ctx context.Context, in *DeleteBookRequest, opts ...grpc.CallOption) (*empty.Empty, error)
    // Updates a book. Returns INVALID_ARGUMENT if the name of the book
    // is non-empty and does not equal the existing name.
    UpdateBook(ctx context.Context, in *UpdateBookRequest, opts ...grpc.CallOption) (*Book, error)
    // Moves a book to another shelf, and returns the new book. The book
    // id of the new book may not be the same as the original book.
    MoveBook(ctx context.Context, in *MoveBookRequest, opts ...grpc.CallOption) (*Book, error)
}

LibraryServiceClient is the client API for LibraryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewLibraryServiceClient Uses

func NewLibraryServiceClient(cc grpc.ClientConnInterface) LibraryServiceClient

type LibraryServiceServer Uses

type LibraryServiceServer interface {
    // Creates a shelf, and returns the new Shelf.
    CreateShelf(context.Context, *CreateShelfRequest) (*Shelf, error)
    // Gets a shelf. Returns NOT_FOUND if the shelf does not exist.
    GetShelf(context.Context, *GetShelfRequest) (*Shelf, error)
    // Lists shelves. The order is unspecified but deterministic. Newly created
    // shelves will not necessarily be added to the end of this list.
    ListShelves(context.Context, *ListShelvesRequest) (*ListShelvesResponse, error)
    // Deletes a shelf. Returns NOT_FOUND if the shelf does not exist.
    DeleteShelf(context.Context, *DeleteShelfRequest) (*empty.Empty, error)
    // Merges two shelves by adding all books from the shelf named
    // `other_shelf_name` to shelf `name`, and deletes
    // `other_shelf_name`. Returns the updated shelf.
    // The book ids of the moved books may not be the same as the original books.
    //
    // Returns NOT_FOUND if either shelf does not exist.
    // This call is a no-op if the specified shelves are the same.
    MergeShelves(context.Context, *MergeShelvesRequest) (*Shelf, error)
    // Creates a book, and returns the new Book.
    CreateBook(context.Context, *CreateBookRequest) (*Book, error)
    // Gets a book. Returns NOT_FOUND if the book does not exist.
    GetBook(context.Context, *GetBookRequest) (*Book, error)
    // Lists books in a shelf. The order is unspecified but deterministic. Newly
    // created books will not necessarily be added to the end of this list.
    // Returns NOT_FOUND if the shelf does not exist.
    ListBooks(context.Context, *ListBooksRequest) (*ListBooksResponse, error)
    // Deletes a book. Returns NOT_FOUND if the book does not exist.
    DeleteBook(context.Context, *DeleteBookRequest) (*empty.Empty, error)
    // Updates a book. Returns INVALID_ARGUMENT if the name of the book
    // is non-empty and does not equal the existing name.
    UpdateBook(context.Context, *UpdateBookRequest) (*Book, error)
    // Moves a book to another shelf, and returns the new book. The book
    // id of the new book may not be the same as the original book.
    MoveBook(context.Context, *MoveBookRequest) (*Book, error)
}

LibraryServiceServer is the server API for LibraryService service.

type ListBooksRequest Uses

type ListBooksRequest struct {

    // The name of the shelf whose books we'd like to list.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Requested page size. Server may return fewer books than requested.
    // If unspecified, server will pick an appropriate default.
    PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // A token identifying a page of results the server should return.
    // Typically, this is the value of
    // [ListBooksResponse.next_page_token][google.example.library.v1.ListBooksResponse.next_page_token].
    // returned from the previous call to `ListBooks` method.
    PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // contains filtered or unexported fields
}

Request message for LibraryService.ListBooks.

func (*ListBooksRequest) Descriptor Uses

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

Deprecated: Use ListBooksRequest.ProtoReflect.Descriptor instead.

func (*ListBooksRequest) GetName Uses

func (x *ListBooksRequest) GetName() string

func (*ListBooksRequest) GetPageSize Uses

func (x *ListBooksRequest) GetPageSize() int32

func (*ListBooksRequest) GetPageToken Uses

func (x *ListBooksRequest) GetPageToken() string

func (*ListBooksRequest) ProtoMessage Uses

func (*ListBooksRequest) ProtoMessage()

func (*ListBooksRequest) ProtoReflect Uses

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

func (*ListBooksRequest) Reset Uses

func (x *ListBooksRequest) Reset()

func (*ListBooksRequest) String Uses

func (x *ListBooksRequest) String() string

type ListBooksResponse Uses

type ListBooksResponse struct {

    // The list of books.
    Books []*Book `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"`
    // A token to retrieve next page of results.
    // Pass this value in the
    // [ListBooksRequest.page_token][google.example.library.v1.ListBooksRequest.page_token]
    // field in the subsequent call to `ListBooks` method to retrieve the next
    // page of results.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // contains filtered or unexported fields
}

Response message for LibraryService.ListBooks.

func (*ListBooksResponse) Descriptor Uses

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

Deprecated: Use ListBooksResponse.ProtoReflect.Descriptor instead.

func (*ListBooksResponse) GetBooks Uses

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

func (*ListBooksResponse) GetNextPageToken Uses

func (x *ListBooksResponse) GetNextPageToken() string

func (*ListBooksResponse) ProtoMessage Uses

func (*ListBooksResponse) ProtoMessage()

func (*ListBooksResponse) ProtoReflect Uses

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

func (*ListBooksResponse) Reset Uses

func (x *ListBooksResponse) Reset()

func (*ListBooksResponse) String Uses

func (x *ListBooksResponse) String() string

type ListShelvesRequest Uses

type ListShelvesRequest struct {

    // Requested page size. Server may return fewer shelves than requested.
    // If unspecified, server will pick an appropriate default.
    PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // A token identifying a page of results the server should return.
    // Typically, this is the value of
    // [ListShelvesResponse.next_page_token][google.example.library.v1.ListShelvesResponse.next_page_token]
    // returned from the previous call to `ListShelves` method.
    PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // contains filtered or unexported fields
}

Request message for LibraryService.ListShelves.

func (*ListShelvesRequest) Descriptor Uses

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

Deprecated: Use ListShelvesRequest.ProtoReflect.Descriptor instead.

func (*ListShelvesRequest) GetPageSize Uses

func (x *ListShelvesRequest) GetPageSize() int32

func (*ListShelvesRequest) GetPageToken Uses

func (x *ListShelvesRequest) GetPageToken() string

func (*ListShelvesRequest) ProtoMessage Uses

func (*ListShelvesRequest) ProtoMessage()

func (*ListShelvesRequest) ProtoReflect Uses

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

func (*ListShelvesRequest) Reset Uses

func (x *ListShelvesRequest) Reset()

func (*ListShelvesRequest) String Uses

func (x *ListShelvesRequest) String() string

type ListShelvesResponse Uses

type ListShelvesResponse struct {

    // The list of shelves.
    Shelves []*Shelf `protobuf:"bytes,1,rep,name=shelves,proto3" json:"shelves,omitempty"`
    // A token to retrieve next page of results.
    // Pass this value in the
    // [ListShelvesRequest.page_token][google.example.library.v1.ListShelvesRequest.page_token]
    // field in the subsequent call to `ListShelves` method to retrieve the next
    // page of results.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // contains filtered or unexported fields
}

Response message for LibraryService.ListShelves.

func (*ListShelvesResponse) Descriptor Uses

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

Deprecated: Use ListShelvesResponse.ProtoReflect.Descriptor instead.

func (*ListShelvesResponse) GetNextPageToken Uses

func (x *ListShelvesResponse) GetNextPageToken() string

func (*ListShelvesResponse) GetShelves Uses

func (x *ListShelvesResponse) GetShelves() []*Shelf

func (*ListShelvesResponse) ProtoMessage Uses

func (*ListShelvesResponse) ProtoMessage()

func (*ListShelvesResponse) ProtoReflect Uses

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

func (*ListShelvesResponse) Reset Uses

func (x *ListShelvesResponse) Reset()

func (*ListShelvesResponse) String Uses

func (x *ListShelvesResponse) String() string

type MergeShelvesRequest Uses

type MergeShelvesRequest struct {

    // The name of the shelf we're adding books to.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The name of the shelf we're removing books from and deleting.
    OtherShelfName string `protobuf:"bytes,2,opt,name=other_shelf_name,json=otherShelfName,proto3" json:"other_shelf_name,omitempty"`
    // contains filtered or unexported fields
}

Describes the shelf being removed (other_shelf_name) and updated (name) in this merge.

func (*MergeShelvesRequest) Descriptor Uses

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

Deprecated: Use MergeShelvesRequest.ProtoReflect.Descriptor instead.

func (*MergeShelvesRequest) GetName Uses

func (x *MergeShelvesRequest) GetName() string

func (*MergeShelvesRequest) GetOtherShelfName Uses

func (x *MergeShelvesRequest) GetOtherShelfName() string

func (*MergeShelvesRequest) ProtoMessage Uses

func (*MergeShelvesRequest) ProtoMessage()

func (*MergeShelvesRequest) ProtoReflect Uses

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

func (*MergeShelvesRequest) Reset Uses

func (x *MergeShelvesRequest) Reset()

func (*MergeShelvesRequest) String Uses

func (x *MergeShelvesRequest) String() string

type MoveBookRequest Uses

type MoveBookRequest struct {

    // The name of the book to move.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The name of the destination shelf.
    OtherShelfName string `protobuf:"bytes,2,opt,name=other_shelf_name,json=otherShelfName,proto3" json:"other_shelf_name,omitempty"`
    // contains filtered or unexported fields
}

Describes what book to move (name) and what shelf we're moving it to (other_shelf_name).

func (*MoveBookRequest) Descriptor Uses

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

Deprecated: Use MoveBookRequest.ProtoReflect.Descriptor instead.

func (*MoveBookRequest) GetName Uses

func (x *MoveBookRequest) GetName() string

func (*MoveBookRequest) GetOtherShelfName Uses

func (x *MoveBookRequest) GetOtherShelfName() string

func (*MoveBookRequest) ProtoMessage Uses

func (*MoveBookRequest) ProtoMessage()

func (*MoveBookRequest) ProtoReflect Uses

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

func (*MoveBookRequest) Reset Uses

func (x *MoveBookRequest) Reset()

func (*MoveBookRequest) String Uses

func (x *MoveBookRequest) String() string

type Shelf Uses

type Shelf struct {

    // The resource name of the shelf.
    // Shelf names have the form `shelves/{shelf_id}`.
    // The name is ignored when creating a shelf.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The theme of the shelf
    Theme string `protobuf:"bytes,2,opt,name=theme,proto3" json:"theme,omitempty"`
    // contains filtered or unexported fields
}

A Shelf contains a collection of books with a theme.

func (*Shelf) Descriptor Uses

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

Deprecated: Use Shelf.ProtoReflect.Descriptor instead.

func (*Shelf) GetName Uses

func (x *Shelf) GetName() string

func (*Shelf) GetTheme Uses

func (x *Shelf) GetTheme() string

func (*Shelf) ProtoMessage Uses

func (*Shelf) ProtoMessage()

func (*Shelf) ProtoReflect Uses

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

func (*Shelf) Reset Uses

func (x *Shelf) Reset()

func (*Shelf) String Uses

func (x *Shelf) String() string

type UnimplementedLibraryServiceServer Uses

type UnimplementedLibraryServiceServer struct {
}

UnimplementedLibraryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedLibraryServiceServer) CreateBook Uses

func (*UnimplementedLibraryServiceServer) CreateBook(context.Context, *CreateBookRequest) (*Book, error)

func (*UnimplementedLibraryServiceServer) CreateShelf Uses

func (*UnimplementedLibraryServiceServer) CreateShelf(context.Context, *CreateShelfRequest) (*Shelf, error)

func (*UnimplementedLibraryServiceServer) DeleteBook Uses

func (*UnimplementedLibraryServiceServer) DeleteBook(context.Context, *DeleteBookRequest) (*empty.Empty, error)

func (*UnimplementedLibraryServiceServer) DeleteShelf Uses

func (*UnimplementedLibraryServiceServer) DeleteShelf(context.Context, *DeleteShelfRequest) (*empty.Empty, error)

func (*UnimplementedLibraryServiceServer) GetBook Uses

func (*UnimplementedLibraryServiceServer) GetBook(context.Context, *GetBookRequest) (*Book, error)

func (*UnimplementedLibraryServiceServer) GetShelf Uses

func (*UnimplementedLibraryServiceServer) GetShelf(context.Context, *GetShelfRequest) (*Shelf, error)

func (*UnimplementedLibraryServiceServer) ListBooks Uses

func (*UnimplementedLibraryServiceServer) ListBooks(context.Context, *ListBooksRequest) (*ListBooksResponse, error)

func (*UnimplementedLibraryServiceServer) ListShelves Uses

func (*UnimplementedLibraryServiceServer) ListShelves(context.Context, *ListShelvesRequest) (*ListShelvesResponse, error)

func (*UnimplementedLibraryServiceServer) MergeShelves Uses

func (*UnimplementedLibraryServiceServer) MergeShelves(context.Context, *MergeShelvesRequest) (*Shelf, error)

func (*UnimplementedLibraryServiceServer) MoveBook Uses

func (*UnimplementedLibraryServiceServer) MoveBook(context.Context, *MoveBookRequest) (*Book, error)

func (*UnimplementedLibraryServiceServer) UpdateBook Uses

func (*UnimplementedLibraryServiceServer) UpdateBook(context.Context, *UpdateBookRequest) (*Book, error)

type UpdateBookRequest Uses

type UpdateBookRequest struct {

    // The name of the book to update.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The book to update with. The name must match or be empty.
    Book *Book `protobuf:"bytes,2,opt,name=book,proto3" json:"book,omitempty"`
    // contains filtered or unexported fields
}

Request message for LibraryService.UpdateBook.

func (*UpdateBookRequest) Descriptor Uses

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

Deprecated: Use UpdateBookRequest.ProtoReflect.Descriptor instead.

func (*UpdateBookRequest) GetBook Uses

func (x *UpdateBookRequest) GetBook() *Book

func (*UpdateBookRequest) GetName Uses

func (x *UpdateBookRequest) GetName() string

func (*UpdateBookRequest) ProtoMessage Uses

func (*UpdateBookRequest) ProtoMessage()

func (*UpdateBookRequest) ProtoReflect Uses

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

func (*UpdateBookRequest) Reset Uses

func (x *UpdateBookRequest) Reset()

func (*UpdateBookRequest) String Uses

func (x *UpdateBookRequest) String() string

Package library imports 11 packages (graph). Updated 2020-06-23. Refresh now. Tools for package owners.