| Package | Description |
|---|---|
| com.google.cloud.aiplatform.v1 |
A client to Vertex AI API
The interfaces provided are listed below, along with usage samples.
|
| com.google.cloud.aiplatform.v1.stub |
| Modifier and Type | Method and Description |
|---|---|
GenAiCacheServiceClient.ListCachedContentsPagedResponse |
GenAiCacheServiceClient.listCachedContents(ListCachedContentsRequest request)
Lists cached contents in a project
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
ListCachedContentsRequest request =
ListCachedContentsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (CachedContent element :
genAiCacheServiceClient.listCachedContents(request).iterateAll()) {
// doThingsWith(element);
}
}
|
GenAiCacheServiceClient.ListCachedContentsPagedResponse |
GenAiCacheServiceClient.listCachedContents(LocationName parent)
Lists cached contents in a project
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (CachedContent element :
genAiCacheServiceClient.listCachedContents(parent).iterateAll()) {
// doThingsWith(element);
}
}
|
GenAiCacheServiceClient.ListCachedContentsPagedResponse |
GenAiCacheServiceClient.listCachedContents(String parent)
Lists cached contents in a project
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (CachedContent element :
genAiCacheServiceClient.listCachedContents(parent).iterateAll()) {
// doThingsWith(element);
}
}
|
| Modifier and Type | Method and Description |
|---|---|
static com.google.api.core.ApiFuture<GenAiCacheServiceClient.ListCachedContentsPagedResponse> |
GenAiCacheServiceClient.ListCachedContentsPagedResponse.createAsync(com.google.api.gax.rpc.PageContext<ListCachedContentsRequest,ListCachedContentsResponse,CachedContent> context,
com.google.api.core.ApiFuture<ListCachedContentsResponse> futureResponse) |
com.google.api.gax.rpc.UnaryCallable<ListCachedContentsRequest,GenAiCacheServiceClient.ListCachedContentsPagedResponse> |
GenAiCacheServiceClient.listCachedContentsPagedCallable()
Lists cached contents in a project
Sample code:
{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
ListCachedContentsRequest request =
ListCachedContentsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture
|
com.google.api.gax.rpc.PagedCallSettings<ListCachedContentsRequest,ListCachedContentsResponse,GenAiCacheServiceClient.ListCachedContentsPagedResponse> |
GenAiCacheServiceSettings.listCachedContentsSettings()
Returns the object with the settings used for calls to listCachedContents.
|
com.google.api.gax.rpc.PagedCallSettings.Builder<ListCachedContentsRequest,ListCachedContentsResponse,GenAiCacheServiceClient.ListCachedContentsPagedResponse> |
GenAiCacheServiceSettings.Builder.listCachedContentsSettings()
Returns the builder for the settings used for calls to listCachedContents.
|
Copyright © 2025 Google LLC. All rights reserved.