- 0.64.0 (latest)
- 0.63.0
- 0.62.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.7
- 0.13.1
- 0.12.1
- 0.11.5
GitHub Repository | Product Reference | REST Documentation | RPC Documentation |
Service Description: Service for managing conversation history.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// 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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
ConversationName name =
ConversationName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CONVERSATION]");
Conversation response = conversationHistoryClient.getConversation(name);
}
Note: close() needs to be called on the ConversationHistoryClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
Method | Description | Method Variants |
---|---|---|
ListConversations |
Returns the list of all conversations. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetConversation |
Retrieves the specified conversation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteConversation |
Deletes the specified conversation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListLocations |
Lists information about the supported locations for this service. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLocation |
Gets information about a location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of ConversationHistorySettings to create(). For example:
To customize credentials:
// 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
ConversationHistorySettings conversationHistorySettings =
ConversationHistorySettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
ConversationHistoryClient conversationHistoryClient =
ConversationHistoryClient.create(conversationHistorySettings);
To customize the endpoint:
// 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
ConversationHistorySettings conversationHistorySettings =
ConversationHistorySettings.newBuilder().setEndpoint(myEndpoint).build();
ConversationHistoryClient conversationHistoryClient =
ConversationHistoryClient.create(conversationHistorySettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// 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
ConversationHistorySettings conversationHistorySettings =
ConversationHistorySettings.newHttpJsonBuilder().build();
ConversationHistoryClient conversationHistoryClient =
ConversationHistoryClient.create(conversationHistorySettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Static Methods
create()
public static final ConversationHistoryClient create()
Constructs an instance of ConversationHistoryClient with default settings.
Returns | |
---|---|
Type | Description |
ConversationHistoryClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ConversationHistorySettings settings)
public static final ConversationHistoryClient create(ConversationHistorySettings settings)
Constructs an instance of ConversationHistoryClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
Parameter | |
---|---|
Name | Description |
settings |
ConversationHistorySettings |
Returns | |
---|---|
Type | Description |
ConversationHistoryClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ConversationHistoryStub stub)
public static final ConversationHistoryClient create(ConversationHistoryStub stub)
Constructs an instance of ConversationHistoryClient, using the given stub for making calls. This is for advanced usage - prefer using create(ConversationHistorySettings).
Parameter | |
---|---|
Name | Description |
stub |
ConversationHistoryStub |
Returns | |
---|---|
Type | Description |
ConversationHistoryClient |
Constructors
ConversationHistoryClient(ConversationHistorySettings settings)
protected ConversationHistoryClient(ConversationHistorySettings settings)
Constructs an instance of ConversationHistoryClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
Parameter | |
---|---|
Name | Description |
settings |
ConversationHistorySettings |
ConversationHistoryClient(ConversationHistoryStub stub)
protected ConversationHistoryClient(ConversationHistoryStub stub)
Parameter | |
---|---|
Name | Description |
stub |
ConversationHistoryStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration |
long |
unit |
TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
close()
public final void close()
deleteConversation(ConversationName name)
public final void deleteConversation(ConversationName name)
Deletes the specified conversation.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
ConversationName name =
ConversationName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CONVERSATION]");
conversationHistoryClient.deleteConversation(name);
}
Parameter | |
---|---|
Name | Description |
name |
ConversationName Required. The name of the conversation. Format: |
deleteConversation(DeleteConversationRequest request)
public final void deleteConversation(DeleteConversationRequest request)
Deletes the specified conversation.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
DeleteConversationRequest request =
DeleteConversationRequest.newBuilder()
.setName(
ConversationName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CONVERSATION]")
.toString())
.build();
conversationHistoryClient.deleteConversation(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteConversationRequest The request object containing all of the parameters for the API call. |
deleteConversation(String name)
public final void deleteConversation(String name)
Deletes the specified conversation.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
String name =
ConversationName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CONVERSATION]").toString();
conversationHistoryClient.deleteConversation(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the conversation. Format: |
deleteConversationCallable()
public final UnaryCallable<DeleteConversationRequest,Empty> deleteConversationCallable()
Deletes the specified conversation.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
DeleteConversationRequest request =
DeleteConversationRequest.newBuilder()
.setName(
ConversationName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CONVERSATION]")
.toString())
.build();
ApiFuture<Empty> future =
conversationHistoryClient.deleteConversationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteConversationRequest,Empty> |
getConversation(ConversationName name)
public final Conversation getConversation(ConversationName name)
Retrieves the specified conversation.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
ConversationName name =
ConversationName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CONVERSATION]");
Conversation response = conversationHistoryClient.getConversation(name);
}
Parameter | |
---|---|
Name | Description |
name |
ConversationName Required. The name of the conversation. Format: |
Returns | |
---|---|
Type | Description |
Conversation |
getConversation(GetConversationRequest request)
public final Conversation getConversation(GetConversationRequest request)
Retrieves the specified conversation.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
GetConversationRequest request =
GetConversationRequest.newBuilder()
.setName(
ConversationName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CONVERSATION]")
.toString())
.build();
Conversation response = conversationHistoryClient.getConversation(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetConversationRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Conversation |
getConversation(String name)
public final Conversation getConversation(String name)
Retrieves the specified conversation.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
String name =
ConversationName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CONVERSATION]").toString();
Conversation response = conversationHistoryClient.getConversation(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the conversation. Format: |
Returns | |
---|---|
Type | Description |
Conversation |
getConversationCallable()
public final UnaryCallable<GetConversationRequest,Conversation> getConversationCallable()
Retrieves the specified conversation.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
GetConversationRequest request =
GetConversationRequest.newBuilder()
.setName(
ConversationName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CONVERSATION]")
.toString())
.build();
ApiFuture<Conversation> future =
conversationHistoryClient.getConversationCallable().futureCall(request);
// Do something.
Conversation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetConversationRequest,Conversation> |
getLocation(GetLocationRequest request)
public final Location getLocation(GetLocationRequest request)
Gets information about a location.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
Location response = conversationHistoryClient.getLocation(request);
}
Parameter | |
---|---|
Name | Description |
request |
com.google.cloud.location.GetLocationRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
com.google.cloud.location.Location |
getLocationCallable()
public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Gets information about a location.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
ApiFuture<Location> future =
conversationHistoryClient.getLocationCallable().futureCall(request);
// Do something.
Location response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getSettings()
public final ConversationHistorySettings getSettings()
Returns | |
---|---|
Type | Description |
ConversationHistorySettings |
getStub()
public ConversationHistoryStub getStub()
Returns | |
---|---|
Type | Description |
ConversationHistoryStub |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listConversations(AgentName parent)
public final ConversationHistoryClient.ListConversationsPagedResponse listConversations(AgentName parent)
Returns the list of all conversations.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
for (Conversation element :
conversationHistoryClient.listConversations(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
AgentName Required. The agent to list all conversations for. Format: |
Returns | |
---|---|
Type | Description |
ConversationHistoryClient.ListConversationsPagedResponse |
listConversations(ListConversationsRequest request)
public final ConversationHistoryClient.ListConversationsPagedResponse listConversations(ListConversationsRequest request)
Returns the list of all conversations.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
ListConversationsRequest request =
ListConversationsRequest.newBuilder()
.setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Conversation element :
conversationHistoryClient.listConversations(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListConversationsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ConversationHistoryClient.ListConversationsPagedResponse |
listConversations(String parent)
public final ConversationHistoryClient.ListConversationsPagedResponse listConversations(String parent)
Returns the list of all conversations.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
for (Conversation element :
conversationHistoryClient.listConversations(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The agent to list all conversations for. Format: |
Returns | |
---|---|
Type | Description |
ConversationHistoryClient.ListConversationsPagedResponse |
listConversationsCallable()
public final UnaryCallable<ListConversationsRequest,ListConversationsResponse> listConversationsCallable()
Returns the list of all conversations.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
ListConversationsRequest request =
ListConversationsRequest.newBuilder()
.setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListConversationsResponse response =
conversationHistoryClient.listConversationsCallable().call(request);
for (Conversation element : response.getConversationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListConversationsRequest,ListConversationsResponse> |
listConversationsPagedCallable()
public final UnaryCallable<ListConversationsRequest,ConversationHistoryClient.ListConversationsPagedResponse> listConversationsPagedCallable()
Returns the list of all conversations.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
ListConversationsRequest request =
ListConversationsRequest.newBuilder()
.setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Conversation> future =
conversationHistoryClient.listConversationsPagedCallable().futureCall(request);
// Do something.
for (Conversation element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListConversationsRequest,ListConversationsPagedResponse> |
listLocations(ListLocationsRequest request)
public final ConversationHistoryClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)
Lists information about the supported locations for this service.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Location element : conversationHistoryClient.listLocations(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
com.google.cloud.location.ListLocationsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ConversationHistoryClient.ListLocationsPagedResponse |
listLocationsCallable()
public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Lists information about the supported locations for this service.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListLocationsResponse response =
conversationHistoryClient.listLocationsCallable().call(request);
for (Location element : response.getLocationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
listLocationsPagedCallable()
public final UnaryCallable<ListLocationsRequest,ConversationHistoryClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Lists information about the supported locations for this service.
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 (ConversationHistoryClient conversationHistoryClient = ConversationHistoryClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Location> future =
conversationHistoryClient.listLocationsPagedCallable().futureCall(request);
// Do something.
for (Location element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()