Lines Matching full:shelf
33 // This API represents a simple digital library. It lets you manage Shelf
37 // - The API has a collection of [Shelf][google.example.library.v1.Shelf]
40 // - Each Shelf has a collection of [Book][google.example.library.v1.Book]
45 // Creates a shelf, and returns the new Shelf.
46 rpc CreateShelf(CreateShelfRequest) returns (Shelf) {
49 body: "shelf"
51 option (google.api.method_signature) = "shelf";
54 // Gets a shelf. Returns NOT_FOUND if the shelf does not exist.
55 rpc GetShelf(GetShelfRequest) returns (Shelf) {
70 // Deletes a shelf. Returns NOT_FOUND if the shelf does not exist.
78 // Merges two shelves by adding all books from the shelf named
79 // `other_shelf_name` to shelf `name`, and deletes
80 // `other_shelf_name`. Returns the updated shelf.
83 // Returns NOT_FOUND if either shelf does not exist.
85 rpc MergeShelves(MergeShelvesRequest) returns (Shelf) {
110 // Lists books in a shelf. The order is unspecified but deterministic. Newly
112 // Returns NOT_FOUND if the shelf does not exist.
138 // Moves a book to another shelf, and returns the new book. The book
153 pattern: "shelves/{shelf}/books/{book}"
171 // A Shelf contains a collection of books with a theme.
172 message Shelf { message
174 type: "library-example.googleapis.com/Shelf",
178 // The resource name of the shelf.
179 // Shelf names have the form `shelves/{shelf_id}`.
180 // The name is ignored when creating a shelf.
183 // The theme of the shelf
189 // The shelf to create.
190 Shelf shelf = 1 [(google.api.field_behavior) = REQUIRED]; field
195 // The name of the shelf to retrieve.
199 "library-example.googleapis.com/Shelf"
219 repeated Shelf shelves = 1;
231 // The name of the shelf to delete.
235 "library-example.googleapis.com/Shelf"
239 // Describes the shelf being removed (other_shelf_name) and updated
242 // The name of the shelf we're adding books to.
246 "library-example.googleapis.com/Shelf"
249 // The name of the shelf we're removing books from and deleting.
253 "library-example.googleapis.com/Shelf"
259 // The name of the shelf in which the book is created.
263 "library-example.googleapis.com/Shelf"
281 // The name of the shelf whose books we'd like to list.
285 "library-example.googleapis.com/Shelf"
331 // Describes what book to move (name) and what shelf we're moving it
340 // The name of the destination shelf.
344 "library-example.googleapis.com/Shelf"