diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java index 961b0b94f..c3a373314 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,6 +48,8 @@ * 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. * try (AgentsClient agentsClient = AgentsClient.create()) { * AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * Agent response = agentsClient.getAgent(name); @@ -83,6 +85,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AgentsSettings agentsSettings = * AgentsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -93,6 +97,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AgentsSettings agentsSettings = AgentsSettings.newBuilder().setEndpoint(myEndpoint).build(); * AgentsClient agentsClient = AgentsClient.create(agentsSettings); * }@@ -168,6 +174,8 @@ public final OperationsClient getOperationsClient() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Agent element : agentsClient.listAgents(parent).iterateAll()) { @@ -193,6 +201,8 @@ public final ListAgentsPagedResponse listAgents(LocationName parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Agent element : agentsClient.listAgents(parent).iterateAll()) { @@ -217,6 +227,8 @@ public final ListAgentsPagedResponse listAgents(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * ListAgentsRequest request = * ListAgentsRequest.newBuilder() @@ -244,6 +256,8 @@ public final ListAgentsPagedResponse listAgents(ListAgentsRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * ListAgentsRequest request = * ListAgentsRequest.newBuilder() @@ -270,6 +284,8 @@ public final UnaryCallablelistAgent * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * ListAgentsRequest request = * ListAgentsRequest.newBuilder() @@ -303,6 +319,8 @@ public final UnaryCallablelistAgentsCall * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * Agent response = agentsClient.getAgent(name); @@ -326,6 +344,8 @@ public final Agent getAgent(AgentName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * String name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * Agent response = agentsClient.getAgent(name); @@ -348,6 +368,8 @@ public final Agent getAgent(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * GetAgentRequest request = * GetAgentRequest.newBuilder() @@ -371,6 +393,8 @@ 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. * try (AgentsClient agentsClient = AgentsClient.create()) { * GetAgentRequest request = * GetAgentRequest.newBuilder() @@ -396,6 +420,8 @@ 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. * try (AgentsClient agentsClient = AgentsClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Agent agent = Agent.newBuilder().build(); @@ -427,6 +453,8 @@ public final Agent createAgent(LocationName parent, Agent agent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Agent agent = Agent.newBuilder().build(); @@ -455,6 +483,8 @@ public final Agent createAgent(String parent, Agent agent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * CreateAgentRequest request = * CreateAgentRequest.newBuilder() @@ -482,6 +512,8 @@ public final Agent createAgent(CreateAgentRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * CreateAgentRequest request = * CreateAgentRequest.newBuilder() @@ -508,6 +540,8 @@ public final UnaryCallablecreateAgentCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * Agent agent = Agent.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -536,6 +570,8 @@ public final Agent updateAgent(Agent agent, FieldMask updateMask) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * UpdateAgentRequest request = * UpdateAgentRequest.newBuilder() @@ -563,6 +599,8 @@ public final Agent updateAgent(UpdateAgentRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * UpdateAgentRequest request = * UpdateAgentRequest.newBuilder() @@ -586,6 +624,8 @@ public final UnaryCallableupdateAgentCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * agentsClient.deleteAgent(name); @@ -609,6 +649,8 @@ public final void deleteAgent(AgentName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * String name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * agentsClient.deleteAgent(name); @@ -631,6 +673,8 @@ public final void deleteAgent(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * DeleteAgentRequest request = * DeleteAgentRequest.newBuilder() @@ -654,6 +698,8 @@ 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. * try (AgentsClient agentsClient = AgentsClient.create()) { * DeleteAgentRequest request = * DeleteAgentRequest.newBuilder() @@ -684,6 +730,8 @@ 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. * try (AgentsClient agentsClient = AgentsClient.create()) { * ExportAgentRequest request = * ExportAgentRequest.newBuilder() @@ -720,6 +768,8 @@ 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. * try (AgentsClient agentsClient = AgentsClient.create()) { * ExportAgentRequest request = * ExportAgentRequest.newBuilder() @@ -756,6 +806,8 @@ 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. * try (AgentsClient agentsClient = AgentsClient.create()) { * ExportAgentRequest request = * ExportAgentRequest.newBuilder() @@ -797,6 +849,8 @@ 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. * try (AgentsClient agentsClient = AgentsClient.create()) { * RestoreAgentRequest request = * RestoreAgentRequest.newBuilder() @@ -835,6 +889,8 @@ 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. * try (AgentsClient agentsClient = AgentsClient.create()) { * RestoreAgentRequest request = * RestoreAgentRequest.newBuilder() @@ -874,6 +930,8 @@ 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. * try (AgentsClient agentsClient = AgentsClient.create()) { * RestoreAgentRequest request = * RestoreAgentRequest.newBuilder() @@ -898,6 +956,8 @@ 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. * try (AgentsClient agentsClient = AgentsClient.create()) { * ValidateAgentRequest request = * ValidateAgentRequest.newBuilder() @@ -924,6 +984,8 @@ public final AgentValidationResult validateAgent(ValidateAgentRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * ValidateAgentRequest request = * ValidateAgentRequest.newBuilder() @@ -949,6 +1011,8 @@ public final UnaryCallablevalidate * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * AgentValidationResultName name = * AgentValidationResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); @@ -976,6 +1040,8 @@ public final AgentValidationResult getAgentValidationResult(AgentValidationResul *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * String name = AgentValidationResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * AgentValidationResult response = agentsClient.getAgentValidationResult(name); @@ -1000,6 +1066,8 @@ public final AgentValidationResult getAgentValidationResult(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * GetAgentValidationResultRequest request = * GetAgentValidationResultRequest.newBuilder() @@ -1027,6 +1095,8 @@ public final AgentValidationResult getAgentValidationResult( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AgentsClient agentsClient = AgentsClient.create()) { * GetAgentValidationResultRequest request = * GetAgentValidationResultRequest.newBuilder() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsSettings.java index 73a976227..c096ae81d 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -56,6 +56,8 @@ *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. * AgentsSettings.Builder agentsSettingsBuilder = AgentsSettings.newBuilder(); * agentsSettingsBuilder * .getAgentSettings() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java index 59e5b251a..c21d3e27e 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,6 +41,8 @@ * 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. * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]"); * Changelog response = changelogsClient.getChangelog(name); @@ -76,6 +78,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ChangelogsSettings changelogsSettings = * ChangelogsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -86,6 +90,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ChangelogsSettings changelogsSettings = * ChangelogsSettings.newBuilder().setEndpoint(myEndpoint).build(); * ChangelogsClient changelogsClient = ChangelogsClient.create(changelogsSettings); @@ -151,6 +157,8 @@ public ChangelogsStub getStub() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * for (Changelog element : changelogsClient.listChangelogs(parent).iterateAll()) { @@ -178,6 +186,8 @@ public final ListChangelogsPagedResponse listChangelogs(AgentName parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * for (Changelog element : changelogsClient.listChangelogs(parent).iterateAll()) { @@ -202,6 +212,8 @@ public final ListChangelogsPagedResponse listChangelogs(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * ListChangelogsRequest request = * ListChangelogsRequest.newBuilder() @@ -230,6 +242,8 @@ public final ListChangelogsPagedResponse listChangelogs(ListChangelogsRequest re *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * ListChangelogsRequest request = * ListChangelogsRequest.newBuilder() @@ -259,6 +273,8 @@ public final ListChangelogsPagedResponse listChangelogs(ListChangelogsRequest re *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * ListChangelogsRequest request = * ListChangelogsRequest.newBuilder() @@ -294,6 +310,8 @@ public final ListChangelogsPagedResponse listChangelogs(ListChangelogsRequest re *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]"); * Changelog response = changelogsClient.getChangelog(name); @@ -318,6 +336,8 @@ public final Changelog getChangelog(ChangelogName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * String name = * ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]").toString(); @@ -342,6 +362,8 @@ public final Changelog getChangelog(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * GetChangelogRequest request = * GetChangelogRequest.newBuilder() @@ -366,6 +388,8 @@ public final Changelog getChangelog(GetChangelogRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) { * GetChangelogRequest request = * GetChangelogRequest.newBuilder() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java index 33bd0f8c0..783a5c39b 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -52,6 +52,8 @@ *For example, to set the total timeout of getChangelog to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ChangelogsSettings.Builder changelogsSettingsBuilder = ChangelogsSettings.newBuilder(); * changelogsSettingsBuilder * .getChangelogSettings() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java index 1bd280af1..ad80da897 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,6 +42,8 @@ * 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. * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * DeploymentName name = * DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]"); @@ -78,6 +80,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * DeploymentsSettings deploymentsSettings = * DeploymentsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -88,6 +92,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * DeploymentsSettings deploymentsSettings = * DeploymentsSettings.newBuilder().setEndpoint(myEndpoint).build(); * DeploymentsClient deploymentsClient = DeploymentsClient.create(deploymentsSettings); @@ -155,6 +161,8 @@ public DeploymentsStub getStub() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * EnvironmentName parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -185,6 +193,8 @@ public final ListDeploymentsPagedResponse listDeployments(EnvironmentName parent *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * String parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -212,6 +222,8 @@ public final ListDeploymentsPagedResponse listDeployments(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * ListDeploymentsRequest request = * ListDeploymentsRequest.newBuilder() @@ -242,6 +254,8 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * ListDeploymentsRequest request = * ListDeploymentsRequest.newBuilder() @@ -273,6 +287,8 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * ListDeploymentsRequest request = * ListDeploymentsRequest.newBuilder() @@ -310,6 +326,8 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * DeploymentName name = * DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]"); @@ -335,6 +353,8 @@ public final Deployment getDeployment(DeploymentName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * String name = * DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]") @@ -360,6 +380,8 @@ public final Deployment getDeployment(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * GetDeploymentRequest request = * GetDeploymentRequest.newBuilder() @@ -386,6 +408,8 @@ public final Deployment getDeployment(GetDeploymentRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) { * GetDeploymentRequest request = * GetDeploymentRequest.newBuilder() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java index 914d0ef2f..bc57271bf 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -52,6 +52,8 @@ *For example, to set the total timeout of getDeployment to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * DeploymentsSettings.Builder deploymentsSettingsBuilder = DeploymentsSettings.newBuilder(); * deploymentsSettingsBuilder * .getDeploymentSettings() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java index ad57fce01..10566dc0d 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,6 +44,8 @@ * 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. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName name = * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]"); @@ -80,6 +82,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * EntityTypesSettings entityTypesSettings = * EntityTypesSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -90,6 +94,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * EntityTypesSettings entityTypesSettings = * EntityTypesSettings.newBuilder().setEndpoint(myEndpoint).build(); * EntityTypesClient entityTypesClient = EntityTypesClient.create(entityTypesSettings); @@ -156,6 +162,8 @@ public EntityTypesStub getStub() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) { @@ -183,6 +191,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) { @@ -207,6 +217,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * ListEntityTypesRequest request = * ListEntityTypesRequest.newBuilder() @@ -235,6 +247,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * ListEntityTypesRequest request = * ListEntityTypesRequest.newBuilder() @@ -264,6 +278,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * ListEntityTypesRequest request = * ListEntityTypesRequest.newBuilder() @@ -300,6 +316,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName name = * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]"); @@ -325,6 +343,8 @@ public final EntityType getEntityType(EntityTypeName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * String name = * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]").toString(); @@ -349,6 +369,8 @@ public final EntityType getEntityType(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * GetEntityTypeRequest request = * GetEntityTypeRequest.newBuilder() @@ -375,6 +397,8 @@ public final EntityType getEntityType(GetEntityTypeRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * GetEntityTypeRequest request = * GetEntityTypeRequest.newBuilder() @@ -403,6 +427,8 @@ public final UnaryCallablegetEntityTypeCallab * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * EntityType entityType = EntityType.newBuilder().build(); @@ -434,6 +460,8 @@ public final EntityType createEntityType(AgentName parent, EntityType entityType *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * EntityType entityType = EntityType.newBuilder().build(); @@ -462,6 +490,8 @@ public final EntityType createEntityType(String parent, EntityType entityType) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * CreateEntityTypeRequest request = * CreateEntityTypeRequest.newBuilder() @@ -490,6 +520,8 @@ public final EntityType createEntityType(CreateEntityTypeRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * CreateEntityTypeRequest request = * CreateEntityTypeRequest.newBuilder() @@ -518,6 +550,8 @@ public final UnaryCallablecreateEntityType * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityType entityType = EntityType.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -548,6 +582,8 @@ public final EntityType updateEntityType(EntityType entityType, FieldMask update *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * UpdateEntityTypeRequest request = * UpdateEntityTypeRequest.newBuilder() @@ -576,6 +612,8 @@ public final EntityType updateEntityType(UpdateEntityTypeRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * UpdateEntityTypeRequest request = * UpdateEntityTypeRequest.newBuilder() @@ -604,6 +642,8 @@ public final UnaryCallableupdateEntityType * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName name = * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]"); @@ -632,6 +672,8 @@ public final void deleteEntityType(EntityTypeName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * String name = * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]").toString(); @@ -659,6 +701,8 @@ public final void deleteEntityType(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * DeleteEntityTypeRequest request = * DeleteEntityTypeRequest.newBuilder() @@ -688,6 +732,8 @@ public final void deleteEntityType(DeleteEntityTypeRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * DeleteEntityTypeRequest request = * DeleteEntityTypeRequest.newBuilder() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java index cd4a17eea..d64e6c08e 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,6 +53,8 @@ *For example, to set the total timeout of getEntityType to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * EntityTypesSettings.Builder entityTypesSettingsBuilder = EntityTypesSettings.newBuilder(); * entityTypesSettingsBuilder * .getEntityTypeSettings() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java index 034a4ce42..90841eb35 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,6 +49,8 @@ * 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. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * EnvironmentName name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -85,6 +87,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * EnvironmentsSettings environmentsSettings = * EnvironmentsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -95,6 +99,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * EnvironmentsSettings environmentsSettings = * EnvironmentsSettings.newBuilder().setEndpoint(myEndpoint).build(); * EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); @@ -173,6 +179,8 @@ public final OperationsClient getOperationsClient() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * for (Environment element : environmentsClient.listEnvironments(parent).iterateAll()) { @@ -202,6 +210,8 @@ public final ListEnvironmentsPagedResponse listEnvironments(AgentName parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * for (Environment element : environmentsClient.listEnvironments(parent).iterateAll()) { @@ -229,6 +239,8 @@ public final ListEnvironmentsPagedResponse listEnvironments(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListEnvironmentsRequest request = * ListEnvironmentsRequest.newBuilder() @@ -257,6 +269,8 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListEnvironmentsRequest request = * ListEnvironmentsRequest.newBuilder() @@ -286,6 +300,8 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListEnvironmentsRequest request = * ListEnvironmentsRequest.newBuilder() @@ -321,6 +337,8 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * EnvironmentName name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -346,6 +364,8 @@ public final Environment getEnvironment(EnvironmentName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * String name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -370,6 +390,8 @@ public final Environment getEnvironment(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * GetEnvironmentRequest request = * GetEnvironmentRequest.newBuilder() @@ -395,6 +417,8 @@ public final Environment getEnvironment(GetEnvironmentRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * GetEnvironmentRequest request = * GetEnvironmentRequest.newBuilder() @@ -429,6 +453,8 @@ public final UnaryCallablegetEnvironmentCal * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * Environment environment = Environment.newBuilder().build(); @@ -468,6 +494,8 @@ public final OperationFuturecreateEnvironmentAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * Environment environment = Environment.newBuilder().build(); @@ -504,6 +532,8 @@ public final OperationFuturecreateEnvironmentAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * CreateEnvironmentRequest request = * CreateEnvironmentRequest.newBuilder() @@ -538,6 +568,8 @@ public final OperationFuturecreateEnvironmentAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * CreateEnvironmentRequest request = * CreateEnvironmentRequest.newBuilder() @@ -572,6 +604,8 @@ public final OperationFuturecreateEnvironmentAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * CreateEnvironmentRequest request = * CreateEnvironmentRequest.newBuilder() @@ -604,6 +638,8 @@ public final UnaryCallablecreateEnvironmen * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * Environment environment = Environment.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -641,6 +677,8 @@ public final OperationFutureupdateEnvironmentAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * UpdateEnvironmentRequest request = * UpdateEnvironmentRequest.newBuilder() @@ -674,6 +712,8 @@ public final OperationFutureupdateEnvironmentAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * UpdateEnvironmentRequest request = * UpdateEnvironmentRequest.newBuilder() @@ -707,6 +747,8 @@ public final OperationFutureupdateEnvironmentAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * UpdateEnvironmentRequest request = * UpdateEnvironmentRequest.newBuilder() @@ -731,6 +773,8 @@ public final UnaryCallableupdateEnvironmen * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * EnvironmentName name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -758,6 +802,8 @@ public final void deleteEnvironment(EnvironmentName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * String name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -782,6 +828,8 @@ public final void deleteEnvironment(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * DeleteEnvironmentRequest request = * DeleteEnvironmentRequest.newBuilder() @@ -807,6 +855,8 @@ public final void deleteEnvironment(DeleteEnvironmentRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * DeleteEnvironmentRequest request = * DeleteEnvironmentRequest.newBuilder() @@ -831,6 +881,8 @@ public final UnaryCallabledeleteEnvironmentCal * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * EnvironmentName name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -861,6 +913,8 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * String name = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -888,6 +942,8 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory(Stri *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * LookupEnvironmentHistoryRequest request = * LookupEnvironmentHistoryRequest.newBuilder() @@ -919,6 +975,8 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * LookupEnvironmentHistoryRequest request = * LookupEnvironmentHistoryRequest.newBuilder() @@ -949,6 +1007,8 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * LookupEnvironmentHistoryRequest request = * LookupEnvironmentHistoryRequest.newBuilder() @@ -996,6 +1056,8 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * RunContinuousTestRequest request = * RunContinuousTestRequest.newBuilder() @@ -1032,6 +1094,8 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * RunContinuousTestRequest request = * RunContinuousTestRequest.newBuilder() @@ -1069,6 +1133,8 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * RunContinuousTestRequest request = * RunContinuousTestRequest.newBuilder() @@ -1094,6 +1160,8 @@ public final UnaryCallablerunContinuousTes * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * EnvironmentName parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -1125,6 +1193,8 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * String parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -1153,6 +1223,8 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults(St *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListContinuousTestResultsRequest request = * ListContinuousTestResultsRequest.newBuilder() @@ -1184,6 +1256,8 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListContinuousTestResultsRequest request = * ListContinuousTestResultsRequest.newBuilder() @@ -1215,6 +1289,8 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * ListContinuousTestResultsRequest request = * ListContinuousTestResultsRequest.newBuilder() @@ -1259,6 +1335,8 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * DeployFlowRequest request = * DeployFlowRequest.newBuilder() @@ -1295,6 +1373,8 @@ public final OperationFuturedeployFlowA * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * DeployFlowRequest request = * DeployFlowRequest.newBuilder() @@ -1331,6 +1411,8 @@ public final OperationFuturedeployFlowA * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) { * DeployFlowRequest request = * DeployFlowRequest.newBuilder() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java index 7ab0aaf86..cee4c6ccd 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,6 +58,8 @@ *For example, to set the total timeout of getEnvironment to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * EnvironmentsSettings.Builder environmentsSettingsBuilder = EnvironmentsSettings.newBuilder(); * environmentsSettingsBuilder * .getEnvironmentSettings() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java index 6051e1001..3710628b4 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,6 +44,8 @@ * 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. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ExperimentName name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]"); @@ -80,6 +82,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ExperimentsSettings experimentsSettings = * ExperimentsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -90,6 +94,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ExperimentsSettings experimentsSettings = * ExperimentsSettings.newBuilder().setEndpoint(myEndpoint).build(); * ExperimentsClient experimentsClient = ExperimentsClient.create(experimentsSettings); @@ -157,6 +163,8 @@ public ExperimentsStub getStub() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * EnvironmentName parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -187,6 +195,8 @@ public final ListExperimentsPagedResponse listExperiments(EnvironmentName parent *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * String parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -214,6 +224,8 @@ public final ListExperimentsPagedResponse listExperiments(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ListExperimentsRequest request = * ListExperimentsRequest.newBuilder() @@ -244,6 +256,8 @@ public final ListExperimentsPagedResponse listExperiments(ListExperimentsRequest *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ListExperimentsRequest request = * ListExperimentsRequest.newBuilder() @@ -275,6 +289,8 @@ public final ListExperimentsPagedResponse listExperiments(ListExperimentsRequest *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ListExperimentsRequest request = * ListExperimentsRequest.newBuilder() @@ -312,6 +328,8 @@ public final ListExperimentsPagedResponse listExperiments(ListExperimentsRequest *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ExperimentName name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]"); @@ -337,6 +355,8 @@ public final Experiment getExperiment(ExperimentName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * String name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]") @@ -362,6 +382,8 @@ public final Experiment getExperiment(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * GetExperimentRequest request = * GetExperimentRequest.newBuilder() @@ -388,6 +410,8 @@ public final Experiment getExperiment(GetExperimentRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * GetExperimentRequest request = * GetExperimentRequest.newBuilder() @@ -414,6 +438,8 @@ public final UnaryCallablegetExperimentCallab * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * EnvironmentName parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); @@ -446,6 +472,8 @@ public final Experiment createExperiment(EnvironmentName parent, Experiment expe *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * String parent = * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString(); @@ -475,6 +503,8 @@ public final Experiment createExperiment(String parent, Experiment experiment) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * CreateExperimentRequest request = * CreateExperimentRequest.newBuilder() @@ -502,6 +532,8 @@ public final Experiment createExperiment(CreateExperimentRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * CreateExperimentRequest request = * CreateExperimentRequest.newBuilder() @@ -528,6 +560,8 @@ public final UnaryCallablecreateExperiment * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * Experiment experiment = Experiment.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -555,6 +589,8 @@ public final Experiment updateExperiment(Experiment experiment, FieldMask update *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * UpdateExperimentRequest request = * UpdateExperimentRequest.newBuilder() @@ -579,6 +615,8 @@ public final Experiment updateExperiment(UpdateExperimentRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * UpdateExperimentRequest request = * UpdateExperimentRequest.newBuilder() @@ -603,6 +641,8 @@ public final UnaryCallableupdateExperiment * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ExperimentName name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]"); @@ -629,6 +669,8 @@ public final void deleteExperiment(ExperimentName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * String name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]") @@ -655,6 +697,8 @@ public final void deleteExperiment(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * DeleteExperimentRequest request = * DeleteExperimentRequest.newBuilder() @@ -681,6 +725,8 @@ public final void deleteExperiment(DeleteExperimentRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * DeleteExperimentRequest request = * DeleteExperimentRequest.newBuilder() @@ -707,6 +753,8 @@ public final UnaryCallabledeleteExperimentCalla * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ExperimentName name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]"); @@ -733,6 +781,8 @@ public final Experiment startExperiment(ExperimentName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * String name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]") @@ -759,6 +809,8 @@ public final Experiment startExperiment(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * StartExperimentRequest request = * StartExperimentRequest.newBuilder() @@ -786,6 +838,8 @@ public final Experiment startExperiment(StartExperimentRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * StartExperimentRequest request = * StartExperimentRequest.newBuilder() @@ -813,6 +867,8 @@ public final UnaryCallablestartExperimentCa * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * ExperimentName name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]"); @@ -839,6 +895,8 @@ public final Experiment stopExperiment(ExperimentName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * String name = * ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]") @@ -865,6 +923,8 @@ public final Experiment stopExperiment(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * StopExperimentRequest request = * StopExperimentRequest.newBuilder() @@ -892,6 +952,8 @@ public final Experiment stopExperiment(StopExperimentRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) { * StopExperimentRequest request = * StopExperimentRequest.newBuilder() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsSettings.java index abf7ed7cf..391aa9276 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,6 +53,8 @@ *For example, to set the total timeout of getExperiment to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ExperimentsSettings.Builder experimentsSettingsBuilder = ExperimentsSettings.newBuilder(); * experimentsSettingsBuilder * .getExperimentSettings() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java index c85fde22b..fbcf8a56b 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,6 +48,8 @@ * 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. * try (FlowsClient flowsClient = FlowsClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * Flow flow = Flow.newBuilder().build(); @@ -84,6 +86,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * FlowsSettings flowsSettings = * FlowsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -94,6 +98,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * FlowsSettings flowsSettings = FlowsSettings.newBuilder().setEndpoint(myEndpoint).build(); * FlowsClient flowsClient = FlowsClient.create(flowsSettings); * }@@ -172,6 +178,8 @@ public final OperationsClient getOperationsClient() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * Flow flow = Flow.newBuilder().build(); @@ -203,6 +211,8 @@ public final Flow createFlow(AgentName parent, Flow flow) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * Flow flow = Flow.newBuilder().build(); @@ -231,6 +241,8 @@ public final Flow createFlow(String parent, Flow flow) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * CreateFlowRequest request = * CreateFlowRequest.newBuilder() @@ -259,6 +271,8 @@ public final Flow createFlow(CreateFlowRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * CreateFlowRequest request = * CreateFlowRequest.newBuilder() @@ -283,6 +297,8 @@ public final UnaryCallablecreateFlowCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * FlowName name = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"); * flowsClient.deleteFlow(name); @@ -306,6 +322,8 @@ public final void deleteFlow(FlowName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * String name = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString(); * flowsClient.deleteFlow(name); @@ -328,6 +346,8 @@ public final void deleteFlow(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * DeleteFlowRequest request = * DeleteFlowRequest.newBuilder() @@ -352,6 +372,8 @@ public final void deleteFlow(DeleteFlowRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * DeleteFlowRequest request = * DeleteFlowRequest.newBuilder() @@ -375,6 +397,8 @@ public final UnaryCallabledeleteFlowCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * for (Flow element : flowsClient.listFlows(parent).iterateAll()) { @@ -400,6 +424,8 @@ public final ListFlowsPagedResponse listFlows(AgentName parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * for (Flow element : flowsClient.listFlows(parent).iterateAll()) { @@ -424,6 +450,8 @@ public final ListFlowsPagedResponse listFlows(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * ListFlowsRequest request = * ListFlowsRequest.newBuilder() @@ -452,6 +480,8 @@ public final ListFlowsPagedResponse listFlows(ListFlowsRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * ListFlowsRequest request = * ListFlowsRequest.newBuilder() @@ -479,6 +509,8 @@ public final UnaryCallablelistFlowsPa * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * ListFlowsRequest request = * ListFlowsRequest.newBuilder() @@ -513,6 +545,8 @@ public final UnaryCallablelistFlowsCallabl * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * FlowName name = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"); * Flow response = flowsClient.getFlow(name); @@ -536,6 +570,8 @@ public final Flow getFlow(FlowName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * String name = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString(); * Flow response = flowsClient.getFlow(name); @@ -558,6 +594,8 @@ public final Flow getFlow(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * GetFlowRequest request = * GetFlowRequest.newBuilder() @@ -582,6 +620,8 @@ public final Flow getFlow(GetFlowRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * GetFlowRequest request = * GetFlowRequest.newBuilder() @@ -608,6 +648,8 @@ public final UnaryCallablegetFlowCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * Flow flow = Flow.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -636,6 +678,8 @@ public final Flow updateFlow(Flow flow, FieldMask updateMask) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * UpdateFlowRequest request = * UpdateFlowRequest.newBuilder() @@ -664,6 +708,8 @@ public final Flow updateFlow(UpdateFlowRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * UpdateFlowRequest request = * UpdateFlowRequest.newBuilder() @@ -700,6 +746,8 @@ public final UnaryCallableupdateFlowCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * FlowName name = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"); * flowsClient.trainFlowAsync(name).get(); @@ -735,6 +783,8 @@ public final OperationFuturetrainFlowAsync(FlowName name) { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * String name = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString(); * flowsClient.trainFlowAsync(name).get(); @@ -769,6 +819,8 @@ public final OperationFuturetrainFlowAsync(String name) { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * TrainFlowRequest request = * TrainFlowRequest.newBuilder() @@ -804,6 +856,8 @@ public final OperationFuturetrainFlowAsync(TrainFlowRequest requ * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * TrainFlowRequest request = * TrainFlowRequest.newBuilder() @@ -839,6 +893,8 @@ public final OperationCallabletrainFlowOperati * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * TrainFlowRequest request = * TrainFlowRequest.newBuilder() @@ -862,6 +918,8 @@ public final UnaryCallabletrainFlowCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * ValidateFlowRequest request = * ValidateFlowRequest.newBuilder() @@ -887,6 +945,8 @@ public final FlowValidationResult validateFlow(ValidateFlowRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * ValidateFlowRequest request = * ValidateFlowRequest.newBuilder() @@ -912,6 +972,8 @@ public final UnaryCallablevalidateFl * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * FlowValidationResultName name = * FlowValidationResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"); @@ -940,6 +1002,8 @@ public final FlowValidationResult getFlowValidationResult(FlowValidationResultNa *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * String name = * FlowValidationResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString(); @@ -966,6 +1030,8 @@ public final FlowValidationResult getFlowValidationResult(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * GetFlowValidationResultRequest request = * GetFlowValidationResultRequest.newBuilder() @@ -994,6 +1060,8 @@ public final FlowValidationResult getFlowValidationResult( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * GetFlowValidationResultRequest request = * GetFlowValidationResultRequest.newBuilder() @@ -1032,6 +1100,8 @@ public final FlowValidationResult getFlowValidationResult( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * ImportFlowRequest request = * ImportFlowRequest.newBuilder() @@ -1067,6 +1137,8 @@ public final OperationFutureimportFlowAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * ImportFlowRequest request = * ImportFlowRequest.newBuilder() @@ -1102,6 +1174,8 @@ public final OperationFutureimportFlowAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * ImportFlowRequest request = * ImportFlowRequest.newBuilder() @@ -1135,6 +1209,8 @@ public final UnaryCallableimportFlowCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * ExportFlowRequest request = * ExportFlowRequest.newBuilder() @@ -1172,6 +1248,8 @@ public final OperationFutureexportFlowAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * ExportFlowRequest request = * ExportFlowRequest.newBuilder() @@ -1209,6 +1287,8 @@ public final OperationFutureexportFlowAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (FlowsClient flowsClient = FlowsClient.create()) { * ExportFlowRequest request = * ExportFlowRequest.newBuilder() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsSettings.java index a2f91736d..63b71b901 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -56,6 +56,8 @@ *For example, to set the total timeout of createFlow to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * FlowsSettings.Builder flowsSettingsBuilder = FlowsSettings.newBuilder(); * flowsSettingsBuilder * .createFlowSettings() diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java index 6f93919f1..585f02568 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,6 +43,8 @@ * 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. * try (IntentsClient intentsClient = IntentsClient.create()) { * IntentName name = IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]"); * Intent response = intentsClient.getIntent(name); @@ -78,6 +80,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * IntentsSettings intentsSettings = * IntentsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -88,6 +92,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * IntentsSettings intentsSettings = IntentsSettings.newBuilder().setEndpoint(myEndpoint).build(); * IntentsClient intentsClient = IntentsClient.create(intentsSettings); * }@@ -152,6 +158,8 @@ public IntentsStub getStub() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (IntentsClient intentsClient = IntentsClient.create()) { * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); * for (Intent element : intentsClient.listIntents(parent).iterateAll()) { @@ -179,6 +187,8 @@ public final ListIntentsPagedResponse listIntents(AgentName parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (IntentsClient intentsClient = IntentsClient.create()) { * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); * for (Intent element : intentsClient.listIntents(parent).iterateAll()) { @@ -203,6 +213,8 @@ public final ListIntentsPagedResponse listIntents(String parent) { *