Class TransitionRouteGroupsClient (0.13.0)

public class TransitionRouteGroupsClient implements BackgroundResource

Service Description: Service for managing TransitionRouteGroups.

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 for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   TransitionRouteGroupName name =
       TransitionRouteGroupName.of(
           "[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]");
   TransitionRouteGroup response = transitionRouteGroupsClient.getTransitionRouteGroup(name);
 }
 

Note: close() needs to be called on the TransitionRouteGroupsClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns 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 TransitionRouteGroupsSettings to create(). For example:

To customize credentials:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 TransitionRouteGroupsSettings transitionRouteGroupsSettings =
     TransitionRouteGroupsSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create(transitionRouteGroupsSettings);
 

To customize the endpoint:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 TransitionRouteGroupsSettings transitionRouteGroupsSettings =
     TransitionRouteGroupsSettings.newBuilder().setEndpoint(myEndpoint).build();
 TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create(transitionRouteGroupsSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

Inheritance

java.lang.Object > TransitionRouteGroupsClient

Implements

BackgroundResource

Static Methods

create()

public static final TransitionRouteGroupsClient create()

Constructs an instance of TransitionRouteGroupsClient with default settings.

Returns
TypeDescription
TransitionRouteGroupsClient
Exceptions
TypeDescription
IOException

create(TransitionRouteGroupsSettings settings)

public static final TransitionRouteGroupsClient create(TransitionRouteGroupsSettings settings)

Constructs an instance of TransitionRouteGroupsClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.

Parameter
NameDescription
settingsTransitionRouteGroupsSettings
Returns
TypeDescription
TransitionRouteGroupsClient
Exceptions
TypeDescription
IOException

create(TransitionRouteGroupsStub stub)

public static final TransitionRouteGroupsClient create(TransitionRouteGroupsStub stub)

Constructs an instance of TransitionRouteGroupsClient, using the given stub for making calls. This is for advanced usage - prefer using create(TransitionRouteGroupsSettings).

Parameter
NameDescription
stubTransitionRouteGroupsStub
Returns
TypeDescription
TransitionRouteGroupsClient

Constructors

TransitionRouteGroupsClient(TransitionRouteGroupsSettings settings)

protected TransitionRouteGroupsClient(TransitionRouteGroupsSettings settings)

Constructs an instance of TransitionRouteGroupsClient, 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
NameDescription
settingsTransitionRouteGroupsSettings

TransitionRouteGroupsClient(TransitionRouteGroupsStub stub)

protected TransitionRouteGroupsClient(TransitionRouteGroupsStub stub)
Parameter
NameDescription
stubTransitionRouteGroupsStub

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()

createTransitionRouteGroup(CreateTransitionRouteGroupRequest request)

public final TransitionRouteGroup createTransitionRouteGroup(CreateTransitionRouteGroupRequest request)

Creates an TransitionRouteGroup in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   CreateTransitionRouteGroupRequest request =
       CreateTransitionRouteGroupRequest.newBuilder()
           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
           .setTransitionRouteGroup(TransitionRouteGroup.newBuilder().build())
           .setLanguageCode("languageCode-2092349083")
           .build();
   TransitionRouteGroup response =
       transitionRouteGroupsClient.createTransitionRouteGroup(request);
 }
 
Parameter
NameDescription
requestCreateTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
TransitionRouteGroup

createTransitionRouteGroup(FlowName parent, TransitionRouteGroup transitionRouteGroup)

public final TransitionRouteGroup createTransitionRouteGroup(FlowName parent, TransitionRouteGroup transitionRouteGroup)

Creates an TransitionRouteGroup in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   FlowName parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
   TransitionRouteGroup transitionRouteGroup = TransitionRouteGroup.newBuilder().build();
   TransitionRouteGroup response =
       transitionRouteGroupsClient.createTransitionRouteGroup(parent, transitionRouteGroup);
 }
 
Parameters
NameDescription
parentFlowName

Required. The flow to create an TransitionRouteGroup for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

