diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java index a28606cfe55b..e346848c49c8 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java @@ -51,8 +51,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()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Agent response = agentsClient.getAgent(parent); @@ -88,8 +91,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)) @@ -100,8 +106,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); * }@@ -110,8 +119,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( @@ -202,8 +214,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]"); * Agent response = agentsClient.getAgent(parent); @@ -227,8 +242,11 @@ public final Agent getAgent(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()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Agent response = agentsClient.getAgent(parent); @@ -252,8 +270,11 @@ public final Agent getAgent(ProjectName 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 = ProjectName.of("[PROJECT]").toString(); * Agent response = agentsClient.getAgent(parent); @@ -276,8 +297,11 @@ public final Agent getAgent(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()) { * GetAgentRequest request = * GetAgentRequest.newBuilder().setParent(ProjectName.of("[PROJECT]").toString()).build(); @@ -299,8 +323,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().setParent(ProjectName.of("[PROJECT]").toString()).build(); @@ -324,8 +351,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()) { * Agent agent = Agent.newBuilder().build(); * Agent response = agentsClient.setAgent(agent); @@ -350,8 +380,11 @@ public final Agent setAgent(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()) { * SetAgentRequest request = * SetAgentRequest.newBuilder() @@ -379,8 +412,11 @@ public final Agent setAgent(SetAgentRequest 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()) { * SetAgentRequest request = * SetAgentRequest.newBuilder() @@ -404,8 +440,11 @@ public final UnaryCallablesetAgentCallable() { * 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]"); * agentsClient.deleteAgent(parent); @@ -431,8 +470,11 @@ public final void deleteAgent(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()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * agentsClient.deleteAgent(parent); @@ -458,8 +500,11 @@ public final void deleteAgent(ProjectName 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 = ProjectName.of("[PROJECT]").toString(); * agentsClient.deleteAgent(parent); @@ -482,8 +527,11 @@ public final void deleteAgent(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()) { * DeleteAgentRequest request = * DeleteAgentRequest.newBuilder().setParent(ProjectName.of("[PROJECT]").toString()).build(); @@ -505,8 +553,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().setParent(ProjectName.of("[PROJECT]").toString()).build(); @@ -532,8 +583,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()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Agent element : agentsClient.searchAgents(parent).iterateAll()) { @@ -566,8 +620,11 @@ public final SearchAgentsPagedResponse searchAgents(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()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (Agent element : agentsClient.searchAgents(parent).iterateAll()) { @@ -600,8 +657,11 @@ public final SearchAgentsPagedResponse searchAgents(ProjectName 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 = ProjectName.of("[PROJECT]").toString(); * for (Agent element : agentsClient.searchAgents(parent).iterateAll()) { @@ -631,8 +691,11 @@ public final SearchAgentsPagedResponse searchAgents(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()) { * SearchAgentsRequest request = * SearchAgentsRequest.newBuilder() @@ -665,8 +728,11 @@ public final SearchAgentsPagedResponse searchAgents(SearchAgentsRequest 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()) { * SearchAgentsRequest request = * SearchAgentsRequest.newBuilder() @@ -699,8 +765,11 @@ public final SearchAgentsPagedResponse searchAgents(SearchAgentsRequest 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()) { * SearchAgentsRequest request = * SearchAgentsRequest.newBuilder() @@ -746,8 +815,11 @@ public final UnaryCallablesearchAgen * 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]"); * agentsClient.trainAgentAsync(parent).get(); @@ -783,8 +855,11 @@ public final OperationFuturetrainAgentAsync(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()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * agentsClient.trainAgentAsync(parent).get(); @@ -820,8 +895,11 @@ public final OperationFuturetrainAgentAsync(ProjectName 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 = ProjectName.of("[PROJECT]").toString(); * agentsClient.trainAgentAsync(parent).get(); @@ -856,8 +934,11 @@ public final OperationFuturetrainAgentAsync(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()) { * TrainAgentRequest request = * TrainAgentRequest.newBuilder().setParent(ProjectName.of("[PROJECT]").toString()).build(); @@ -891,8 +972,11 @@ public final OperationFuturetrainAgentAsync(TrainAgentRequest 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 (AgentsClient agentsClient = AgentsClient.create()) { * TrainAgentRequest request = * TrainAgentRequest.newBuilder().setParent(ProjectName.of("[PROJECT]").toString()).build(); @@ -926,8 +1010,11 @@ public final OperationCallabletrainAgentOpera * 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()) { * TrainAgentRequest request = * TrainAgentRequest.newBuilder().setParent(ProjectName.of("[PROJECT]").toString()).build(); @@ -956,8 +1043,11 @@ public final UnaryCallabletrainAgentCallable() { * 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]"); * ExportAgentResponse response = agentsClient.exportAgentAsync(parent).get(); @@ -991,8 +1081,11 @@ public final OperationFutureexportAgentAsync(Locat * 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()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * ExportAgentResponse response = agentsClient.exportAgentAsync(parent).get(); @@ -1026,8 +1119,11 @@ public final OperationFutureexportAgentAsync(Proje * 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 = ProjectName.of("[PROJECT]").toString(); * ExportAgentResponse response = agentsClient.exportAgentAsync(parent).get(); @@ -1058,8 +1154,11 @@ public final OperationFutureexportAgentAsync(Strin * 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() @@ -1093,8 +1192,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() @@ -1128,8 +1230,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() @@ -1175,8 +1280,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()) { * ImportAgentRequest request = * ImportAgentRequest.newBuilder().setParent(ProjectName.of("[PROJECT]").toString()).build(); @@ -1220,8 +1328,11 @@ public final OperationFutureimportAgentAsync(ImportAgentRequest * 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()) { * ImportAgentRequest request = * ImportAgentRequest.newBuilder().setParent(ProjectName.of("[PROJECT]").toString()).build(); @@ -1265,8 +1376,11 @@ public final OperationCallableimportAgentOpe * 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()) { * ImportAgentRequest request = * ImportAgentRequest.newBuilder().setParent(ProjectName.of("[PROJECT]").toString()).build(); @@ -1308,8 +1422,11 @@ public final UnaryCallableimportAgentCallable() * 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() @@ -1354,8 +1471,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() @@ -1401,8 +1521,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() @@ -1426,8 +1549,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()) { * GetValidationResultRequest request = * GetValidationResultRequest.newBuilder() @@ -1453,8 +1579,11 @@ public final ValidationResult getValidationResult(GetValidationResultRequest req *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()) { * GetValidationResultRequest request = * GetValidationResultRequest.newBuilder() @@ -1480,8 +1609,11 @@ public final ValidationResult getValidationResult(GetValidationResultRequest req *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() @@ -1510,8 +1642,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() @@ -1540,8 +1675,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() @@ -1576,8 +1714,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); @@ -1598,8 +1739,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/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java index 5ecc9fb41503..36f39a201417 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/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/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java index 44d0fc533e42..1de2f5ee36d6 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java @@ -46,8 +46,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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * AnswerRecord answerRecord = AnswerRecord.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -84,8 +87,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 * AnswerRecordsSettings answerRecordsSettings = * AnswerRecordsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -96,8 +102,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 * AnswerRecordsSettings answerRecordsSettings = * AnswerRecordsSettings.newBuilder().setEndpoint(myEndpoint).build(); * AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create(answerRecordsSettings); @@ -107,8 +116,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 * AnswerRecordsSettings answerRecordsSettings = * AnswerRecordsSettings.newBuilder() * .setTransportChannelProvider( @@ -176,8 +188,11 @@ public AnswerRecordsStub 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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (AnswerRecord element : answerRecordsClient.listAnswerRecords(parent).iterateAll()) { @@ -205,8 +220,11 @@ public final ListAnswerRecordsPagedResponse listAnswerRecords(LocationName paren *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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (AnswerRecord element : answerRecordsClient.listAnswerRecords(parent).iterateAll()) { @@ -234,8 +252,11 @@ public final ListAnswerRecordsPagedResponse listAnswerRecords(ProjectName 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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * for (AnswerRecord element : answerRecordsClient.listAnswerRecords(parent).iterateAll()) { @@ -261,8 +282,11 @@ public final ListAnswerRecordsPagedResponse listAnswerRecords(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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * ListAnswerRecordsRequest request = * ListAnswerRecordsRequest.newBuilder() @@ -291,8 +315,11 @@ public final ListAnswerRecordsPagedResponse listAnswerRecords(ListAnswerRecordsR *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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * ListAnswerRecordsRequest request = * ListAnswerRecordsRequest.newBuilder() @@ -322,8 +349,11 @@ public final ListAnswerRecordsPagedResponse listAnswerRecords(ListAnswerRecordsR *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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * ListAnswerRecordsRequest request = * ListAnswerRecordsRequest.newBuilder() @@ -360,8 +390,11 @@ public final ListAnswerRecordsPagedResponse listAnswerRecords(ListAnswerRecordsR *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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * AnswerRecord answerRecord = AnswerRecord.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -389,8 +422,11 @@ public final AnswerRecord updateAnswerRecord(AnswerRecord answerRecord, FieldMas *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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * UpdateAnswerRecordRequest request = * UpdateAnswerRecordRequest.newBuilder() @@ -415,8 +451,11 @@ public final AnswerRecord updateAnswerRecord(UpdateAnswerRecordRequest 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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * UpdateAnswerRecordRequest request = * UpdateAnswerRecordRequest.newBuilder() @@ -441,8 +480,11 @@ public final UnaryCallableupdateAnswer * 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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -471,8 +513,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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -502,8 +547,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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -538,8 +586,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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * Location response = answerRecordsClient.getLocation(request); @@ -560,8 +611,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 (AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = answerRecordsClient.getLocationCallable().futureCall(request); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java index 016cca3f3fd1..332cdaa19c90 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java @@ -58,16 +58,16 @@ * For example, to set the total timeout of updateAnswerRecord 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 * AnswerRecordsSettings.Builder answerRecordsSettingsBuilder = AnswerRecordsSettings.newBuilder(); * answerRecordsSettingsBuilder * .updateAnswerRecordSettings() * .setRetrySettings( - * answerRecordsSettingsBuilder - * .updateAnswerRecordSettings() - * .getRetrySettings() - * .toBuilder() + * answerRecordsSettingsBuilder.updateAnswerRecordSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * AnswerRecordsSettings answerRecordsSettings = answerRecordsSettingsBuilder.build(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java index 5f9278d5b019..e8c636cf9565 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java @@ -46,8 +46,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 (ContextsClient contextsClient = ContextsClient.create()) { * ContextName name = * ContextName.ofProjectSessionContextName("[PROJECT]", "[SESSION]", "[CONTEXT]"); @@ -84,8 +87,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 * ContextsSettings contextsSettings = * ContextsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -96,8 +102,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 * ContextsSettings contextsSettings = * ContextsSettings.newBuilder().setEndpoint(myEndpoint).build(); * ContextsClient contextsClient = ContextsClient.create(contextsSettings); @@ -107,8 +116,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 * ContextsSettings contextsSettings = * ContextsSettings.newBuilder() * .setTransportChannelProvider( @@ -174,8 +186,11 @@ public ContextsStub 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 (ContextsClient contextsClient = ContextsClient.create()) { * SessionName parent = SessionName.ofProjectSessionName("[PROJECT]", "[SESSION]"); * for (Context element : contextsClient.listContexts(parent).iterateAll()) { @@ -206,8 +221,11 @@ public final ListContextsPagedResponse listContexts(SessionName 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 (ContextsClient contextsClient = ContextsClient.create()) { * String parent = SessionName.ofProjectSessionName("[PROJECT]", "[SESSION]").toString(); * for (Context element : contextsClient.listContexts(parent).iterateAll()) { @@ -235,8 +253,11 @@ public final ListContextsPagedResponse listContexts(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 (ContextsClient contextsClient = ContextsClient.create()) { * ListContextsRequest request = * ListContextsRequest.newBuilder() @@ -264,8 +285,11 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest 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 (ContextsClient contextsClient = ContextsClient.create()) { * ListContextsRequest request = * ListContextsRequest.newBuilder() @@ -293,8 +317,11 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest 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 (ContextsClient contextsClient = ContextsClient.create()) { * ListContextsRequest request = * ListContextsRequest.newBuilder() @@ -328,8 +355,11 @@ public final UnaryCallablelistContex * 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 (ContextsClient contextsClient = ContextsClient.create()) { * ContextName name = * ContextName.ofProjectSessionContextName("[PROJECT]", "[SESSION]", "[CONTEXT]"); @@ -358,8 +388,11 @@ public final Context getContext(ContextName 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 (ContextsClient contextsClient = ContextsClient.create()) { * String name = * ContextName.ofProjectSessionContextName("[PROJECT]", "[SESSION]", "[CONTEXT]").toString(); @@ -387,8 +420,11 @@ public final Context getContext(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 (ContextsClient contextsClient = ContextsClient.create()) { * GetContextRequest request = * GetContextRequest.newBuilder() @@ -414,8 +450,11 @@ public final Context getContext(GetContextRequest 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 (ContextsClient contextsClient = ContextsClient.create()) { * GetContextRequest request = * GetContextRequest.newBuilder() @@ -442,8 +481,11 @@ public final UnaryCallablegetContextCallable() { * 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 (ContextsClient contextsClient = ContextsClient.create()) { * SessionName parent = SessionName.ofProjectSessionName("[PROJECT]", "[SESSION]"); * Context context = Context.newBuilder().build(); @@ -477,8 +519,11 @@ public final Context createContext(SessionName parent, Context context) { *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 (ContextsClient contextsClient = ContextsClient.create()) { * String parent = SessionName.ofProjectSessionName("[PROJECT]", "[SESSION]").toString(); * Context context = Context.newBuilder().build(); @@ -509,8 +554,11 @@ public final Context createContext(String parent, Context context) { *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 (ContextsClient contextsClient = ContextsClient.create()) { * CreateContextRequest request = * CreateContextRequest.newBuilder() @@ -537,8 +585,11 @@ public final Context createContext(CreateContextRequest 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 (ContextsClient contextsClient = ContextsClient.create()) { * CreateContextRequest request = * CreateContextRequest.newBuilder() @@ -562,8 +613,11 @@ public final UnaryCallablecreateContextCallable( * 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 (ContextsClient contextsClient = ContextsClient.create()) { * Context context = Context.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -588,8 +642,11 @@ public final Context updateContext(Context context, 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 (ContextsClient contextsClient = ContextsClient.create()) { * UpdateContextRequest request = * UpdateContextRequest.newBuilder() @@ -614,8 +671,11 @@ public final Context updateContext(UpdateContextRequest 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 (ContextsClient contextsClient = ContextsClient.create()) { * UpdateContextRequest request = * UpdateContextRequest.newBuilder() @@ -639,8 +699,11 @@ public final UnaryCallableupdateContextCallable( * 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 (ContextsClient contextsClient = ContextsClient.create()) { * ContextName name = * ContextName.ofProjectSessionContextName("[PROJECT]", "[SESSION]", "[CONTEXT]"); @@ -669,8 +732,11 @@ public final void deleteContext(ContextName 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 (ContextsClient contextsClient = ContextsClient.create()) { * String name = * ContextName.ofProjectSessionContextName("[PROJECT]", "[SESSION]", "[CONTEXT]").toString(); @@ -698,8 +764,11 @@ public final void deleteContext(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 (ContextsClient contextsClient = ContextsClient.create()) { * DeleteContextRequest request = * DeleteContextRequest.newBuilder() @@ -725,8 +794,11 @@ public final void deleteContext(DeleteContextRequest 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 (ContextsClient contextsClient = ContextsClient.create()) { * DeleteContextRequest request = * DeleteContextRequest.newBuilder() @@ -751,8 +823,11 @@ public final UnaryCallabledeleteContextCallable() * 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 (ContextsClient contextsClient = ContextsClient.create()) { * SessionName parent = SessionName.ofProjectSessionName("[PROJECT]", "[SESSION]"); * contextsClient.deleteAllContexts(parent); @@ -781,8 +856,11 @@ public final void deleteAllContexts(SessionName 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 (ContextsClient contextsClient = ContextsClient.create()) { * String parent = SessionName.ofProjectSessionName("[PROJECT]", "[SESSION]").toString(); * contextsClient.deleteAllContexts(parent); @@ -809,8 +887,11 @@ public final void deleteAllContexts(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 (ContextsClient contextsClient = ContextsClient.create()) { * DeleteAllContextsRequest request = * DeleteAllContextsRequest.newBuilder() @@ -834,8 +915,11 @@ public final void deleteAllContexts(DeleteAllContextsRequest 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 (ContextsClient contextsClient = ContextsClient.create()) { * DeleteAllContextsRequest request = * DeleteAllContextsRequest.newBuilder() @@ -858,8 +942,11 @@ public final UnaryCallabledeleteAllContextsCal * 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 (ContextsClient contextsClient = ContextsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -888,8 +975,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 (ContextsClient contextsClient = ContextsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -918,8 +1008,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 (ContextsClient contextsClient = ContextsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -954,8 +1047,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 (ContextsClient contextsClient = ContextsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * Location response = contextsClient.getLocation(request); @@ -976,8 +1072,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 (ContextsClient contextsClient = ContextsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = contextsClient.getLocationCallable().futureCall(request); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java index cf9cd8b08ed6..8c672073c177 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java @@ -59,16 +59,16 @@ * For example, to set the total timeout of getContext 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 * ContextsSettings.Builder contextsSettingsBuilder = ContextsSettings.newBuilder(); * contextsSettingsBuilder * .getContextSettings() * .setRetrySettings( - * contextsSettingsBuilder - * .getContextSettings() - * .getRetrySettings() - * .toBuilder() + * contextsSettingsBuilder.getContextSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ContextsSettings contextsSettings = contextsSettingsBuilder.build(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java index 053294b4e964..b98dcaae08df 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * ConversationDatasetName name = @@ -93,8 +96,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 * ConversationDatasetsSettings conversationDatasetsSettings = * ConversationDatasetsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -106,8 +112,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 * ConversationDatasetsSettings conversationDatasetsSettings = * ConversationDatasetsSettings.newBuilder().setEndpoint(myEndpoint).build(); * ConversationDatasetsClient conversationDatasetsClient = @@ -118,8 +127,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 * ConversationDatasetsSettings conversationDatasetsSettings = * ConversationDatasetsSettings.newBuilder() * .setTransportChannelProvider( @@ -221,8 +233,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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * String parent = "parent-995424086"; @@ -264,8 +279,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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * CreateConversationDatasetRequest request = @@ -301,8 +319,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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * CreateConversationDatasetRequest request = @@ -342,8 +363,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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * CreateConversationDatasetRequest request = @@ -370,8 +394,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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * ConversationDatasetName name = @@ -399,8 +426,11 @@ public final ConversationDataset getConversationDataset(ConversationDatasetName *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * String name = @@ -427,8 +457,11 @@ public final ConversationDataset getConversationDataset(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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * GetConversationDatasetRequest request = @@ -455,8 +488,11 @@ public final ConversationDataset getConversationDataset(GetConversationDatasetRe *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * GetConversationDatasetRequest request = @@ -484,8 +520,11 @@ public final ConversationDataset getConversationDataset(GetConversationDatasetRe *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -515,8 +554,11 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets(Loca *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); @@ -544,8 +586,11 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets(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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * ListConversationDatasetsRequest request = @@ -576,8 +621,11 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * ListConversationDatasetsRequest request = @@ -607,8 +655,11 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * ListConversationDatasetsRequest request = @@ -654,8 +705,11 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * ConversationDatasetName name = @@ -693,8 +747,11 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * String name = @@ -731,8 +788,11 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * DeleteConversationDatasetRequest request = @@ -769,8 +829,11 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * DeleteConversationDatasetRequest request = @@ -810,8 +873,11 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * DeleteConversationDatasetRequest request = @@ -849,8 +915,11 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * ImportConversationDataRequest request = @@ -891,8 +960,11 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * ImportConversationDataRequest request = @@ -938,8 +1010,11 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * ImportConversationDataRequest request = @@ -968,8 +1043,11 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( *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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * ListLocationsRequest request = @@ -999,8 +1077,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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * ListLocationsRequest request = @@ -1031,8 +1112,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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * ListLocationsRequest request = @@ -1069,8 +1153,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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); @@ -1092,8 +1179,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 (ConversationDatasetsClient conversationDatasetsClient = * ConversationDatasetsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsSettings.java index 08e09d31c51d..78ec5e147ed2 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsSettings.java @@ -61,8 +61,11 @@ *For example, to set the total timeout of getConversationDataset 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 * ConversationDatasetsSettings.Builder conversationDatasetsSettingsBuilder = * ConversationDatasetsSettings.newBuilder(); * conversationDatasetsSettingsBuilder diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java index 4cecf7dbf232..fd571a801396 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java @@ -50,8 +50,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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * String name = "name3373707"; * ConversationModel response = conversationModelsClient.getConversationModel(name); @@ -88,8 +91,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 * ConversationModelsSettings conversationModelsSettings = * ConversationModelsSettings.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 * ConversationModelsSettings conversationModelsSettings = * ConversationModelsSettings.newBuilder().setEndpoint(myEndpoint).build(); * ConversationModelsClient conversationModelsClient = @@ -113,8 +122,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 * ConversationModelsSettings conversationModelsSettings = * ConversationModelsSettings.newBuilder() * .setTransportChannelProvider( @@ -216,8 +228,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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * String parent = "parent-995424086"; * ConversationModel conversationModel = ConversationModel.newBuilder().build(); @@ -256,8 +271,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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * CreateConversationModelRequest request = * CreateConversationModelRequest.newBuilder() @@ -292,8 +310,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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * CreateConversationModelRequest request = * CreateConversationModelRequest.newBuilder() @@ -330,8 +351,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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * CreateConversationModelRequest request = * CreateConversationModelRequest.newBuilder() @@ -357,8 +381,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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * String name = "name3373707"; * ConversationModel response = conversationModelsClient.getConversationModel(name); @@ -382,8 +409,11 @@ public final ConversationModel getConversationModel(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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * GetConversationModelRequest request = * GetConversationModelRequest.newBuilder().setName("name3373707").build(); @@ -405,8 +435,11 @@ public final ConversationModel getConversationModel(GetConversationModelRequest *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * GetConversationModelRequest request = * GetConversationModelRequest.newBuilder().setName("name3373707").build(); @@ -429,8 +462,11 @@ public final ConversationModel getConversationModel(GetConversationModelRequest *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * String parent = "parent-995424086"; * for (ConversationModel element : @@ -457,8 +493,11 @@ public final ListConversationModelsPagedResponse listConversationModels(String p *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * ListConversationModelsRequest request = * ListConversationModelsRequest.newBuilder() @@ -488,8 +527,11 @@ public final ListConversationModelsPagedResponse listConversationModels( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * ListConversationModelsRequest request = * ListConversationModelsRequest.newBuilder() @@ -518,8 +560,11 @@ public final ListConversationModelsPagedResponse listConversationModels( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * ListConversationModelsRequest request = * ListConversationModelsRequest.newBuilder() @@ -564,8 +609,11 @@ public final ListConversationModelsPagedResponse listConversationModels( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * String name = "name3373707"; * conversationModelsClient.deleteConversationModelAsync(name).get(); @@ -599,8 +647,11 @@ public final ListConversationModelsPagedResponse listConversationModels( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * DeleteConversationModelRequest request = * DeleteConversationModelRequest.newBuilder().setName("name3373707").build(); @@ -632,8 +683,11 @@ public final ListConversationModelsPagedResponse listConversationModels( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * DeleteConversationModelRequest request = * DeleteConversationModelRequest.newBuilder().setName("name3373707").build(); @@ -666,8 +720,11 @@ public final ListConversationModelsPagedResponse listConversationModels( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * DeleteConversationModelRequest request = * DeleteConversationModelRequest.newBuilder().setName("name3373707").build(); @@ -701,8 +758,11 @@ public final ListConversationModelsPagedResponse listConversationModels( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * DeployConversationModelRequest request = * DeployConversationModelRequest.newBuilder().setName("name3373707").build(); @@ -736,8 +796,11 @@ public final ListConversationModelsPagedResponse listConversationModels( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * DeployConversationModelRequest request = * DeployConversationModelRequest.newBuilder().setName("name3373707").build(); @@ -772,8 +835,11 @@ public final ListConversationModelsPagedResponse listConversationModels( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * DeployConversationModelRequest request = * DeployConversationModelRequest.newBuilder().setName("name3373707").build(); @@ -807,8 +873,11 @@ public final ListConversationModelsPagedResponse listConversationModels( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * UndeployConversationModelRequest request = * UndeployConversationModelRequest.newBuilder().setName("name3373707").build(); @@ -842,8 +911,11 @@ public final ListConversationModelsPagedResponse listConversationModels( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * UndeployConversationModelRequest request = * UndeployConversationModelRequest.newBuilder().setName("name3373707").build(); @@ -878,8 +950,11 @@ public final ListConversationModelsPagedResponse listConversationModels( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * UndeployConversationModelRequest request = * UndeployConversationModelRequest.newBuilder().setName("name3373707").build(); @@ -902,8 +977,11 @@ public final ListConversationModelsPagedResponse listConversationModels( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * String name = "name3373707"; * ConversationModelEvaluation response = @@ -929,8 +1007,11 @@ public final ConversationModelEvaluation getConversationModelEvaluation(String n *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * GetConversationModelEvaluationRequest request = * GetConversationModelEvaluationRequest.newBuilder().setName("name3373707").build(); @@ -954,8 +1035,11 @@ public final ConversationModelEvaluation getConversationModelEvaluation( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * GetConversationModelEvaluationRequest request = * GetConversationModelEvaluationRequest.newBuilder().setName("name3373707").build(); @@ -978,8 +1062,11 @@ public final ConversationModelEvaluation getConversationModelEvaluation( *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * String parent = "parent-995424086"; * for (ConversationModelEvaluation element : @@ -1007,8 +1094,11 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * ListConversationModelEvaluationsRequest request = * ListConversationModelEvaluationsRequest.newBuilder() @@ -1038,8 +1128,11 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * ListConversationModelEvaluationsRequest request = * ListConversationModelEvaluationsRequest.newBuilder() @@ -1071,8 +1164,11 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * ListConversationModelEvaluationsRequest request = * ListConversationModelEvaluationsRequest.newBuilder() @@ -1109,8 +1205,11 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * ConversationModelName parent = * ConversationModelName.ofProjectLocationConversationModelName( @@ -1148,8 +1247,11 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * String parent = * ConversationModelName.ofProjectLocationConversationModelName( @@ -1188,8 +1290,11 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * CreateConversationModelEvaluationRequest request = * CreateConversationModelEvaluationRequest.newBuilder() @@ -1220,8 +1325,11 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * CreateConversationModelEvaluationRequest request = * CreateConversationModelEvaluationRequest.newBuilder() @@ -1257,8 +1365,11 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * CreateConversationModelEvaluationRequest request = * CreateConversationModelEvaluationRequest.newBuilder() @@ -1287,8 +1398,11 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel *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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -1317,8 +1431,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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -1348,8 +1465,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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -1385,8 +1505,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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * Location response = conversationModelsClient.getLocation(request); @@ -1407,8 +1530,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 (ConversationModelsClient conversationModelsClient = ConversationModelsClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsSettings.java index 63cf43c05c5f..575e45fb5a07 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsSettings.java @@ -62,8 +62,11 @@ * For example, to set the total timeout of getConversationModel 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 * ConversationModelsSettings.Builder conversationModelsSettingsBuilder = * ConversationModelsSettings.newBuilder(); * conversationModelsSettingsBuilder diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java index a8eec7f5ffe1..55863fd59254 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ConversationProfileName name = @@ -93,8 +96,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 * ConversationProfilesSettings conversationProfilesSettings = * ConversationProfilesSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -106,8 +112,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 * ConversationProfilesSettings conversationProfilesSettings = * ConversationProfilesSettings.newBuilder().setEndpoint(myEndpoint).build(); * ConversationProfilesClient conversationProfilesClient = @@ -118,8 +127,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 * ConversationProfilesSettings conversationProfilesSettings = * ConversationProfilesSettings.newBuilder() * .setTransportChannelProvider( @@ -213,8 +225,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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -244,8 +259,11 @@ public final ListConversationProfilesPagedResponse listConversationProfiles(Loca *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); @@ -275,8 +293,11 @@ public final ListConversationProfilesPagedResponse listConversationProfiles(Proj *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); @@ -304,8 +325,11 @@ public final ListConversationProfilesPagedResponse listConversationProfiles(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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ListConversationProfilesRequest request = @@ -336,8 +360,11 @@ public final ListConversationProfilesPagedResponse listConversationProfiles( *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ListConversationProfilesRequest request = @@ -367,8 +394,11 @@ public final ListConversationProfilesPagedResponse listConversationProfiles( *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ListConversationProfilesRequest request = @@ -405,8 +435,11 @@ public final ListConversationProfilesPagedResponse listConversationProfiles( *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ConversationProfileName name = @@ -436,8 +469,11 @@ public final ConversationProfile getConversationProfile(ConversationProfileName *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * String name = @@ -466,8 +502,11 @@ public final ConversationProfile getConversationProfile(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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * GetConversationProfileRequest request = @@ -495,8 +534,11 @@ public final ConversationProfile getConversationProfile(GetConversationProfileRe *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * GetConversationProfileRequest request = @@ -530,8 +572,11 @@ public final ConversationProfile getConversationProfile(GetConversationProfileRe *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -568,8 +613,11 @@ public final ConversationProfile createConversationProfile( *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); @@ -606,8 +654,11 @@ public final ConversationProfile createConversationProfile( *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); @@ -644,8 +695,11 @@ public final ConversationProfile createConversationProfile( *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * CreateConversationProfileRequest request = @@ -677,8 +731,11 @@ public final ConversationProfile createConversationProfile( *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * CreateConversationProfileRequest request = @@ -710,8 +767,11 @@ public final ConversationProfile createConversationProfile( *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ConversationProfile conversationProfile = ConversationProfile.newBuilder().build(); @@ -747,8 +807,11 @@ public final ConversationProfile updateConversationProfile( *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * UpdateConversationProfileRequest request = @@ -780,8 +843,11 @@ public final ConversationProfile updateConversationProfile( *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * UpdateConversationProfileRequest request = @@ -808,8 +874,11 @@ public final ConversationProfile updateConversationProfile( *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ConversationProfileName name = @@ -839,8 +908,11 @@ public final void deleteConversationProfile(ConversationProfileName 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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * String name = @@ -869,8 +941,11 @@ public final void deleteConversationProfile(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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * DeleteConversationProfileRequest request = @@ -898,8 +973,11 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * DeleteConversationProfileRequest request = @@ -943,8 +1021,11 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * String conversationProfile = "conversationProfile1691597734"; @@ -989,8 +1070,11 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * SetSuggestionFeatureConfigRequest request = @@ -1034,8 +1118,11 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * SetSuggestionFeatureConfigRequest request = @@ -1083,8 +1170,11 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * SetSuggestionFeatureConfigRequest request = @@ -1120,8 +1210,11 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * String conversationProfile = "conversationProfile1691597734"; @@ -1159,8 +1252,11 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ClearSuggestionFeatureConfigRequest request = @@ -1195,8 +1291,11 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ClearSuggestionFeatureConfigRequest request = @@ -1235,8 +1334,11 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ClearSuggestionFeatureConfigRequest request = @@ -1262,8 +1364,11 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req *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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ListLocationsRequest request = @@ -1293,8 +1398,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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ListLocationsRequest request = @@ -1325,8 +1433,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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * ListLocationsRequest request = @@ -1363,8 +1474,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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); @@ -1386,8 +1500,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 (ConversationProfilesClient conversationProfilesClient = * ConversationProfilesClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java index bab77ec15f00..c41523c72eb3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java @@ -61,8 +61,11 @@ *For example, to set the total timeout of getConversationProfile 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 * ConversationProfilesSettings.Builder conversationProfilesSettingsBuilder = * ConversationProfilesSettings.newBuilder(); * conversationProfilesSettingsBuilder diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java index f4a7b8fab01c..68124d9424d8 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.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 (ConversationsClient conversationsClient = ConversationsClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Conversation conversation = Conversation.newBuilder().build(); @@ -83,8 +86,11 @@ *