diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java index ab9a269bb3c4..ca10d30125c6 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java @@ -52,8 +52,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * Agent response = agentsClient.getAgent(name); @@ -89,8 +92,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * AgentsSettings agentsSettings = * AgentsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -101,8 +107,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * AgentsSettings agentsSettings = AgentsSettings.newBuilder().setEndpoint(myEndpoint).build(); * AgentsClient agentsClient = AgentsClient.create(agentsSettings); * }@@ -111,8 +120,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * AgentsSettings agentsSettings = * AgentsSettings.newBuilder() * .setTransportChannelProvider( @@ -203,8 +215,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Agent element : agentsClient.listAgents(parent).iterateAll()) { @@ -230,8 +245,11 @@ public final ListAgentsPagedResponse listAgents(LocationName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Agent element : agentsClient.listAgents(parent).iterateAll()) { @@ -256,8 +274,11 @@ public final ListAgentsPagedResponse listAgents(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * ListAgentsRequest request = * ListAgentsRequest.newBuilder() @@ -285,8 +306,11 @@ public final ListAgentsPagedResponse listAgents(ListAgentsRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * ListAgentsRequest request = * ListAgentsRequest.newBuilder() @@ -313,8 +337,11 @@ public final UnaryCallablelistAgent * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * ListAgentsRequest request = * ListAgentsRequest.newBuilder() @@ -348,8 +375,11 @@ public final UnaryCallablelistAgentsCall * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * Agent response = agentsClient.getAgent(name); @@ -373,8 +403,11 @@ public final Agent getAgent(AgentName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * String name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * Agent response = agentsClient.getAgent(name); @@ -397,8 +430,11 @@ public final Agent getAgent(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * GetAgentRequest request = * GetAgentRequest.newBuilder() @@ -422,8 +458,11 @@ public final Agent getAgent(GetAgentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * GetAgentRequest request = * GetAgentRequest.newBuilder() @@ -449,8 +488,11 @@ public final UnaryCallablegetAgentCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Agent agent = Agent.newBuilder().build(); @@ -482,8 +524,11 @@ public final Agent createAgent(LocationName parent, Agent agent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Agent agent = Agent.newBuilder().build(); @@ -512,8 +557,11 @@ public final Agent createAgent(String parent, Agent agent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * CreateAgentRequest request = * CreateAgentRequest.newBuilder() @@ -541,8 +589,11 @@ public final Agent createAgent(CreateAgentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * CreateAgentRequest request = * CreateAgentRequest.newBuilder() @@ -569,8 +620,11 @@ public final UnaryCallablecreateAgentCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * Agent agent = Agent.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -599,8 +653,11 @@ public final Agent updateAgent(Agent agent, FieldMask updateMask) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * UpdateAgentRequest request = * UpdateAgentRequest.newBuilder() @@ -628,8 +685,11 @@ public final Agent updateAgent(UpdateAgentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * UpdateAgentRequest request = * UpdateAgentRequest.newBuilder() @@ -653,8 +713,11 @@ public final UnaryCallableupdateAgentCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * agentsClient.deleteAgent(name); @@ -678,8 +741,11 @@ public final void deleteAgent(AgentName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * String name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * agentsClient.deleteAgent(name); @@ -702,8 +768,11 @@ public final void deleteAgent(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * DeleteAgentRequest request = * DeleteAgentRequest.newBuilder() @@ -727,8 +796,11 @@ public final void deleteAgent(DeleteAgentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * DeleteAgentRequest request = * DeleteAgentRequest.newBuilder() @@ -759,8 +831,11 @@ public final UnaryCallabledeleteAgentCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * ExportAgentRequest request = * ExportAgentRequest.newBuilder() @@ -797,8 +872,11 @@ public final OperationFutureexportAgentAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * ExportAgentRequest request = * ExportAgentRequest.newBuilder() @@ -835,8 +913,11 @@ public final OperationFutureexportAgentAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * ExportAgentRequest request = * ExportAgentRequest.newBuilder() @@ -878,8 +959,11 @@ public final UnaryCallableexportAgentCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * RestoreAgentRequest request = * RestoreAgentRequest.newBuilder() @@ -918,8 +1002,11 @@ public final OperationFuturerestoreAgentAsync(RestoreAgentReques * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * RestoreAgentRequest request = * RestoreAgentRequest.newBuilder() @@ -959,8 +1046,11 @@ public final OperationFuturerestoreAgentAsync(RestoreAgentReques * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * RestoreAgentRequest request = * RestoreAgentRequest.newBuilder() @@ -985,8 +1075,11 @@ public final UnaryCallablerestoreAgentCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * ValidateAgentRequest request = * ValidateAgentRequest.newBuilder() @@ -1013,8 +1106,11 @@ public final AgentValidationResult validateAgent(ValidateAgentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * ValidateAgentRequest request = * ValidateAgentRequest.newBuilder() @@ -1040,8 +1136,11 @@ public final UnaryCallablevalidate * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * AgentValidationResultName name = * AgentValidationResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); @@ -1069,8 +1168,11 @@ public final AgentValidationResult getAgentValidationResult(AgentValidationResul *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * String name = AgentValidationResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * AgentValidationResult response = agentsClient.getAgentValidationResult(name); @@ -1095,8 +1197,11 @@ public final AgentValidationResult getAgentValidationResult(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * GetAgentValidationResultRequest request = * GetAgentValidationResultRequest.newBuilder() @@ -1124,8 +1229,11 @@ public final AgentValidationResult getAgentValidationResult( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * GetAgentValidationResultRequest request = * GetAgentValidationResultRequest.newBuilder() @@ -1152,8 +1260,11 @@ public final AgentValidationResult getAgentValidationResult( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -1182,8 +1293,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -1212,8 +1326,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -1248,8 +1365,11 @@ public final UnaryCallablelistLoca * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * Location response = agentsClient.getLocation(request); @@ -1270,8 +1390,11 @@ public final Location getLocation(GetLocationRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (AgentsClient agentsClient = AgentsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = agentsClient.getLocationCallable().futureCall(request); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsSettings.java index 9cfa79e4d270..7f24ea4fb3f6 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsSettings.java @@ -62,16 +62,16 @@ * For example, to set the total timeout of getAgent to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * AgentsSettings.Builder agentsSettingsBuilder = AgentsSettings.newBuilder(); * agentsSettingsBuilder * .getAgentSettings() * .setRetrySettings( - * agentsSettingsBuilder - * .getAgentSettings() - * .getRetrySettings() - * .toBuilder() + * agentsSettingsBuilder.getAgentSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * AgentsSettings agentsSettings = agentsSettingsBuilder.build(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java index 4d0dece3bed6..a270ba6c7a34 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java @@ -44,8 +44,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]"); * Changelog response = changelogsClient.getChangelog(name); @@ -81,8 +84,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * ChangelogsSettings changelogsSettings = * ChangelogsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -93,8 +99,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * ChangelogsSettings changelogsSettings = * ChangelogsSettings.newBuilder().setEndpoint(myEndpoint).build(); * ChangelogsClient changelogsClient = ChangelogsClient.create(changelogsSettings); @@ -104,8 +113,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * ChangelogsSettings changelogsSettings = * ChangelogsSettings.newBuilder() * .setTransportChannelProvider( @@ -171,8 +183,11 @@ public ChangelogsStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * for (Changelog element : changelogsClient.listChangelogs(parent).iterateAll()) { @@ -200,8 +215,11 @@ public final ListChangelogsPagedResponse listChangelogs(AgentName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * for (Changelog element : changelogsClient.listChangelogs(parent).iterateAll()) { @@ -226,8 +244,11 @@ public final ListChangelogsPagedResponse listChangelogs(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * ListChangelogsRequest request = * ListChangelogsRequest.newBuilder() @@ -256,8 +277,11 @@ public final ListChangelogsPagedResponse listChangelogs(ListChangelogsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * ListChangelogsRequest request = * ListChangelogsRequest.newBuilder() @@ -287,8 +311,11 @@ public final ListChangelogsPagedResponse listChangelogs(ListChangelogsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * ListChangelogsRequest request = * ListChangelogsRequest.newBuilder() @@ -324,8 +351,11 @@ public final ListChangelogsPagedResponse listChangelogs(ListChangelogsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]"); * Changelog response = changelogsClient.getChangelog(name); @@ -350,8 +380,11 @@ public final Changelog getChangelog(ChangelogName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * String name = * ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]").toString(); @@ -376,8 +409,11 @@ public final Changelog getChangelog(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * GetChangelogRequest request = * GetChangelogRequest.newBuilder() @@ -402,8 +438,11 @@ public final Changelog getChangelog(GetChangelogRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * GetChangelogRequest request = * GetChangelogRequest.newBuilder() @@ -427,8 +466,11 @@ public final UnaryCallablegetChangelogCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -457,8 +499,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -488,8 +533,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -524,8 +572,11 @@ public final UnaryCallablelistLoca * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * Location response = changelogsClient.getLocation(request); @@ -546,8 +597,11 @@ public final Location getLocation(GetLocationRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = changelogsClient.getLocationCallable().futureCall(request); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java index 88e9aaec44a0..960d6f8adf1a 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java @@ -58,16 +58,16 @@ * For example, to set the total timeout of getChangelog to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * ChangelogsSettings.Builder changelogsSettingsBuilder = ChangelogsSettings.newBuilder(); * changelogsSettingsBuilder * .getChangelogSettings() * .setRetrySettings( - * changelogsSettingsBuilder - * .getChangelogSettings() - * .getRetrySettings() - * .toBuilder() + * changelogsSettingsBuilder.getChangelogSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ChangelogsSettings changelogsSettings = changelogsSettingsBuilder.build(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java index c7e8c38690aa..091e2b45e56a 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java @@ -45,8 +45,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * DeploymentName name = * DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]"); @@ -83,8 +86,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * DeploymentsSettings deploymentsSettings = * DeploymentsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -95,8 +101,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * DeploymentsSettings deploymentsSettings = * DeploymentsSettings.newBuilder().setEndpoint(myEndpoint).build(); * DeploymentsClient deploymentsClient = DeploymentsClient.create(deploymentsSettings); @@ -106,8 +115,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * DeploymentsSettings deploymentsSettings = * DeploymentsSettings.newBuilder() * .setTransportChannelProvider( @@ -175,8 +187,11 @@ public DeploymentsStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * EnvironmentName parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -207,8 +222,11 @@ public final ListDeploymentsPagedResponse listDeployments(EnvironmentName parent *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * String parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -236,8 +254,11 @@ public final ListDeploymentsPagedResponse listDeployments(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * ListDeploymentsRequest request = * ListDeploymentsRequest.newBuilder() @@ -268,8 +289,11 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * ListDeploymentsRequest request = * ListDeploymentsRequest.newBuilder() @@ -301,8 +325,11 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * ListDeploymentsRequest request = * ListDeploymentsRequest.newBuilder() @@ -340,8 +367,11 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * DeploymentName name = * DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]"); @@ -367,8 +397,11 @@ public final Deployment getDeployment(DeploymentName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * String name = * DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]") @@ -394,8 +427,11 @@ public final Deployment getDeployment(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * GetDeploymentRequest request = * GetDeploymentRequest.newBuilder() @@ -422,8 +458,11 @@ public final Deployment getDeployment(GetDeploymentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * GetDeploymentRequest request = * GetDeploymentRequest.newBuilder() @@ -449,8 +488,11 @@ public final UnaryCallablegetDeploymentCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -479,8 +521,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -510,8 +555,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -546,8 +594,11 @@ public final UnaryCallablelistLoca * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * Location response = deploymentsClient.getLocation(request); @@ -568,8 +619,11 @@ public final Location getLocation(GetLocationRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = deploymentsClient.getLocationCallable().futureCall(request); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java index ba3fba1ebb66..601c3f157c7a 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java @@ -58,16 +58,16 @@ * For example, to set the total timeout of getDeployment to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * DeploymentsSettings.Builder deploymentsSettingsBuilder = DeploymentsSettings.newBuilder(); * deploymentsSettingsBuilder * .getDeploymentSettings() * .setRetrySettings( - * deploymentsSettingsBuilder - * .getDeploymentSettings() - * .getRetrySettings() - * .toBuilder() + * deploymentsSettingsBuilder.getDeploymentSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * DeploymentsSettings deploymentsSettings = deploymentsSettingsBuilder.build(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java index 6adf5102bdce..b7f36147069f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java @@ -47,8 +47,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName name = * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]"); @@ -85,8 +88,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * EntityTypesSettings entityTypesSettings = * EntityTypesSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -97,8 +103,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * EntityTypesSettings entityTypesSettings = * EntityTypesSettings.newBuilder().setEndpoint(myEndpoint).build(); * EntityTypesClient entityTypesClient = EntityTypesClient.create(entityTypesSettings); @@ -108,8 +117,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * EntityTypesSettings entityTypesSettings = * EntityTypesSettings.newBuilder() * .setTransportChannelProvider( @@ -176,8 +188,11 @@ public EntityTypesStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) { @@ -205,8 +220,11 @@ public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) { @@ -231,8 +249,11 @@ public final ListEntityTypesPagedResponse listEntityTypes(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * ListEntityTypesRequest request = * ListEntityTypesRequest.newBuilder() @@ -261,8 +282,11 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * ListEntityTypesRequest request = * ListEntityTypesRequest.newBuilder() @@ -292,8 +316,11 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * ListEntityTypesRequest request = * ListEntityTypesRequest.newBuilder() @@ -330,8 +357,11 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName name = * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]"); @@ -357,8 +387,11 @@ public final EntityType getEntityType(EntityTypeName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * String name = * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]").toString(); @@ -383,8 +416,11 @@ public final EntityType getEntityType(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * GetEntityTypeRequest request = * GetEntityTypeRequest.newBuilder() @@ -411,8 +447,11 @@ public final EntityType getEntityType(GetEntityTypeRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * GetEntityTypeRequest request = * GetEntityTypeRequest.newBuilder() @@ -441,8 +480,11 @@ public final UnaryCallablegetEntityTypeCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * EntityType entityType = EntityType.newBuilder().build(); @@ -474,8 +516,11 @@ public final EntityType createEntityType(AgentName parent, EntityType entityType *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * EntityType entityType = EntityType.newBuilder().build(); @@ -504,8 +549,11 @@ public final EntityType createEntityType(String parent, EntityType entityType) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * CreateEntityTypeRequest request = * CreateEntityTypeRequest.newBuilder() @@ -534,8 +582,11 @@ public final EntityType createEntityType(CreateEntityTypeRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * CreateEntityTypeRequest request = * CreateEntityTypeRequest.newBuilder() @@ -564,8 +615,11 @@ public final UnaryCallablecreateEntityType * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityType entityType = EntityType.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -596,8 +650,11 @@ public final EntityType updateEntityType(EntityType entityType, FieldMask update *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * UpdateEntityTypeRequest request = * UpdateEntityTypeRequest.newBuilder() @@ -626,8 +683,11 @@ public final EntityType updateEntityType(UpdateEntityTypeRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * UpdateEntityTypeRequest request = * UpdateEntityTypeRequest.newBuilder() @@ -656,8 +716,11 @@ public final UnaryCallableupdateEntityType * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName name = * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]"); @@ -686,8 +749,11 @@ public final void deleteEntityType(EntityTypeName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * String name = * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]").toString(); @@ -715,8 +781,11 @@ public final void deleteEntityType(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * DeleteEntityTypeRequest request = * DeleteEntityTypeRequest.newBuilder() @@ -746,8 +815,11 @@ public final void deleteEntityType(DeleteEntityTypeRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * DeleteEntityTypeRequest request = * DeleteEntityTypeRequest.newBuilder() @@ -773,8 +845,11 @@ public final UnaryCallabledeleteEntityTypeCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -803,8 +878,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -834,8 +912,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -870,8 +951,11 @@ public final UnaryCallablelistLoca * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * Location response = entityTypesClient.getLocation(request); @@ -892,8 +976,11 @@ public final Location getLocation(GetLocationRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = entityTypesClient.getLocationCallable().futureCall(request); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java index 597fbd09ae2a..235246032772 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java @@ -59,16 +59,16 @@ * For example, to set the total timeout of getEntityType to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * EntityTypesSettings.Builder entityTypesSettingsBuilder = EntityTypesSettings.newBuilder(); * entityTypesSettingsBuilder * .getEntityTypeSettings() * .setRetrySettings( - * entityTypesSettingsBuilder - * .getEntityTypeSettings() - * .getRetrySettings() - * .toBuilder() + * entityTypesSettingsBuilder.getEntityTypeSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * EntityTypesSettings entityTypesSettings = entityTypesSettingsBuilder.build(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java index 3945b5b357bd..b8900c223f53 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java @@ -53,8 +53,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * EnvironmentName name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -91,8 +94,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * EnvironmentsSettings environmentsSettings = * EnvironmentsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -103,8 +109,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * EnvironmentsSettings environmentsSettings = * EnvironmentsSettings.newBuilder().setEndpoint(myEndpoint).build(); * EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); @@ -114,8 +123,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * EnvironmentsSettings environmentsSettings = * EnvironmentsSettings.newBuilder() * .setTransportChannelProvider( @@ -208,8 +220,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * for (Environment element : environmentsClient.listEnvironments(parent).iterateAll()) { @@ -239,8 +254,11 @@ public final ListEnvironmentsPagedResponse listEnvironments(AgentName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * for (Environment element : environmentsClient.listEnvironments(parent).iterateAll()) { @@ -268,8 +286,11 @@ public final ListEnvironmentsPagedResponse listEnvironments(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListEnvironmentsRequest request = * ListEnvironmentsRequest.newBuilder() @@ -298,8 +319,11 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListEnvironmentsRequest request = * ListEnvironmentsRequest.newBuilder() @@ -329,8 +353,11 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListEnvironmentsRequest request = * ListEnvironmentsRequest.newBuilder() @@ -366,8 +393,11 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * EnvironmentName name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -393,8 +423,11 @@ public final Environment getEnvironment(EnvironmentName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * String name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -419,8 +452,11 @@ public final Environment getEnvironment(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * GetEnvironmentRequest request = * GetEnvironmentRequest.newBuilder() @@ -446,8 +482,11 @@ public final Environment getEnvironment(GetEnvironmentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * GetEnvironmentRequest request = * GetEnvironmentRequest.newBuilder() @@ -482,8 +521,11 @@ public final UnaryCallablegetEnvironmentCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * Environment environment = Environment.newBuilder().build(); @@ -523,8 +565,11 @@ public final OperationFuturecreateEnvironmentAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * Environment environment = Environment.newBuilder().build(); @@ -561,8 +606,11 @@ public final OperationFuturecreateEnvironmentAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * CreateEnvironmentRequest request = * CreateEnvironmentRequest.newBuilder() @@ -597,8 +645,11 @@ public final OperationFuturecreateEnvironmentAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * CreateEnvironmentRequest request = * CreateEnvironmentRequest.newBuilder() @@ -633,8 +684,11 @@ public final OperationFuturecreateEnvironmentAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * CreateEnvironmentRequest request = * CreateEnvironmentRequest.newBuilder() @@ -667,8 +721,11 @@ public final UnaryCallablecreateEnvironmen * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * Environment environment = Environment.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -706,8 +763,11 @@ public final OperationFutureupdateEnvironmentAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * UpdateEnvironmentRequest request = * UpdateEnvironmentRequest.newBuilder() @@ -741,8 +801,11 @@ public final OperationFutureupdateEnvironmentAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * UpdateEnvironmentRequest request = * UpdateEnvironmentRequest.newBuilder() @@ -776,8 +839,11 @@ public final OperationFutureupdateEnvironmentAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * UpdateEnvironmentRequest request = * UpdateEnvironmentRequest.newBuilder() @@ -802,8 +868,11 @@ public final UnaryCallableupdateEnvironmen * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * EnvironmentName name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -831,8 +900,11 @@ public final void deleteEnvironment(EnvironmentName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * String name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -857,8 +929,11 @@ public final void deleteEnvironment(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * DeleteEnvironmentRequest request = * DeleteEnvironmentRequest.newBuilder() @@ -884,8 +959,11 @@ public final void deleteEnvironment(DeleteEnvironmentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * DeleteEnvironmentRequest request = * DeleteEnvironmentRequest.newBuilder() @@ -910,8 +988,11 @@ public final UnaryCallabledeleteEnvironmentCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * EnvironmentName name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -942,8 +1023,11 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * String name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -971,8 +1055,11 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory(Stri *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * LookupEnvironmentHistoryRequest request = * LookupEnvironmentHistoryRequest.newBuilder() @@ -1004,8 +1091,11 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * LookupEnvironmentHistoryRequest request = * LookupEnvironmentHistoryRequest.newBuilder() @@ -1036,8 +1126,11 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * LookupEnvironmentHistoryRequest request = * LookupEnvironmentHistoryRequest.newBuilder() @@ -1085,8 +1178,11 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * RunContinuousTestRequest request = * RunContinuousTestRequest.newBuilder() @@ -1123,8 +1219,11 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * RunContinuousTestRequest request = * RunContinuousTestRequest.newBuilder() @@ -1162,8 +1261,11 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * RunContinuousTestRequest request = * RunContinuousTestRequest.newBuilder() @@ -1189,8 +1291,11 @@ public final UnaryCallablerunContinuousTes * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * EnvironmentName parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -1222,8 +1327,11 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * String parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -1252,8 +1360,11 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults(St *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListContinuousTestResultsRequest request = * ListContinuousTestResultsRequest.newBuilder() @@ -1285,8 +1396,11 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListContinuousTestResultsRequest request = * ListContinuousTestResultsRequest.newBuilder() @@ -1318,8 +1432,11 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListContinuousTestResultsRequest request = * ListContinuousTestResultsRequest.newBuilder() @@ -1364,8 +1481,11 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * DeployFlowRequest request = * DeployFlowRequest.newBuilder() @@ -1402,8 +1522,11 @@ public final OperationFuturedeployFlowA * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * DeployFlowRequest request = * DeployFlowRequest.newBuilder() @@ -1440,8 +1563,11 @@ public final OperationFuturedeployFlowA * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * DeployFlowRequest request = * DeployFlowRequest.newBuilder() @@ -1469,8 +1595,11 @@ public final UnaryCallabledeployFlowCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -1499,8 +1628,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -1530,8 +1662,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -1566,8 +1701,11 @@ public final UnaryCallablelistLoca * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * Location response = environmentsClient.getLocation(request); @@ -1588,8 +1726,11 @@ public final Location getLocation(GetLocationRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = environmentsClient.getLocationCallable().futureCall(request); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java index 37e6cb3c2332..8dabaf1db344 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java @@ -64,16 +64,16 @@ * For example, to set the total timeout of getEnvironment to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * EnvironmentsSettings.Builder environmentsSettingsBuilder = EnvironmentsSettings.newBuilder(); * environmentsSettingsBuilder * .getEnvironmentSettings() * .setRetrySettings( - * environmentsSettingsBuilder - * .getEnvironmentSettings() - * .getRetrySettings() - * .toBuilder() + * environmentsSettingsBuilder.getEnvironmentSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * EnvironmentsSettings environmentsSettings = environmentsSettingsBuilder.build(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java index dd4858d29874..9d561870873d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java @@ -47,8 +47,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ExperimentName name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]"); @@ -85,8 +88,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * ExperimentsSettings experimentsSettings = * ExperimentsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -97,8 +103,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * ExperimentsSettings experimentsSettings = * ExperimentsSettings.newBuilder().setEndpoint(myEndpoint).build(); * ExperimentsClient experimentsClient = ExperimentsClient.create(experimentsSettings); @@ -108,8 +117,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * ExperimentsSettings experimentsSettings = * ExperimentsSettings.newBuilder() * .setTransportChannelProvider( @@ -177,8 +189,11 @@ public ExperimentsStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * EnvironmentName parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -209,8 +224,11 @@ public final ListExperimentsPagedResponse listExperiments(EnvironmentName parent *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * String parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -238,8 +256,11 @@ public final ListExperimentsPagedResponse listExperiments(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ListExperimentsRequest request = * ListExperimentsRequest.newBuilder() @@ -270,8 +291,11 @@ public final ListExperimentsPagedResponse listExperiments(ListExperimentsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ListExperimentsRequest request = * ListExperimentsRequest.newBuilder() @@ -303,8 +327,11 @@ public final ListExperimentsPagedResponse listExperiments(ListExperimentsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ListExperimentsRequest request = * ListExperimentsRequest.newBuilder() @@ -342,8 +369,11 @@ public final ListExperimentsPagedResponse listExperiments(ListExperimentsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ExperimentName name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]"); @@ -369,8 +399,11 @@ public final Experiment getExperiment(ExperimentName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * String name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]") @@ -396,8 +429,11 @@ public final Experiment getExperiment(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * GetExperimentRequest request = * GetExperimentRequest.newBuilder() @@ -424,8 +460,11 @@ public final Experiment getExperiment(GetExperimentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * GetExperimentRequest request = * GetExperimentRequest.newBuilder() @@ -452,8 +491,11 @@ public final UnaryCallablegetExperimentCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * EnvironmentName parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -486,8 +528,11 @@ public final Experiment createExperiment(EnvironmentName parent, Experiment expe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * String parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -517,8 +562,11 @@ public final Experiment createExperiment(String parent, Experiment experiment) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * CreateExperimentRequest request = * CreateExperimentRequest.newBuilder() @@ -546,8 +594,11 @@ public final Experiment createExperiment(CreateExperimentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * CreateExperimentRequest request = * CreateExperimentRequest.newBuilder() @@ -574,8 +625,11 @@ public final UnaryCallablecreateExperiment * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * Experiment experiment = Experiment.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -603,8 +657,11 @@ public final Experiment updateExperiment(Experiment experiment, FieldMask update *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * UpdateExperimentRequest request = * UpdateExperimentRequest.newBuilder() @@ -629,8 +686,11 @@ public final Experiment updateExperiment(UpdateExperimentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * UpdateExperimentRequest request = * UpdateExperimentRequest.newBuilder() @@ -655,8 +715,11 @@ public final UnaryCallableupdateExperiment * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ExperimentName name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]"); @@ -683,8 +746,11 @@ public final void deleteExperiment(ExperimentName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * String name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]") @@ -711,8 +777,11 @@ public final void deleteExperiment(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * DeleteExperimentRequest request = * DeleteExperimentRequest.newBuilder() @@ -739,8 +808,11 @@ public final void deleteExperiment(DeleteExperimentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * DeleteExperimentRequest request = * DeleteExperimentRequest.newBuilder() @@ -767,8 +839,11 @@ public final UnaryCallabledeleteExperimentCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ExperimentName name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]"); @@ -795,8 +870,11 @@ public final Experiment startExperiment(ExperimentName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * String name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]") @@ -823,8 +901,11 @@ public final Experiment startExperiment(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * StartExperimentRequest request = * StartExperimentRequest.newBuilder() @@ -852,8 +933,11 @@ public final Experiment startExperiment(StartExperimentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * StartExperimentRequest request = * StartExperimentRequest.newBuilder() @@ -881,8 +965,11 @@ public final UnaryCallablestartExperimentCa * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ExperimentName name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]"); @@ -909,8 +996,11 @@ public final Experiment stopExperiment(ExperimentName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * String name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]") @@ -937,8 +1027,11 @@ public final Experiment stopExperiment(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * StopExperimentRequest request = * StopExperimentRequest.newBuilder() @@ -966,8 +1059,11 @@ public final Experiment stopExperiment(StopExperimentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * StopExperimentRequest request = * StopExperimentRequest.newBuilder() @@ -993,8 +1089,11 @@ public final UnaryCallablestopExperimentCall * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -1023,8 +1122,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -1054,8 +1156,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -1090,8 +1195,11 @@ public final UnaryCallablelistLoca * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * Location response = experimentsClient.getLocation(request); @@ -1112,8 +1220,11 @@ public final Location getLocation(GetLocationRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = experimentsClient.getLocationCallable().futureCall(request); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsSettings.java index 9882251d4282..2dfb0fa4ff33 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsSettings.java @@ -59,16 +59,16 @@ * For example, to set the total timeout of getExperiment to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * ExperimentsSettings.Builder experimentsSettingsBuilder = ExperimentsSettings.newBuilder(); * experimentsSettingsBuilder * .getExperimentSettings() * .setRetrySettings( - * experimentsSettingsBuilder - * .getExperimentSettings() - * .getRetrySettings() - * .toBuilder() + * experimentsSettingsBuilder.getExperimentSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ExperimentsSettings experimentsSettings = experimentsSettingsBuilder.build(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java index 68eaeac95a0b..be4780c312b2 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java @@ -52,8 +52,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FlowsClient flowsClient = FlowsClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * Flow flow = Flow.newBuilder().build(); @@ -90,8 +93,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * FlowsSettings flowsSettings = * FlowsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -102,8 +108,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * FlowsSettings flowsSettings = FlowsSettings.newBuilder().setEndpoint(myEndpoint).build(); * FlowsClient flowsClient = FlowsClient.create(flowsSettings); * }@@ -112,8 +121,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * FlowsSettings flowsSettings = * FlowsSettings.newBuilder() * .setTransportChannelProvider( @@ -207,8 +219,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FlowsClient flowsClient = FlowsClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * Flow flow = Flow.newBuilder().build(); @@ -240,8 +255,11 @@ public final Flow createFlow(AgentName parent, Flow flow) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FlowsClient flowsClient = FlowsClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * Flow flow = Flow.newBuilder().build(); @@ -270,8 +288,11 @@ public final Flow createFlow(String parent, Flow flow) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FlowsClient flowsClient = FlowsClient.create()) { * CreateFlowRequest request = * CreateFlowRequest.newBuilder() @@ -300,8 +321,11 @@ public final Flow createFlow(CreateFlowRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FlowsClient flowsClient = FlowsClient.create()) { * CreateFlowRequest request = * CreateFlowRequest.newBuilder() @@ -326,8 +350,11 @@ public final UnaryCallablecreateFlowCallable() { *