transitionRouteGroupTransitionRouteGroup

Required. The transition route group to create.

Returns
TypeDescription
TransitionRouteGroup

createTransitionRouteGroup(String parent, TransitionRouteGroup transitionRouteGroup)

public final TransitionRouteGroup createTransitionRouteGroup(String parent, TransitionRouteGroup transitionRouteGroup)

Creates an TransitionRouteGroup in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
   TransitionRouteGroup transitionRouteGroup = TransitionRouteGroup.newBuilder().build();
   TransitionRouteGroup response =
       transitionRouteGroupsClient.createTransitionRouteGroup(parent, transitionRouteGroup);
 }
 
Parameters
NameDescription
parentString

Required. The flow to create an TransitionRouteGroup for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

transitionRouteGroupTransitionRouteGroup

Required. The transition route group to create.

Returns
TypeDescription
TransitionRouteGroup

createTransitionRouteGroupCallable()

public final UnaryCallable<CreateTransitionRouteGroupRequest,TransitionRouteGroup> createTransitionRouteGroupCallable()

Creates an TransitionRouteGroup in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   CreateTransitionRouteGroupRequest request =
       CreateTransitionRouteGroupRequest.newBuilder()
           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
           .setTransitionRouteGroup(TransitionRouteGroup.newBuilder().build())
           .setLanguageCode("languageCode-2092349083")
           .build();
   ApiFuture<TransitionRouteGroup> future =
       transitionRouteGroupsClient.createTransitionRouteGroupCallable().futureCall(request);
   // Do something.
   TransitionRouteGroup response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateTransitionRouteGroupRequest,TransitionRouteGroup>

deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest request)

public final void deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest request)

Deletes the specified TransitionRouteGroup.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   DeleteTransitionRouteGroupRequest request =
       DeleteTransitionRouteGroupRequest.newBuilder()
           .setName(
               TransitionRouteGroupName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[AGENT]",
                       "[FLOW]",
                       "[TRANSITION_ROUTE_GROUP]")
                   .toString())
           .setForce(true)
           .build();
   transitionRouteGroupsClient.deleteTransitionRouteGroup(request);
 }
 
Parameter
NameDescription
requestDeleteTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

deleteTransitionRouteGroup(TransitionRouteGroupName name)

public final void deleteTransitionRouteGroup(TransitionRouteGroupName name)

Deletes the specified TransitionRouteGroup.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   TransitionRouteGroupName name =
       TransitionRouteGroupName.of(
           "[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]");
   transitionRouteGroupsClient.deleteTransitionRouteGroup(name);
 }
 
Parameter
NameDescription
nameTransitionRouteGroupName

Required. The name of the TransitionRouteGroup to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

deleteTransitionRouteGroup(String name)

public final void deleteTransitionRouteGroup(String name)

Deletes the specified TransitionRouteGroup.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   String name =
       TransitionRouteGroupName.of(
               "[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]")
           .toString();
   transitionRouteGroupsClient.deleteTransitionRouteGroup(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the TransitionRouteGroup to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

deleteTransitionRouteGroupCallable()

public final UnaryCallable<DeleteTransitionRouteGroupRequest,Empty> deleteTransitionRouteGroupCallable()

Deletes the specified TransitionRouteGroup.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   DeleteTransitionRouteGroupRequest request =
       DeleteTransitionRouteGroupRequest.newBuilder()
           .setName(
               TransitionRouteGroupName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[AGENT]",
                       "[FLOW]",
                       "[TRANSITION_ROUTE_GROUP]")
                   .toString())
           .setForce(true)
           .build();
   ApiFuture<Empty> future =
       transitionRouteGroupsClient.deleteTransitionRouteGroupCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteTransitionRouteGroupRequest,Empty>

getSettings()

public final TransitionRouteGroupsSettings getSettings()
Returns
TypeDescription
TransitionRouteGroupsSettings

getStub()

public TransitionRouteGroupsStub getStub()
Returns
TypeDescription
TransitionRouteGroupsStub

