Home
last modified time | relevance | path

Searched full:shelf (Results 1 – 25 of 157) sorted by relevance

1234567

/external/googleapis/google/example/library/v1/
Dlibrary.proto33 // 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.
[all …]
/external/python/cpython3/Lib/turtledemo/
Dsorting_animate.py7 Sorts a shelf of 10 blocks using insertion
42 class Shelf(list): class
45 "create a shelf. y is y-position of first block"
84 def isort(shelf): argument
85 length = len(shelf)
88 while hole > 0 and shelf[i].size < shelf[hole - 1].size:
90 shelf.insert(hole, shelf.pop(i))
93 def ssort(shelf): argument
94 length = len(shelf)
98 if shelf[i].size < shelf[imin].size:
[all …]
/external/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/
DBookName.java33 PathTemplate.createWithoutUrlEncoding("shelves/{shelf}/books/{book}");
35 private final String shelf; field in BookName
40 shelf = null; in BookName()
45 shelf = Preconditions.checkNotNull(builder.getShelf()); in BookName()
50 return shelf; in getShelf()
65 public static BookName of(String shelf, String book) { in of() argument
66 return newBuilder().setShelf(shelf).setBook(book).build(); in of()
69 public static String format(String shelf, String book) { in format() argument
70 return newBuilder().setShelf(shelf).setBook(book).build().toString(); in format()
80 return of(matchMap.get("shelf"), matchMap.get("book")); in parse()
[all …]
/external/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/engine/goldens/
DJavaCodeGeneratorTest.golden46 protected List<Shelf> shelfList;
47 public static HashMap<String, Shelf> shelfMap;
61 shelfList.add(new Shelf(name, seriesNum));
63 return "Shelf is already existing in the map.";
65 shelfMap.put(name, new Shelf(name, seriesNum));
66 return "Shelf added.";
69 public void updateShelfMap(Shelf newShelf) throws Exception {
73 throw new Exception("Updating shelf is not existing in the map");
81 for (Shelf s : shelfList) {
92 * Add books to Shelf and check if there is a novel, return string message as whether novel books
[all …]
/external/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/
DLibraryServiceClient.java44 import com.google.example.library.v1.Shelf;
56 * Service Description: This API represents a simple digital library. It lets you manage Shelf
59 * <p>- The API has a collection of [Shelf][google.example.library.v1.Shelf] resources, named
62 * <p>- Each Shelf has a collection of [Book][google.example.library.v1.Book] resources, named
75 * Shelf shelf = Shelf.newBuilder().build();
76 * Shelf response = libraryServiceClient.createShelf(shelf);
202 * Creates a shelf, and returns the new Shelf.
213 * Shelf shelf = Shelf.newBuilder().build();
214 * Shelf response = libraryServiceClient.createShelf(shelf);
218 * @param shelf The shelf to create.
[all …]
DLibraryServiceClientHttpJsonTest.java38 import com.google.example.library.v1.Shelf;
90 Shelf expectedResponse = in createShelfTest()
91 Shelf.newBuilder() in createShelfTest()
97 Shelf shelf = Shelf.newBuilder().build(); in createShelfTest() local
99 Shelf actualResponse = client.createShelf(shelf); in createShelfTest()
125 Shelf shelf = Shelf.newBuilder().build(); in createShelfExceptionTest() local
126 client.createShelf(shelf); in createShelfExceptionTest()
135 Shelf expectedResponse = in getShelfTest()
136 Shelf.newBuilder() in getShelfTest()
144 Shelf actualResponse = client.getShelf(name); in getShelfTest()
[all …]
DLibraryServiceClientTest.java44 import com.google.example.library.v1.Shelf;
103 Shelf expectedResponse = in createShelfTest()
104 Shelf.newBuilder() in createShelfTest()
110 Shelf shelf = Shelf.newBuilder().build(); in createShelfTest() local
112 Shelf actualResponse = client.createShelf(shelf); in createShelfTest()
119 Assert.assertEquals(shelf, actualRequest.getShelf()); in createShelfTest()
132 Shelf shelf = Shelf.newBuilder().build(); in createShelfExceptionTest() local
133 client.createShelf(shelf); in createShelfExceptionTest()
142 Shelf expectedResponse = in getShelfTest()
143 Shelf.newBuilder() in getShelfTest()
[all …]
Dpackage-info.java22 * <p>Service Description: This API represents a simple digital library. It lets you manage Shelf
25 * <p>- The API has a collection of [Shelf][google.example.library.v1.Shelf] resources, named
28 * <p>- Each Shelf has a collection of [Book][google.example.library.v1.Book] resources, named
40 * Shelf shelf = Shelf.newBuilder().build();
41 * Shelf response = libraryServiceClient.createShelf(shelf);
DMockLibraryServiceImpl.java34 import com.google.example.library.v1.Shelf;
78 public void createShelf(CreateShelfRequest request, StreamObserver<Shelf> responseObserver) { in createShelf()
80 if (response instanceof Shelf) { in createShelf()
82 responseObserver.onNext(((Shelf) response)); in createShelf()
92 Shelf.class.getName(), in createShelf()
98 public void getShelf(GetShelfRequest request, StreamObserver<Shelf> responseObserver) { in getShelf()
100 if (response instanceof Shelf) { in getShelf()
102 responseObserver.onNext(((Shelf) response)); in getShelf()
112 Shelf.class.getName(), in getShelf()
159 public void mergeShelves(MergeShelvesRequest request, StreamObserver<Shelf> responseObserver) { in mergeShelves()
[all …]
/external/python/cpython3/Doc/library/
Dshelve.rst13 A "shelf" is a persistent, dictionary-like object. The difference with "dbm"
14 databases is that the values (not the keys!) in a shelf can be essentially
32 Because of Python semantics, a shelf cannot know when a mutable
34 written *only* when assigned to the shelf (see :ref:`shelve-example`). If the
36 cached in memory, and written back on :meth:`~Shelf.sync` and
37 :meth:`~Shelf.close`; this can make it handier to mutate mutable entries in
53 Do not rely on the shelf being closed automatically; always call
54 :meth:`~Shelf.close` explicitly when you don't need it any more, or
65 to load a shelf from an untrusted source. Like with pickle, loading a shelf
68 Shelf objects support most of methods and operations supported by dictionaries
[all …]
/external/python/cpython2/Doc/library/
Dshelve.rst14 A "shelf" is a persistent, dictionary-like object. The difference with "dbm"
15 databases is that the values (not the keys!) in a shelf can be essentially
35 Because of Python semantics, a shelf cannot know when a mutable
37 written *only* when assigned to the shelf (see :ref:`shelve-example`). If the
39 cached in memory, and written back on :meth:`~Shelf.sync` and
40 :meth:`~Shelf.close`; this can make it handier to mutate mutable entries in
53 to load a shelf from an untrusted source. Like with pickle, loading a shelf
56 Shelf objects support most of the methods supported by dictionaries. This
65 .. method:: Shelf.sync()
67 Write back all entries in the cache if the shelf was opened with *writeback*
[all …]
/external/python/google-api-python-client/docs/dyn/
Dlibraryagent_v1.shelves.html87 <p class="firstline">Gets a shelf. Returns NOT_FOUND if the shelf does not exist.</p>
102 <pre>Gets a shelf. Returns NOT_FOUND if the shelf does not exist.
105 name: string, Required. The name of the shelf to retrieve. (required)
114 { # A Shelf contains a collection of books with a theme.
115 …y. The resource name of the shelf. Shelf names have the form `shelves/{shelf_id}`. The name is ign…
116 &quot;theme&quot;: &quot;A String&quot;, # The theme of the shelf
138 { # A Shelf contains a collection of books with a theme.
139 …y. The resource name of the shelf. Shelf names have the form `shelves/{shelf_id}`. The name is ign…
140 &quot;theme&quot;: &quot;A String&quot;, # The theme of the shelf
Dbooks_v1.mylibrary.bookshelves.html83 …<code><a href="#addVolume">addVolume(shelf, volumeId, reason=None, source=None, x__xgafv=None)</a>…
86 <code><a href="#clearVolumes">clearVolumes(shelf, source=None, x__xgafv=None)</a></code></p>
92 <code><a href="#get">get(shelf, source=None, x__xgafv=None)</a></code></p>
98 …<code><a href="#moveVolume">moveVolume(shelf, volumeId, volumePosition, source=None, x__xgafv=None…
101 …<code><a href="#removeVolume">removeVolume(shelf, volumeId, reason=None, source=None, x__xgafv=Non…
105 …<code class="details" id="addVolume">addVolume(shelf, volumeId, reason=None, source=None, x__xgafv…
109 shelf: string, ID of bookshelf to which to add a volume. (required)
131 <code class="details" id="clearVolumes">clearVolumes(shelf, source=None, x__xgafv=None)</code>
135 shelf: string, ID of bookshelf from which to remove a volume. (required)
155 <code class="details" id="get">get(shelf, source=None, x__xgafv=None)</code>
[all …]
/external/python/cpython3/Lib/test/
Dtest_shelve.py53 s = shelve.Shelf(d1, protocol=2, writeback=False)
64 self.fail('Closed shelf should not find a key')
97 with shelve.Shelf(d1, protocol=0) as s:
101 with shelve.Shelf(d2, protocol=1) as s:
111 with shelve.Shelf(d1, protocol=2, writeback=False) as s:
118 with shelve.Shelf(d2, protocol=2, writeback=True) as s:
131 shelve.Shelf(d)[key] = [1]
134 shelve.Shelf(d, keyencoding='latin-1')[key] = [1]
137 s = shelve.Shelf(d, keyencoding='ascii')
145 with shelve.Shelf(d, writeback=True) as s:
[all …]
/external/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/
DGrpcLibraryServiceStub.java42 import com.google.example.library.v1.Shelf;
61 private static final MethodDescriptor<CreateShelfRequest, Shelf> createShelfMethodDescriptor =
62 MethodDescriptor.<CreateShelfRequest, Shelf>newBuilder()
66 .setResponseMarshaller(ProtoUtils.marshaller(Shelf.getDefaultInstance()))
69 private static final MethodDescriptor<GetShelfRequest, Shelf> getShelfMethodDescriptor =
70 MethodDescriptor.<GetShelfRequest, Shelf>newBuilder()
74 .setResponseMarshaller(ProtoUtils.marshaller(Shelf.getDefaultInstance()))
95 private static final MethodDescriptor<MergeShelvesRequest, Shelf> mergeShelvesMethodDescriptor =
96 MethodDescriptor.<MergeShelvesRequest, Shelf>newBuilder()
100 .setResponseMarshaller(ProtoUtils.marshaller(Shelf.getDefaultInstance()))
[all …]
DHttpJsonLibraryServiceStub.java47 import com.google.example.library.v1.Shelf;
70 private static final ApiMethodDescriptor<CreateShelfRequest, Shelf> createShelfMethodDescriptor =
71 ApiMethodDescriptor.<CreateShelfRequest, Shelf>newBuilder()
95 ProtoRestSerializer.create().toBody("shelf", request.getShelf(), true))
98 ProtoMessageResponseParser.<Shelf>newBuilder()
99 .setDefaultInstance(Shelf.getDefaultInstance())
104 private static final ApiMethodDescriptor<GetShelfRequest, Shelf> getShelfMethodDescriptor =
105 ApiMethodDescriptor.<GetShelfRequest, Shelf>newBuilder()
131 ProtoMessageResponseParser.<Shelf>newBuilder()
132 .setDefaultInstance(Shelf.getDefaultInstance())
[all …]
DLibraryServiceStubSettings.java64 import com.google.example.library.v1.Shelf;
116 private final UnaryCallSettings<CreateShelfRequest, Shelf> createShelfSettings;
117 private final UnaryCallSettings<GetShelfRequest, Shelf> getShelfSettings;
121 private final UnaryCallSettings<MergeShelvesRequest, Shelf> mergeShelvesSettings;
130 private static final PagedListDescriptor<ListShelvesRequest, ListShelvesResponse, Shelf>
132 new PagedListDescriptor<ListShelvesRequest, ListShelvesResponse, Shelf>() {
159 public Iterable<Shelf> extractResources(ListShelvesResponse payload) {
161 ? ImmutableList.<Shelf>of()
213 PageContext<ListShelvesRequest, ListShelvesResponse, Shelf> pageContext =
237 public UnaryCallSettings<CreateShelfRequest, Shelf> createShelfSettings() { in createShelfSettings()
[all …]
/external/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/engine/ast/
DJavaDocCommentTest.java51 "ApiFuture<Shelf> future =" in createJavaDocComment_specialCharacter()
62 "ApiFuture<Shelf> future =", in createJavaDocComment_specialCharacter()
149 String paramDescription1 = "The name of the shelf where books are published to."; in createJavaDocComment_multipleParams()
151 String paramDescription2 = "The shelfId of the shelf where books are published to."; in createJavaDocComment_multipleParams()
160 + "@param shelfName The name of the shelf where books are published to.\n" in createJavaDocComment_multipleParams()
161 + "@param shelfId The shelfId of the shelf where books are published to."; in createJavaDocComment_multipleParams()
171 String paramDescription1 = "The name of the shelf where books are published to."; in createJavaDocComment_multipleParamsAndReturn()
173 String paramDescription2 = "The shelfId of the shelf where books are published to."; in createJavaDocComment_multipleParamsAndReturn()
184 + "@param shelfName The name of the shelf where books are published to.\n" in createJavaDocComment_multipleParamsAndReturn()
185 + "@param shelfId The shelfId of the shelf where books are published to.\n" in createJavaDocComment_multipleParamsAndReturn()
[all …]
/external/python/cpython2/Lib/
Dshelve.py3 A "shelf" is a persistent, dictionary-like object. The difference
4 with dbm databases is that the values (not the keys!) in a shelf can
73 __all__ = ["Shelf","BsdDbShelf","DbfilenameShelf","open"]
79 raise ValueError('invalid operation on closed shelf')
85 class Shelf(UserDict.DictMixin): class
86 """Base class for shelf implementations.
176 class BsdDbShelf(Shelf):
177 """Shelf implementation using the "BSD" db interface.
190 Shelf.__init__(self, dict, protocol, writeback)
218 class DbfilenameShelf(Shelf):
[all …]
/external/python/cpython3/Lib/
Dshelve.py3 A "shelf" is a persistent, dictionary-like object. The difference
4 with dbm databases is that the values (not the keys!) in a shelf can
64 __all__ = ["Shelf", "BsdDbShelf", "DbfilenameShelf", "open"]
70 raise ValueError('invalid operation on closed shelf')
77 class Shelf(collections.abc.MutableMapping): class
78 """Base class for shelf implementations.
175 class BsdDbShelf(Shelf):
176 """Shelf implementation using the "BSD" db interface.
190 Shelf.__init__(self, dict, protocol, writeback, keyencoding)
218 class DbfilenameShelf(Shelf):
[all …]
/external/sdk-platform-java/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createshelf/
DSyncCreateShelfShelf.java21 import com.google.example.library.v1.Shelf;
36 Shelf shelf = Shelf.newBuilder().build(); in syncCreateShelfShelf() local
37 Shelf response = libraryServiceClient.createShelf(shelf); in syncCreateShelfShelf()
/external/python/cpython2/Lib/test/
Dtest_shelve.py15 s = shelve.Shelf(d1, protocol=2, writeback=False)
26 self.fail('Closed shelf should not find a key')
60 s = shelve.Shelf(d1, protocol=0)
65 s = shelve.Shelf(d2, protocol=1)
75 s = shelve.Shelf(d1, protocol=2, writeback=False)
83 s = shelve.Shelf(d2, protocol=2, writeback=True)
96 s = shelve.Shelf(d, writeback=True)
113 type2test = shelve.Shelf
118 x= shelve.Shelf({}, **self._args)
/external/autotest/test_suites/
Dcontrol.bvt-tast-cq-shelf6 NAME = "bvt-tast-cq-shelf"
7 PURPOSE = 'Tests the critical Tast tests in the "shelf" category.'
16 Queue by running all Tast integration tests in the "shelf" category that must
19 The only Autotest test executed by this suite is tast.category-shelf, which
22 test.category-shelf test (and this suite) fail.
/external/autotest/server/site_tests/tast/
Dcontrol.category-shelf8 NAME = 'tast.category-shelf'
12 ATTRIBUTES = 'suite:bvt-tast-cq-shelf'
20 Run the critical Tast tests in the "shelf" category.
26 This test runs Tast tests in the "shelf" category that are required to pass
42 '"name:shelf.*"'
/external/python/google-api-python-client/googleapiclient/discovery_cache/documents/
Dlibraryagent.v1.json111 "description": "Gets a shelf. Returns NOT_FOUND if the shelf does not exist.",
120 "description": "Required. The name of the shelf to retrieve.",
217shelf. The order is unspecified but deterministic. Newly created books will not necessarily be add…
237 "description": "Required. The name of the shelf whose books we'd like to list.",
345 "description": "A Shelf contains a collection of books with a theme.",
349 …y. The resource name of the shelf. Shelf names have the form `shelves/{shelf_id}`. The name is ign…
353 "description": "The theme of the shelf",

1234567