Get desktop application:
View/edit binary Protocol Buffers messages
This API represents a simple digital library. It lets you manage Shelf resources and Book resources in the library. It defines the following resource model: - The API has a collection of [Shelf][google.example.library.v1.Shelf] resources, named `shelves/*` - Each Shelf has a collection of [Book][google.example.library.v1.Book] resources, named `shelves/*/books/*`
Creates a shelf, and returns the new Shelf.
Request message for LibraryService.CreateShelf.
The shelf to create.
Gets a shelf. Returns NOT_FOUND if the shelf does not exist.
Request message for LibraryService.GetShelf.
The name of the shelf to retrieve.
Lists shelves. The order is unspecified but deterministic. Newly created shelves will not necessarily be added to the end of this list.
Request message for LibraryService.ListShelves.
Requested page size. Server may return fewer shelves than requested. If unspecified, server will pick an appropriate default.
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.
Response message for LibraryService.ListShelves.
The list of shelves.
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.
Deletes a shelf. Returns NOT_FOUND if the shelf does not exist.
Request message for LibraryService.DeleteShelf.
The name of the shelf to delete.
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.
Describes the shelf being removed (other_shelf_name) and updated (name) in this merge.
The name of the shelf we're adding books to.
The name of the shelf we're removing books from and deleting.
Creates a book, and returns the new Book.
Request message for LibraryService.CreateBook.
The name of the shelf in which the book is created.
The book to create.
Gets a book. Returns NOT_FOUND if the book does not exist.
Request message for LibraryService.GetBook.
The name of the book to retrieve.
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.
Request message for LibraryService.ListBooks.
The name of the shelf whose books we'd like to list.
Requested page size. Server may return fewer books than requested. If unspecified, server will pick an appropriate default.
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.
Response message for LibraryService.ListBooks.
The list of books.
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.
Deletes a book. Returns NOT_FOUND if the book does not exist.
Request message for LibraryService.DeleteBook.
The name of the book to delete.
Updates a book. Returns INVALID_ARGUMENT if the name of the book is non-empty and does not equal the existing name.
Request message for LibraryService.UpdateBook.
The name of the book to update.
The book to update with. The name must match or be empty.
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.
Describes what book to move (name) and what shelf we're moving it to (other_shelf_name).
The name of the book to move.
The name of the destination shelf.
A single book in the library.
Used as response type in: LibraryService.CreateBook, LibraryService.GetBook, LibraryService.MoveBook, LibraryService.UpdateBook
Used as field type in:
, ,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.
The name of the book author.
The title of the book.
Value indicating whether the book has been read.
A Shelf contains a collection of books with a theme.
Used as response type in: LibraryService.CreateShelf, LibraryService.GetShelf, LibraryService.MergeShelves
Used as field type in:
,The resource name of the shelf. Shelf names have the form `shelves/{shelf_id}`. The name is ignored when creating a shelf.
The theme of the shelf