getTransitionRouteGroup(GetTransitionRouteGroupRequest request)

public final TransitionRouteGroup getTransitionRouteGroup(GetTransitionRouteGroupRequest request)

Retrieves the specified TransitionRouteGroup.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   GetTransitionRouteGroupRequest request =
       GetTransitionRouteGroupRequest.newBuilder()
           .setName(
               TransitionRouteGroupName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[AGENT]",
                       "[FLOW]",
                       "[TRANSITION_ROUTE_GROUP]")
                   .toString())
           .setLanguageCode("languageCode-2092349083")
           .build();
   TransitionRouteGroup response = transitionRouteGroupsClient.getTransitionRouteGroup(request);
 }
 
Parameter
NameDescription
requestGetTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
TransitionRouteGroup

getTransitionRouteGroup(TransitionRouteGroupName name)

public final TransitionRouteGroup getTransitionRouteGroup(TransitionRouteGroupName name)

Retrieves the specified TransitionRouteGroup.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   TransitionRouteGroupName name =
       TransitionRouteGroupName.of(
           "[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]");
   TransitionRouteGroup response = transitionRouteGroupsClient.getTransitionRouteGroup(name);
 }
 
Parameter
NameDescription
nameTransitionRouteGroupName

Required. The name of the TransitionRouteGroup. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

Returns
TypeDescription
TransitionRouteGroup

getTransitionRouteGroup(String name)

public final TransitionRouteGroup getTransitionRouteGroup(String name)

Retrieves the specified TransitionRouteGroup.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   String name =
       TransitionRouteGroupName.of(
               "[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]")
           .toString();
   TransitionRouteGroup response = transitionRouteGroupsClient.getTransitionRouteGroup(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the TransitionRouteGroup. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

Returns
TypeDescription
TransitionRouteGroup

getTransitionRouteGroupCallable()

public final UnaryCallable<GetTransitionRouteGroupRequest,TransitionRouteGroup> getTransitionRouteGroupCallable()

Retrieves the specified TransitionRouteGroup.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   GetTransitionRouteGroupRequest request =
       GetTransitionRouteGroupRequest.newBuilder()
           .setName(
               TransitionRouteGroupName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[AGENT]",
                       "[FLOW]",
                       "[TRANSITION_ROUTE_GROUP]")
                   .toString())
           .setLanguageCode("languageCode-2092349083")
           .build();
   ApiFuture<TransitionRouteGroup> future =
       transitionRouteGroupsClient.getTransitionRouteGroupCallable().futureCall(request);
   // Do something.
   TransitionRouteGroup response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetTransitionRouteGroupRequest,TransitionRouteGroup>

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listTransitionRouteGroups(FlowName parent)

public final TransitionRouteGroupsClient.ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(FlowName parent)

Returns the list of all transition route groups in the specified flow.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   FlowName parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
   for (TransitionRouteGroup element :
       transitionRouteGroupsClient.listTransitionRouteGroups(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentFlowName

Required. The flow to list all transition route groups for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

Returns
TypeDescription
TransitionRouteGroupsClient.ListTransitionRouteGroupsPagedResponse

listTransitionRouteGroups(ListTransitionRouteGroupsRequest request)

public final TransitionRouteGroupsClient.ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(ListTransitionRouteGroupsRequest request)

Returns the list of all transition route groups in the specified flow.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   ListTransitionRouteGroupsRequest request =
       ListTransitionRouteGroupsRequest.newBuilder()
           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setLanguageCode("languageCode-2092349083")
           .build();
   for (TransitionRouteGroup element :
       transitionRouteGroupsClient.listTransitionRouteGroups(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListTransitionRouteGroupsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
TransitionRouteGroupsClient.ListTransitionRouteGroupsPagedResponse

listTransitionRouteGroups(String parent)

public final TransitionRouteGroupsClient.ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(String parent)

Returns the list of all transition route groups in the specified flow.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
   for (TransitionRouteGroup element :
       transitionRouteGroupsClient.listTransitionRouteGroups(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. The flow to list all transition route groups for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

Returns
TypeDescription
TransitionRouteGroupsClient.ListTransitionRouteGroupsPagedResponse

listTransitionRouteGroupsCallable()

public final UnaryCallable<ListTransitionRouteGroupsRequest,ListTransitionRouteGroupsResponse> listTransitionRouteGroupsCallable()

Returns the list of all transition route groups in the specified flow.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   ListTransitionRouteGroupsRequest request =
       ListTransitionRouteGroupsRequest.newBuilder()
           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setLanguageCode("languageCode-2092349083")
           .build();
   while (true) {
     ListTransitionRouteGroupsResponse response =
         transitionRouteGroupsClient.listTransitionRouteGroupsCallable().call(request);
     for (TransitionRouteGroup element : response.getResponsesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListTransitionRouteGroupsRequest,ListTransitionRouteGroupsResponse>

listTransitionRouteGroupsPagedCallable()

public final UnaryCallable<ListTransitionRouteGroupsRequest,TransitionRouteGroupsClient.ListTransitionRouteGroupsPagedResponse> listTransitionRouteGroupsPagedCallable()

Returns the list of all transition route groups in the specified flow.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   ListTransitionRouteGroupsRequest request =
       ListTransitionRouteGroupsRequest.newBuilder()
           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setLanguageCode("languageCode-2092349083")
           .build();
   ApiFuture<TransitionRouteGroup> future =
       transitionRouteGroupsClient.listTransitionRouteGroupsPagedCallable().futureCall(request);
   // Do something.
   for (TransitionRouteGroup element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListTransitionRouteGroupsRequest,ListTransitionRouteGroupsPagedResponse>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateTransitionRouteGroup(TransitionRouteGroup transitionRouteGroup, FieldMask updateMask)

public final TransitionRouteGroup updateTransitionRouteGroup(TransitionRouteGroup transitionRouteGroup, FieldMask updateMask)

Updates the specified TransitionRouteGroup.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   TransitionRouteGroup transitionRouteGroup = TransitionRouteGroup.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   TransitionRouteGroup response =
       transitionRouteGroupsClient.updateTransitionRouteGroup(transitionRouteGroup, updateMask);
 }
 
Parameters
NameDescription
transitionRouteGroupTransitionRouteGroup

Required. The transition route group to update.

updateMaskFieldMask

The mask to control which fields get updated.

Returns
TypeDescription
TransitionRouteGroup

updateTransitionRouteGroup(UpdateTransitionRouteGroupRequest request)

public final TransitionRouteGroup updateTransitionRouteGroup(UpdateTransitionRouteGroupRequest request)

Updates the specified TransitionRouteGroup.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   UpdateTransitionRouteGroupRequest request =
       UpdateTransitionRouteGroupRequest.newBuilder()
           .setTransitionRouteGroup(TransitionRouteGroup.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .setLanguageCode("languageCode-2092349083")
           .build();
   TransitionRouteGroup response =
       transitionRouteGroupsClient.updateTransitionRouteGroup(request);
 }
 
Parameter
NameDescription
requestUpdateTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
TransitionRouteGroup

updateTransitionRouteGroupCallable()

public final UnaryCallable<UpdateTransitionRouteGroupRequest,TransitionRouteGroup> updateTransitionRouteGroupCallable()

Updates the specified TransitionRouteGroup.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Sample code:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (TransitionRouteGroupsClient transitionRouteGroupsClient =
     TransitionRouteGroupsClient.create()) {
   UpdateTransitionRouteGroupRequest request =
       UpdateTransitionRouteGroupRequest.newBuilder()
           .setTransitionRouteGroup(TransitionRouteGroup.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .setLanguageCode("languageCode-2092349083")
           .build();
   ApiFuture<TransitionRouteGroup> future =
       transitionRouteGroupsClient.updateTransitionRouteGroupCallable().futureCall(request);
   // Do something.
   TransitionRouteGroup response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateTransitionRouteGroupRequest,TransitionRouteGroup>