diff --git a/java-deploy/README.md b/java-deploy/README.md index 68f084c0229c..a6480a6a904a 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-deploy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java index 3f7e944f14c8..e8c7af8999bf 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java @@ -73,862 +73,863 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListDeliveryPipelines

ListDeliveryPipelines

Lists DeliveryPipelines in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDeliveryPipelines(ListDeliveryPipelinesRequest request) + *
  • listDeliveryPipelines(ListDeliveryPipelinesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDeliveryPipelines(LocationName parent) - *
  • listDeliveryPipelines(String parent) + *
  • listDeliveryPipelines(LocationName parent) + *

  • listDeliveryPipelines(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDeliveryPipelinesPagedCallable() - *
  • listDeliveryPipelinesCallable() + *
  • listDeliveryPipelinesPagedCallable() + *

  • listDeliveryPipelinesCallable() *

*
GetDeliveryPipeline

GetDeliveryPipeline

Gets details of a single DeliveryPipeline.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDeliveryPipeline(GetDeliveryPipelineRequest request) + *
  • getDeliveryPipeline(GetDeliveryPipelineRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDeliveryPipeline(DeliveryPipelineName name) - *
  • getDeliveryPipeline(String name) + *
  • getDeliveryPipeline(DeliveryPipelineName name) + *

  • getDeliveryPipeline(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDeliveryPipelineCallable() + *
  • getDeliveryPipelineCallable() *

*
CreateDeliveryPipeline

CreateDeliveryPipeline

Creates a new DeliveryPipeline in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createDeliveryPipelineAsync(CreateDeliveryPipelineRequest request) + *
  • createDeliveryPipelineAsync(CreateDeliveryPipelineRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createDeliveryPipelineAsync(LocationName parent, DeliveryPipeline deliveryPipeline, String deliveryPipelineId) - *
  • createDeliveryPipelineAsync(String parent, DeliveryPipeline deliveryPipeline, String deliveryPipelineId) + *
  • createDeliveryPipelineAsync(LocationName parent, DeliveryPipeline deliveryPipeline, String deliveryPipelineId) + *

  • createDeliveryPipelineAsync(String parent, DeliveryPipeline deliveryPipeline, String deliveryPipelineId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createDeliveryPipelineOperationCallable() - *
  • createDeliveryPipelineCallable() + *
  • createDeliveryPipelineOperationCallable() + *

  • createDeliveryPipelineCallable() *

*
UpdateDeliveryPipeline

UpdateDeliveryPipeline

Updates the parameters of a single DeliveryPipeline.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateDeliveryPipelineAsync(UpdateDeliveryPipelineRequest request) + *
  • updateDeliveryPipelineAsync(UpdateDeliveryPipelineRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateDeliveryPipelineAsync(DeliveryPipeline deliveryPipeline, FieldMask updateMask) + *
  • updateDeliveryPipelineAsync(DeliveryPipeline deliveryPipeline, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateDeliveryPipelineOperationCallable() - *
  • updateDeliveryPipelineCallable() + *
  • updateDeliveryPipelineOperationCallable() + *

  • updateDeliveryPipelineCallable() *

*
DeleteDeliveryPipeline

DeleteDeliveryPipeline

Deletes a single DeliveryPipeline.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteDeliveryPipelineAsync(DeleteDeliveryPipelineRequest request) + *
  • deleteDeliveryPipelineAsync(DeleteDeliveryPipelineRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteDeliveryPipelineAsync(DeliveryPipelineName name) - *
  • deleteDeliveryPipelineAsync(String name) + *
  • deleteDeliveryPipelineAsync(DeliveryPipelineName name) + *

  • deleteDeliveryPipelineAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteDeliveryPipelineOperationCallable() - *
  • deleteDeliveryPipelineCallable() + *
  • deleteDeliveryPipelineOperationCallable() + *

  • deleteDeliveryPipelineCallable() *

*
ListTargets

ListTargets

Lists Targets in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTargets(ListTargetsRequest request) + *
  • listTargets(ListTargetsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTargets(LocationName parent) - *
  • listTargets(String parent) + *
  • listTargets(LocationName parent) + *

  • listTargets(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTargetsPagedCallable() - *
  • listTargetsCallable() + *
  • listTargetsPagedCallable() + *

  • listTargetsCallable() *

*
RollbackTarget

RollbackTarget

Creates a `Rollout` to roll back the specified target.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • rollbackTarget(RollbackTargetRequest request) + *
  • rollbackTarget(RollbackTargetRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • rollbackTarget(DeliveryPipelineName name, String targetId, String rolloutId) - *
  • rollbackTarget(String name, String targetId, String rolloutId) + *
  • rollbackTarget(DeliveryPipelineName name, String targetId, String rolloutId) + *

  • rollbackTarget(String name, String targetId, String rolloutId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • rollbackTargetCallable() + *
  • rollbackTargetCallable() *

*
GetTarget

GetTarget

Gets details of a single Target.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTarget(GetTargetRequest request) + *
  • getTarget(GetTargetRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTarget(TargetName name) - *
  • getTarget(String name) + *
  • getTarget(TargetName name) + *

  • getTarget(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTargetCallable() + *
  • getTargetCallable() *

*
CreateTarget

CreateTarget

Creates a new Target in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createTargetAsync(CreateTargetRequest request) + *
  • createTargetAsync(CreateTargetRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createTargetAsync(LocationName parent, Target target, String targetId) - *
  • createTargetAsync(String parent, Target target, String targetId) + *
  • createTargetAsync(LocationName parent, Target target, String targetId) + *

  • createTargetAsync(String parent, Target target, String targetId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createTargetOperationCallable() - *
  • createTargetCallable() + *
  • createTargetOperationCallable() + *

  • createTargetCallable() *

*
UpdateTarget

UpdateTarget

Updates the parameters of a single Target.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateTargetAsync(UpdateTargetRequest request) + *
  • updateTargetAsync(UpdateTargetRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateTargetAsync(Target target, FieldMask updateMask) + *
  • updateTargetAsync(Target target, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateTargetOperationCallable() - *
  • updateTargetCallable() + *
  • updateTargetOperationCallable() + *

  • updateTargetCallable() *

*
DeleteTarget

DeleteTarget

Deletes a single Target.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteTargetAsync(DeleteTargetRequest request) + *
  • deleteTargetAsync(DeleteTargetRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteTargetAsync(TargetName name) - *
  • deleteTargetAsync(String name) + *
  • deleteTargetAsync(TargetName name) + *

  • deleteTargetAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteTargetOperationCallable() - *
  • deleteTargetCallable() + *
  • deleteTargetOperationCallable() + *

  • deleteTargetCallable() *

*
ListCustomTargetTypes

ListCustomTargetTypes

Lists CustomTargetTypes in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listCustomTargetTypes(ListCustomTargetTypesRequest request) + *
  • listCustomTargetTypes(ListCustomTargetTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listCustomTargetTypes(LocationName parent) - *
  • listCustomTargetTypes(String parent) + *
  • listCustomTargetTypes(LocationName parent) + *

  • listCustomTargetTypes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listCustomTargetTypesPagedCallable() - *
  • listCustomTargetTypesCallable() + *
  • listCustomTargetTypesPagedCallable() + *

  • listCustomTargetTypesCallable() *

*
GetCustomTargetType

GetCustomTargetType

Gets details of a single CustomTargetType.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getCustomTargetType(GetCustomTargetTypeRequest request) + *
  • getCustomTargetType(GetCustomTargetTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getCustomTargetType(CustomTargetTypeName name) - *
  • getCustomTargetType(String name) + *
  • getCustomTargetType(CustomTargetTypeName name) + *

  • getCustomTargetType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getCustomTargetTypeCallable() + *
  • getCustomTargetTypeCallable() *

*
CreateCustomTargetType

CreateCustomTargetType

Creates a new CustomTargetType in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createCustomTargetTypeAsync(CreateCustomTargetTypeRequest request) + *
  • createCustomTargetTypeAsync(CreateCustomTargetTypeRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createCustomTargetTypeAsync(LocationName parent, CustomTargetType customTargetType, String customTargetTypeId) - *
  • createCustomTargetTypeAsync(String parent, CustomTargetType customTargetType, String customTargetTypeId) + *
  • createCustomTargetTypeAsync(LocationName parent, CustomTargetType customTargetType, String customTargetTypeId) + *

  • createCustomTargetTypeAsync(String parent, CustomTargetType customTargetType, String customTargetTypeId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createCustomTargetTypeOperationCallable() - *
  • createCustomTargetTypeCallable() + *
  • createCustomTargetTypeOperationCallable() + *

  • createCustomTargetTypeCallable() *

*
UpdateCustomTargetType

UpdateCustomTargetType

Updates a single CustomTargetType.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateCustomTargetTypeAsync(UpdateCustomTargetTypeRequest request) + *
  • updateCustomTargetTypeAsync(UpdateCustomTargetTypeRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateCustomTargetTypeAsync(CustomTargetType customTargetType, FieldMask updateMask) + *
  • updateCustomTargetTypeAsync(CustomTargetType customTargetType, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateCustomTargetTypeOperationCallable() - *
  • updateCustomTargetTypeCallable() + *
  • updateCustomTargetTypeOperationCallable() + *

  • updateCustomTargetTypeCallable() *

*
DeleteCustomTargetType

DeleteCustomTargetType

Deletes a single CustomTargetType.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteCustomTargetTypeAsync(DeleteCustomTargetTypeRequest request) + *
  • deleteCustomTargetTypeAsync(DeleteCustomTargetTypeRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteCustomTargetTypeAsync(CustomTargetTypeName name) - *
  • deleteCustomTargetTypeAsync(String name) + *
  • deleteCustomTargetTypeAsync(CustomTargetTypeName name) + *

  • deleteCustomTargetTypeAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteCustomTargetTypeOperationCallable() - *
  • deleteCustomTargetTypeCallable() + *
  • deleteCustomTargetTypeOperationCallable() + *

  • deleteCustomTargetTypeCallable() *

*
ListReleases

ListReleases

Lists Releases in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listReleases(ListReleasesRequest request) + *
  • listReleases(ListReleasesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listReleases(DeliveryPipelineName parent) - *
  • listReleases(String parent) + *
  • listReleases(DeliveryPipelineName parent) + *

  • listReleases(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listReleasesPagedCallable() - *
  • listReleasesCallable() + *
  • listReleasesPagedCallable() + *

  • listReleasesCallable() *

*
GetRelease

GetRelease

Gets details of a single Release.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getRelease(GetReleaseRequest request) + *
  • getRelease(GetReleaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getRelease(ReleaseName name) - *
  • getRelease(String name) + *
  • getRelease(ReleaseName name) + *

  • getRelease(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getReleaseCallable() + *
  • getReleaseCallable() *

*
CreateRelease

CreateRelease

Creates a new Release in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createReleaseAsync(CreateReleaseRequest request) + *
  • createReleaseAsync(CreateReleaseRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createReleaseAsync(DeliveryPipelineName parent, Release release, String releaseId) - *
  • createReleaseAsync(String parent, Release release, String releaseId) + *
  • createReleaseAsync(DeliveryPipelineName parent, Release release, String releaseId) + *

  • createReleaseAsync(String parent, Release release, String releaseId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createReleaseOperationCallable() - *
  • createReleaseCallable() + *
  • createReleaseOperationCallable() + *

  • createReleaseCallable() *

*
AbandonRelease

AbandonRelease

Abandons a Release in the Delivery Pipeline.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • abandonRelease(AbandonReleaseRequest request) + *
  • abandonRelease(AbandonReleaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • abandonRelease(ReleaseName name) - *
  • abandonRelease(String name) + *
  • abandonRelease(ReleaseName name) + *

  • abandonRelease(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • abandonReleaseCallable() + *
  • abandonReleaseCallable() *

*
ApproveRollout

ApproveRollout

Approves a Rollout.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • approveRollout(ApproveRolloutRequest request) + *
  • approveRollout(ApproveRolloutRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • approveRollout(RolloutName name) - *
  • approveRollout(String name) + *
  • approveRollout(RolloutName name) + *

  • approveRollout(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • approveRolloutCallable() + *
  • approveRolloutCallable() *

*
AdvanceRollout

AdvanceRollout

Advances a Rollout in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • advanceRollout(AdvanceRolloutRequest request) + *
  • advanceRollout(AdvanceRolloutRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • advanceRollout(RolloutName name, String phaseId) - *
  • advanceRollout(String name, String phaseId) + *
  • advanceRollout(RolloutName name, String phaseId) + *

  • advanceRollout(String name, String phaseId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • advanceRolloutCallable() + *
  • advanceRolloutCallable() *

*
CancelRollout

CancelRollout

Cancels a Rollout in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • cancelRollout(CancelRolloutRequest request) + *
  • cancelRollout(CancelRolloutRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • cancelRollout(RolloutName name) - *
  • cancelRollout(String name) + *
  • cancelRollout(RolloutName name) + *

  • cancelRollout(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • cancelRolloutCallable() + *
  • cancelRolloutCallable() *

*
ListRollouts

ListRollouts

Lists Rollouts in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listRollouts(ListRolloutsRequest request) + *
  • listRollouts(ListRolloutsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listRollouts(ReleaseName parent) - *
  • listRollouts(String parent) + *
  • listRollouts(ReleaseName parent) + *

  • listRollouts(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listRolloutsPagedCallable() - *
  • listRolloutsCallable() + *
  • listRolloutsPagedCallable() + *

  • listRolloutsCallable() *

*
GetRollout

GetRollout

Gets details of a single Rollout.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getRollout(GetRolloutRequest request) + *
  • getRollout(GetRolloutRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getRollout(RolloutName name) - *
  • getRollout(String name) + *
  • getRollout(RolloutName name) + *

  • getRollout(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getRolloutCallable() + *
  • getRolloutCallable() *

*
CreateRollout

CreateRollout

Creates a new Rollout in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createRolloutAsync(CreateRolloutRequest request) + *
  • createRolloutAsync(CreateRolloutRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createRolloutAsync(ReleaseName parent, Rollout rollout, String rolloutId) - *
  • createRolloutAsync(String parent, Rollout rollout, String rolloutId) + *
  • createRolloutAsync(ReleaseName parent, Rollout rollout, String rolloutId) + *

  • createRolloutAsync(String parent, Rollout rollout, String rolloutId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createRolloutOperationCallable() - *
  • createRolloutCallable() + *
  • createRolloutOperationCallable() + *

  • createRolloutCallable() *

*
IgnoreJob

IgnoreJob

Ignores the specified Job in a Rollout.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • ignoreJob(IgnoreJobRequest request) + *
  • ignoreJob(IgnoreJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • ignoreJob(RolloutName rollout, String phaseId, String jobId) - *
  • ignoreJob(String rollout, String phaseId, String jobId) + *
  • ignoreJob(RolloutName rollout, String phaseId, String jobId) + *

  • ignoreJob(String rollout, String phaseId, String jobId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • ignoreJobCallable() + *
  • ignoreJobCallable() *

*
RetryJob

RetryJob

Retries the specified Job in a Rollout.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • retryJob(RetryJobRequest request) + *
  • retryJob(RetryJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • retryJob(RolloutName rollout, String phaseId, String jobId) - *
  • retryJob(String rollout, String phaseId, String jobId) + *
  • retryJob(RolloutName rollout, String phaseId, String jobId) + *

  • retryJob(String rollout, String phaseId, String jobId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • retryJobCallable() + *
  • retryJobCallable() *

*
ListJobRuns

ListJobRuns

Lists JobRuns in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listJobRuns(ListJobRunsRequest request) + *
  • listJobRuns(ListJobRunsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listJobRuns(RolloutName parent) - *
  • listJobRuns(String parent) + *
  • listJobRuns(RolloutName parent) + *

  • listJobRuns(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listJobRunsPagedCallable() - *
  • listJobRunsCallable() + *
  • listJobRunsPagedCallable() + *

  • listJobRunsCallable() *

*
GetJobRun

GetJobRun

Gets details of a single JobRun.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getJobRun(GetJobRunRequest request) + *
  • getJobRun(GetJobRunRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getJobRun(JobRunName name) - *
  • getJobRun(String name) + *
  • getJobRun(JobRunName name) + *

  • getJobRun(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getJobRunCallable() + *
  • getJobRunCallable() *

*
TerminateJobRun

TerminateJobRun

Terminates a Job Run in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • terminateJobRun(TerminateJobRunRequest request) + *
  • terminateJobRun(TerminateJobRunRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • terminateJobRun(JobRunName name) - *
  • terminateJobRun(String name) + *
  • terminateJobRun(JobRunName name) + *

  • terminateJobRun(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • terminateJobRunCallable() + *
  • terminateJobRunCallable() *

*
GetConfig

GetConfig

Gets the configuration for a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getConfig(GetConfigRequest request) + *
  • getConfig(GetConfigRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getConfig(ConfigName name) - *
  • getConfig(String name) + *
  • getConfig(ConfigName name) + *

  • getConfig(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getConfigCallable() + *
  • getConfigCallable() *

*
CreateAutomation

CreateAutomation

Creates a new Automation in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createAutomationAsync(CreateAutomationRequest request) + *
  • createAutomationAsync(CreateAutomationRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createAutomationAsync(DeliveryPipelineName parent, Automation automation, String automationId) - *
  • createAutomationAsync(String parent, Automation automation, String automationId) + *
  • createAutomationAsync(DeliveryPipelineName parent, Automation automation, String automationId) + *

  • createAutomationAsync(String parent, Automation automation, String automationId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createAutomationOperationCallable() - *
  • createAutomationCallable() + *
  • createAutomationOperationCallable() + *

  • createAutomationCallable() *

*
UpdateAutomation

UpdateAutomation

Updates the parameters of a single Automation resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateAutomationAsync(UpdateAutomationRequest request) + *
  • updateAutomationAsync(UpdateAutomationRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateAutomationAsync(Automation automation, FieldMask updateMask) + *
  • updateAutomationAsync(Automation automation, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateAutomationOperationCallable() - *
  • updateAutomationCallable() + *
  • updateAutomationOperationCallable() + *

  • updateAutomationCallable() *

*
DeleteAutomation

DeleteAutomation

Deletes a single Automation resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAutomationAsync(DeleteAutomationRequest request) + *
  • deleteAutomationAsync(DeleteAutomationRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteAutomationAsync(AutomationName name) - *
  • deleteAutomationAsync(String name) + *
  • deleteAutomationAsync(AutomationName name) + *

  • deleteAutomationAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAutomationOperationCallable() - *
  • deleteAutomationCallable() + *
  • deleteAutomationOperationCallable() + *

  • deleteAutomationCallable() *

*
GetAutomation

GetAutomation

Gets details of a single Automation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAutomation(GetAutomationRequest request) + *
  • getAutomation(GetAutomationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAutomation(AutomationName name) - *
  • getAutomation(String name) + *
  • getAutomation(AutomationName name) + *

  • getAutomation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAutomationCallable() + *
  • getAutomationCallable() *

*
ListAutomations

ListAutomations

Lists Automations in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAutomations(ListAutomationsRequest request) + *
  • listAutomations(ListAutomationsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAutomations(DeliveryPipelineName parent) - *
  • listAutomations(String parent) + *
  • listAutomations(DeliveryPipelineName parent) + *

  • listAutomations(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listAutomationsPagedCallable() - *
  • listAutomationsCallable() + *
  • listAutomationsPagedCallable() + *

  • listAutomationsCallable() *

*
GetAutomationRun

GetAutomationRun

Gets details of a single AutomationRun.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAutomationRun(GetAutomationRunRequest request) + *
  • getAutomationRun(GetAutomationRunRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAutomationRun(AutomationRunName name) - *
  • getAutomationRun(String name) + *
  • getAutomationRun(AutomationRunName name) + *

  • getAutomationRun(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAutomationRunCallable() + *
  • getAutomationRunCallable() *

*
ListAutomationRuns

ListAutomationRuns

Lists AutomationRuns in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAutomationRuns(ListAutomationRunsRequest request) + *
  • listAutomationRuns(ListAutomationRunsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAutomationRuns(DeliveryPipelineName parent) - *
  • listAutomationRuns(String parent) + *
  • listAutomationRuns(DeliveryPipelineName parent) + *

  • listAutomationRuns(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listAutomationRunsPagedCallable() - *
  • listAutomationRunsCallable() + *
  • listAutomationRunsPagedCallable() + *

  • listAutomationRunsCallable() *

*
CancelAutomationRun

CancelAutomationRun

Cancels an AutomationRun. The `state` of the `AutomationRun` after cancelling is `CANCELLED`. `CancelAutomationRun` can be called on AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun in a different state returns an `FAILED_PRECONDITION` error.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • cancelAutomationRun(CancelAutomationRunRequest request) + *
  • cancelAutomationRun(CancelAutomationRunRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • cancelAutomationRun(AutomationRunName name) - *
  • cancelAutomationRun(String name) + *
  • cancelAutomationRun(AutomationRunName name) + *

  • cancelAutomationRun(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • cancelAutomationRunCallable() + *
  • cancelAutomationRunCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
SetIamPolicy

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setIamPolicy(SetIamPolicyRequest request) + *
  • setIamPolicy(SetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setIamPolicyCallable() + *
  • setIamPolicyCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIamPolicy(GetIamPolicyRequest request) + *
  • getIamPolicy(GetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIamPolicyCallable() + *
  • getIamPolicyCallable() *

*
TestIamPermissions

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • testIamPermissions(TestIamPermissionsRequest request) + *
  • testIamPermissions(TestIamPermissionsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • testIamPermissionsCallable() + *
  • testIamPermissionsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java index c133c7dacb4b..1e03bcca2ea2 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java @@ -1164,6 +1164,15 @@ public CloudDeployStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -1740,7 +1749,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1753,7 +1761,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -2723,6 +2730,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public CloudDeployStubSettings build() throws IOException { return new CloudDeployStubSettings(this); diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 046f005a328b..4b0f137aab72 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java index 26a16715c334..faa8d44df7a6 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java @@ -67,126 +67,128 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListAgents

ListAgents

Returns the list of all agents in the specified location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAgents(ListAgentsRequest request) + *
  • listAgents(ListAgentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAgents(LocationName parent) - *
  • listAgents(String parent) + *
  • listAgents(LocationName parent) + *

  • listAgents(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listAgentsPagedCallable() - *
  • listAgentsCallable() + *
  • listAgentsPagedCallable() + *

  • listAgentsCallable() *

*
GetAgent

GetAgent

Retrieves the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAgent(GetAgentRequest request) + *
  • getAgent(GetAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAgent(AgentName name) - *
  • getAgent(String name) + *
  • getAgent(AgentName name) + *

  • getAgent(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAgentCallable() + *
  • getAgentCallable() *

*
CreateAgent

CreateAgent

Creates an agent in the specified location. *

Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createAgent(CreateAgentRequest request) + *
  • createAgent(CreateAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createAgent(LocationName parent, Agent agent) - *
  • createAgent(String parent, Agent agent) + *
  • createAgent(LocationName parent, Agent agent) + *

  • createAgent(String parent, Agent agent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createAgentCallable() + *
  • createAgentCallable() *

*
UpdateAgent

UpdateAgent

Updates the specified agent. *

Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateAgent(UpdateAgentRequest request) + *
  • updateAgent(UpdateAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateAgent(Agent agent, FieldMask updateMask) + *
  • updateAgent(Agent agent, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateAgentCallable() + *
  • updateAgentCallable() *

*
DeleteAgent

DeleteAgent

Deletes the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAgent(DeleteAgentRequest request) + *
  • deleteAgent(DeleteAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteAgent(AgentName name) - *
  • deleteAgent(String name) + *
  • deleteAgent(AgentName name) + *

  • deleteAgent(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAgentCallable() + *
  • deleteAgentCallable() *

*
ExportAgent

ExportAgent

Exports the specified agent to a binary file. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportAgentAsync(ExportAgentRequest request) + *
  • exportAgentAsync(ExportAgentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportAgentOperationCallable() - *
  • exportAgentCallable() + *
  • exportAgentOperationCallable() + *

  • exportAgentCallable() *

*
RestoreAgent

RestoreAgent

Restores the specified agent from a binary file. *

Replaces the current agent with a new one. Note that all existing resources in agent (e.g. intents, entity types, flows) will be removed. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: @@ -195,115 +197,114 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • restoreAgentAsync(RestoreAgentRequest request) + *
  • restoreAgentAsync(RestoreAgentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • restoreAgentOperationCallable() - *
  • restoreAgentCallable() + *
  • restoreAgentOperationCallable() + *

  • restoreAgentCallable() *

*
ValidateAgent

ValidateAgent

Validates the specified agent and creates or updates validation results. The agent in draft version is validated. Please call this API after the training is completed to get the complete validation results.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • validateAgent(ValidateAgentRequest request) + *
  • validateAgent(ValidateAgentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • validateAgentCallable() + *
  • validateAgentCallable() *

*
GetAgentValidationResult

GetAgentValidationResult

Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAgentValidationResult(GetAgentValidationResultRequest request) + *
  • getAgentValidationResult(GetAgentValidationResultRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAgentValidationResult(AgentValidationResultName name) - *
  • getAgentValidationResult(String name) + *
  • getAgentValidationResult(AgentValidationResultName name) + *

  • getAgentValidationResult(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAgentValidationResultCallable() + *
  • getAgentValidationResultCallable() *

*
GetGenerativeSettings

GetGenerativeSettings

Gets the generative settings for the agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getGenerativeSettings(GetGenerativeSettingsRequest request) + *
  • getGenerativeSettings(GetGenerativeSettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getGenerativeSettings(AgentGenerativeSettingsName name, String languageCode) - *
  • getGenerativeSettings(String name, String languageCode) + *
  • getGenerativeSettings(AgentGenerativeSettingsName name, String languageCode) + *

  • getGenerativeSettings(String name, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getGenerativeSettingsCallable() + *
  • getGenerativeSettingsCallable() *

*
UpdateGenerativeSettings

UpdateGenerativeSettings

Updates the generative settings for the agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateGenerativeSettings(UpdateGenerativeSettingsRequest request) + *
  • updateGenerativeSettings(UpdateGenerativeSettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateGenerativeSettings(GenerativeSettings generativeSettings, FieldMask updateMask) + *
  • updateGenerativeSettings(GenerativeSettings generativeSettings, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateGenerativeSettingsCallable() + *
  • updateGenerativeSettingsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java index 75f314ee0a7e..6b2b843e1750 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java @@ -59,79 +59,80 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListChangelogs

ListChangelogs

Returns the list of Changelogs.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listChangelogs(ListChangelogsRequest request) + *
  • listChangelogs(ListChangelogsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listChangelogs(AgentName parent) - *
  • listChangelogs(String parent) + *
  • listChangelogs(AgentName parent) + *

  • listChangelogs(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listChangelogsPagedCallable() - *
  • listChangelogsCallable() + *
  • listChangelogsPagedCallable() + *

  • listChangelogsCallable() *

*
GetChangelog

GetChangelog

Retrieves the specified Changelog.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getChangelog(GetChangelogRequest request) + *
  • getChangelog(GetChangelogRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getChangelog(ChangelogName name) - *
  • getChangelog(String name) + *
  • getChangelog(ChangelogName name) + *

  • getChangelog(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getChangelogCallable() + *
  • getChangelogCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java index 728d948fb558..11562929d9ef 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java @@ -61,79 +61,80 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListDeployments

ListDeployments

Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDeployments(ListDeploymentsRequest request) + *
  • listDeployments(ListDeploymentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDeployments(EnvironmentName parent) - *
  • listDeployments(String parent) + *
  • listDeployments(EnvironmentName parent) + *

  • listDeployments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDeploymentsPagedCallable() - *
  • listDeploymentsCallable() + *
  • listDeploymentsPagedCallable() + *

  • listDeploymentsCallable() *

*
GetDeployment

GetDeployment

Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDeployment(GetDeploymentRequest request) + *
  • getDeployment(GetDeploymentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDeployment(DeploymentName name) - *
  • getDeployment(String name) + *
  • getDeployment(DeploymentName name) + *

  • getDeployment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDeploymentCallable() + *
  • getDeploymentCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java index 95bd034c91d5..929943b2ce5b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java @@ -63,138 +63,139 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetEntityType

GetEntityType

Retrieves the specified entity type.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEntityType(GetEntityTypeRequest request) + *
  • getEntityType(GetEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getEntityType(EntityTypeName name) - *
  • getEntityType(String name) + *
  • getEntityType(EntityTypeName name) + *

  • getEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEntityTypeCallable() + *
  • getEntityTypeCallable() *

*
CreateEntityType

CreateEntityType

Creates an entity type in the specified agent. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createEntityType(CreateEntityTypeRequest request) + *
  • createEntityType(CreateEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createEntityType(AgentName parent, EntityType entityType) - *
  • createEntityType(String parent, EntityType entityType) + *
  • createEntityType(AgentName parent, EntityType entityType) + *

  • createEntityType(String parent, EntityType entityType) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createEntityTypeCallable() + *
  • createEntityTypeCallable() *

*
UpdateEntityType

UpdateEntityType

Updates the specified entity type. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateEntityType(UpdateEntityTypeRequest request) + *
  • updateEntityType(UpdateEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateEntityType(EntityType entityType, FieldMask updateMask) + *
  • updateEntityType(EntityType entityType, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateEntityTypeCallable() + *
  • updateEntityTypeCallable() *

*
DeleteEntityType

DeleteEntityType

Deletes the specified entity type. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteEntityType(DeleteEntityTypeRequest request) + *
  • deleteEntityType(DeleteEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteEntityType(EntityTypeName name) - *
  • deleteEntityType(String name) + *
  • deleteEntityType(EntityTypeName name) + *

  • deleteEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteEntityTypeCallable() + *
  • deleteEntityTypeCallable() *

*
ListEntityTypes

ListEntityTypes

Returns the list of all entity types in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEntityTypes(ListEntityTypesRequest request) + *
  • listEntityTypes(ListEntityTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEntityTypes(AgentName parent) - *
  • listEntityTypes(String parent) + *
  • listEntityTypes(AgentName parent) + *

  • listEntityTypes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listEntityTypesPagedCallable() - *
  • listEntityTypesCallable() + *
  • listEntityTypesPagedCallable() + *

  • listEntityTypesCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java index d66afc427f7b..a639ba919b0f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java @@ -69,215 +69,216 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListEnvironments

ListEnvironments

Returns the list of all environments in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEnvironments(ListEnvironmentsRequest request) + *
  • listEnvironments(ListEnvironmentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEnvironments(AgentName parent) - *
  • listEnvironments(String parent) + *
  • listEnvironments(AgentName parent) + *

  • listEnvironments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listEnvironmentsPagedCallable() - *
  • listEnvironmentsCallable() + *
  • listEnvironmentsPagedCallable() + *

  • listEnvironmentsCallable() *

*
GetEnvironment

GetEnvironment

Retrieves the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEnvironment(GetEnvironmentRequest request) + *
  • getEnvironment(GetEnvironmentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getEnvironment(EnvironmentName name) - *
  • getEnvironment(String name) + *
  • getEnvironment(EnvironmentName name) + *

  • getEnvironment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEnvironmentCallable() + *
  • getEnvironmentCallable() *

*
CreateEnvironment

CreateEnvironment

Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent]. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createEnvironmentAsync(CreateEnvironmentRequest request) + *
  • createEnvironmentAsync(CreateEnvironmentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createEnvironmentAsync(AgentName parent, Environment environment) - *
  • createEnvironmentAsync(String parent, Environment environment) + *
  • createEnvironmentAsync(AgentName parent, Environment environment) + *

  • createEnvironmentAsync(String parent, Environment environment) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createEnvironmentOperationCallable() - *
  • createEnvironmentCallable() + *
  • createEnvironmentOperationCallable() + *

  • createEnvironmentCallable() *

*
UpdateEnvironment

UpdateEnvironment

Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateEnvironmentAsync(UpdateEnvironmentRequest request) + *
  • updateEnvironmentAsync(UpdateEnvironmentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateEnvironmentAsync(Environment environment, FieldMask updateMask) + *
  • updateEnvironmentAsync(Environment environment, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateEnvironmentOperationCallable() - *
  • updateEnvironmentCallable() + *
  • updateEnvironmentOperationCallable() + *

  • updateEnvironmentCallable() *

*
DeleteEnvironment

DeleteEnvironment

Deletes the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteEnvironment(DeleteEnvironmentRequest request) + *
  • deleteEnvironment(DeleteEnvironmentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteEnvironment(EnvironmentName name) - *
  • deleteEnvironment(String name) + *
  • deleteEnvironment(EnvironmentName name) + *

  • deleteEnvironment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteEnvironmentCallable() + *
  • deleteEnvironmentCallable() *

*
LookupEnvironmentHistory

LookupEnvironmentHistory

Looks up the history of the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • lookupEnvironmentHistory(LookupEnvironmentHistoryRequest request) + *
  • lookupEnvironmentHistory(LookupEnvironmentHistoryRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • lookupEnvironmentHistory(EnvironmentName name) - *
  • lookupEnvironmentHistory(String name) + *
  • lookupEnvironmentHistory(EnvironmentName name) + *

  • lookupEnvironmentHistory(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • lookupEnvironmentHistoryPagedCallable() - *
  • lookupEnvironmentHistoryCallable() + *
  • lookupEnvironmentHistoryPagedCallable() + *

  • lookupEnvironmentHistoryCallable() *

*
RunContinuousTest

RunContinuousTest

Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata] - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • runContinuousTestAsync(RunContinuousTestRequest request) + *
  • runContinuousTestAsync(RunContinuousTestRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • runContinuousTestOperationCallable() - *
  • runContinuousTestCallable() + *
  • runContinuousTestOperationCallable() + *

  • runContinuousTestCallable() *

*
ListContinuousTestResults

ListContinuousTestResults

Fetches a list of continuous test results for a given environment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listContinuousTestResults(ListContinuousTestResultsRequest request) + *
  • listContinuousTestResults(ListContinuousTestResultsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listContinuousTestResults(EnvironmentName parent) - *
  • listContinuousTestResults(String parent) + *
  • listContinuousTestResults(EnvironmentName parent) + *

  • listContinuousTestResults(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listContinuousTestResultsPagedCallable() - *
  • listContinuousTestResultsCallable() + *
  • listContinuousTestResultsPagedCallable() + *

  • listContinuousTestResultsCallable() *

*
DeployFlow

DeployFlow

Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata] - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deployFlowAsync(DeployFlowRequest request) + *
  • deployFlowAsync(DeployFlowRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deployFlowOperationCallable() - *
  • deployFlowCallable() + *
  • deployFlowOperationCallable() + *

  • deployFlowCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java index f5d7a25ecbdc..6c4efaceb603 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java @@ -63,173 +63,174 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListExperiments

ListExperiments

Returns the list of all experiments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listExperiments(ListExperimentsRequest request) + *
  • listExperiments(ListExperimentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listExperiments(EnvironmentName parent) - *
  • listExperiments(String parent) + *
  • listExperiments(EnvironmentName parent) + *

  • listExperiments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listExperimentsPagedCallable() - *
  • listExperimentsCallable() + *
  • listExperimentsPagedCallable() + *

  • listExperimentsCallable() *

*
GetExperiment

GetExperiment

Retrieves the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getExperiment(GetExperimentRequest request) + *
  • getExperiment(GetExperimentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getExperiment(ExperimentName name) - *
  • getExperiment(String name) + *
  • getExperiment(ExperimentName name) + *

  • getExperiment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getExperimentCallable() + *
  • getExperimentCallable() *

*
CreateExperiment

CreateExperiment

Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createExperiment(CreateExperimentRequest request) + *
  • createExperiment(CreateExperimentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createExperiment(EnvironmentName parent, Experiment experiment) - *
  • createExperiment(String parent, Experiment experiment) + *
  • createExperiment(EnvironmentName parent, Experiment experiment) + *

  • createExperiment(String parent, Experiment experiment) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createExperimentCallable() + *
  • createExperimentCallable() *

*
UpdateExperiment

UpdateExperiment

Updates the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateExperiment(UpdateExperimentRequest request) + *
  • updateExperiment(UpdateExperimentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateExperiment(Experiment experiment, FieldMask updateMask) + *
  • updateExperiment(Experiment experiment, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateExperimentCallable() + *
  • updateExperimentCallable() *

*
DeleteExperiment

DeleteExperiment

Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteExperiment(DeleteExperimentRequest request) + *
  • deleteExperiment(DeleteExperimentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteExperiment(ExperimentName name) - *
  • deleteExperiment(String name) + *
  • deleteExperiment(ExperimentName name) + *

  • deleteExperiment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteExperimentCallable() + *
  • deleteExperimentCallable() *

*
StartExperiment

StartExperiment

Starts the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of experiment from PENDING to RUNNING.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • startExperiment(StartExperimentRequest request) + *
  • startExperiment(StartExperimentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • startExperiment(ExperimentName name) - *
  • startExperiment(String name) + *
  • startExperiment(ExperimentName name) + *

  • startExperiment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • startExperimentCallable() + *
  • startExperimentCallable() *

*
StopExperiment

StopExperiment

Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of experiment from RUNNING to DONE.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • stopExperiment(StopExperimentRequest request) + *
  • stopExperiment(StopExperimentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • stopExperiment(ExperimentName name) - *
  • stopExperiment(String name) + *
  • stopExperiment(ExperimentName name) + *

  • stopExperiment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • stopExperimentCallable() + *
  • stopExperimentCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java index 85bc81e98448..d42f02a199df 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java @@ -68,109 +68,111 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateFlow

CreateFlow

Creates a flow in the specified agent. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createFlow(CreateFlowRequest request) + *
  • createFlow(CreateFlowRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createFlow(AgentName parent, Flow flow) - *
  • createFlow(String parent, Flow flow) + *
  • createFlow(AgentName parent, Flow flow) + *

  • createFlow(String parent, Flow flow) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createFlowCallable() + *
  • createFlowCallable() *

*
DeleteFlow

DeleteFlow

Deletes a specified flow.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteFlow(DeleteFlowRequest request) + *
  • deleteFlow(DeleteFlowRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteFlow(FlowName name) - *
  • deleteFlow(String name) + *
  • deleteFlow(FlowName name) + *

  • deleteFlow(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteFlowCallable() + *
  • deleteFlowCallable() *

*
ListFlows

ListFlows

Returns the list of all flows in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listFlows(ListFlowsRequest request) + *
  • listFlows(ListFlowsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listFlows(AgentName parent) - *
  • listFlows(String parent) + *
  • listFlows(AgentName parent) + *

  • listFlows(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listFlowsPagedCallable() - *
  • listFlowsCallable() + *
  • listFlowsPagedCallable() + *

  • listFlowsCallable() *

*
GetFlow

GetFlow

Retrieves the specified flow.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getFlow(GetFlowRequest request) + *
  • getFlow(GetFlowRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getFlow(FlowName name) - *
  • getFlow(String name) + *
  • getFlow(FlowName name) + *

  • getFlow(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getFlowCallable() + *
  • getFlowCallable() *

*
UpdateFlow

UpdateFlow

Updates the specified flow. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateFlow(UpdateFlowRequest request) + *
  • updateFlow(UpdateFlowRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateFlow(Flow flow, FieldMask updateMask) + *
  • updateFlow(Flow flow, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateFlowCallable() + *
  • updateFlowCallable() *

*
TrainFlow

TrainFlow

Trains the specified flow. Note that only the flow in 'draft' environment is trained. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -178,55 +180,55 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • trainFlowAsync(TrainFlowRequest request) + *
  • trainFlowAsync(TrainFlowRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • trainFlowAsync(FlowName name) - *
  • trainFlowAsync(String name) + *
  • trainFlowAsync(FlowName name) + *

  • trainFlowAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • trainFlowOperationCallable() - *
  • trainFlowCallable() + *
  • trainFlowOperationCallable() + *

  • trainFlowCallable() *

*
ValidateFlow

ValidateFlow

Validates the specified flow and creates or updates validation results. Please call this API after the training is completed to get the complete validation results.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • validateFlow(ValidateFlowRequest request) + *
  • validateFlow(ValidateFlowRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • validateFlowCallable() + *
  • validateFlowCallable() *

*
GetFlowValidationResult

GetFlowValidationResult

Gets the latest flow validation result. Flow validation is performed when ValidateFlow is called.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getFlowValidationResult(GetFlowValidationResultRequest request) + *
  • getFlowValidationResult(GetFlowValidationResultRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getFlowValidationResult(FlowValidationResultName name) - *
  • getFlowValidationResult(String name) + *
  • getFlowValidationResult(FlowValidationResultName name) + *

  • getFlowValidationResult(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getFlowValidationResultCallable() + *
  • getFlowValidationResultCallable() *

*
ImportFlow

ImportFlow

Imports the specified flow to the specified agent from a binary file. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] @@ -234,17 +236,17 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importFlowAsync(ImportFlowRequest request) + *
  • importFlowAsync(ImportFlowRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importFlowOperationCallable() - *
  • importFlowCallable() + *
  • importFlowOperationCallable() + *

  • importFlowCallable() *

*
ExportFlow

ExportFlow

Exports the specified flow to a binary file. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] @@ -252,45 +254,44 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportFlowAsync(ExportFlowRequest request) + *
  • exportFlowAsync(ExportFlowRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportFlowOperationCallable() - *
  • exportFlowCallable() + *
  • exportFlowOperationCallable() + *

  • exportFlowCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java index 6f09b5bc85f5..3a98c5d70f61 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java @@ -61,135 +61,136 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListGenerators

ListGenerators

Returns the list of all generators in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listGenerators(ListGeneratorsRequest request) + *
  • listGenerators(ListGeneratorsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listGenerators(AgentName parent) - *
  • listGenerators(String parent) + *
  • listGenerators(AgentName parent) + *

  • listGenerators(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listGeneratorsPagedCallable() - *
  • listGeneratorsCallable() + *
  • listGeneratorsPagedCallable() + *

  • listGeneratorsCallable() *

*
GetGenerator

GetGenerator

Retrieves the specified generator.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getGenerator(GetGeneratorRequest request) + *
  • getGenerator(GetGeneratorRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getGenerator(GeneratorName name) - *
  • getGenerator(String name) + *
  • getGenerator(GeneratorName name) + *

  • getGenerator(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getGeneratorCallable() + *
  • getGeneratorCallable() *

*
CreateGenerator

CreateGenerator

Creates a generator in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createGenerator(CreateGeneratorRequest request) + *
  • createGenerator(CreateGeneratorRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createGenerator(AgentName parent, Generator generator) - *
  • createGenerator(String parent, Generator generator) + *
  • createGenerator(AgentName parent, Generator generator) + *

  • createGenerator(String parent, Generator generator) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createGeneratorCallable() + *
  • createGeneratorCallable() *

*
UpdateGenerator

UpdateGenerator

Update the specified generator.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateGenerator(UpdateGeneratorRequest request) + *
  • updateGenerator(UpdateGeneratorRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateGenerator(Generator generator, FieldMask updateMask) + *
  • updateGenerator(Generator generator, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateGeneratorCallable() + *
  • updateGeneratorCallable() *

*
DeleteGenerator

DeleteGenerator

Deletes the specified generators.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteGenerator(DeleteGeneratorRequest request) + *
  • deleteGenerator(DeleteGeneratorRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteGenerator(GeneratorName name) - *
  • deleteGenerator(String name) + *
  • deleteGenerator(GeneratorName name) + *

  • deleteGenerator(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteGeneratorCallable() + *
  • deleteGeneratorCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java index dd631a06c44e..5def9b1b2ebb 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java @@ -66,172 +66,173 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListIntents

ListIntents

Returns the list of all intents in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listIntents(ListIntentsRequest request) + *
  • listIntents(ListIntentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listIntents(AgentName parent) - *
  • listIntents(String parent) + *
  • listIntents(AgentName parent) + *

  • listIntents(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listIntentsPagedCallable() - *
  • listIntentsCallable() + *
  • listIntentsPagedCallable() + *

  • listIntentsCallable() *

*
GetIntent

GetIntent

Retrieves the specified intent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIntent(GetIntentRequest request) + *
  • getIntent(GetIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getIntent(IntentName name) - *
  • getIntent(String name) + *
  • getIntent(IntentName name) + *

  • getIntent(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIntentCallable() + *
  • getIntentCallable() *

*
CreateIntent

CreateIntent

Creates an intent in the specified agent. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createIntent(CreateIntentRequest request) + *
  • createIntent(CreateIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createIntent(AgentName parent, Intent intent) - *
  • createIntent(String parent, Intent intent) + *
  • createIntent(AgentName parent, Intent intent) + *

  • createIntent(String parent, Intent intent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createIntentCallable() + *
  • createIntentCallable() *

*
UpdateIntent

UpdateIntent

Updates the specified intent. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateIntent(UpdateIntentRequest request) + *
  • updateIntent(UpdateIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateIntent(Intent intent, FieldMask updateMask) + *
  • updateIntent(Intent intent, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateIntentCallable() + *
  • updateIntentCallable() *

*
DeleteIntent

DeleteIntent

Deletes the specified intent. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteIntent(DeleteIntentRequest request) + *
  • deleteIntent(DeleteIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteIntent(IntentName name) - *
  • deleteIntent(String name) + *
  • deleteIntent(IntentName name) + *

  • deleteIntent(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteIntentCallable() + *
  • deleteIntentCallable() *

*
ImportIntents

ImportIntents

Imports the specified intents into the agent. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3.ImportIntentsMetadata] - `response`: [ImportIntentsResponse][google.cloud.dialogflow.cx.v3.ImportIntentsResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importIntentsAsync(ImportIntentsRequest request) + *
  • importIntentsAsync(ImportIntentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importIntentsOperationCallable() - *
  • importIntentsCallable() + *
  • importIntentsOperationCallable() + *

  • importIntentsCallable() *

*
ExportIntents

ExportIntents

Exports the selected intents. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3.ExportIntentsMetadata] - `response`: [ExportIntentsResponse][google.cloud.dialogflow.cx.v3.ExportIntentsResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportIntentsAsync(ExportIntentsRequest request) + *
  • exportIntentsAsync(ExportIntentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportIntentsOperationCallable() - *
  • exportIntentsCallable() + *
  • exportIntentsOperationCallable() + *

  • exportIntentsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java index d39e131770c3..55243191daad 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java @@ -61,138 +61,139 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListPages

ListPages

Returns the list of all pages in the specified flow.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listPages(ListPagesRequest request) + *
  • listPages(ListPagesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listPages(FlowName parent) - *
  • listPages(String parent) + *
  • listPages(FlowName parent) + *

  • listPages(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listPagesPagedCallable() - *
  • listPagesCallable() + *
  • listPagesPagedCallable() + *

  • listPagesCallable() *

*
GetPage

GetPage

Retrieves the specified page.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getPage(GetPageRequest request) + *
  • getPage(GetPageRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getPage(PageName name) - *
  • getPage(String name) + *
  • getPage(PageName name) + *

  • getPage(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getPageCallable() + *
  • getPageCallable() *

*
CreatePage

CreatePage

Creates a page in the specified flow. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createPage(CreatePageRequest request) + *
  • createPage(CreatePageRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createPage(FlowName parent, Page page) - *
  • createPage(String parent, Page page) + *
  • createPage(FlowName parent, Page page) + *

  • createPage(String parent, Page page) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createPageCallable() + *
  • createPageCallable() *

*
UpdatePage

UpdatePage

Updates the specified page. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updatePage(UpdatePageRequest request) + *
  • updatePage(UpdatePageRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updatePage(Page page, FieldMask updateMask) + *
  • updatePage(Page page, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updatePageCallable() + *
  • updatePageCallable() *

*
DeletePage

DeletePage

Deletes the specified page. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deletePage(DeletePageRequest request) + *
  • deletePage(DeletePageRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deletePage(PageName name) - *
  • deletePage(String name) + *
  • deletePage(PageName name) + *

  • deletePage(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deletePageCallable() + *
  • deletePageCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java index f8aa1be71976..55b9bab1d714 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java @@ -65,135 +65,136 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateSecuritySettings

CreateSecuritySettings

Create security settings in the specified location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSecuritySettings(CreateSecuritySettingsRequest request) + *
  • createSecuritySettings(CreateSecuritySettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createSecuritySettings(LocationName parent, SecuritySettings securitySettings) - *
  • createSecuritySettings(String parent, SecuritySettings securitySettings) + *
  • createSecuritySettings(LocationName parent, SecuritySettings securitySettings) + *

  • createSecuritySettings(String parent, SecuritySettings securitySettings) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSecuritySettingsCallable() + *
  • createSecuritySettingsCallable() *

*
GetSecuritySettings

GetSecuritySettings

Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The returned settings may be stale by up to 1 minute.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSecuritySettings(GetSecuritySettingsRequest request) + *
  • getSecuritySettings(GetSecuritySettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSecuritySettings(SecuritySettingsName name) - *
  • getSecuritySettings(String name) + *
  • getSecuritySettings(SecuritySettingsName name) + *

  • getSecuritySettings(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSecuritySettingsCallable() + *
  • getSecuritySettingsCallable() *

*
UpdateSecuritySettings

UpdateSecuritySettings

Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSecuritySettings(UpdateSecuritySettingsRequest request) + *
  • updateSecuritySettings(UpdateSecuritySettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateSecuritySettings(SecuritySettings securitySettings, FieldMask updateMask) + *
  • updateSecuritySettings(SecuritySettings securitySettings, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSecuritySettingsCallable() + *
  • updateSecuritySettingsCallable() *

*
ListSecuritySettings

ListSecuritySettings

Returns the list of all security settings in the specified location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSecuritySettings(ListSecuritySettingsRequest request) + *
  • listSecuritySettings(ListSecuritySettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSecuritySettings(LocationName parent) - *
  • listSecuritySettings(String parent) + *
  • listSecuritySettings(LocationName parent) + *

  • listSecuritySettings(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSecuritySettingsPagedCallable() - *
  • listSecuritySettingsCallable() + *
  • listSecuritySettingsPagedCallable() + *

  • listSecuritySettingsCallable() *

*
DeleteSecuritySettings

DeleteSecuritySettings

Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSecuritySettings(DeleteSecuritySettingsRequest request) + *
  • deleteSecuritySettings(DeleteSecuritySettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteSecuritySettings(SecuritySettingsName name) - *
  • deleteSecuritySettings(String name) + *
  • deleteSecuritySettings(SecuritySettingsName name) + *

  • deleteSecuritySettings(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSecuritySettingsCallable() + *
  • deleteSecuritySettingsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java index e24c57673488..95b4cb570c9f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java @@ -65,135 +65,136 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListSessionEntityTypes

ListSessionEntityTypes

Returns the list of all session entity types in the specified session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSessionEntityTypes(ListSessionEntityTypesRequest request) + *
  • listSessionEntityTypes(ListSessionEntityTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSessionEntityTypes(SessionName parent) - *
  • listSessionEntityTypes(String parent) + *
  • listSessionEntityTypes(SessionName parent) + *

  • listSessionEntityTypes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSessionEntityTypesPagedCallable() - *
  • listSessionEntityTypesCallable() + *
  • listSessionEntityTypesPagedCallable() + *

  • listSessionEntityTypesCallable() *

*
GetSessionEntityType

GetSessionEntityType

Retrieves the specified session entity type.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSessionEntityType(GetSessionEntityTypeRequest request) + *
  • getSessionEntityType(GetSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSessionEntityType(SessionEntityTypeName name) - *
  • getSessionEntityType(String name) + *
  • getSessionEntityType(SessionEntityTypeName name) + *

  • getSessionEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSessionEntityTypeCallable() + *
  • getSessionEntityTypeCallable() *

*
CreateSessionEntityType

CreateSessionEntityType

Creates a session entity type.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSessionEntityType(CreateSessionEntityTypeRequest request) + *
  • createSessionEntityType(CreateSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createSessionEntityType(SessionName parent, SessionEntityType sessionEntityType) - *
  • createSessionEntityType(String parent, SessionEntityType sessionEntityType) + *
  • createSessionEntityType(SessionName parent, SessionEntityType sessionEntityType) + *

  • createSessionEntityType(String parent, SessionEntityType sessionEntityType) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSessionEntityTypeCallable() + *
  • createSessionEntityTypeCallable() *

*
UpdateSessionEntityType

UpdateSessionEntityType

Updates the specified session entity type.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSessionEntityType(UpdateSessionEntityTypeRequest request) + *
  • updateSessionEntityType(UpdateSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateSessionEntityType(SessionEntityType sessionEntityType, FieldMask updateMask) + *
  • updateSessionEntityType(SessionEntityType sessionEntityType, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSessionEntityTypeCallable() + *
  • updateSessionEntityTypeCallable() *

*
DeleteSessionEntityType

DeleteSessionEntityType

Deletes the specified session entity type.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSessionEntityType(DeleteSessionEntityTypeRequest request) + *
  • deleteSessionEntityType(DeleteSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteSessionEntityType(SessionEntityTypeName name) - *
  • deleteSessionEntityType(String name) + *
  • deleteSessionEntityType(SessionEntityTypeName name) + *

  • deleteSessionEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSessionEntityTypeCallable() + *
  • deleteSessionEntityTypeCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java index ff06787a45cd..633d1e94d663 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java @@ -71,108 +71,109 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
DetectIntent

DetectIntent

Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause session entity types to be updated, which in turn might affect results of future queries. *

Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • detectIntent(DetectIntentRequest request) + *
  • detectIntent(DetectIntentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • detectIntentCallable() + *
  • detectIntentCallable() *

*
StreamingDetectIntent

StreamingDetectIntent

Processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST). *

Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • streamingDetectIntentCallable() + *
  • streamingDetectIntentCallable() *

*
MatchIntent

MatchIntent

Returns preliminary intent match results, doesn't change the session status.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • matchIntent(MatchIntentRequest request) + *
  • matchIntent(MatchIntentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • matchIntentCallable() + *
  • matchIntentCallable() *

*
FulfillIntent

FulfillIntent

Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • fulfillIntent(FulfillIntentRequest request) + *
  • fulfillIntent(FulfillIntentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • fulfillIntentCallable() + *
  • fulfillIntentCallable() *

*
SubmitAnswerFeedback

SubmitAnswerFeedback

Updates the feedback received from the user for a single turn of the bot response.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • submitAnswerFeedback(SubmitAnswerFeedbackRequest request) + *
  • submitAnswerFeedback(SubmitAnswerFeedbackRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • submitAnswerFeedbackCallable() + *
  • submitAnswerFeedbackCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java index 0538fab27def..2bf2bd081027 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java @@ -67,256 +67,257 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListTestCases

ListTestCases

Fetches a list of test cases for a given agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTestCases(ListTestCasesRequest request) + *
  • listTestCases(ListTestCasesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTestCases(AgentName parent) - *
  • listTestCases(String parent) + *
  • listTestCases(AgentName parent) + *

  • listTestCases(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTestCasesPagedCallable() - *
  • listTestCasesCallable() + *
  • listTestCasesPagedCallable() + *

  • listTestCasesCallable() *

*
BatchDeleteTestCases

BatchDeleteTestCases

Batch deletes test cases.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchDeleteTestCases(BatchDeleteTestCasesRequest request) + *
  • batchDeleteTestCases(BatchDeleteTestCasesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • batchDeleteTestCases(AgentName parent) - *
  • batchDeleteTestCases(String parent) + *
  • batchDeleteTestCases(AgentName parent) + *

  • batchDeleteTestCases(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchDeleteTestCasesCallable() + *
  • batchDeleteTestCasesCallable() *

*
GetTestCase

GetTestCase

Gets a test case.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTestCase(GetTestCaseRequest request) + *
  • getTestCase(GetTestCaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTestCase(TestCaseName name) - *
  • getTestCase(String name) + *
  • getTestCase(TestCaseName name) + *

  • getTestCase(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTestCaseCallable() + *
  • getTestCaseCallable() *

*
CreateTestCase

CreateTestCase

Creates a test case for the given agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createTestCase(CreateTestCaseRequest request) + *
  • createTestCase(CreateTestCaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createTestCase(AgentName parent, TestCase testCase) - *
  • createTestCase(String parent, TestCase testCase) + *
  • createTestCase(AgentName parent, TestCase testCase) + *

  • createTestCase(String parent, TestCase testCase) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createTestCaseCallable() + *
  • createTestCaseCallable() *

*
UpdateTestCase

UpdateTestCase

Updates the specified test case.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateTestCase(UpdateTestCaseRequest request) + *
  • updateTestCase(UpdateTestCaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateTestCase(TestCase testCase, FieldMask updateMask) + *
  • updateTestCase(TestCase testCase, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateTestCaseCallable() + *
  • updateTestCaseCallable() *

*
RunTestCase

RunTestCase

Kicks off a test case run. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata] - `response`: [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • runTestCaseAsync(RunTestCaseRequest request) + *
  • runTestCaseAsync(RunTestCaseRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • runTestCaseOperationCallable() - *
  • runTestCaseCallable() + *
  • runTestCaseOperationCallable() + *

  • runTestCaseCallable() *

*
BatchRunTestCases

BatchRunTestCases

Kicks off a batch run of test cases. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchRunTestCasesAsync(BatchRunTestCasesRequest request) + *
  • batchRunTestCasesAsync(BatchRunTestCasesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchRunTestCasesOperationCallable() - *
  • batchRunTestCasesCallable() + *
  • batchRunTestCasesOperationCallable() + *

  • batchRunTestCasesCallable() *

*
CalculateCoverage

CalculateCoverage

Calculates the test coverage for an agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • calculateCoverage(CalculateCoverageRequest request) + *
  • calculateCoverage(CalculateCoverageRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • calculateCoverageCallable() + *
  • calculateCoverageCallable() *

*
ImportTestCases

ImportTestCases

Imports the test cases from a Cloud Storage bucket or a local file. It always creates new test cases and won't overwrite any existing ones. The provided ID in the imported test case is neglected. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importTestCasesAsync(ImportTestCasesRequest request) + *
  • importTestCasesAsync(ImportTestCasesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importTestCasesOperationCallable() - *
  • importTestCasesCallable() + *
  • importTestCasesOperationCallable() + *

  • importTestCasesCallable() *

*
ExportTestCases

ExportTestCases

Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be applied to export a subset of test cases. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportTestCasesAsync(ExportTestCasesRequest request) + *
  • exportTestCasesAsync(ExportTestCasesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportTestCasesOperationCallable() - *
  • exportTestCasesCallable() + *
  • exportTestCasesOperationCallable() + *

  • exportTestCasesCallable() *

*
ListTestCaseResults

ListTestCaseResults

Fetches the list of run results for the given test case. A maximum of 100 results are kept for each test case.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTestCaseResults(ListTestCaseResultsRequest request) + *
  • listTestCaseResults(ListTestCaseResultsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTestCaseResults(TestCaseName parent) - *
  • listTestCaseResults(String parent) + *
  • listTestCaseResults(TestCaseName parent) + *

  • listTestCaseResults(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTestCaseResultsPagedCallable() - *
  • listTestCaseResultsCallable() + *
  • listTestCaseResultsPagedCallable() + *

  • listTestCaseResultsCallable() *

*
GetTestCaseResult

GetTestCaseResult

Gets a test case result.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTestCaseResult(GetTestCaseResultRequest request) + *
  • getTestCaseResult(GetTestCaseResultRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTestCaseResult(TestCaseResultName name) - *
  • getTestCaseResult(String name) + *
  • getTestCaseResult(TestCaseResultName name) + *

  • getTestCaseResult(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTestCaseResultCallable() + *
  • getTestCaseResultCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java index fc75abdfb4e9..2399194ef2f7 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java @@ -66,140 +66,141 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListTransitionRouteGroups

ListTransitionRouteGroups

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

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTransitionRouteGroups(ListTransitionRouteGroupsRequest request) + *
  • listTransitionRouteGroups(ListTransitionRouteGroupsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTransitionRouteGroups(AgentName parent) - *
  • listTransitionRouteGroups(FlowName parent) - *
  • listTransitionRouteGroups(String parent) + *
  • listTransitionRouteGroups(AgentName parent) + *

  • listTransitionRouteGroups(FlowName parent) + *

  • listTransitionRouteGroups(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTransitionRouteGroupsPagedCallable() - *
  • listTransitionRouteGroupsCallable() + *
  • listTransitionRouteGroupsPagedCallable() + *

  • listTransitionRouteGroupsCallable() *

*
GetTransitionRouteGroup

GetTransitionRouteGroup

Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTransitionRouteGroup(GetTransitionRouteGroupRequest request) + *
  • getTransitionRouteGroup(GetTransitionRouteGroupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTransitionRouteGroup(TransitionRouteGroupName name) - *
  • getTransitionRouteGroup(String name) + *
  • getTransitionRouteGroup(TransitionRouteGroupName name) + *

  • getTransitionRouteGroup(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTransitionRouteGroupCallable() + *
  • getTransitionRouteGroupCallable() *

*
CreateTransitionRouteGroup

CreateTransitionRouteGroup

Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createTransitionRouteGroup(CreateTransitionRouteGroupRequest request) + *
  • createTransitionRouteGroup(CreateTransitionRouteGroupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createTransitionRouteGroup(AgentName parent, TransitionRouteGroup transitionRouteGroup) - *
  • createTransitionRouteGroup(FlowName parent, TransitionRouteGroup transitionRouteGroup) - *
  • createTransitionRouteGroup(String parent, TransitionRouteGroup transitionRouteGroup) + *
  • createTransitionRouteGroup(AgentName parent, TransitionRouteGroup transitionRouteGroup) + *

  • createTransitionRouteGroup(FlowName parent, TransitionRouteGroup transitionRouteGroup) + *

  • createTransitionRouteGroup(String parent, TransitionRouteGroup transitionRouteGroup) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createTransitionRouteGroupCallable() + *
  • createTransitionRouteGroupCallable() *

*
UpdateTransitionRouteGroup

UpdateTransitionRouteGroup

Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateTransitionRouteGroup(UpdateTransitionRouteGroupRequest request) + *
  • updateTransitionRouteGroup(UpdateTransitionRouteGroupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateTransitionRouteGroup(TransitionRouteGroup transitionRouteGroup, FieldMask updateMask) + *
  • updateTransitionRouteGroup(TransitionRouteGroup transitionRouteGroup, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateTransitionRouteGroupCallable() + *
  • updateTransitionRouteGroupCallable() *

*
DeleteTransitionRouteGroup

DeleteTransitionRouteGroup

Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest request) + *
  • deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteTransitionRouteGroup(TransitionRouteGroupName name) - *
  • deleteTransitionRouteGroup(String name) + *
  • deleteTransitionRouteGroup(TransitionRouteGroupName name) + *

  • deleteTransitionRouteGroup(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteTransitionRouteGroupCallable() + *
  • deleteTransitionRouteGroupCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java index b98e02e6b598..ee84a92f7a6e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java @@ -68,179 +68,180 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListVersions

ListVersions

Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listVersions(ListVersionsRequest request) + *
  • listVersions(ListVersionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listVersions(FlowName parent) - *
  • listVersions(String parent) + *
  • listVersions(FlowName parent) + *

  • listVersions(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listVersionsPagedCallable() - *
  • listVersionsCallable() + *
  • listVersionsPagedCallable() + *

  • listVersionsCallable() *

*
GetVersion

GetVersion

Retrieves the specified [Version][google.cloud.dialogflow.cx.v3.Version].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getVersion(GetVersionRequest request) + *
  • getVersion(GetVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getVersion(VersionName name) - *
  • getVersion(String name) + *
  • getVersion(VersionName name) + *

  • getVersion(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getVersionCallable() + *
  • getVersionCallable() *

*
CreateVersion

CreateVersion

Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow]. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata] - `response`: [Version][google.cloud.dialogflow.cx.v3.Version]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createVersionAsync(CreateVersionRequest request) + *
  • createVersionAsync(CreateVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createVersionAsync(FlowName parent, Version version) - *
  • createVersionAsync(String parent, Version version) + *
  • createVersionAsync(FlowName parent, Version version) + *

  • createVersionAsync(String parent, Version version) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createVersionOperationCallable() - *
  • createVersionCallable() + *
  • createVersionOperationCallable() + *

  • createVersionCallable() *

*
UpdateVersion

UpdateVersion

Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateVersion(UpdateVersionRequest request) + *
  • updateVersion(UpdateVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateVersion(Version version, FieldMask updateMask) + *
  • updateVersion(Version version, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateVersionCallable() + *
  • updateVersionCallable() *

*
DeleteVersion

DeleteVersion

Deletes the specified [Version][google.cloud.dialogflow.cx.v3.Version].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteVersion(DeleteVersionRequest request) + *
  • deleteVersion(DeleteVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteVersion(VersionName name) - *
  • deleteVersion(String name) + *
  • deleteVersion(VersionName name) + *

  • deleteVersion(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteVersionCallable() + *
  • deleteVersionCallable() *

*
LoadVersion

LoadVersion

Loads resources in the specified version to the draft flow. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • loadVersionAsync(LoadVersionRequest request) + *
  • loadVersionAsync(LoadVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • loadVersionAsync(VersionName name) - *
  • loadVersionAsync(String name) + *
  • loadVersionAsync(VersionName name) + *

  • loadVersionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • loadVersionOperationCallable() - *
  • loadVersionCallable() + *
  • loadVersionOperationCallable() + *

  • loadVersionCallable() *

*
CompareVersions

CompareVersions

Compares the specified base version with target version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • compareVersions(CompareVersionsRequest request) + *
  • compareVersions(CompareVersionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • compareVersions(VersionName baseVersion) - *
  • compareVersions(String baseVersion) + *
  • compareVersions(VersionName baseVersion) + *

  • compareVersions(String baseVersion) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • compareVersionsCallable() + *
  • compareVersionsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java index 691d638626a1..5b1e82176069 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java @@ -61,135 +61,136 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListWebhooks

ListWebhooks

Returns the list of all webhooks in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listWebhooks(ListWebhooksRequest request) + *
  • listWebhooks(ListWebhooksRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listWebhooks(AgentName parent) - *
  • listWebhooks(String parent) + *
  • listWebhooks(AgentName parent) + *

  • listWebhooks(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listWebhooksPagedCallable() - *
  • listWebhooksCallable() + *
  • listWebhooksPagedCallable() + *

  • listWebhooksCallable() *

*
GetWebhook

GetWebhook

Retrieves the specified webhook.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getWebhook(GetWebhookRequest request) + *
  • getWebhook(GetWebhookRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getWebhook(WebhookName name) - *
  • getWebhook(String name) + *
  • getWebhook(WebhookName name) + *

  • getWebhook(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getWebhookCallable() + *
  • getWebhookCallable() *

*
CreateWebhook

CreateWebhook

Creates a webhook in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createWebhook(CreateWebhookRequest request) + *
  • createWebhook(CreateWebhookRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createWebhook(AgentName parent, Webhook webhook) - *
  • createWebhook(String parent, Webhook webhook) + *
  • createWebhook(AgentName parent, Webhook webhook) + *

  • createWebhook(String parent, Webhook webhook) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createWebhookCallable() + *
  • createWebhookCallable() *

*
UpdateWebhook

UpdateWebhook

Updates the specified webhook.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateWebhook(UpdateWebhookRequest request) + *
  • updateWebhook(UpdateWebhookRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateWebhook(Webhook webhook, FieldMask updateMask) + *
  • updateWebhook(Webhook webhook, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateWebhookCallable() + *
  • updateWebhookCallable() *

*
DeleteWebhook

DeleteWebhook

Deletes the specified webhook.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteWebhook(DeleteWebhookRequest request) + *
  • deleteWebhook(DeleteWebhookRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteWebhook(WebhookName name) - *
  • deleteWebhook(String name) + *
  • deleteWebhook(WebhookName name) + *

  • deleteWebhook(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteWebhookCallable() + *
  • deleteWebhookCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java index be3a22e87926..562cb06bb6e3 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java @@ -353,6 +353,15 @@ public AgentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -620,7 +629,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -633,7 +641,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -859,6 +866,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public AgentsStubSettings build() throws IOException { return new AgentsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java index bdbf71483e17..d8bbd588e374 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java @@ -261,6 +261,15 @@ public ChangelogsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -448,7 +457,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -461,7 +469,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -531,6 +538,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ChangelogsStubSettings build() throws IOException { return new ChangelogsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java index a17a5a00d115..860b7605889b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java @@ -264,6 +264,15 @@ public DeploymentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -451,7 +460,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -464,7 +472,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -534,6 +541,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DeploymentsStubSettings build() throws IOException { return new DeploymentsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java index 6ae3ab16869e..cb8649cdd765 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java @@ -286,6 +286,15 @@ public EntityTypesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -494,7 +503,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -507,7 +515,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -609,6 +616,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EntityTypesStubSettings build() throws IOException { return new EntityTypesStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java index d3518e689831..33d02586a5d4 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java @@ -529,6 +529,15 @@ public EnvironmentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -798,7 +807,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -811,7 +819,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1092,6 +1099,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EnvironmentsStubSettings build() throws IOException { return new EnvironmentsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java index 9b58aa42f120..1a7cb82cc0a3 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java @@ -300,6 +300,15 @@ public ExperimentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -522,7 +531,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -535,7 +543,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -657,6 +664,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ExperimentsStubSettings build() throws IOException { return new ExperimentsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java index b7ad8c05d0c6..dc05edc66507 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java @@ -348,6 +348,15 @@ public FlowsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -598,7 +607,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -611,7 +619,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -855,6 +862,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public FlowsStubSettings build() throws IOException { return new FlowsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java index fd1406c512d1..e82f60dabac1 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java @@ -283,6 +283,15 @@ public GeneratorsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -490,7 +499,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -503,7 +511,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -603,6 +610,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public GeneratorsStubSettings build() throws IOException { return new GeneratorsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java index facad7d8d767..067e2cb0bc11 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java @@ -321,6 +321,15 @@ public IntentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -548,7 +557,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -561,7 +569,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -747,6 +754,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public IntentsStubSettings build() throws IOException { return new IntentsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java index b706debdc7ad..f691f26cce19 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java @@ -280,6 +280,15 @@ public PagesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -483,7 +492,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -496,7 +504,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -595,6 +602,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public PagesStubSettings build() throws IOException { return new PagesStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java index 0b7f0727b541..8c212197c756 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java @@ -308,6 +308,15 @@ public SecuritySettingsServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -521,7 +530,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -534,7 +542,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -640,6 +647,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SecuritySettingsServiceStubSettings build() throws IOException { return new SecuritySettingsServiceStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java index da972fff3219..bf315d7f4812 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java @@ -313,6 +313,15 @@ public SessionEntityTypesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -526,7 +535,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -539,7 +547,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -645,6 +652,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SessionEntityTypesStubSettings build() throws IOException { return new SessionEntityTypesStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java index 01b14d79af95..83cd215fbd1d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java @@ -232,6 +232,15 @@ public SessionsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -461,7 +470,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -474,7 +482,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -573,6 +580,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SessionsStubSettings build() throws IOException { return new SessionsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java index 3778c889efd4..b94134edc3d1 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java @@ -453,6 +453,15 @@ public TestCasesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -734,7 +743,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -747,7 +755,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1058,6 +1065,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public TestCasesStubSettings build() throws IOException { return new TestCasesStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java index bc7d5fa79bf5..e86320fe75dc 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java @@ -319,6 +319,15 @@ public TransitionRouteGroupsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -535,7 +544,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -548,7 +556,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -654,6 +661,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public TransitionRouteGroupsStubSettings build() throws IOException { return new TransitionRouteGroupsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java index 42d0e391e70b..a40d1d31cb58 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java @@ -320,6 +320,15 @@ public VersionsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -547,7 +556,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -560,7 +568,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -746,6 +753,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public VersionsStubSettings build() throws IOException { return new VersionsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java index e6a50ea6e9d1..b7eeb45334cb 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java @@ -281,6 +281,15 @@ public WebhooksStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -484,7 +493,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -497,7 +505,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -597,6 +604,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public WebhooksStubSettings build() throws IOException { return new WebhooksStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java index ee6640563a5a..01ea1e0d6642 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java @@ -67,126 +67,128 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListAgents

ListAgents

Returns the list of all agents in the specified location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAgents(ListAgentsRequest request) + *
  • listAgents(ListAgentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAgents(LocationName parent) - *
  • listAgents(String parent) + *
  • listAgents(LocationName parent) + *

  • listAgents(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listAgentsPagedCallable() - *
  • listAgentsCallable() + *
  • listAgentsPagedCallable() + *

  • listAgentsCallable() *

*
GetAgent

GetAgent

Retrieves the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAgent(GetAgentRequest request) + *
  • getAgent(GetAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAgent(AgentName name) - *
  • getAgent(String name) + *
  • getAgent(AgentName name) + *

  • getAgent(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAgentCallable() + *
  • getAgentCallable() *

*
CreateAgent

CreateAgent

Creates an agent in the specified location. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createAgent(CreateAgentRequest request) + *
  • createAgent(CreateAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createAgent(LocationName parent, Agent agent) - *
  • createAgent(String parent, Agent agent) + *
  • createAgent(LocationName parent, Agent agent) + *

  • createAgent(String parent, Agent agent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createAgentCallable() + *
  • createAgentCallable() *

*
UpdateAgent

UpdateAgent

Updates the specified agent. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateAgent(UpdateAgentRequest request) + *
  • updateAgent(UpdateAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateAgent(Agent agent, FieldMask updateMask) + *
  • updateAgent(Agent agent, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateAgentCallable() + *
  • updateAgentCallable() *

*
DeleteAgent

DeleteAgent

Deletes the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAgent(DeleteAgentRequest request) + *
  • deleteAgent(DeleteAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteAgent(AgentName name) - *
  • deleteAgent(String name) + *
  • deleteAgent(AgentName name) + *

  • deleteAgent(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAgentCallable() + *
  • deleteAgentCallable() *

*
ExportAgent

ExportAgent

Exports the specified agent to a binary file. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportAgentResponse][google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportAgentAsync(ExportAgentRequest request) + *
  • exportAgentAsync(ExportAgentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportAgentOperationCallable() - *
  • exportAgentCallable() + *
  • exportAgentOperationCallable() + *

  • exportAgentCallable() *

*
RestoreAgent

RestoreAgent

Restores the specified agent from a binary file. *

Replaces the current agent with a new one. Note that all existing resources in agent (e.g. intents, entity types, flows) will be removed. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: @@ -195,115 +197,114 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • restoreAgentAsync(RestoreAgentRequest request) + *
  • restoreAgentAsync(RestoreAgentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • restoreAgentOperationCallable() - *
  • restoreAgentCallable() + *
  • restoreAgentOperationCallable() + *

  • restoreAgentCallable() *

*
ValidateAgent

ValidateAgent

Validates the specified agent and creates or updates validation results. The agent in draft version is validated. Please call this API after the training is completed to get the complete validation results.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • validateAgent(ValidateAgentRequest request) + *
  • validateAgent(ValidateAgentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • validateAgentCallable() + *
  • validateAgentCallable() *

*
GetAgentValidationResult

GetAgentValidationResult

Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAgentValidationResult(GetAgentValidationResultRequest request) + *
  • getAgentValidationResult(GetAgentValidationResultRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAgentValidationResult(AgentValidationResultName name) - *
  • getAgentValidationResult(String name) + *
  • getAgentValidationResult(AgentValidationResultName name) + *

  • getAgentValidationResult(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAgentValidationResultCallable() + *
  • getAgentValidationResultCallable() *

*
GetGenerativeSettings

GetGenerativeSettings

Gets the generative settings for the agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getGenerativeSettings(GetGenerativeSettingsRequest request) + *
  • getGenerativeSettings(GetGenerativeSettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getGenerativeSettings(AgentGenerativeSettingsName name, String languageCode) - *
  • getGenerativeSettings(String name, String languageCode) + *
  • getGenerativeSettings(AgentGenerativeSettingsName name, String languageCode) + *

  • getGenerativeSettings(String name, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getGenerativeSettingsCallable() + *
  • getGenerativeSettingsCallable() *

*
UpdateGenerativeSettings

UpdateGenerativeSettings

Updates the generative settings for the agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateGenerativeSettings(UpdateGenerativeSettingsRequest request) + *
  • updateGenerativeSettings(UpdateGenerativeSettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateGenerativeSettings(GenerativeSettings generativeSettings, FieldMask updateMask) + *
  • updateGenerativeSettings(GenerativeSettings generativeSettings, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateGenerativeSettingsCallable() + *
  • updateGenerativeSettingsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java index f60504634408..7eba3368c47e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java @@ -61,79 +61,80 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListChangelogs

ListChangelogs

Returns the list of Changelogs.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listChangelogs(ListChangelogsRequest request) + *
  • listChangelogs(ListChangelogsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listChangelogs(AgentName parent) - *
  • listChangelogs(String parent) + *
  • listChangelogs(AgentName parent) + *

  • listChangelogs(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listChangelogsPagedCallable() - *
  • listChangelogsCallable() + *
  • listChangelogsPagedCallable() + *

  • listChangelogsCallable() *

*
GetChangelog

GetChangelog

Retrieves the specified Changelog.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getChangelog(GetChangelogRequest request) + *
  • getChangelog(GetChangelogRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getChangelog(ChangelogName name) - *
  • getChangelog(String name) + *
  • getChangelog(ChangelogName name) + *

  • getChangelog(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getChangelogCallable() + *
  • getChangelogCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java index a6ed46f3692b..c854e90a697d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java @@ -62,79 +62,80 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListDeployments

ListDeployments

Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDeployments(ListDeploymentsRequest request) + *
  • listDeployments(ListDeploymentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDeployments(EnvironmentName parent) - *
  • listDeployments(String parent) + *
  • listDeployments(EnvironmentName parent) + *

  • listDeployments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDeploymentsPagedCallable() - *
  • listDeploymentsCallable() + *
  • listDeploymentsPagedCallable() + *

  • listDeploymentsCallable() *

*
GetDeployment

GetDeployment

Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDeployment(GetDeploymentRequest request) + *
  • getDeployment(GetDeploymentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDeployment(DeploymentName name) - *
  • getDeployment(String name) + *
  • getDeployment(DeploymentName name) + *

  • getDeployment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDeploymentCallable() + *
  • getDeploymentCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java index 2617ca2b6faf..f48f9aa67548 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java @@ -64,137 +64,138 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetEntityType

GetEntityType

Retrieves the specified entity type.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEntityType(GetEntityTypeRequest request) + *
  • getEntityType(GetEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getEntityType(EntityTypeName name) - *
  • getEntityType(String name) + *
  • getEntityType(EntityTypeName name) + *

  • getEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEntityTypeCallable() + *
  • getEntityTypeCallable() *

*
CreateEntityType

CreateEntityType

Creates an entity type in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createEntityType(CreateEntityTypeRequest request) + *
  • createEntityType(CreateEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createEntityType(AgentName parent, EntityType entityType) - *
  • createEntityType(String parent, EntityType entityType) + *
  • createEntityType(AgentName parent, EntityType entityType) + *

  • createEntityType(String parent, EntityType entityType) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createEntityTypeCallable() + *
  • createEntityTypeCallable() *

*
UpdateEntityType

UpdateEntityType

Updates the specified entity type. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateEntityType(UpdateEntityTypeRequest request) + *
  • updateEntityType(UpdateEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateEntityType(EntityType entityType, FieldMask updateMask) + *
  • updateEntityType(EntityType entityType, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateEntityTypeCallable() + *
  • updateEntityTypeCallable() *

*
DeleteEntityType

DeleteEntityType

Deletes the specified entity type. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteEntityType(DeleteEntityTypeRequest request) + *
  • deleteEntityType(DeleteEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteEntityType(EntityTypeName name) - *
  • deleteEntityType(String name) + *
  • deleteEntityType(EntityTypeName name) + *

  • deleteEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteEntityTypeCallable() + *
  • deleteEntityTypeCallable() *

*
ListEntityTypes

ListEntityTypes

Returns the list of all entity types in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEntityTypes(ListEntityTypesRequest request) + *
  • listEntityTypes(ListEntityTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEntityTypes(AgentName parent) - *
  • listEntityTypes(String parent) + *
  • listEntityTypes(AgentName parent) + *

  • listEntityTypes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listEntityTypesPagedCallable() - *
  • listEntityTypesCallable() + *
  • listEntityTypesPagedCallable() + *

  • listEntityTypesCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java index bc724aa96804..d208294cccaf 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java @@ -69,215 +69,216 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListEnvironments

ListEnvironments

Returns the list of all environments in the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEnvironments(ListEnvironmentsRequest request) + *
  • listEnvironments(ListEnvironmentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEnvironments(AgentName parent) - *
  • listEnvironments(String parent) + *
  • listEnvironments(AgentName parent) + *

  • listEnvironments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listEnvironmentsPagedCallable() - *
  • listEnvironmentsCallable() + *
  • listEnvironmentsPagedCallable() + *

  • listEnvironmentsCallable() *

*
GetEnvironment

GetEnvironment

Retrieves the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEnvironment(GetEnvironmentRequest request) + *
  • getEnvironment(GetEnvironmentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getEnvironment(EnvironmentName name) - *
  • getEnvironment(String name) + *
  • getEnvironment(EnvironmentName name) + *

  • getEnvironment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEnvironmentCallable() + *
  • getEnvironmentCallable() *

*
CreateEnvironment

CreateEnvironment

Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent]. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createEnvironmentAsync(CreateEnvironmentRequest request) + *
  • createEnvironmentAsync(CreateEnvironmentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createEnvironmentAsync(AgentName parent, Environment environment) - *
  • createEnvironmentAsync(String parent, Environment environment) + *
  • createEnvironmentAsync(AgentName parent, Environment environment) + *

  • createEnvironmentAsync(String parent, Environment environment) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createEnvironmentOperationCallable() - *
  • createEnvironmentCallable() + *
  • createEnvironmentOperationCallable() + *

  • createEnvironmentCallable() *

*
UpdateEnvironment

UpdateEnvironment

Updates the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateEnvironmentAsync(UpdateEnvironmentRequest request) + *
  • updateEnvironmentAsync(UpdateEnvironmentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateEnvironmentAsync(Environment environment, FieldMask updateMask) + *
  • updateEnvironmentAsync(Environment environment, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateEnvironmentOperationCallable() - *
  • updateEnvironmentCallable() + *
  • updateEnvironmentOperationCallable() + *

  • updateEnvironmentCallable() *

*
DeleteEnvironment

DeleteEnvironment

Deletes the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteEnvironment(DeleteEnvironmentRequest request) + *
  • deleteEnvironment(DeleteEnvironmentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteEnvironment(EnvironmentName name) - *
  • deleteEnvironment(String name) + *
  • deleteEnvironment(EnvironmentName name) + *

  • deleteEnvironment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteEnvironmentCallable() + *
  • deleteEnvironmentCallable() *

*
LookupEnvironmentHistory

LookupEnvironmentHistory

Looks up the history of the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • lookupEnvironmentHistory(LookupEnvironmentHistoryRequest request) + *
  • lookupEnvironmentHistory(LookupEnvironmentHistoryRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • lookupEnvironmentHistory(EnvironmentName name) - *
  • lookupEnvironmentHistory(String name) + *
  • lookupEnvironmentHistory(EnvironmentName name) + *

  • lookupEnvironmentHistory(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • lookupEnvironmentHistoryPagedCallable() - *
  • lookupEnvironmentHistoryCallable() + *
  • lookupEnvironmentHistoryPagedCallable() + *

  • lookupEnvironmentHistoryCallable() *

*
RunContinuousTest

RunContinuousTest

Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata] - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • runContinuousTestAsync(RunContinuousTestRequest request) + *
  • runContinuousTestAsync(RunContinuousTestRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • runContinuousTestOperationCallable() - *
  • runContinuousTestCallable() + *
  • runContinuousTestOperationCallable() + *

  • runContinuousTestCallable() *

*
ListContinuousTestResults

ListContinuousTestResults

Fetches a list of continuous test results for a given environment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listContinuousTestResults(ListContinuousTestResultsRequest request) + *
  • listContinuousTestResults(ListContinuousTestResultsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listContinuousTestResults(EnvironmentName parent) - *
  • listContinuousTestResults(String parent) + *
  • listContinuousTestResults(EnvironmentName parent) + *

  • listContinuousTestResults(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listContinuousTestResultsPagedCallable() - *
  • listContinuousTestResultsCallable() + *
  • listContinuousTestResultsPagedCallable() + *

  • listContinuousTestResultsCallable() *

*
DeployFlow

DeployFlow

Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata] - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deployFlowAsync(DeployFlowRequest request) + *
  • deployFlowAsync(DeployFlowRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deployFlowOperationCallable() - *
  • deployFlowCallable() + *
  • deployFlowOperationCallable() + *

  • deployFlowCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java index aeb7a6e60485..00171ed0abdf 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java @@ -64,173 +64,174 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListExperiments

ListExperiments

Returns the list of all experiments in the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listExperiments(ListExperimentsRequest request) + *
  • listExperiments(ListExperimentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listExperiments(EnvironmentName parent) - *
  • listExperiments(String parent) + *
  • listExperiments(EnvironmentName parent) + *

  • listExperiments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listExperimentsPagedCallable() - *
  • listExperimentsCallable() + *
  • listExperimentsPagedCallable() + *

  • listExperimentsCallable() *

*
GetExperiment

GetExperiment

Retrieves the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getExperiment(GetExperimentRequest request) + *
  • getExperiment(GetExperimentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getExperiment(ExperimentName name) - *
  • getExperiment(String name) + *
  • getExperiment(ExperimentName name) + *

  • getExperiment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getExperimentCallable() + *
  • getExperimentCallable() *

*
CreateExperiment

CreateExperiment

Creates an [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment] in the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createExperiment(CreateExperimentRequest request) + *
  • createExperiment(CreateExperimentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createExperiment(EnvironmentName parent, Experiment experiment) - *
  • createExperiment(String parent, Experiment experiment) + *
  • createExperiment(EnvironmentName parent, Experiment experiment) + *

  • createExperiment(String parent, Experiment experiment) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createExperimentCallable() + *
  • createExperimentCallable() *

*
UpdateExperiment

UpdateExperiment

Updates the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateExperiment(UpdateExperimentRequest request) + *
  • updateExperiment(UpdateExperimentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateExperiment(Experiment experiment, FieldMask updateMask) + *
  • updateExperiment(Experiment experiment, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateExperimentCallable() + *
  • updateExperimentCallable() *

*
DeleteExperiment

DeleteExperiment

Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteExperiment(DeleteExperimentRequest request) + *
  • deleteExperiment(DeleteExperimentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteExperiment(ExperimentName name) - *
  • deleteExperiment(String name) + *
  • deleteExperiment(ExperimentName name) + *

  • deleteExperiment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteExperimentCallable() + *
  • deleteExperimentCallable() *

*
StartExperiment

StartExperiment

Starts the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment]. This rpc only changes the state of experiment from PENDING to RUNNING.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • startExperiment(StartExperimentRequest request) + *
  • startExperiment(StartExperimentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • startExperiment(ExperimentName name) - *
  • startExperiment(String name) + *
  • startExperiment(ExperimentName name) + *

  • startExperiment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • startExperimentCallable() + *
  • startExperimentCallable() *

*
StopExperiment

StopExperiment

Stops the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment]. This rpc only changes the state of experiment from RUNNING to DONE.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • stopExperiment(StopExperimentRequest request) + *
  • stopExperiment(StopExperimentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • stopExperiment(ExperimentName name) - *
  • stopExperiment(String name) + *
  • stopExperiment(ExperimentName name) + *

  • stopExperiment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • stopExperimentCallable() + *
  • stopExperimentCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java index 4f935160ea0e..8f94444fd169 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java @@ -68,109 +68,111 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateFlow

CreateFlow

Creates a flow in the specified agent. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createFlow(CreateFlowRequest request) + *
  • createFlow(CreateFlowRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createFlow(AgentName parent, Flow flow) - *
  • createFlow(String parent, Flow flow) + *
  • createFlow(AgentName parent, Flow flow) + *

  • createFlow(String parent, Flow flow) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createFlowCallable() + *
  • createFlowCallable() *

*
DeleteFlow

DeleteFlow

Deletes a specified flow.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteFlow(DeleteFlowRequest request) + *
  • deleteFlow(DeleteFlowRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteFlow(FlowName name) - *
  • deleteFlow(String name) + *
  • deleteFlow(FlowName name) + *

  • deleteFlow(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteFlowCallable() + *
  • deleteFlowCallable() *

*
ListFlows

ListFlows

Returns the list of all flows in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listFlows(ListFlowsRequest request) + *
  • listFlows(ListFlowsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listFlows(AgentName parent) - *
  • listFlows(String parent) + *
  • listFlows(AgentName parent) + *

  • listFlows(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listFlowsPagedCallable() - *
  • listFlowsCallable() + *
  • listFlowsPagedCallable() + *

  • listFlowsCallable() *

*
GetFlow

GetFlow

Retrieves the specified flow.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getFlow(GetFlowRequest request) + *
  • getFlow(GetFlowRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getFlow(FlowName name) - *
  • getFlow(String name) + *
  • getFlow(FlowName name) + *

  • getFlow(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getFlowCallable() + *
  • getFlowCallable() *

*
UpdateFlow

UpdateFlow

Updates the specified flow. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateFlow(UpdateFlowRequest request) + *
  • updateFlow(UpdateFlowRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateFlow(Flow flow, FieldMask updateMask) + *
  • updateFlow(Flow flow, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateFlowCallable() + *
  • updateFlowCallable() *

*
TrainFlow

TrainFlow

Trains the specified flow. Note that only the flow in 'draft' environment is trained. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -178,55 +180,55 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • trainFlowAsync(TrainFlowRequest request) + *
  • trainFlowAsync(TrainFlowRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • trainFlowAsync(FlowName name) - *
  • trainFlowAsync(String name) + *
  • trainFlowAsync(FlowName name) + *

  • trainFlowAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • trainFlowOperationCallable() - *
  • trainFlowCallable() + *
  • trainFlowOperationCallable() + *

  • trainFlowCallable() *

*
ValidateFlow

ValidateFlow

Validates the specified flow and creates or updates validation results. Please call this API after the training is completed to get the complete validation results.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • validateFlow(ValidateFlowRequest request) + *
  • validateFlow(ValidateFlowRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • validateFlowCallable() + *
  • validateFlowCallable() *

*
GetFlowValidationResult

GetFlowValidationResult

Gets the latest flow validation result. Flow validation is performed when ValidateFlow is called.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getFlowValidationResult(GetFlowValidationResultRequest request) + *
  • getFlowValidationResult(GetFlowValidationResultRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getFlowValidationResult(FlowValidationResultName name) - *
  • getFlowValidationResult(String name) + *
  • getFlowValidationResult(FlowValidationResultName name) + *

  • getFlowValidationResult(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getFlowValidationResultCallable() + *
  • getFlowValidationResultCallable() *

*
ImportFlow

ImportFlow

Imports the specified flow to the specified agent from a binary file. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse] @@ -234,17 +236,17 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importFlowAsync(ImportFlowRequest request) + *
  • importFlowAsync(ImportFlowRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importFlowOperationCallable() - *
  • importFlowCallable() + *
  • importFlowOperationCallable() + *

  • importFlowCallable() *

*
ExportFlow

ExportFlow

Exports the specified flow to a binary file. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse] @@ -252,45 +254,44 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportFlowAsync(ExportFlowRequest request) + *
  • exportFlowAsync(ExportFlowRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportFlowOperationCallable() - *
  • exportFlowCallable() + *
  • exportFlowOperationCallable() + *

  • exportFlowCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java index fbca5fec810f..722a947283cc 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java @@ -63,135 +63,136 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListGenerators

ListGenerators

Returns the list of all generators in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listGenerators(ListGeneratorsRequest request) + *
  • listGenerators(ListGeneratorsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listGenerators(AgentName parent) - *
  • listGenerators(String parent) + *
  • listGenerators(AgentName parent) + *

  • listGenerators(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listGeneratorsPagedCallable() - *
  • listGeneratorsCallable() + *
  • listGeneratorsPagedCallable() + *

  • listGeneratorsCallable() *

*
GetGenerator

GetGenerator

Retrieves the specified generator.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getGenerator(GetGeneratorRequest request) + *
  • getGenerator(GetGeneratorRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getGenerator(GeneratorName name) - *
  • getGenerator(String name) + *
  • getGenerator(GeneratorName name) + *

  • getGenerator(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getGeneratorCallable() + *
  • getGeneratorCallable() *

*
CreateGenerator

CreateGenerator

Creates a generator in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createGenerator(CreateGeneratorRequest request) + *
  • createGenerator(CreateGeneratorRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createGenerator(AgentName parent, Generator generator) - *
  • createGenerator(String parent, Generator generator) + *
  • createGenerator(AgentName parent, Generator generator) + *

  • createGenerator(String parent, Generator generator) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createGeneratorCallable() + *
  • createGeneratorCallable() *

*
UpdateGenerator

UpdateGenerator

Update the specified generator.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateGenerator(UpdateGeneratorRequest request) + *
  • updateGenerator(UpdateGeneratorRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateGenerator(Generator generator, FieldMask updateMask) + *
  • updateGenerator(Generator generator, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateGeneratorCallable() + *
  • updateGeneratorCallable() *

*
DeleteGenerator

DeleteGenerator

Deletes the specified generators.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteGenerator(DeleteGeneratorRequest request) + *
  • deleteGenerator(DeleteGeneratorRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteGenerator(GeneratorName name) - *
  • deleteGenerator(String name) + *
  • deleteGenerator(GeneratorName name) + *

  • deleteGenerator(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteGeneratorCallable() + *
  • deleteGeneratorCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java index 7693bab98a91..eae47316f0fd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java @@ -66,172 +66,173 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListIntents

ListIntents

Returns the list of all intents in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listIntents(ListIntentsRequest request) + *
  • listIntents(ListIntentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listIntents(AgentName parent) - *
  • listIntents(String parent) + *
  • listIntents(AgentName parent) + *

  • listIntents(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listIntentsPagedCallable() - *
  • listIntentsCallable() + *
  • listIntentsPagedCallable() + *

  • listIntentsCallable() *

*
GetIntent

GetIntent

Retrieves the specified intent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIntent(GetIntentRequest request) + *
  • getIntent(GetIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getIntent(IntentName name) - *
  • getIntent(String name) + *
  • getIntent(IntentName name) + *

  • getIntent(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIntentCallable() + *
  • getIntentCallable() *

*
CreateIntent

CreateIntent

Creates an intent in the specified agent. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createIntent(CreateIntentRequest request) + *
  • createIntent(CreateIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createIntent(AgentName parent, Intent intent) - *
  • createIntent(String parent, Intent intent) + *
  • createIntent(AgentName parent, Intent intent) + *

  • createIntent(String parent, Intent intent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createIntentCallable() + *
  • createIntentCallable() *

*
UpdateIntent

UpdateIntent

Updates the specified intent. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateIntent(UpdateIntentRequest request) + *
  • updateIntent(UpdateIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateIntent(Intent intent, FieldMask updateMask) + *
  • updateIntent(Intent intent, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateIntentCallable() + *
  • updateIntentCallable() *

*
DeleteIntent

DeleteIntent

Deletes the specified intent. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteIntent(DeleteIntentRequest request) + *
  • deleteIntent(DeleteIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteIntent(IntentName name) - *
  • deleteIntent(String name) + *
  • deleteIntent(IntentName name) + *

  • deleteIntent(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteIntentCallable() + *
  • deleteIntentCallable() *

*
ImportIntents

ImportIntents

Imports the specified intents into the agent. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata] - `response`: [ImportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importIntentsAsync(ImportIntentsRequest request) + *
  • importIntentsAsync(ImportIntentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importIntentsOperationCallable() - *
  • importIntentsCallable() + *
  • importIntentsOperationCallable() + *

  • importIntentsCallable() *

*
ExportIntents

ExportIntents

Exports the selected intents. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata] - `response`: [ExportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportIntentsAsync(ExportIntentsRequest request) + *
  • exportIntentsAsync(ExportIntentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportIntentsOperationCallable() - *
  • exportIntentsCallable() + *
  • exportIntentsOperationCallable() + *

  • exportIntentsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java index 7f8354c91dfa..197df09c0519 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java @@ -62,135 +62,136 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListPages

ListPages

Returns the list of all pages in the specified flow.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listPages(ListPagesRequest request) + *
  • listPages(ListPagesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listPages(FlowName parent) - *
  • listPages(String parent) + *
  • listPages(FlowName parent) + *

  • listPages(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listPagesPagedCallable() - *
  • listPagesCallable() + *
  • listPagesPagedCallable() + *

  • listPagesCallable() *

*
GetPage

GetPage

Retrieves the specified page.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getPage(GetPageRequest request) + *
  • getPage(GetPageRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getPage(PageName name) - *
  • getPage(String name) + *
  • getPage(PageName name) + *

  • getPage(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getPageCallable() + *
  • getPageCallable() *

*
CreatePage

CreatePage

Creates a page in the specified flow.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createPage(CreatePageRequest request) + *
  • createPage(CreatePageRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createPage(FlowName parent, Page page) - *
  • createPage(String parent, Page page) + *
  • createPage(FlowName parent, Page page) + *

  • createPage(String parent, Page page) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createPageCallable() + *
  • createPageCallable() *

*
UpdatePage

UpdatePage

Updates the specified page.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updatePage(UpdatePageRequest request) + *
  • updatePage(UpdatePageRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updatePage(Page page, FieldMask updateMask) + *
  • updatePage(Page page, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updatePageCallable() + *
  • updatePageCallable() *

*
DeletePage

DeletePage

Deletes the specified page.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deletePage(DeletePageRequest request) + *
  • deletePage(DeletePageRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deletePage(PageName name) - *
  • deletePage(String name) + *
  • deletePage(PageName name) + *

  • deletePage(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deletePageCallable() + *
  • deletePageCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java index f26f49c66930..beb2de3d7547 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java @@ -66,135 +66,136 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateSecuritySettings

CreateSecuritySettings

Create security settings in the specified location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSecuritySettings(CreateSecuritySettingsRequest request) + *
  • createSecuritySettings(CreateSecuritySettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createSecuritySettings(LocationName parent, SecuritySettings securitySettings) - *
  • createSecuritySettings(String parent, SecuritySettings securitySettings) + *
  • createSecuritySettings(LocationName parent, SecuritySettings securitySettings) + *

  • createSecuritySettings(String parent, SecuritySettings securitySettings) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSecuritySettingsCallable() + *
  • createSecuritySettingsCallable() *

*
GetSecuritySettings

GetSecuritySettings

Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. The returned settings may be stale by up to 1 minute.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSecuritySettings(GetSecuritySettingsRequest request) + *
  • getSecuritySettings(GetSecuritySettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSecuritySettings(SecuritySettingsName name) - *
  • getSecuritySettings(String name) + *
  • getSecuritySettings(SecuritySettingsName name) + *

  • getSecuritySettings(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSecuritySettingsCallable() + *
  • getSecuritySettingsCallable() *

*
UpdateSecuritySettings

UpdateSecuritySettings

Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSecuritySettings(UpdateSecuritySettingsRequest request) + *
  • updateSecuritySettings(UpdateSecuritySettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateSecuritySettings(SecuritySettings securitySettings, FieldMask updateMask) + *
  • updateSecuritySettings(SecuritySettings securitySettings, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSecuritySettingsCallable() + *
  • updateSecuritySettingsCallable() *

*
ListSecuritySettings

ListSecuritySettings

Returns the list of all security settings in the specified location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSecuritySettings(ListSecuritySettingsRequest request) + *
  • listSecuritySettings(ListSecuritySettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSecuritySettings(LocationName parent) - *
  • listSecuritySettings(String parent) + *
  • listSecuritySettings(LocationName parent) + *

  • listSecuritySettings(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSecuritySettingsPagedCallable() - *
  • listSecuritySettingsCallable() + *
  • listSecuritySettingsPagedCallable() + *

  • listSecuritySettingsCallable() *

*
DeleteSecuritySettings

DeleteSecuritySettings

Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSecuritySettings(DeleteSecuritySettingsRequest request) + *
  • deleteSecuritySettings(DeleteSecuritySettingsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteSecuritySettings(SecuritySettingsName name) - *
  • deleteSecuritySettings(String name) + *
  • deleteSecuritySettings(SecuritySettingsName name) + *

  • deleteSecuritySettings(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSecuritySettingsCallable() + *
  • deleteSecuritySettingsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java index 2ca48972248d..8727900fd283 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java @@ -66,135 +66,136 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListSessionEntityTypes

ListSessionEntityTypes

Returns the list of all session entity types in the specified session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSessionEntityTypes(ListSessionEntityTypesRequest request) + *
  • listSessionEntityTypes(ListSessionEntityTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSessionEntityTypes(SessionName parent) - *
  • listSessionEntityTypes(String parent) + *
  • listSessionEntityTypes(SessionName parent) + *

  • listSessionEntityTypes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSessionEntityTypesPagedCallable() - *
  • listSessionEntityTypesCallable() + *
  • listSessionEntityTypesPagedCallable() + *

  • listSessionEntityTypesCallable() *

*
GetSessionEntityType

GetSessionEntityType

Retrieves the specified session entity type.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSessionEntityType(GetSessionEntityTypeRequest request) + *
  • getSessionEntityType(GetSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSessionEntityType(SessionEntityTypeName name) - *
  • getSessionEntityType(String name) + *
  • getSessionEntityType(SessionEntityTypeName name) + *

  • getSessionEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSessionEntityTypeCallable() + *
  • getSessionEntityTypeCallable() *

*
CreateSessionEntityType

CreateSessionEntityType

Creates a session entity type.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSessionEntityType(CreateSessionEntityTypeRequest request) + *
  • createSessionEntityType(CreateSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createSessionEntityType(SessionName parent, SessionEntityType sessionEntityType) - *
  • createSessionEntityType(String parent, SessionEntityType sessionEntityType) + *
  • createSessionEntityType(SessionName parent, SessionEntityType sessionEntityType) + *

  • createSessionEntityType(String parent, SessionEntityType sessionEntityType) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSessionEntityTypeCallable() + *
  • createSessionEntityTypeCallable() *

*
UpdateSessionEntityType

UpdateSessionEntityType

Updates the specified session entity type.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSessionEntityType(UpdateSessionEntityTypeRequest request) + *
  • updateSessionEntityType(UpdateSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateSessionEntityType(SessionEntityType sessionEntityType, FieldMask updateMask) + *
  • updateSessionEntityType(SessionEntityType sessionEntityType, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSessionEntityTypeCallable() + *
  • updateSessionEntityTypeCallable() *

*
DeleteSessionEntityType

DeleteSessionEntityType

Deletes the specified session entity type.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSessionEntityType(DeleteSessionEntityTypeRequest request) + *
  • deleteSessionEntityType(DeleteSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteSessionEntityType(SessionEntityTypeName name) - *
  • deleteSessionEntityType(String name) + *
  • deleteSessionEntityType(SessionEntityTypeName name) + *

  • deleteSessionEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSessionEntityTypeCallable() + *
  • deleteSessionEntityTypeCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java index f69ce5a4eade..b6239ef5ece0 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java @@ -72,108 +72,109 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
DetectIntent

DetectIntent

Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause session entity types to be updated, which in turn might affect results of future queries. *

Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • detectIntent(DetectIntentRequest request) + *
  • detectIntent(DetectIntentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • detectIntentCallable() + *
  • detectIntentCallable() *

*
StreamingDetectIntent

StreamingDetectIntent

Processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST). *

Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • streamingDetectIntentCallable() + *
  • streamingDetectIntentCallable() *

*
MatchIntent

MatchIntent

Returns preliminary intent match results, doesn't change the session status.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • matchIntent(MatchIntentRequest request) + *
  • matchIntent(MatchIntentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • matchIntentCallable() + *
  • matchIntentCallable() *

*
FulfillIntent

FulfillIntent

Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent]. Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent], with input from [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse]. Otherwise, the behavior is undefined.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • fulfillIntent(FulfillIntentRequest request) + *
  • fulfillIntent(FulfillIntentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • fulfillIntentCallable() + *
  • fulfillIntentCallable() *

*
SubmitAnswerFeedback

SubmitAnswerFeedback

Updates the feedback received from the user for a single turn of the bot response.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • submitAnswerFeedback(SubmitAnswerFeedbackRequest request) + *
  • submitAnswerFeedback(SubmitAnswerFeedbackRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • submitAnswerFeedbackCallable() + *
  • submitAnswerFeedbackCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java index bdc5c52025dc..6f7c54ee0509 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java @@ -68,256 +68,257 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListTestCases

ListTestCases

Fetches a list of test cases for a given agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTestCases(ListTestCasesRequest request) + *
  • listTestCases(ListTestCasesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTestCases(AgentName parent) - *
  • listTestCases(String parent) + *
  • listTestCases(AgentName parent) + *

  • listTestCases(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTestCasesPagedCallable() - *
  • listTestCasesCallable() + *
  • listTestCasesPagedCallable() + *

  • listTestCasesCallable() *

*
BatchDeleteTestCases

BatchDeleteTestCases

Batch deletes test cases.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchDeleteTestCases(BatchDeleteTestCasesRequest request) + *
  • batchDeleteTestCases(BatchDeleteTestCasesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • batchDeleteTestCases(AgentName parent) - *
  • batchDeleteTestCases(String parent) + *
  • batchDeleteTestCases(AgentName parent) + *

  • batchDeleteTestCases(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchDeleteTestCasesCallable() + *
  • batchDeleteTestCasesCallable() *

*
GetTestCase

GetTestCase

Gets a test case.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTestCase(GetTestCaseRequest request) + *
  • getTestCase(GetTestCaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTestCase(TestCaseName name) - *
  • getTestCase(String name) + *
  • getTestCase(TestCaseName name) + *

  • getTestCase(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTestCaseCallable() + *
  • getTestCaseCallable() *

*
CreateTestCase

CreateTestCase

Creates a test case for the given agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createTestCase(CreateTestCaseRequest request) + *
  • createTestCase(CreateTestCaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createTestCase(AgentName parent, TestCase testCase) - *
  • createTestCase(String parent, TestCase testCase) + *
  • createTestCase(AgentName parent, TestCase testCase) + *

  • createTestCase(String parent, TestCase testCase) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createTestCaseCallable() + *
  • createTestCaseCallable() *

*
UpdateTestCase

UpdateTestCase

Updates the specified test case.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateTestCase(UpdateTestCaseRequest request) + *
  • updateTestCase(UpdateTestCaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateTestCase(TestCase testCase, FieldMask updateMask) + *
  • updateTestCase(TestCase testCase, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateTestCaseCallable() + *
  • updateTestCaseCallable() *

*
RunTestCase

RunTestCase

Kicks off a test case run. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata] - `response`: [RunTestCaseResponse][google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • runTestCaseAsync(RunTestCaseRequest request) + *
  • runTestCaseAsync(RunTestCaseRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • runTestCaseOperationCallable() - *
  • runTestCaseCallable() + *
  • runTestCaseOperationCallable() + *

  • runTestCaseCallable() *

*
BatchRunTestCases

BatchRunTestCases

Kicks off a batch run of test cases. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata] - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchRunTestCasesAsync(BatchRunTestCasesRequest request) + *
  • batchRunTestCasesAsync(BatchRunTestCasesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchRunTestCasesOperationCallable() - *
  • batchRunTestCasesCallable() + *
  • batchRunTestCasesOperationCallable() + *

  • batchRunTestCasesCallable() *

*
CalculateCoverage

CalculateCoverage

Calculates the test coverage for an agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • calculateCoverage(CalculateCoverageRequest request) + *
  • calculateCoverage(CalculateCoverageRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • calculateCoverageCallable() + *
  • calculateCoverageCallable() *

*
ImportTestCases

ImportTestCases

Imports the test cases from a Cloud Storage bucket or a local file. It always creates new test cases and won't overwrite any existing ones. The provided ID in the imported test case is neglected. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata] - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importTestCasesAsync(ImportTestCasesRequest request) + *
  • importTestCasesAsync(ImportTestCasesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importTestCasesOperationCallable() - *
  • importTestCasesCallable() + *
  • importTestCasesOperationCallable() + *

  • importTestCasesCallable() *

*
ExportTestCases

ExportTestCases

Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be applied to export a subset of test cases. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata] - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportTestCasesAsync(ExportTestCasesRequest request) + *
  • exportTestCasesAsync(ExportTestCasesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportTestCasesOperationCallable() - *
  • exportTestCasesCallable() + *
  • exportTestCasesOperationCallable() + *

  • exportTestCasesCallable() *

*
ListTestCaseResults

ListTestCaseResults

Fetches the list of run results for the given test case. A maximum of 100 results are kept for each test case.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTestCaseResults(ListTestCaseResultsRequest request) + *
  • listTestCaseResults(ListTestCaseResultsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTestCaseResults(TestCaseName parent) - *
  • listTestCaseResults(String parent) + *
  • listTestCaseResults(TestCaseName parent) + *

  • listTestCaseResults(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTestCaseResultsPagedCallable() - *
  • listTestCaseResultsCallable() + *
  • listTestCaseResultsPagedCallable() + *

  • listTestCaseResultsCallable() *

*
GetTestCaseResult

GetTestCaseResult

Gets a test case result.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTestCaseResult(GetTestCaseResultRequest request) + *
  • getTestCaseResult(GetTestCaseResultRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTestCaseResult(TestCaseResultName name) - *
  • getTestCaseResult(String name) + *
  • getTestCaseResult(TestCaseResultName name) + *

  • getTestCaseResult(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTestCaseResultCallable() + *
  • getTestCaseResultCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java index 8d28d0d0af47..2cd305c0dc67 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java @@ -67,140 +67,141 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListTransitionRouteGroups

ListTransitionRouteGroups

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

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTransitionRouteGroups(ListTransitionRouteGroupsRequest request) + *
  • listTransitionRouteGroups(ListTransitionRouteGroupsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTransitionRouteGroups(AgentName parent) - *
  • listTransitionRouteGroups(FlowName parent) - *
  • listTransitionRouteGroups(String parent) + *
  • listTransitionRouteGroups(AgentName parent) + *

  • listTransitionRouteGroups(FlowName parent) + *

  • listTransitionRouteGroups(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTransitionRouteGroupsPagedCallable() - *
  • listTransitionRouteGroupsCallable() + *
  • listTransitionRouteGroupsPagedCallable() + *

  • listTransitionRouteGroupsCallable() *

*
GetTransitionRouteGroup

GetTransitionRouteGroup

Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTransitionRouteGroup(GetTransitionRouteGroupRequest request) + *
  • getTransitionRouteGroup(GetTransitionRouteGroupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTransitionRouteGroup(TransitionRouteGroupName name) - *
  • getTransitionRouteGroup(String name) + *
  • getTransitionRouteGroup(TransitionRouteGroupName name) + *

  • getTransitionRouteGroup(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTransitionRouteGroupCallable() + *
  • getTransitionRouteGroupCallable() *

*
CreateTransitionRouteGroup

CreateTransitionRouteGroup

Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup] in the specified flow. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createTransitionRouteGroup(CreateTransitionRouteGroupRequest request) + *
  • createTransitionRouteGroup(CreateTransitionRouteGroupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createTransitionRouteGroup(AgentName parent, TransitionRouteGroup transitionRouteGroup) - *
  • createTransitionRouteGroup(FlowName parent, TransitionRouteGroup transitionRouteGroup) - *
  • createTransitionRouteGroup(String parent, TransitionRouteGroup transitionRouteGroup) + *
  • createTransitionRouteGroup(AgentName parent, TransitionRouteGroup transitionRouteGroup) + *

  • createTransitionRouteGroup(FlowName parent, TransitionRouteGroup transitionRouteGroup) + *

  • createTransitionRouteGroup(String parent, TransitionRouteGroup transitionRouteGroup) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createTransitionRouteGroupCallable() + *
  • createTransitionRouteGroupCallable() *

*
UpdateTransitionRouteGroup

UpdateTransitionRouteGroup

Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateTransitionRouteGroup(UpdateTransitionRouteGroupRequest request) + *
  • updateTransitionRouteGroup(UpdateTransitionRouteGroupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateTransitionRouteGroup(TransitionRouteGroup transitionRouteGroup, FieldMask updateMask) + *
  • updateTransitionRouteGroup(TransitionRouteGroup transitionRouteGroup, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateTransitionRouteGroupCallable() + *
  • updateTransitionRouteGroupCallable() *

*
DeleteTransitionRouteGroup

DeleteTransitionRouteGroup

Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. *

Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest request) + *
  • deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteTransitionRouteGroup(TransitionRouteGroupName name) - *
  • deleteTransitionRouteGroup(String name) + *
  • deleteTransitionRouteGroup(TransitionRouteGroupName name) + *

  • deleteTransitionRouteGroup(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteTransitionRouteGroupCallable() + *
  • deleteTransitionRouteGroupCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java index 4619e8f13f81..7b42d5b1ecd1 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java @@ -68,179 +68,180 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListVersions

ListVersions

Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listVersions(ListVersionsRequest request) + *
  • listVersions(ListVersionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listVersions(FlowName parent) - *
  • listVersions(String parent) + *
  • listVersions(FlowName parent) + *

  • listVersions(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listVersionsPagedCallable() - *
  • listVersionsCallable() + *
  • listVersionsPagedCallable() + *

  • listVersionsCallable() *

*
GetVersion

GetVersion

Retrieves the specified [Version][google.cloud.dialogflow.cx.v3beta1.Version].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getVersion(GetVersionRequest request) + *
  • getVersion(GetVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getVersion(VersionName name) - *
  • getVersion(String name) + *
  • getVersion(VersionName name) + *

  • getVersion(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getVersionCallable() + *
  • getVersionCallable() *

*
CreateVersion

CreateVersion

Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata] - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createVersionAsync(CreateVersionRequest request) + *
  • createVersionAsync(CreateVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createVersionAsync(FlowName parent, Version version) - *
  • createVersionAsync(String parent, Version version) + *
  • createVersionAsync(FlowName parent, Version version) + *

  • createVersionAsync(String parent, Version version) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createVersionOperationCallable() - *
  • createVersionCallable() + *
  • createVersionOperationCallable() + *

  • createVersionCallable() *

*
UpdateVersion

UpdateVersion

Updates the specified [Version][google.cloud.dialogflow.cx.v3beta1.Version].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateVersion(UpdateVersionRequest request) + *
  • updateVersion(UpdateVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateVersion(Version version, FieldMask updateMask) + *
  • updateVersion(Version version, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateVersionCallable() + *
  • updateVersionCallable() *

*
DeleteVersion

DeleteVersion

Deletes the specified [Version][google.cloud.dialogflow.cx.v3beta1.Version].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteVersion(DeleteVersionRequest request) + *
  • deleteVersion(DeleteVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteVersion(VersionName name) - *
  • deleteVersion(String name) + *
  • deleteVersion(VersionName name) + *

  • deleteVersion(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteVersionCallable() + *
  • deleteVersionCallable() *

*
LoadVersion

LoadVersion

Loads resources in the specified version to the draft flow. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • loadVersionAsync(LoadVersionRequest request) + *
  • loadVersionAsync(LoadVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • loadVersionAsync(VersionName name) - *
  • loadVersionAsync(String name) + *
  • loadVersionAsync(VersionName name) + *

  • loadVersionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • loadVersionOperationCallable() - *
  • loadVersionCallable() + *
  • loadVersionOperationCallable() + *

  • loadVersionCallable() *

*
CompareVersions

CompareVersions

Compares the specified base version with target version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • compareVersions(CompareVersionsRequest request) + *
  • compareVersions(CompareVersionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • compareVersions(VersionName baseVersion) - *
  • compareVersions(String baseVersion) + *
  • compareVersions(VersionName baseVersion) + *

  • compareVersions(String baseVersion) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • compareVersionsCallable() + *
  • compareVersionsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java index f0987bde7409..93986d23f73b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java @@ -62,135 +62,136 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListWebhooks

ListWebhooks

Returns the list of all webhooks in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listWebhooks(ListWebhooksRequest request) + *
  • listWebhooks(ListWebhooksRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listWebhooks(AgentName parent) - *
  • listWebhooks(String parent) + *
  • listWebhooks(AgentName parent) + *

  • listWebhooks(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listWebhooksPagedCallable() - *
  • listWebhooksCallable() + *
  • listWebhooksPagedCallable() + *

  • listWebhooksCallable() *

*
GetWebhook

GetWebhook

Retrieves the specified webhook.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getWebhook(GetWebhookRequest request) + *
  • getWebhook(GetWebhookRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getWebhook(WebhookName name) - *
  • getWebhook(String name) + *
  • getWebhook(WebhookName name) + *

  • getWebhook(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getWebhookCallable() + *
  • getWebhookCallable() *

*
CreateWebhook

CreateWebhook

Creates a webhook in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createWebhook(CreateWebhookRequest request) + *
  • createWebhook(CreateWebhookRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createWebhook(AgentName parent, Webhook webhook) - *
  • createWebhook(String parent, Webhook webhook) + *
  • createWebhook(AgentName parent, Webhook webhook) + *

  • createWebhook(String parent, Webhook webhook) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createWebhookCallable() + *
  • createWebhookCallable() *

*
UpdateWebhook

UpdateWebhook

Updates the specified webhook.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateWebhook(UpdateWebhookRequest request) + *
  • updateWebhook(UpdateWebhookRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateWebhook(Webhook webhook, FieldMask updateMask) + *
  • updateWebhook(Webhook webhook, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateWebhookCallable() + *
  • updateWebhookCallable() *

*
DeleteWebhook

DeleteWebhook

Deletes the specified webhook.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteWebhook(DeleteWebhookRequest request) + *
  • deleteWebhook(DeleteWebhookRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteWebhook(WebhookName name) - *
  • deleteWebhook(String name) + *
  • deleteWebhook(WebhookName name) + *

  • deleteWebhook(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteWebhookCallable() + *
  • deleteWebhookCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java index d445fa1f8123..1147678a190f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java @@ -354,6 +354,15 @@ public AgentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -621,7 +630,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -634,7 +642,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -860,6 +867,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public AgentsStubSettings build() throws IOException { return new AgentsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java index c1b09e6916a3..8f2920805e84 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java @@ -262,6 +262,15 @@ public ChangelogsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -449,7 +458,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -462,7 +470,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -532,6 +539,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ChangelogsStubSettings build() throws IOException { return new ChangelogsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java index 7949c01a62e6..846d69d0dfcd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java @@ -265,6 +265,15 @@ public DeploymentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -452,7 +461,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -465,7 +473,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -535,6 +542,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DeploymentsStubSettings build() throws IOException { return new DeploymentsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java index d1faf58eaa11..4faf7bb29110 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java @@ -287,6 +287,15 @@ public EntityTypesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -495,7 +504,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -508,7 +516,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -610,6 +617,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EntityTypesStubSettings build() throws IOException { return new EntityTypesStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java index 60bdb26aa71e..d6f8da54cd34 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java @@ -530,6 +530,15 @@ public EnvironmentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -799,7 +808,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -812,7 +820,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1093,6 +1100,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EnvironmentsStubSettings build() throws IOException { return new EnvironmentsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java index fe289778aa06..6c89b3123f39 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java @@ -301,6 +301,15 @@ public ExperimentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -523,7 +532,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -536,7 +544,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -658,6 +665,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ExperimentsStubSettings build() throws IOException { return new ExperimentsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java index ed8976cb01aa..0bbb02b806cd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java @@ -349,6 +349,15 @@ public FlowsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -599,7 +608,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -612,7 +620,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -856,6 +863,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public FlowsStubSettings build() throws IOException { return new FlowsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java index b18127685e0e..c41b2c10bf04 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java @@ -284,6 +284,15 @@ public GeneratorsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -491,7 +500,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -504,7 +512,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -604,6 +611,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public GeneratorsStubSettings build() throws IOException { return new GeneratorsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java index 881d56ae9cd8..acb0348b574f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java @@ -322,6 +322,15 @@ public IntentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -549,7 +558,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -562,7 +570,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -748,6 +755,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public IntentsStubSettings build() throws IOException { return new IntentsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java index af09843db2bb..f0f0f4c6837f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java @@ -281,6 +281,15 @@ public PagesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -484,7 +493,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -497,7 +505,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -596,6 +603,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public PagesStubSettings build() throws IOException { return new PagesStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java index 028e497cdd84..dda59734a953 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java @@ -309,6 +309,15 @@ public SecuritySettingsServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -522,7 +531,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -535,7 +543,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -641,6 +648,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SecuritySettingsServiceStubSettings build() throws IOException { return new SecuritySettingsServiceStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java index 72cd65663da0..e5f03be758f4 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java @@ -314,6 +314,15 @@ public SessionEntityTypesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -527,7 +536,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -540,7 +548,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -646,6 +653,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SessionEntityTypesStubSettings build() throws IOException { return new SessionEntityTypesStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java index 2d613673fa6e..e3553e9405b9 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java @@ -233,6 +233,15 @@ public SessionsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -462,7 +471,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -475,7 +483,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -574,6 +581,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SessionsStubSettings build() throws IOException { return new SessionsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java index 5babe3b115af..03c5c0726d1d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java @@ -454,6 +454,15 @@ public TestCasesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -735,7 +744,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -748,7 +756,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1059,6 +1066,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public TestCasesStubSettings build() throws IOException { return new TestCasesStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java index b4c250c198ac..1b63f354e0b4 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java @@ -320,6 +320,15 @@ public TransitionRouteGroupsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -536,7 +545,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -549,7 +557,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -655,6 +662,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public TransitionRouteGroupsStubSettings build() throws IOException { return new TransitionRouteGroupsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java index 01a779ea85a2..195d256d7e25 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java @@ -321,6 +321,15 @@ public VersionsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -548,7 +557,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -561,7 +569,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -747,6 +754,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public VersionsStubSettings build() throws IOException { return new VersionsStubSettings(this); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java index ab4f84daaa5e..bc6a4786e234 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java @@ -282,6 +282,15 @@ public WebhooksStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -485,7 +494,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -498,7 +506,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -598,6 +605,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public WebhooksStubSettings build() throws IOException { return new WebhooksStubSettings(this); diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 5b10db4e8a00..fca6732b03b3 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.39.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java index bd7a76b7e180..53cd325bf546 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java @@ -66,93 +66,95 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetAgent

GetAgent

Retrieves the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAgent(GetAgentRequest request) + *
  • getAgent(GetAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAgent(LocationName parent) - *
  • getAgent(ProjectName parent) - *
  • getAgent(String parent) + *
  • getAgent(LocationName parent) + *

  • getAgent(ProjectName parent) + *

  • getAgent(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAgentCallable() + *
  • getAgentCallable() *

*
SetAgent

SetAgent

Creates/updates the specified agent. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setAgent(SetAgentRequest request) + *
  • setAgent(SetAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • setAgent(Agent agent) + *
  • setAgent(Agent agent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setAgentCallable() + *
  • setAgentCallable() *

*
DeleteAgent

DeleteAgent

Deletes the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAgent(DeleteAgentRequest request) + *
  • deleteAgent(DeleteAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteAgent(LocationName parent) - *
  • deleteAgent(ProjectName parent) - *
  • deleteAgent(String parent) + *
  • deleteAgent(LocationName parent) + *

  • deleteAgent(ProjectName parent) + *

  • deleteAgent(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAgentCallable() + *
  • deleteAgentCallable() *

*
SearchAgents

SearchAgents

Returns the list of agents. *

Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id "-". Refer to [List Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • searchAgents(SearchAgentsRequest request) + *
  • searchAgents(SearchAgentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • searchAgents(LocationName parent) - *
  • searchAgents(ProjectName parent) - *
  • searchAgents(String parent) + *
  • searchAgents(LocationName parent) + *

  • searchAgents(ProjectName parent) + *

  • searchAgents(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchAgentsPagedCallable() - *
  • searchAgentsCallable() + *
  • searchAgentsPagedCallable() + *

  • searchAgentsCallable() *

*
TrainAgent

TrainAgent

Trains the specified agent. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -160,46 +162,46 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • trainAgentAsync(TrainAgentRequest request) + *
  • trainAgentAsync(TrainAgentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • trainAgentAsync(LocationName parent) - *
  • trainAgentAsync(ProjectName parent) - *
  • trainAgentAsync(String parent) + *
  • trainAgentAsync(LocationName parent) + *

  • trainAgentAsync(ProjectName parent) + *

  • trainAgentAsync(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • trainAgentOperationCallable() - *
  • trainAgentCallable() + *
  • trainAgentOperationCallable() + *

  • trainAgentCallable() *

*
ExportAgent

ExportAgent

Exports the specified agent to a ZIP file. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportAgentAsync(ExportAgentRequest request) + *
  • exportAgentAsync(ExportAgentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • exportAgentAsync(LocationName parent) - *
  • exportAgentAsync(ProjectName parent) - *
  • exportAgentAsync(String parent) + *
  • exportAgentAsync(LocationName parent) + *

  • exportAgentAsync(ProjectName parent) + *

  • exportAgentAsync(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportAgentOperationCallable() - *
  • exportAgentCallable() + *
  • exportAgentOperationCallable() + *

  • exportAgentCallable() *

*
ImportAgent

ImportAgent

Imports the specified agent from a ZIP file. *

Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train explicitly. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: @@ -209,17 +211,17 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importAgentAsync(ImportAgentRequest request) + *
  • importAgentAsync(ImportAgentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importAgentOperationCallable() - *
  • importAgentCallable() + *
  • importAgentOperationCallable() + *

  • importAgentCallable() *

*
RestoreAgent

RestoreAgent

Restores the specified agent from a ZIP file. *

Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train explicitly. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: @@ -229,59 +231,58 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • restoreAgentAsync(RestoreAgentRequest request) + *
  • restoreAgentAsync(RestoreAgentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • restoreAgentOperationCallable() - *
  • restoreAgentCallable() + *
  • restoreAgentOperationCallable() + *

  • restoreAgentCallable() *

*
GetValidationResult

GetValidationResult

Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getValidationResult(GetValidationResultRequest request) + *
  • getValidationResult(GetValidationResultRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getValidationResultCallable() + *
  • getValidationResultCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java index 39cb3fef92a6..329d2d7bd041 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java @@ -62,79 +62,80 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListAnswerRecords

ListAnswerRecords

Returns the list of all answer records in the specified project in reverse chronological order.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAnswerRecords(ListAnswerRecordsRequest request) + *
  • listAnswerRecords(ListAnswerRecordsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAnswerRecords(LocationName parent) - *
  • listAnswerRecords(ProjectName parent) - *
  • listAnswerRecords(String parent) + *
  • listAnswerRecords(LocationName parent) + *

  • listAnswerRecords(ProjectName parent) + *

  • listAnswerRecords(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listAnswerRecordsPagedCallable() - *
  • listAnswerRecordsCallable() + *
  • listAnswerRecordsPagedCallable() + *

  • listAnswerRecordsCallable() *

*
UpdateAnswerRecord

UpdateAnswerRecord

Updates the specified answer record.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateAnswerRecord(UpdateAnswerRecordRequest request) + *
  • updateAnswerRecord(UpdateAnswerRecordRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateAnswerRecord(AnswerRecord answerRecord, FieldMask updateMask) + *
  • updateAnswerRecord(AnswerRecord answerRecord, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateAnswerRecordCallable() + *
  • updateAnswerRecordCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java index 49472dca8d4d..6f07670a9951 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java @@ -62,155 +62,156 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListContexts

ListContexts

Returns the list of all contexts in the specified session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listContexts(ListContextsRequest request) + *
  • listContexts(ListContextsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listContexts(SessionName parent) - *
  • listContexts(String parent) + *
  • listContexts(SessionName parent) + *

  • listContexts(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listContextsPagedCallable() - *
  • listContextsCallable() + *
  • listContextsPagedCallable() + *

  • listContextsCallable() *

*
GetContext

GetContext

Retrieves the specified context.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getContext(GetContextRequest request) + *
  • getContext(GetContextRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getContext(ContextName name) - *
  • getContext(String name) + *
  • getContext(ContextName name) + *

  • getContext(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getContextCallable() + *
  • getContextCallable() *

*
CreateContext

CreateContext

Creates a context. *

If the specified context already exists, overrides the context.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createContext(CreateContextRequest request) + *
  • createContext(CreateContextRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createContext(SessionName parent, Context context) - *
  • createContext(String parent, Context context) + *
  • createContext(SessionName parent, Context context) + *

  • createContext(String parent, Context context) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createContextCallable() + *
  • createContextCallable() *

*
UpdateContext

UpdateContext

Updates the specified context.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateContext(UpdateContextRequest request) + *
  • updateContext(UpdateContextRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateContext(Context context, FieldMask updateMask) + *
  • updateContext(Context context, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateContextCallable() + *
  • updateContextCallable() *

*
DeleteContext

DeleteContext

Deletes the specified context.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteContext(DeleteContextRequest request) + *
  • deleteContext(DeleteContextRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteContext(ContextName name) - *
  • deleteContext(String name) + *
  • deleteContext(ContextName name) + *

  • deleteContext(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteContextCallable() + *
  • deleteContextCallable() *

*
DeleteAllContexts

DeleteAllContexts

Deletes all active contexts in the specified session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAllContexts(DeleteAllContextsRequest request) + *
  • deleteAllContexts(DeleteAllContextsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteAllContexts(SessionName parent) - *
  • deleteAllContexts(String parent) + *
  • deleteAllContexts(SessionName parent) + *

  • deleteAllContexts(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAllContextsCallable() + *
  • deleteAllContextsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java index 56e87308a93e..d45c282cef7b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java @@ -71,139 +71,140 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateConversationDataset

CreateConversationDataset

Creates a new conversation dataset. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata] - `response`: [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createConversationDatasetAsync(CreateConversationDatasetRequest request) + *
  • createConversationDatasetAsync(CreateConversationDatasetRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createConversationDatasetAsync(String parent, ConversationDataset conversationDataset) + *
  • createConversationDatasetAsync(String parent, ConversationDataset conversationDataset) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createConversationDatasetOperationCallable() - *
  • createConversationDatasetCallable() + *
  • createConversationDatasetOperationCallable() + *

  • createConversationDatasetCallable() *

*
GetConversationDataset

GetConversationDataset

Retrieves the specified conversation dataset.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getConversationDataset(GetConversationDatasetRequest request) + *
  • getConversationDataset(GetConversationDatasetRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getConversationDataset(ConversationDatasetName name) - *
  • getConversationDataset(String name) + *
  • getConversationDataset(ConversationDatasetName name) + *

  • getConversationDataset(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getConversationDatasetCallable() + *
  • getConversationDatasetCallable() *

*
ListConversationDatasets

ListConversationDatasets

Returns the list of all conversation datasets in the specified project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listConversationDatasets(ListConversationDatasetsRequest request) + *
  • listConversationDatasets(ListConversationDatasetsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listConversationDatasets(LocationName parent) - *
  • listConversationDatasets(String parent) + *
  • listConversationDatasets(LocationName parent) + *

  • listConversationDatasets(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listConversationDatasetsPagedCallable() - *
  • listConversationDatasetsCallable() + *
  • listConversationDatasetsPagedCallable() + *

  • listConversationDatasetsCallable() *

*
DeleteConversationDataset

DeleteConversationDataset

Deletes the specified conversation dataset. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata] - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteConversationDatasetAsync(DeleteConversationDatasetRequest request) + *
  • deleteConversationDatasetAsync(DeleteConversationDatasetRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteConversationDatasetAsync(ConversationDatasetName name) - *
  • deleteConversationDatasetAsync(String name) + *
  • deleteConversationDatasetAsync(ConversationDatasetName name) + *

  • deleteConversationDatasetAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteConversationDatasetOperationCallable() - *
  • deleteConversationDatasetCallable() + *
  • deleteConversationDatasetOperationCallable() + *

  • deleteConversationDatasetCallable() *

*
ImportConversationData

ImportConversationData

Import data into the specified conversation dataset. Note that it is not allowed to import data to a conversation dataset that already has data in it. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata] - `response`: [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importConversationDataAsync(ImportConversationDataRequest request) + *
  • importConversationDataAsync(ImportConversationDataRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importConversationDataOperationCallable() - *
  • importConversationDataCallable() + *
  • importConversationDataOperationCallable() + *

  • importConversationDataCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java index 1fea133d944d..6d44c9425ea2 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java @@ -66,210 +66,211 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateConversationModel

CreateConversationModel

Creates a model. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata] - `response`: [ConversationModel][google.cloud.dialogflow.v2.ConversationModel]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createConversationModelAsync(CreateConversationModelRequest request) + *
  • createConversationModelAsync(CreateConversationModelRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createConversationModelAsync(String parent, ConversationModel conversationModel) + *
  • createConversationModelAsync(String parent, ConversationModel conversationModel) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createConversationModelOperationCallable() - *
  • createConversationModelCallable() + *
  • createConversationModelOperationCallable() + *

  • createConversationModelCallable() *

*
GetConversationModel

GetConversationModel

Gets conversation model.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getConversationModel(GetConversationModelRequest request) + *
  • getConversationModel(GetConversationModelRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getConversationModel(String name) + *
  • getConversationModel(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getConversationModelCallable() + *
  • getConversationModelCallable() *

*
ListConversationModels

ListConversationModels

Lists conversation models.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listConversationModels(ListConversationModelsRequest request) + *
  • listConversationModels(ListConversationModelsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listConversationModels(String parent) + *
  • listConversationModels(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listConversationModelsPagedCallable() - *
  • listConversationModelsCallable() + *
  • listConversationModelsPagedCallable() + *

  • listConversationModelsCallable() *

*
DeleteConversationModel

DeleteConversationModel

Deletes a model. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata] - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteConversationModelAsync(DeleteConversationModelRequest request) + *
  • deleteConversationModelAsync(DeleteConversationModelRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteConversationModelAsync(String name) + *
  • deleteConversationModelAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteConversationModelOperationCallable() - *
  • deleteConversationModelCallable() + *
  • deleteConversationModelOperationCallable() + *

  • deleteConversationModelCallable() *

*
DeployConversationModel

DeployConversationModel

Deploys a model. If a model is already deployed, deploying it has no effect. A model can only serve prediction requests after it gets deployed. For article suggestion, custom model will not be used unless it is deployed. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata] - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deployConversationModelAsync(DeployConversationModelRequest request) + *
  • deployConversationModelAsync(DeployConversationModelRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deployConversationModelOperationCallable() - *
  • deployConversationModelCallable() + *
  • deployConversationModelOperationCallable() + *

  • deployConversationModelCallable() *

*
UndeployConversationModel

UndeployConversationModel

Undeploys a model. If the model is not deployed this method has no effect. If the model is currently being used: - For article suggestion, article suggestion will fallback to the default model if model is undeployed. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata] - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • undeployConversationModelAsync(UndeployConversationModelRequest request) + *
  • undeployConversationModelAsync(UndeployConversationModelRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • undeployConversationModelOperationCallable() - *
  • undeployConversationModelCallable() + *
  • undeployConversationModelOperationCallable() + *

  • undeployConversationModelCallable() *

*
GetConversationModelEvaluation

GetConversationModelEvaluation

Gets an evaluation of conversation model.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getConversationModelEvaluation(GetConversationModelEvaluationRequest request) + *
  • getConversationModelEvaluation(GetConversationModelEvaluationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getConversationModelEvaluation(String name) + *
  • getConversationModelEvaluation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getConversationModelEvaluationCallable() + *
  • getConversationModelEvaluationCallable() *

*
ListConversationModelEvaluations

ListConversationModelEvaluations

Lists evaluations of a conversation model.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listConversationModelEvaluations(ListConversationModelEvaluationsRequest request) + *
  • listConversationModelEvaluations(ListConversationModelEvaluationsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listConversationModelEvaluations(String parent) + *
  • listConversationModelEvaluations(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listConversationModelEvaluationsPagedCallable() - *
  • listConversationModelEvaluationsCallable() + *
  • listConversationModelEvaluationsPagedCallable() + *

  • listConversationModelEvaluationsCallable() *

*
CreateConversationModelEvaluation

CreateConversationModelEvaluation

Creates evaluation of a conversation model.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createConversationModelEvaluationAsync(CreateConversationModelEvaluationRequest request) + *
  • createConversationModelEvaluationAsync(CreateConversationModelEvaluationRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createConversationModelEvaluationAsync(ConversationModelName parent, ConversationModelEvaluation conversationModelEvaluation) - *
  • createConversationModelEvaluationAsync(String parent, ConversationModelEvaluation conversationModelEvaluation) + *
  • createConversationModelEvaluationAsync(ConversationModelName parent, ConversationModelEvaluation conversationModelEvaluation) + *

  • createConversationModelEvaluationAsync(String parent, ConversationModelEvaluation conversationModelEvaluation) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createConversationModelEvaluationOperationCallable() - *
  • createConversationModelEvaluationCallable() + *
  • createConversationModelEvaluationOperationCallable() + *

  • createConversationModelEvaluationCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java index bce1941c3a12..b857fccfef6d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java @@ -71,111 +71,113 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListConversationProfiles

ListConversationProfiles

Returns the list of all conversation profiles in the specified project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listConversationProfiles(ListConversationProfilesRequest request) + *
  • listConversationProfiles(ListConversationProfilesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listConversationProfiles(LocationName parent) - *
  • listConversationProfiles(ProjectName parent) - *
  • listConversationProfiles(String parent) + *
  • listConversationProfiles(LocationName parent) + *

  • listConversationProfiles(ProjectName parent) + *

  • listConversationProfiles(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listConversationProfilesPagedCallable() - *
  • listConversationProfilesCallable() + *
  • listConversationProfilesPagedCallable() + *

  • listConversationProfilesCallable() *

*
GetConversationProfile

GetConversationProfile

Retrieves the specified conversation profile.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getConversationProfile(GetConversationProfileRequest request) + *
  • getConversationProfile(GetConversationProfileRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getConversationProfile(ConversationProfileName name) - *
  • getConversationProfile(String name) + *
  • getConversationProfile(ConversationProfileName name) + *

  • getConversationProfile(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getConversationProfileCallable() + *
  • getConversationProfileCallable() *

*
CreateConversationProfile

CreateConversationProfile

Creates a conversation profile in the specified project. *

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createConversationProfile(CreateConversationProfileRequest request) + *
  • createConversationProfile(CreateConversationProfileRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createConversationProfile(LocationName parent, ConversationProfile conversationProfile) - *
  • createConversationProfile(ProjectName parent, ConversationProfile conversationProfile) - *
  • createConversationProfile(String parent, ConversationProfile conversationProfile) + *
  • createConversationProfile(LocationName parent, ConversationProfile conversationProfile) + *

  • createConversationProfile(ProjectName parent, ConversationProfile conversationProfile) + *

  • createConversationProfile(String parent, ConversationProfile conversationProfile) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createConversationProfileCallable() + *
  • createConversationProfileCallable() *

*
UpdateConversationProfile

UpdateConversationProfile

Updates the specified conversation profile. *

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateConversationProfile(UpdateConversationProfileRequest request) + *
  • updateConversationProfile(UpdateConversationProfileRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateConversationProfile(ConversationProfile conversationProfile, FieldMask updateMask) + *
  • updateConversationProfile(ConversationProfile conversationProfile, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateConversationProfileCallable() + *
  • updateConversationProfileCallable() *

*
DeleteConversationProfile

DeleteConversationProfile

Deletes the specified conversation profile.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteConversationProfile(DeleteConversationProfileRequest request) + *
  • deleteConversationProfile(DeleteConversationProfileRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteConversationProfile(ConversationProfileName name) - *
  • deleteConversationProfile(String name) + *
  • deleteConversationProfile(ConversationProfileName name) + *

  • deleteConversationProfile(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteConversationProfileCallable() + *
  • deleteConversationProfileCallable() *

*
SetSuggestionFeatureConfig

SetSuggestionFeatureConfig

Adds or updates a suggestion feature in a conversation profile. If the conversation profile contains the type of suggestion feature for the participant role, it will update it. Otherwise it will insert the suggestion feature. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata] - `response`: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] @@ -183,72 +185,71 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setSuggestionFeatureConfigAsync(SetSuggestionFeatureConfigRequest request) + *
  • setSuggestionFeatureConfigAsync(SetSuggestionFeatureConfigRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • setSuggestionFeatureConfigAsync(String conversationProfile) - *
  • setSuggestionFeatureConfigAsync(String conversationProfile, Participant.Role participantRole, HumanAgentAssistantConfig.SuggestionFeatureConfig suggestionFeatureConfig) + *
  • setSuggestionFeatureConfigAsync(String conversationProfile) + *

  • setSuggestionFeatureConfigAsync(String conversationProfile, Participant.Role participantRole, HumanAgentAssistantConfig.SuggestionFeatureConfig suggestionFeatureConfig) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setSuggestionFeatureConfigOperationCallable() - *
  • setSuggestionFeatureConfigCallable() + *
  • setSuggestionFeatureConfigOperationCallable() + *

  • setSuggestionFeatureConfigCallable() *

*
ClearSuggestionFeatureConfig

ClearSuggestionFeatureConfig

Clears a suggestion feature from a conversation profile for the given participant role. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata] - `response`: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • clearSuggestionFeatureConfigAsync(ClearSuggestionFeatureConfigRequest request) + *
  • clearSuggestionFeatureConfigAsync(ClearSuggestionFeatureConfigRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • clearSuggestionFeatureConfigAsync(String conversationProfile) - *
  • clearSuggestionFeatureConfigAsync(String conversationProfile, Participant.Role participantRole, SuggestionFeature.Type suggestionFeatureType) + *
  • clearSuggestionFeatureConfigAsync(String conversationProfile) + *

  • clearSuggestionFeatureConfigAsync(String conversationProfile, Participant.Role participantRole, SuggestionFeature.Type suggestionFeatureType) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • clearSuggestionFeatureConfigOperationCallable() - *
  • clearSuggestionFeatureConfigCallable() + *
  • clearSuggestionFeatureConfigOperationCallable() + *

  • clearSuggestionFeatureConfigCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java index 605112ce65c3..7ca9deed4204 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java @@ -61,12 +61,14 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateConversation

CreateConversation

Creates a new conversation. Conversations are auto-completed after 24 hours. *

Conversation Lifecycle: There are two stages during a conversation: Automated Agent Stage and Assist Stage. *

For Automated Agent Stage, there will be a dialogflow agent responding to user queries. @@ -75,176 +77,175 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createConversation(CreateConversationRequest request) + *
  • createConversation(CreateConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createConversation(LocationName parent, Conversation conversation) - *
  • createConversation(ProjectName parent, Conversation conversation) - *
  • createConversation(String parent, Conversation conversation) + *
  • createConversation(LocationName parent, Conversation conversation) + *

  • createConversation(ProjectName parent, Conversation conversation) + *

  • createConversation(String parent, Conversation conversation) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createConversationCallable() + *
  • createConversationCallable() *

*
ListConversations

ListConversations

Returns the list of all conversations in the specified project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listConversations(ListConversationsRequest request) + *
  • listConversations(ListConversationsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listConversations(LocationName parent) - *
  • listConversations(ProjectName parent) - *
  • listConversations(String parent) + *
  • listConversations(LocationName parent) + *

  • listConversations(ProjectName parent) + *

  • listConversations(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listConversationsPagedCallable() - *
  • listConversationsCallable() + *
  • listConversationsPagedCallable() + *

  • listConversationsCallable() *

*
GetConversation

GetConversation

Retrieves the specific conversation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getConversation(GetConversationRequest request) + *
  • getConversation(GetConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getConversation(ConversationName name) - *
  • getConversation(String name) + *
  • getConversation(ConversationName name) + *

  • getConversation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getConversationCallable() + *
  • getConversationCallable() *

*
CompleteConversation

CompleteConversation

Completes the specified conversation. Finished conversations are purged from the database after 30 days.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • completeConversation(CompleteConversationRequest request) + *
  • completeConversation(CompleteConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • completeConversation(ConversationName name) - *
  • completeConversation(String name) + *
  • completeConversation(ConversationName name) + *

  • completeConversation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • completeConversationCallable() + *
  • completeConversationCallable() *

*
ListMessages

ListMessages

Lists messages that belong to a given conversation. `messages` are ordered by `create_time` in descending order. To fetch updates without duplication, send request with filter `create_time_epoch_microseconds > [first item's create_time of previous request]` and empty page_token.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listMessages(ListMessagesRequest request) + *
  • listMessages(ListMessagesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listMessages(ConversationName parent) - *
  • listMessages(String parent) + *
  • listMessages(ConversationName parent) + *

  • listMessages(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listMessagesPagedCallable() - *
  • listMessagesCallable() + *
  • listMessagesPagedCallable() + *

  • listMessagesCallable() *

*
SuggestConversationSummary

SuggestConversationSummary

Suggests summary for a conversation based on specific historical messages. The range of the messages to be used for summary can be specified in the request.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • suggestConversationSummary(SuggestConversationSummaryRequest request) + *
  • suggestConversationSummary(SuggestConversationSummaryRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • suggestConversationSummary(ConversationName conversation) - *
  • suggestConversationSummary(String conversation) + *
  • suggestConversationSummary(ConversationName conversation) + *

  • suggestConversationSummary(String conversation) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • suggestConversationSummaryCallable() + *
  • suggestConversationSummaryCallable() *

*
GenerateStatelessSummary

GenerateStatelessSummary

Generates and returns a summary for a conversation that does not have a resource created for it.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateStatelessSummary(GenerateStatelessSummaryRequest request) + *
  • generateStatelessSummary(GenerateStatelessSummaryRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateStatelessSummaryCallable() + *
  • generateStatelessSummaryCallable() *

*
SearchKnowledge

SearchKnowledge

Get answers for the given query based on knowledge documents.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • searchKnowledge(SearchKnowledgeRequest request) + *
  • searchKnowledge(SearchKnowledgeRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchKnowledgeCallable() + *
  • searchKnowledgeCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java index 61c2d0b5c5fc..36b76d51f88c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java @@ -69,133 +69,135 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListDocuments

ListDocuments

Returns the list of all documents of the knowledge base.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDocuments(ListDocumentsRequest request) + *
  • listDocuments(ListDocumentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDocuments(KnowledgeBaseName parent) - *
  • listDocuments(String parent) + *
  • listDocuments(KnowledgeBaseName parent) + *

  • listDocuments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDocumentsPagedCallable() - *
  • listDocumentsCallable() + *
  • listDocumentsPagedCallable() + *

  • listDocumentsCallable() *

*
GetDocument

GetDocument

Retrieves the specified document.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDocument(GetDocumentRequest request) + *
  • getDocument(GetDocumentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDocument(DocumentName name) - *
  • getDocument(String name) + *
  • getDocument(DocumentName name) + *

  • getDocument(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDocumentCallable() + *
  • getDocumentCallable() *

*
CreateDocument

CreateDocument

Creates a new document. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2.Document]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createDocumentAsync(CreateDocumentRequest request) + *
  • createDocumentAsync(CreateDocumentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createDocumentAsync(KnowledgeBaseName parent, Document document) - *
  • createDocumentAsync(String parent, Document document) + *
  • createDocumentAsync(KnowledgeBaseName parent, Document document) + *

  • createDocumentAsync(String parent, Document document) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createDocumentOperationCallable() - *
  • createDocumentCallable() + *
  • createDocumentOperationCallable() + *

  • createDocumentCallable() *

*
ImportDocuments

ImportDocuments

Creates documents by importing data from external sources. Dialogflow supports up to 350 documents in each request. If you try to import more, Dialogflow will return an error. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - `response`: [ImportDocumentsResponse][google.cloud.dialogflow.v2.ImportDocumentsResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importDocumentsAsync(ImportDocumentsRequest request) + *
  • importDocumentsAsync(ImportDocumentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importDocumentsOperationCallable() - *
  • importDocumentsCallable() + *
  • importDocumentsOperationCallable() + *

  • importDocumentsCallable() *

*
DeleteDocument

DeleteDocument

Deletes the specified document. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteDocumentAsync(DeleteDocumentRequest request) + *
  • deleteDocumentAsync(DeleteDocumentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteDocumentAsync(DocumentName name) - *
  • deleteDocumentAsync(String name) + *
  • deleteDocumentAsync(DocumentName name) + *

  • deleteDocumentAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteDocumentOperationCallable() - *
  • deleteDocumentCallable() + *
  • deleteDocumentOperationCallable() + *

  • deleteDocumentCallable() *

*
UpdateDocument

UpdateDocument

Updates the specified document. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2.Document]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateDocumentAsync(UpdateDocumentRequest request) + *
  • updateDocumentAsync(UpdateDocumentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateDocumentAsync(Document document, FieldMask updateMask) + *
  • updateDocumentAsync(Document document, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateDocumentOperationCallable() - *
  • updateDocumentCallable() + *
  • updateDocumentOperationCallable() + *

  • updateDocumentCallable() *

*
ReloadDocument

ReloadDocument

Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2.Document] @@ -203,67 +205,66 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • reloadDocumentAsync(ReloadDocumentRequest request) + *
  • reloadDocumentAsync(ReloadDocumentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • reloadDocumentAsync(DocumentName name, String contentUri) - *
  • reloadDocumentAsync(String name, String contentUri) + *
  • reloadDocumentAsync(DocumentName name, String contentUri) + *

  • reloadDocumentAsync(String name, String contentUri) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • reloadDocumentOperationCallable() - *
  • reloadDocumentCallable() + *
  • reloadDocumentOperationCallable() + *

  • reloadDocumentCallable() *

*
ExportDocument

ExportDocument

Exports a smart messaging candidate document into the specified destination. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2.Document]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportDocumentAsync(ExportDocumentRequest request) + *
  • exportDocumentAsync(ExportDocumentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportDocumentOperationCallable() - *
  • exportDocumentCallable() + *
  • exportDocumentOperationCallable() + *

  • exportDocumentCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java index 8605b3277ea4..d2459e76470d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java @@ -66,117 +66,119 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListEntityTypes

ListEntityTypes

Returns the list of all entity types in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEntityTypes(ListEntityTypesRequest request) + *
  • listEntityTypes(ListEntityTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEntityTypes(AgentName parent) - *
  • listEntityTypes(String parent) - *
  • listEntityTypes(AgentName parent, String languageCode) - *
  • listEntityTypes(String parent, String languageCode) + *
  • listEntityTypes(AgentName parent) + *

  • listEntityTypes(String parent) + *

  • listEntityTypes(AgentName parent, String languageCode) + *

  • listEntityTypes(String parent, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listEntityTypesPagedCallable() - *
  • listEntityTypesCallable() + *
  • listEntityTypesPagedCallable() + *

  • listEntityTypesCallable() *

*
GetEntityType

GetEntityType

Retrieves the specified entity type.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEntityType(GetEntityTypeRequest request) + *
  • getEntityType(GetEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getEntityType(EntityTypeName name) - *
  • getEntityType(String name) - *
  • getEntityType(EntityTypeName name, String languageCode) - *
  • getEntityType(String name, String languageCode) + *
  • getEntityType(EntityTypeName name) + *

  • getEntityType(String name) + *

  • getEntityType(EntityTypeName name, String languageCode) + *

  • getEntityType(String name, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEntityTypeCallable() + *
  • getEntityTypeCallable() *

*
CreateEntityType

CreateEntityType

Creates an entity type in the specified agent. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createEntityType(CreateEntityTypeRequest request) + *
  • createEntityType(CreateEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createEntityType(AgentName parent, EntityType entityType) - *
  • createEntityType(String parent, EntityType entityType) - *
  • createEntityType(AgentName parent, EntityType entityType, String languageCode) - *
  • createEntityType(String parent, EntityType entityType, String languageCode) + *
  • createEntityType(AgentName parent, EntityType entityType) + *

  • createEntityType(String parent, EntityType entityType) + *

  • createEntityType(AgentName parent, EntityType entityType, String languageCode) + *

  • createEntityType(String parent, EntityType entityType, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createEntityTypeCallable() + *
  • createEntityTypeCallable() *

*
UpdateEntityType

UpdateEntityType

Updates the specified entity type. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateEntityType(UpdateEntityTypeRequest request) + *
  • updateEntityType(UpdateEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateEntityType(EntityType entityType) - *
  • updateEntityType(EntityType entityType, String languageCode) + *
  • updateEntityType(EntityType entityType) + *

  • updateEntityType(EntityType entityType, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateEntityTypeCallable() + *
  • updateEntityTypeCallable() *

*
DeleteEntityType

DeleteEntityType

Deletes the specified entity type. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteEntityType(DeleteEntityTypeRequest request) + *
  • deleteEntityType(DeleteEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteEntityType(EntityTypeName name) - *
  • deleteEntityType(String name) + *
  • deleteEntityType(EntityTypeName name) + *

  • deleteEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteEntityTypeCallable() + *
  • deleteEntityTypeCallable() *

*
BatchUpdateEntityTypes

BatchUpdateEntityTypes

Updates/Creates multiple entity types in the specified agent. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse] @@ -184,17 +186,17 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchUpdateEntityTypesAsync(BatchUpdateEntityTypesRequest request) + *
  • batchUpdateEntityTypesAsync(BatchUpdateEntityTypesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchUpdateEntityTypesOperationCallable() - *
  • batchUpdateEntityTypesCallable() + *
  • batchUpdateEntityTypesOperationCallable() + *

  • batchUpdateEntityTypesCallable() *

*
BatchDeleteEntityTypes

BatchDeleteEntityTypes

Deletes entity types in the specified agent. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -202,22 +204,22 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchDeleteEntityTypesAsync(BatchDeleteEntityTypesRequest request) + *
  • batchDeleteEntityTypesAsync(BatchDeleteEntityTypesRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchDeleteEntityTypesAsync(AgentName parent, List entityTypeNames) - *
  • batchDeleteEntityTypesAsync(String parent, List entityTypeNames) + *
  • batchDeleteEntityTypesAsync(AgentName parent, List<String> entityTypeNames) + *

  • batchDeleteEntityTypesAsync(String parent, List<String> entityTypeNames) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchDeleteEntityTypesOperationCallable() - *
  • batchDeleteEntityTypesCallable() + *
  • batchDeleteEntityTypesOperationCallable() + *

  • batchDeleteEntityTypesCallable() *

*
BatchCreateEntities

BatchCreateEntities

Creates multiple new entities in the specified entity type. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -225,24 +227,24 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchCreateEntitiesAsync(BatchCreateEntitiesRequest request) + *
  • batchCreateEntitiesAsync(BatchCreateEntitiesRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchCreateEntitiesAsync(EntityTypeName parent, List entities) - *
  • batchCreateEntitiesAsync(String parent, List entities) - *
  • batchCreateEntitiesAsync(EntityTypeName parent, List entities, String languageCode) - *
  • batchCreateEntitiesAsync(String parent, List entities, String languageCode) + *
  • batchCreateEntitiesAsync(EntityTypeName parent, List<EntityType.Entity> entities) + *

  • batchCreateEntitiesAsync(String parent, List<EntityType.Entity> entities) + *

  • batchCreateEntitiesAsync(EntityTypeName parent, List<EntityType.Entity> entities, String languageCode) + *

  • batchCreateEntitiesAsync(String parent, List<EntityType.Entity> entities, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchCreateEntitiesOperationCallable() - *
  • batchCreateEntitiesCallable() + *
  • batchCreateEntitiesOperationCallable() + *

  • batchCreateEntitiesCallable() *

*
BatchUpdateEntities

BatchUpdateEntities

Updates or creates multiple entities in the specified entity type. This method does not affect entities in the entity type that aren't explicitly specified in the request. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -250,24 +252,24 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchUpdateEntitiesAsync(BatchUpdateEntitiesRequest request) + *
  • batchUpdateEntitiesAsync(BatchUpdateEntitiesRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchUpdateEntitiesAsync(EntityTypeName parent, List entities) - *
  • batchUpdateEntitiesAsync(String parent, List entities) - *
  • batchUpdateEntitiesAsync(EntityTypeName parent, List entities, String languageCode) - *
  • batchUpdateEntitiesAsync(String parent, List entities, String languageCode) + *
  • batchUpdateEntitiesAsync(EntityTypeName parent, List<EntityType.Entity> entities) + *

  • batchUpdateEntitiesAsync(String parent, List<EntityType.Entity> entities) + *

  • batchUpdateEntitiesAsync(EntityTypeName parent, List<EntityType.Entity> entities, String languageCode) + *

  • batchUpdateEntitiesAsync(String parent, List<EntityType.Entity> entities, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchUpdateEntitiesOperationCallable() - *
  • batchUpdateEntitiesCallable() + *
  • batchUpdateEntitiesOperationCallable() + *

  • batchUpdateEntitiesCallable() *

*
BatchDeleteEntities

BatchDeleteEntities

Deletes entities in the specified entity type. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -275,52 +277,51 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchDeleteEntitiesAsync(BatchDeleteEntitiesRequest request) + *
  • batchDeleteEntitiesAsync(BatchDeleteEntitiesRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchDeleteEntitiesAsync(EntityTypeName parent, List entityValues) - *
  • batchDeleteEntitiesAsync(String parent, List entityValues) - *
  • batchDeleteEntitiesAsync(EntityTypeName parent, List entityValues, String languageCode) - *
  • batchDeleteEntitiesAsync(String parent, List entityValues, String languageCode) + *
  • batchDeleteEntitiesAsync(EntityTypeName parent, List<String> entityValues) + *

  • batchDeleteEntitiesAsync(String parent, List<String> entityValues) + *

  • batchDeleteEntitiesAsync(EntityTypeName parent, List<String> entityValues, String languageCode) + *

  • batchDeleteEntitiesAsync(String parent, List<String> entityValues, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchDeleteEntitiesOperationCallable() - *
  • batchDeleteEntitiesCallable() + *
  • batchDeleteEntitiesOperationCallable() + *

  • batchDeleteEntitiesCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java index f491f2ca9cb7..a82729fb6a53 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java @@ -64,132 +64,133 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListEnvironments

ListEnvironments

Returns the list of all non-default environments of the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEnvironments(ListEnvironmentsRequest request) + *
  • listEnvironments(ListEnvironmentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEnvironments(AgentName parent) - *
  • listEnvironments(String parent) + *
  • listEnvironments(AgentName parent) + *

  • listEnvironments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listEnvironmentsPagedCallable() - *
  • listEnvironmentsCallable() + *
  • listEnvironmentsPagedCallable() + *

  • listEnvironmentsCallable() *

*
GetEnvironment

GetEnvironment

Retrieves the specified agent environment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEnvironment(GetEnvironmentRequest request) + *
  • getEnvironment(GetEnvironmentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEnvironmentCallable() + *
  • getEnvironmentCallable() *

*
CreateEnvironment

CreateEnvironment

Creates an agent environment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createEnvironment(CreateEnvironmentRequest request) + *
  • createEnvironment(CreateEnvironmentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createEnvironmentCallable() + *
  • createEnvironmentCallable() *

*
UpdateEnvironment

UpdateEnvironment

Updates the specified agent environment. *

This method allows you to deploy new agent versions into the environment. When an environment is pointed to a new agent version by setting `environment.agent_version`, the environment is temporarily set to the `LOADING` state. During that time, the environment continues serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the `RUNNING` state. You can use "-" as Environment ID in environment name to update an agent version in the default environment. WARNING: this will negate all recent changes to the draft agent and can't be undone. You may want to save the draft agent to a version before calling this method.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateEnvironment(UpdateEnvironmentRequest request) + *
  • updateEnvironment(UpdateEnvironmentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateEnvironmentCallable() + *
  • updateEnvironmentCallable() *

*
DeleteEnvironment

DeleteEnvironment

Deletes the specified agent environment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteEnvironment(DeleteEnvironmentRequest request) + *
  • deleteEnvironment(DeleteEnvironmentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteEnvironmentCallable() + *
  • deleteEnvironmentCallable() *

*
GetEnvironmentHistory

GetEnvironmentHistory

Gets the history of the specified environment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEnvironmentHistory(GetEnvironmentHistoryRequest request) + *
  • getEnvironmentHistory(GetEnvironmentHistoryRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEnvironmentHistoryPagedCallable() - *
  • getEnvironmentHistoryCallable() + *
  • getEnvironmentHistoryPagedCallable() + *

  • getEnvironmentHistoryCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java index 72de1dd07e17..5e71b93e8e91 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java @@ -60,77 +60,78 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetFulfillment

GetFulfillment

Retrieves the fulfillment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getFulfillment(GetFulfillmentRequest request) + *
  • getFulfillment(GetFulfillmentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getFulfillment(FulfillmentName name) - *
  • getFulfillment(String name) + *
  • getFulfillment(FulfillmentName name) + *

  • getFulfillment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getFulfillmentCallable() + *
  • getFulfillmentCallable() *

*
UpdateFulfillment

UpdateFulfillment

Updates the fulfillment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateFulfillment(UpdateFulfillmentRequest request) + *
  • updateFulfillment(UpdateFulfillmentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateFulfillment(Fulfillment fulfillment, FieldMask updateMask) + *
  • updateFulfillment(Fulfillment fulfillment, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateFulfillmentCallable() + *
  • updateFulfillmentCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java index 3634262b5cbf..9382afe4bba7 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java @@ -67,117 +67,119 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListIntents

ListIntents

Returns the list of all intents in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listIntents(ListIntentsRequest request) + *
  • listIntents(ListIntentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listIntents(AgentName parent) - *
  • listIntents(String parent) - *
  • listIntents(AgentName parent, String languageCode) - *
  • listIntents(String parent, String languageCode) + *
  • listIntents(AgentName parent) + *

  • listIntents(String parent) + *

  • listIntents(AgentName parent, String languageCode) + *

  • listIntents(String parent, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listIntentsPagedCallable() - *
  • listIntentsCallable() + *
  • listIntentsPagedCallable() + *

  • listIntentsCallable() *

*
GetIntent

GetIntent

Retrieves the specified intent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIntent(GetIntentRequest request) + *
  • getIntent(GetIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getIntent(IntentName name) - *
  • getIntent(String name) - *
  • getIntent(IntentName name, String languageCode) - *
  • getIntent(String name, String languageCode) + *
  • getIntent(IntentName name) + *

  • getIntent(String name) + *

  • getIntent(IntentName name, String languageCode) + *

  • getIntent(String name, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIntentCallable() + *
  • getIntentCallable() *

*
CreateIntent

CreateIntent

Creates an intent in the specified agent. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createIntent(CreateIntentRequest request) + *
  • createIntent(CreateIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createIntent(AgentName parent, Intent intent) - *
  • createIntent(String parent, Intent intent) - *
  • createIntent(AgentName parent, Intent intent, String languageCode) - *
  • createIntent(String parent, Intent intent, String languageCode) + *
  • createIntent(AgentName parent, Intent intent) + *

  • createIntent(String parent, Intent intent) + *

  • createIntent(AgentName parent, Intent intent, String languageCode) + *

  • createIntent(String parent, Intent intent, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createIntentCallable() + *
  • createIntentCallable() *

*
UpdateIntent

UpdateIntent

Updates the specified intent. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateIntent(UpdateIntentRequest request) + *
  • updateIntent(UpdateIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateIntent(Intent intent, String languageCode) - *
  • updateIntent(Intent intent, String languageCode, FieldMask updateMask) + *
  • updateIntent(Intent intent, String languageCode) + *

  • updateIntent(Intent intent, String languageCode, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateIntentCallable() + *
  • updateIntentCallable() *

*
DeleteIntent

DeleteIntent

Deletes the specified intent and its direct or indirect followup intents. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteIntent(DeleteIntentRequest request) + *
  • deleteIntent(DeleteIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteIntent(IntentName name) - *
  • deleteIntent(String name) + *
  • deleteIntent(IntentName name) + *

  • deleteIntent(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteIntentCallable() + *
  • deleteIntentCallable() *

*
BatchUpdateIntents

BatchUpdateIntents

Updates/Creates multiple intents in the specified agent. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse] @@ -185,24 +187,24 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchUpdateIntentsAsync(BatchUpdateIntentsRequest request) + *
  • batchUpdateIntentsAsync(BatchUpdateIntentsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchUpdateIntentsAsync(AgentName parent, IntentBatch intentBatchInline) - *
  • batchUpdateIntentsAsync(AgentName parent, String intentBatchUri) - *
  • batchUpdateIntentsAsync(String parent, IntentBatch intentBatchInline) - *
  • batchUpdateIntentsAsync(String parent, String intentBatchUri) + *
  • batchUpdateIntentsAsync(AgentName parent, IntentBatch intentBatchInline) + *

  • batchUpdateIntentsAsync(AgentName parent, String intentBatchUri) + *

  • batchUpdateIntentsAsync(String parent, IntentBatch intentBatchInline) + *

  • batchUpdateIntentsAsync(String parent, String intentBatchUri) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchUpdateIntentsOperationCallable() - *
  • batchUpdateIntentsCallable() + *
  • batchUpdateIntentsOperationCallable() + *

  • batchUpdateIntentsCallable() *

*
BatchDeleteIntents

BatchDeleteIntents

Deletes intents in the specified agent. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -210,50 +212,49 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchDeleteIntentsAsync(BatchDeleteIntentsRequest request) + *
  • batchDeleteIntentsAsync(BatchDeleteIntentsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchDeleteIntentsAsync(AgentName parent, List intents) - *
  • batchDeleteIntentsAsync(String parent, List intents) + *
  • batchDeleteIntentsAsync(AgentName parent, List<Intent> intents) + *

  • batchDeleteIntentsAsync(String parent, List<Intent> intents) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchDeleteIntentsOperationCallable() - *
  • batchDeleteIntentsCallable() + *
  • batchDeleteIntentsOperationCallable() + *

  • batchDeleteIntentsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java index 7a41d9a4b9d9..4c462b04bdbb 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java @@ -63,137 +63,138 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListKnowledgeBases

ListKnowledgeBases

Returns the list of all knowledge bases of the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listKnowledgeBases(ListKnowledgeBasesRequest request) + *
  • listKnowledgeBases(ListKnowledgeBasesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listKnowledgeBases(LocationName parent) - *
  • listKnowledgeBases(ProjectName parent) - *
  • listKnowledgeBases(String parent) + *
  • listKnowledgeBases(LocationName parent) + *

  • listKnowledgeBases(ProjectName parent) + *

  • listKnowledgeBases(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listKnowledgeBasesPagedCallable() - *
  • listKnowledgeBasesCallable() + *
  • listKnowledgeBasesPagedCallable() + *

  • listKnowledgeBasesCallable() *

*
GetKnowledgeBase

GetKnowledgeBase

Retrieves the specified knowledge base.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getKnowledgeBase(GetKnowledgeBaseRequest request) + *
  • getKnowledgeBase(GetKnowledgeBaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getKnowledgeBase(KnowledgeBaseName name) - *
  • getKnowledgeBase(String name) + *
  • getKnowledgeBase(KnowledgeBaseName name) + *

  • getKnowledgeBase(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getKnowledgeBaseCallable() + *
  • getKnowledgeBaseCallable() *

*
CreateKnowledgeBase

CreateKnowledgeBase

Creates a knowledge base.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createKnowledgeBase(CreateKnowledgeBaseRequest request) + *
  • createKnowledgeBase(CreateKnowledgeBaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createKnowledgeBase(LocationName parent, KnowledgeBase knowledgeBase) - *
  • createKnowledgeBase(ProjectName parent, KnowledgeBase knowledgeBase) - *
  • createKnowledgeBase(String parent, KnowledgeBase knowledgeBase) + *
  • createKnowledgeBase(LocationName parent, KnowledgeBase knowledgeBase) + *

  • createKnowledgeBase(ProjectName parent, KnowledgeBase knowledgeBase) + *

  • createKnowledgeBase(String parent, KnowledgeBase knowledgeBase) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createKnowledgeBaseCallable() + *
  • createKnowledgeBaseCallable() *

*
DeleteKnowledgeBase

DeleteKnowledgeBase

Deletes the specified knowledge base.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteKnowledgeBase(DeleteKnowledgeBaseRequest request) + *
  • deleteKnowledgeBase(DeleteKnowledgeBaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteKnowledgeBase(KnowledgeBaseName name) - *
  • deleteKnowledgeBase(String name) + *
  • deleteKnowledgeBase(KnowledgeBaseName name) + *

  • deleteKnowledgeBase(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteKnowledgeBaseCallable() + *
  • deleteKnowledgeBaseCallable() *

*
UpdateKnowledgeBase

UpdateKnowledgeBase

Updates the specified knowledge base.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateKnowledgeBase(UpdateKnowledgeBaseRequest request) + *
  • updateKnowledgeBase(UpdateKnowledgeBaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateKnowledgeBase(KnowledgeBase knowledgeBase, FieldMask updateMask) + *
  • updateKnowledgeBase(KnowledgeBase knowledgeBase, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateKnowledgeBaseCallable() + *
  • updateKnowledgeBaseCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java index 6644b9d8d965..d556870e9bf4 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java @@ -63,207 +63,208 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateParticipant

CreateParticipant

Creates a new participant in a conversation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createParticipant(CreateParticipantRequest request) + *
  • createParticipant(CreateParticipantRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createParticipant(ConversationName parent, Participant participant) - *
  • createParticipant(String parent, Participant participant) + *
  • createParticipant(ConversationName parent, Participant participant) + *

  • createParticipant(String parent, Participant participant) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createParticipantCallable() + *
  • createParticipantCallable() *

*
GetParticipant

GetParticipant

Retrieves a conversation participant.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getParticipant(GetParticipantRequest request) + *
  • getParticipant(GetParticipantRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getParticipant(ParticipantName name) - *
  • getParticipant(String name) + *
  • getParticipant(ParticipantName name) + *

  • getParticipant(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getParticipantCallable() + *
  • getParticipantCallable() *

*
ListParticipants

ListParticipants

Returns the list of all participants in the specified conversation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listParticipants(ListParticipantsRequest request) + *
  • listParticipants(ListParticipantsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listParticipants(ConversationName parent) - *
  • listParticipants(String parent) + *
  • listParticipants(ConversationName parent) + *

  • listParticipants(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listParticipantsPagedCallable() - *
  • listParticipantsCallable() + *
  • listParticipantsPagedCallable() + *

  • listParticipantsCallable() *

*
UpdateParticipant

UpdateParticipant

Updates the specified participant.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateParticipant(UpdateParticipantRequest request) + *
  • updateParticipant(UpdateParticipantRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateParticipant(Participant participant, FieldMask updateMask) + *
  • updateParticipant(Participant participant, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateParticipantCallable() + *
  • updateParticipantCallable() *

*
AnalyzeContent

AnalyzeContent

Adds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation. *

Note: Always use agent versions for production traffic sent to virtual agents. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • analyzeContent(AnalyzeContentRequest request) + *
  • analyzeContent(AnalyzeContentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • analyzeContent(ParticipantName participant, EventInput eventInput) - *
  • analyzeContent(ParticipantName participant, TextInput textInput) - *
  • analyzeContent(String participant, EventInput eventInput) - *
  • analyzeContent(String participant, TextInput textInput) + *
  • analyzeContent(ParticipantName participant, EventInput eventInput) + *

  • analyzeContent(ParticipantName participant, TextInput textInput) + *

  • analyzeContent(String participant, EventInput eventInput) + *

  • analyzeContent(String participant, TextInput textInput) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • analyzeContentCallable() + *
  • analyzeContentCallable() *

*
StreamingAnalyzeContent

StreamingAnalyzeContent

Adds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation. Note: This method is only available through the gRPC API (not REST). *

The top-level message sent to the client by the server is `StreamingAnalyzeContentResponse`. Multiple response messages can be returned in order. The first one or more messages contain the `recognition_result` field. Each result represents a more complete transcript of what the user said. The next message contains the `reply_text` field and potentially the `reply_audio` field. The message can also contain the `automated_agent_reply` field. *

Note: Always use agent versions for production traffic sent to virtual agents. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • streamingAnalyzeContentCallable() + *
  • streamingAnalyzeContentCallable() *

*
SuggestArticles

SuggestArticles

Gets suggested articles for a participant based on specific historical messages.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • suggestArticles(SuggestArticlesRequest request) + *
  • suggestArticles(SuggestArticlesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • suggestArticles(ParticipantName parent) - *
  • suggestArticles(String parent) + *
  • suggestArticles(ParticipantName parent) + *

  • suggestArticles(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • suggestArticlesCallable() + *
  • suggestArticlesCallable() *

*
SuggestFaqAnswers

SuggestFaqAnswers

Gets suggested faq answers for a participant based on specific historical messages.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • suggestFaqAnswers(SuggestFaqAnswersRequest request) + *
  • suggestFaqAnswers(SuggestFaqAnswersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • suggestFaqAnswers(ParticipantName parent) - *
  • suggestFaqAnswers(String parent) + *
  • suggestFaqAnswers(ParticipantName parent) + *

  • suggestFaqAnswers(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • suggestFaqAnswersCallable() + *
  • suggestFaqAnswersCallable() *

*
SuggestSmartReplies

SuggestSmartReplies

Gets smart replies for a participant based on specific historical messages.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • suggestSmartReplies(SuggestSmartRepliesRequest request) + *
  • suggestSmartReplies(SuggestSmartRepliesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • suggestSmartReplies(ParticipantName parent) - *
  • suggestSmartReplies(String parent) + *
  • suggestSmartReplies(ParticipantName parent) + *

  • suggestSmartReplies(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • suggestSmartRepliesCallable() + *
  • suggestSmartRepliesCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java index 87d4709609b6..78f54bc59747 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java @@ -65,142 +65,143 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListSessionEntityTypes

ListSessionEntityTypes

Returns the list of all session entity types in the specified session. *

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSessionEntityTypes(ListSessionEntityTypesRequest request) + *
  • listSessionEntityTypes(ListSessionEntityTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSessionEntityTypes(SessionName parent) - *
  • listSessionEntityTypes(String parent) + *
  • listSessionEntityTypes(SessionName parent) + *

  • listSessionEntityTypes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSessionEntityTypesPagedCallable() - *
  • listSessionEntityTypesCallable() + *
  • listSessionEntityTypesPagedCallable() + *

  • listSessionEntityTypesCallable() *

*
GetSessionEntityType

GetSessionEntityType

Retrieves the specified session entity type. *

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSessionEntityType(GetSessionEntityTypeRequest request) + *
  • getSessionEntityType(GetSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSessionEntityType(SessionEntityTypeName name) - *
  • getSessionEntityType(String name) + *
  • getSessionEntityType(SessionEntityTypeName name) + *

  • getSessionEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSessionEntityTypeCallable() + *
  • getSessionEntityTypeCallable() *

*
CreateSessionEntityType

CreateSessionEntityType

Creates a session entity type. *

If the specified session entity type already exists, overrides the session entity type. *

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSessionEntityType(CreateSessionEntityTypeRequest request) + *
  • createSessionEntityType(CreateSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createSessionEntityType(SessionName parent, SessionEntityType sessionEntityType) - *
  • createSessionEntityType(String parent, SessionEntityType sessionEntityType) + *
  • createSessionEntityType(SessionName parent, SessionEntityType sessionEntityType) + *

  • createSessionEntityType(String parent, SessionEntityType sessionEntityType) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSessionEntityTypeCallable() + *
  • createSessionEntityTypeCallable() *

*
UpdateSessionEntityType

UpdateSessionEntityType

Updates the specified session entity type. *

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSessionEntityType(UpdateSessionEntityTypeRequest request) + *
  • updateSessionEntityType(UpdateSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateSessionEntityType(SessionEntityType sessionEntityType) - *
  • updateSessionEntityType(SessionEntityType sessionEntityType, FieldMask updateMask) + *
  • updateSessionEntityType(SessionEntityType sessionEntityType) + *

  • updateSessionEntityType(SessionEntityType sessionEntityType, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSessionEntityTypeCallable() + *
  • updateSessionEntityTypeCallable() *

*
DeleteSessionEntityType

DeleteSessionEntityType

Deletes the specified session entity type. *

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSessionEntityType(DeleteSessionEntityTypeRequest request) + *
  • deleteSessionEntityType(DeleteSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteSessionEntityType(SessionEntityTypeName name) - *
  • deleteSessionEntityType(String name) + *
  • deleteSessionEntityType(SessionEntityTypeName name) + *

  • deleteSessionEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSessionEntityTypeCallable() + *
  • deleteSessionEntityTypeCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java index 6e07b4014259..b58fd619b691 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java @@ -64,73 +64,74 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
DetectIntent

DetectIntent

Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. *

If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or in the future, consider using [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] instead of `DetectIntent`. `AnalyzeContent` has additional functionality for Agent Assist and other CCAI products. *

Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • detectIntent(DetectIntentRequest request) + *
  • detectIntent(DetectIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • detectIntent(SessionName session, QueryInput queryInput) - *
  • detectIntent(String session, QueryInput queryInput) + *
  • detectIntent(SessionName session, QueryInput queryInput) + *

  • detectIntent(String session, QueryInput queryInput) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • detectIntentCallable() + *
  • detectIntentCallable() *

*
StreamingDetectIntent

StreamingDetectIntent

Processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST). *

If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or in the future, consider using [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has additional functionality for Agent Assist and other CCAI products. *

Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • streamingDetectIntentCallable() + *
  • streamingDetectIntentCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java index 99204a8a6c1a..477b3015180d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java @@ -61,137 +61,138 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListVersions

ListVersions

Returns the list of all versions of the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listVersions(ListVersionsRequest request) + *
  • listVersions(ListVersionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listVersions(AgentName parent) - *
  • listVersions(String parent) + *
  • listVersions(AgentName parent) + *

  • listVersions(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listVersionsPagedCallable() - *
  • listVersionsCallable() + *
  • listVersionsPagedCallable() + *

  • listVersionsCallable() *

*
GetVersion

GetVersion

Retrieves the specified agent version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getVersion(GetVersionRequest request) + *
  • getVersion(GetVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getVersion(VersionName name) - *
  • getVersion(String name) + *
  • getVersion(VersionName name) + *

  • getVersion(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getVersionCallable() + *
  • getVersionCallable() *

*
CreateVersion

CreateVersion

Creates an agent version. *

The new version points to the agent instance in the "default" environment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createVersion(CreateVersionRequest request) + *
  • createVersion(CreateVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createVersion(AgentName parent, Version version) - *
  • createVersion(String parent, Version version) + *
  • createVersion(AgentName parent, Version version) + *

  • createVersion(String parent, Version version) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createVersionCallable() + *
  • createVersionCallable() *

*
UpdateVersion

UpdateVersion

Updates the specified agent version. *

Note that this method does not allow you to update the state of the agent the given version points to. It allows you to update only mutable properties of the version resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateVersion(UpdateVersionRequest request) + *
  • updateVersion(UpdateVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateVersion(Version version, FieldMask updateMask) + *
  • updateVersion(Version version, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateVersionCallable() + *
  • updateVersionCallable() *

*
DeleteVersion

DeleteVersion

Delete the specified agent version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteVersion(DeleteVersionRequest request) + *
  • deleteVersion(DeleteVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteVersion(VersionName name) - *
  • deleteVersion(String name) + *
  • deleteVersion(VersionName name) + *

  • deleteVersion(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteVersionCallable() + *
  • deleteVersionCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java index 40b33c3add7d..d4032209cb49 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java @@ -347,6 +347,15 @@ public AgentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -595,7 +604,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -608,7 +616,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -874,6 +881,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public AgentsStubSettings build() throws IOException { return new AgentsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java index 4549a903eae1..f7c534707286 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java @@ -270,6 +270,15 @@ public AnswerRecordsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -458,7 +467,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -471,7 +479,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -542,6 +549,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public AnswerRecordsStubSettings build() throws IOException { return new AnswerRecordsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java index 6d6769a51b35..867fcb95202e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java @@ -288,6 +288,15 @@ public ContextsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -498,7 +507,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -511,7 +519,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -621,6 +628,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ContextsStubSettings build() throws IOException { return new ContextsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java index af1a2c1e3c53..7c953d3e48cd 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java @@ -365,6 +365,15 @@ public ConversationDatasetsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -606,7 +615,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -619,7 +627,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -834,6 +841,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ConversationDatasetsStubSettings build() throws IOException { return new ConversationDatasetsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java index cbbb38f1a3ad..d993155815dc 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java @@ -509,6 +509,15 @@ public ConversationModelsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -805,7 +814,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -818,7 +826,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1149,6 +1156,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ConversationModelsStubSettings build() throws IOException { return new ConversationModelsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java index 1ff4749b1890..9658bc2ab89a 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java @@ -371,6 +371,15 @@ public ConversationProfilesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -621,7 +630,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -634,7 +642,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -836,6 +843,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ConversationProfilesStubSettings build() throws IOException { return new ConversationProfilesStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java index 348f532d8ad0..762b4388cb5c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java @@ -383,6 +383,15 @@ public ConversationsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -617,7 +626,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -630,7 +638,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -770,6 +777,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ConversationsStubSettings build() throws IOException { return new ConversationsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java index 114b15e2e82b..84ab09af5a4c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java @@ -359,6 +359,15 @@ public DocumentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -622,7 +631,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -635,7 +643,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -968,6 +975,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DocumentsStubSettings build() throws IOException { return new DocumentsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java index c5bcd112989c..8a8964a05ccb 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java @@ -377,6 +377,15 @@ public EntityTypesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -656,7 +665,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -669,7 +677,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -988,6 +995,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EntityTypesStubSettings build() throws IOException { return new EntityTypesStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java index 664e92fe20ad..487b7130a482 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java @@ -364,6 +364,15 @@ public EnvironmentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -582,7 +591,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -595,7 +603,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -709,6 +716,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EnvironmentsStubSettings build() throws IOException { return new EnvironmentsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java index d2721783f806..3e4199175f28 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java @@ -202,6 +202,15 @@ public FulfillmentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -389,7 +398,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -402,7 +410,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -471,6 +478,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public FulfillmentsStubSettings build() throws IOException { return new FulfillmentsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java index 21a7f5b7a4c8..8afa65b6c2a6 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java @@ -317,6 +317,15 @@ public IntentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -549,7 +558,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -562,7 +570,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -750,6 +757,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public IntentsStubSettings build() throws IOException { return new IntentsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java index f3d700768c9c..be5ae7a420b9 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java @@ -295,6 +295,15 @@ public KnowledgeBasesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -504,7 +513,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -517,7 +525,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -621,6 +628,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public KnowledgeBasesStubSettings build() throws IOException { return new KnowledgeBasesStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java index 7dc5c8646e11..0a1747bc7288 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java @@ -332,6 +332,15 @@ public ParticipantsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -592,7 +601,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -605,7 +613,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -748,6 +755,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ParticipantsStubSettings build() throws IOException { return new ParticipantsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java index 1daba042b80f..ce27bd19a1c1 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java @@ -313,6 +313,15 @@ public SessionEntityTypesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -526,7 +535,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -539,7 +547,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -645,6 +652,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SessionEntityTypesStubSettings build() throws IOException { return new SessionEntityTypesStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java index 9a8ca4bb4219..b7d77941e89f 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java @@ -205,6 +205,15 @@ public SessionsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -409,7 +418,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -422,7 +430,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -488,6 +495,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SessionsStubSettings build() throws IOException { return new SessionsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java index 389bb8008c6a..698511874169 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java @@ -281,6 +281,15 @@ public VersionsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -484,7 +493,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -497,7 +505,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -597,6 +604,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public VersionsStubSettings build() throws IOException { return new VersionsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java index f605c95beb4c..8b7be874e75f 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java @@ -66,92 +66,94 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetAgent

GetAgent

Retrieves the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAgent(GetAgentRequest request) + *
  • getAgent(GetAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAgent(LocationName parent) - *
  • getAgent(ProjectName parent) - *
  • getAgent(String parent) + *
  • getAgent(LocationName parent) + *

  • getAgent(ProjectName parent) + *

  • getAgent(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAgentCallable() + *
  • getAgentCallable() *

*
SetAgent

SetAgent

Creates/updates the specified agent. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setAgent(SetAgentRequest request) + *
  • setAgent(SetAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • setAgent(Agent agent) + *
  • setAgent(Agent agent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setAgentCallable() + *
  • setAgentCallable() *

*
DeleteAgent

DeleteAgent

Deletes the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAgent(DeleteAgentRequest request) + *
  • deleteAgent(DeleteAgentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteAgent(LocationName parent) - *
  • deleteAgent(ProjectName parent) - *
  • deleteAgent(String parent) + *
  • deleteAgent(LocationName parent) + *

  • deleteAgent(ProjectName parent) + *

  • deleteAgent(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAgentCallable() + *
  • deleteAgentCallable() *

*
SearchAgents

SearchAgents

Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id "-". Refer to [List Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • searchAgents(SearchAgentsRequest request) + *
  • searchAgents(SearchAgentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • searchAgents(LocationName parent) - *
  • searchAgents(ProjectName parent) - *
  • searchAgents(String parent) + *
  • searchAgents(LocationName parent) + *

  • searchAgents(ProjectName parent) + *

  • searchAgents(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchAgentsPagedCallable() - *
  • searchAgentsCallable() + *
  • searchAgentsPagedCallable() + *

  • searchAgentsCallable() *

*
TrainAgent

TrainAgent

Trains the specified agent. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -159,46 +161,46 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • trainAgentAsync(TrainAgentRequest request) + *
  • trainAgentAsync(TrainAgentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • trainAgentAsync(LocationName parent) - *
  • trainAgentAsync(ProjectName parent) - *
  • trainAgentAsync(String parent) + *
  • trainAgentAsync(LocationName parent) + *

  • trainAgentAsync(ProjectName parent) + *

  • trainAgentAsync(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • trainAgentOperationCallable() - *
  • trainAgentCallable() + *
  • trainAgentOperationCallable() + *

  • trainAgentCallable() *

*
ExportAgent

ExportAgent

Exports the specified agent to a ZIP file. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportAgentAsync(ExportAgentRequest request) + *
  • exportAgentAsync(ExportAgentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • exportAgentAsync(LocationName parent) - *
  • exportAgentAsync(ProjectName parent) - *
  • exportAgentAsync(String parent) + *
  • exportAgentAsync(LocationName parent) + *

  • exportAgentAsync(ProjectName parent) + *

  • exportAgentAsync(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportAgentOperationCallable() - *
  • exportAgentCallable() + *
  • exportAgentOperationCallable() + *

  • exportAgentCallable() *

*
ImportAgent

ImportAgent

Imports the specified agent from a ZIP file. *

Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from [ImportAgentRequest][google.cloud.dialogflow.v2beta1.ImportAgentRequest]. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2beta1.Agents.TrainAgent] and wait for the operation it returns in order to train explicitly. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: @@ -208,17 +210,17 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importAgentAsync(ImportAgentRequest request) + *
  • importAgentAsync(ImportAgentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importAgentOperationCallable() - *
  • importAgentCallable() + *
  • importAgentOperationCallable() + *

  • importAgentCallable() *

*
RestoreAgent

RestoreAgent

Restores the specified agent from a ZIP file. *

Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2beta1.Agents.TrainAgent] and wait for the operation it returns in order to train explicitly. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: @@ -228,59 +230,58 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • restoreAgentAsync(RestoreAgentRequest request) + *
  • restoreAgentAsync(RestoreAgentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • restoreAgentOperationCallable() - *
  • restoreAgentCallable() + *
  • restoreAgentOperationCallable() + *

  • restoreAgentCallable() *

*
GetValidationResult

GetValidationResult

Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getValidationResult(GetValidationResultRequest request) + *
  • getValidationResult(GetValidationResultRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getValidationResultCallable() + *
  • getValidationResultCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java index 08cbc8f95976..04772745a186 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java @@ -63,93 +63,94 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetAnswerRecord

GetAnswerRecord

Deprecated. Retrieves a specific answer record.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAnswerRecord(GetAnswerRecordRequest request) + *
  • getAnswerRecord(GetAnswerRecordRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAnswerRecordCallable() + *
  • getAnswerRecordCallable() *

*
ListAnswerRecords

ListAnswerRecords

Returns the list of all answer records in the specified project in reverse chronological order.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAnswerRecords(ListAnswerRecordsRequest request) + *
  • listAnswerRecords(ListAnswerRecordsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAnswerRecords(LocationName parent) - *
  • listAnswerRecords(ProjectName parent) - *
  • listAnswerRecords(String parent) + *
  • listAnswerRecords(LocationName parent) + *

  • listAnswerRecords(ProjectName parent) + *

  • listAnswerRecords(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listAnswerRecordsPagedCallable() - *
  • listAnswerRecordsCallable() + *
  • listAnswerRecordsPagedCallable() + *

  • listAnswerRecordsCallable() *

*
UpdateAnswerRecord

UpdateAnswerRecord

Updates the specified answer record.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateAnswerRecord(UpdateAnswerRecordRequest request) + *
  • updateAnswerRecord(UpdateAnswerRecordRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateAnswerRecord(AnswerRecord answerRecord, FieldMask updateMask) + *
  • updateAnswerRecord(AnswerRecord answerRecord, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateAnswerRecordCallable() + *
  • updateAnswerRecordCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java index 278d0cb62a25..2c913082959b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java @@ -63,156 +63,157 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListContexts

ListContexts

Returns the list of all contexts in the specified session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listContexts(ListContextsRequest request) + *
  • listContexts(ListContextsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listContexts(SessionName parent) - *
  • listContexts(String parent) + *
  • listContexts(SessionName parent) + *

  • listContexts(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listContextsPagedCallable() - *
  • listContextsCallable() + *
  • listContextsPagedCallable() + *

  • listContextsCallable() *

*
GetContext

GetContext

Retrieves the specified context.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getContext(GetContextRequest request) + *
  • getContext(GetContextRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getContext(ContextName name) - *
  • getContext(String name) + *
  • getContext(ContextName name) + *

  • getContext(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getContextCallable() + *
  • getContextCallable() *

*
CreateContext

CreateContext

Creates a context. *

If the specified context already exists, overrides the context.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createContext(CreateContextRequest request) + *
  • createContext(CreateContextRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createContext(SessionName parent, Context context) - *
  • createContext(String parent, Context context) + *
  • createContext(SessionName parent, Context context) + *

  • createContext(String parent, Context context) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createContextCallable() + *
  • createContextCallable() *

*
UpdateContext

UpdateContext

Updates the specified context.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateContext(UpdateContextRequest request) + *
  • updateContext(UpdateContextRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateContext(Context context) - *
  • updateContext(Context context, FieldMask updateMask) + *
  • updateContext(Context context) + *

  • updateContext(Context context, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateContextCallable() + *
  • updateContextCallable() *

*
DeleteContext

DeleteContext

Deletes the specified context.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteContext(DeleteContextRequest request) + *
  • deleteContext(DeleteContextRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteContext(ContextName name) - *
  • deleteContext(String name) + *
  • deleteContext(ContextName name) + *

  • deleteContext(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteContextCallable() + *
  • deleteContextCallable() *

*
DeleteAllContexts

DeleteAllContexts

Deletes all active contexts in the specified session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAllContexts(DeleteAllContextsRequest request) + *
  • deleteAllContexts(DeleteAllContextsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteAllContexts(SessionName parent) - *
  • deleteAllContexts(String parent) + *
  • deleteAllContexts(SessionName parent) + *

  • deleteAllContexts(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAllContextsCallable() + *
  • deleteAllContextsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java index 22760ef9e65d..9be68a2cd11f 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java @@ -71,111 +71,113 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListConversationProfiles

ListConversationProfiles

Returns the list of all conversation profiles in the specified project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listConversationProfiles(ListConversationProfilesRequest request) + *
  • listConversationProfiles(ListConversationProfilesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listConversationProfiles(LocationName parent) - *
  • listConversationProfiles(ProjectName parent) - *
  • listConversationProfiles(String parent) + *
  • listConversationProfiles(LocationName parent) + *

  • listConversationProfiles(ProjectName parent) + *

  • listConversationProfiles(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listConversationProfilesPagedCallable() - *
  • listConversationProfilesCallable() + *
  • listConversationProfilesPagedCallable() + *

  • listConversationProfilesCallable() *

*
GetConversationProfile

GetConversationProfile

Retrieves the specified conversation profile.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getConversationProfile(GetConversationProfileRequest request) + *
  • getConversationProfile(GetConversationProfileRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getConversationProfile(ConversationProfileName name) - *
  • getConversationProfile(String name) + *
  • getConversationProfile(ConversationProfileName name) + *

  • getConversationProfile(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getConversationProfileCallable() + *
  • getConversationProfileCallable() *

*
CreateConversationProfile

CreateConversationProfile

Creates a conversation profile in the specified project. *

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createConversationProfile(CreateConversationProfileRequest request) + *
  • createConversationProfile(CreateConversationProfileRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createConversationProfile(LocationName parent, ConversationProfile conversationProfile) - *
  • createConversationProfile(ProjectName parent, ConversationProfile conversationProfile) - *
  • createConversationProfile(String parent, ConversationProfile conversationProfile) + *
  • createConversationProfile(LocationName parent, ConversationProfile conversationProfile) + *

  • createConversationProfile(ProjectName parent, ConversationProfile conversationProfile) + *

  • createConversationProfile(String parent, ConversationProfile conversationProfile) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createConversationProfileCallable() + *
  • createConversationProfileCallable() *

*
UpdateConversationProfile

UpdateConversationProfile

Updates the specified conversation profile. *

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateConversationProfile(UpdateConversationProfileRequest request) + *
  • updateConversationProfile(UpdateConversationProfileRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateConversationProfile(ConversationProfile conversationProfile, FieldMask updateMask) + *
  • updateConversationProfile(ConversationProfile conversationProfile, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateConversationProfileCallable() + *
  • updateConversationProfileCallable() *

*
DeleteConversationProfile

DeleteConversationProfile

Deletes the specified conversation profile.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteConversationProfile(DeleteConversationProfileRequest request) + *
  • deleteConversationProfile(DeleteConversationProfileRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteConversationProfile(ConversationProfileName name) - *
  • deleteConversationProfile(String name) + *
  • deleteConversationProfile(ConversationProfileName name) + *

  • deleteConversationProfile(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteConversationProfileCallable() + *
  • deleteConversationProfileCallable() *

*
SetSuggestionFeatureConfig

SetSuggestionFeatureConfig

Adds or updates a suggestion feature in a conversation profile. If the conversation profile contains the type of suggestion feature for the participant role, it will update it. Otherwise it will insert the suggestion feature. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2beta1.SetSuggestionFeatureConfigOperationMetadata] - `response`: [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile] @@ -183,72 +185,71 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setSuggestionFeatureConfigAsync(SetSuggestionFeatureConfigRequest request) + *
  • setSuggestionFeatureConfigAsync(SetSuggestionFeatureConfigRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • setSuggestionFeatureConfigAsync(String conversationProfile) - *
  • setSuggestionFeatureConfigAsync(String conversationProfile, Participant.Role participantRole, HumanAgentAssistantConfig.SuggestionFeatureConfig suggestionFeatureConfig) + *
  • setSuggestionFeatureConfigAsync(String conversationProfile) + *

  • setSuggestionFeatureConfigAsync(String conversationProfile, Participant.Role participantRole, HumanAgentAssistantConfig.SuggestionFeatureConfig suggestionFeatureConfig) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setSuggestionFeatureConfigOperationCallable() - *
  • setSuggestionFeatureConfigCallable() + *
  • setSuggestionFeatureConfigOperationCallable() + *

  • setSuggestionFeatureConfigCallable() *

*
ClearSuggestionFeatureConfig

ClearSuggestionFeatureConfig

Clears a suggestion feature from a conversation profile for the given participant role. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2beta1.ClearSuggestionFeatureConfigOperationMetadata] - `response`: [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • clearSuggestionFeatureConfigAsync(ClearSuggestionFeatureConfigRequest request) + *
  • clearSuggestionFeatureConfigAsync(ClearSuggestionFeatureConfigRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • clearSuggestionFeatureConfigAsync(String conversationProfile) - *
  • clearSuggestionFeatureConfigAsync(String conversationProfile, Participant.Role participantRole, SuggestionFeature.Type suggestionFeatureType) + *
  • clearSuggestionFeatureConfigAsync(String conversationProfile) + *

  • clearSuggestionFeatureConfigAsync(String conversationProfile, Participant.Role participantRole, SuggestionFeature.Type suggestionFeatureType) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • clearSuggestionFeatureConfigOperationCallable() - *
  • clearSuggestionFeatureConfigCallable() + *
  • clearSuggestionFeatureConfigOperationCallable() + *

  • clearSuggestionFeatureConfigCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java index c84fcf3e01a4..484abcee3dd4 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java @@ -62,12 +62,14 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateConversation

CreateConversation

Creates a new conversation. Conversations are auto-completed after 24 hours. *

Conversation Lifecycle: There are two stages during a conversation: Automated Agent Stage and Assist Stage. *

For Automated Agent Stage, there will be a dialogflow agent responding to user queries. @@ -76,195 +78,194 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createConversation(CreateConversationRequest request) + *
  • createConversation(CreateConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createConversation(LocationName parent, Conversation conversation) - *
  • createConversation(ProjectName parent, Conversation conversation) - *
  • createConversation(String parent, Conversation conversation) + *
  • createConversation(LocationName parent, Conversation conversation) + *

  • createConversation(ProjectName parent, Conversation conversation) + *

  • createConversation(String parent, Conversation conversation) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createConversationCallable() + *
  • createConversationCallable() *

*
ListConversations

ListConversations

Returns the list of all conversations in the specified project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listConversations(ListConversationsRequest request) + *
  • listConversations(ListConversationsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listConversations(LocationName parent) - *
  • listConversations(ProjectName parent) - *
  • listConversations(String parent) + *
  • listConversations(LocationName parent) + *

  • listConversations(ProjectName parent) + *

  • listConversations(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listConversationsPagedCallable() - *
  • listConversationsCallable() + *
  • listConversationsPagedCallable() + *

  • listConversationsCallable() *

*
GetConversation

GetConversation

Retrieves the specific conversation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getConversation(GetConversationRequest request) + *
  • getConversation(GetConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getConversation(ConversationName name) - *
  • getConversation(String name) + *
  • getConversation(ConversationName name) + *

  • getConversation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getConversationCallable() + *
  • getConversationCallable() *

*
CompleteConversation

CompleteConversation

Completes the specified conversation. Finished conversations are purged from the database after 30 days.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • completeConversation(CompleteConversationRequest request) + *
  • completeConversation(CompleteConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • completeConversation(ConversationName name) - *
  • completeConversation(String name) + *
  • completeConversation(ConversationName name) + *

  • completeConversation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • completeConversationCallable() + *
  • completeConversationCallable() *

*
BatchCreateMessages

BatchCreateMessages

Batch ingests messages to conversation. Customers can use this RPC to ingest historical messages to conversation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchCreateMessages(BatchCreateMessagesRequest request) + *
  • batchCreateMessages(BatchCreateMessagesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • batchCreateMessages(ConversationName parent) - *
  • batchCreateMessages(String parent) + *
  • batchCreateMessages(ConversationName parent) + *

  • batchCreateMessages(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchCreateMessagesCallable() + *
  • batchCreateMessagesCallable() *

*
ListMessages

ListMessages

Lists messages that belong to a given conversation. `messages` are ordered by `create_time` in descending order. To fetch updates without duplication, send request with filter `create_time_epoch_microseconds > [first item's create_time of previous request]` and empty page_token.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listMessages(ListMessagesRequest request) + *
  • listMessages(ListMessagesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listMessages(ConversationName parent) - *
  • listMessages(String parent) + *
  • listMessages(ConversationName parent) + *

  • listMessages(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listMessagesPagedCallable() - *
  • listMessagesCallable() + *
  • listMessagesPagedCallable() + *

  • listMessagesCallable() *

*
SuggestConversationSummary

SuggestConversationSummary

Suggest summary for a conversation based on specific historical messages. The range of the messages to be used for summary can be specified in the request.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • suggestConversationSummary(SuggestConversationSummaryRequest request) + *
  • suggestConversationSummary(SuggestConversationSummaryRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • suggestConversationSummary(ConversationName conversation) - *
  • suggestConversationSummary(String conversation) + *
  • suggestConversationSummary(ConversationName conversation) + *

  • suggestConversationSummary(String conversation) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • suggestConversationSummaryCallable() + *
  • suggestConversationSummaryCallable() *

*
GenerateStatelessSummary

GenerateStatelessSummary

Generates and returns a summary for a conversation that does not have a resource created for it.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateStatelessSummary(GenerateStatelessSummaryRequest request) + *
  • generateStatelessSummary(GenerateStatelessSummaryRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateStatelessSummaryCallable() + *
  • generateStatelessSummaryCallable() *

*
SearchKnowledge

SearchKnowledge

Get answers for the given query based on knowledge documents.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • searchKnowledge(SearchKnowledgeRequest request) + *
  • searchKnowledge(SearchKnowledgeRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchKnowledgeCallable() + *
  • searchKnowledgeCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java index 33e345399695..178fe14702d7 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java @@ -69,53 +69,55 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListDocuments

ListDocuments

Returns the list of all documents of the knowledge base. *

Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDocuments(ListDocumentsRequest request) + *
  • listDocuments(ListDocumentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDocuments(KnowledgeBaseName parent) - *
  • listDocuments(String parent) + *
  • listDocuments(KnowledgeBaseName parent) + *

  • listDocuments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDocumentsPagedCallable() - *
  • listDocumentsCallable() + *
  • listDocumentsPagedCallable() + *

  • listDocumentsCallable() *

*
GetDocument

GetDocument

Retrieves the specified document. *

Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDocument(GetDocumentRequest request) + *
  • getDocument(GetDocumentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDocument(DocumentName name) - *
  • getDocument(String name) + *
  • getDocument(DocumentName name) + *

  • getDocument(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDocumentCallable() + *
  • getDocumentCallable() *

*
CreateDocument

CreateDocument

Creates a new document. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2beta1.Document] @@ -123,39 +125,39 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createDocumentAsync(CreateDocumentRequest request) + *
  • createDocumentAsync(CreateDocumentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createDocumentAsync(KnowledgeBaseName parent, Document document) - *
  • createDocumentAsync(String parent, Document document) + *
  • createDocumentAsync(KnowledgeBaseName parent, Document document) + *

  • createDocumentAsync(String parent, Document document) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createDocumentOperationCallable() - *
  • createDocumentCallable() + *
  • createDocumentOperationCallable() + *

  • createDocumentCallable() *

*
ImportDocuments

ImportDocuments

Create documents by importing data from external sources. Dialogflow supports up to 350 documents in each request. If you try to import more, Dialogflow will return an error. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata] - `response`: [ImportDocumentsResponse][google.cloud.dialogflow.v2beta1.ImportDocumentsResponse]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importDocumentsAsync(ImportDocumentsRequest request) + *
  • importDocumentsAsync(ImportDocumentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importDocumentsOperationCallable() - *
  • importDocumentsCallable() + *
  • importDocumentsOperationCallable() + *

  • importDocumentsCallable() *

*
DeleteDocument

DeleteDocument

Deletes the specified document. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata] - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -163,22 +165,22 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteDocumentAsync(DeleteDocumentRequest request) + *
  • deleteDocumentAsync(DeleteDocumentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteDocumentAsync(DocumentName name) - *
  • deleteDocumentAsync(String name) + *
  • deleteDocumentAsync(DocumentName name) + *

  • deleteDocumentAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteDocumentOperationCallable() - *
  • deleteDocumentCallable() + *
  • deleteDocumentOperationCallable() + *

  • deleteDocumentCallable() *

*
UpdateDocument

UpdateDocument

Updates the specified document. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2beta1.Document] @@ -186,22 +188,22 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateDocumentAsync(UpdateDocumentRequest request) + *
  • updateDocumentAsync(UpdateDocumentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateDocumentAsync(Document document) - *
  • updateDocumentAsync(Document document, FieldMask updateMask) + *
  • updateDocumentAsync(Document document) + *

  • updateDocumentAsync(Document document, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateDocumentOperationCallable() - *
  • updateDocumentCallable() + *
  • updateDocumentOperationCallable() + *

  • updateDocumentCallable() *

*
ReloadDocument

ReloadDocument

Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the `import_gcs_custom_metadata` field is set to true in the request. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: *

- `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2beta1.Document] @@ -209,50 +211,49 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • reloadDocumentAsync(ReloadDocumentRequest request) + *
  • reloadDocumentAsync(ReloadDocumentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • reloadDocumentAsync(DocumentName name, GcsSource gcsSource) - *
  • reloadDocumentAsync(String name, GcsSource gcsSource) + *
  • reloadDocumentAsync(DocumentName name, GcsSource gcsSource) + *

  • reloadDocumentAsync(String name, GcsSource gcsSource) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • reloadDocumentOperationCallable() - *
  • reloadDocumentCallable() + *
  • reloadDocumentOperationCallable() + *

  • reloadDocumentCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java index 3ac50940ff6d..fa73b951ef9c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java @@ -68,118 +68,120 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListEntityTypes

ListEntityTypes

Returns the list of all entity types in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEntityTypes(ListEntityTypesRequest request) + *
  • listEntityTypes(ListEntityTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEntityTypes(AgentName parent) - *
  • listEntityTypes(String parent) - *
  • listEntityTypes(AgentName parent, String languageCode) - *
  • listEntityTypes(String parent, String languageCode) + *
  • listEntityTypes(AgentName parent) + *

  • listEntityTypes(String parent) + *

  • listEntityTypes(AgentName parent, String languageCode) + *

  • listEntityTypes(String parent, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listEntityTypesPagedCallable() - *
  • listEntityTypesCallable() + *
  • listEntityTypesPagedCallable() + *

  • listEntityTypesCallable() *

*
GetEntityType

GetEntityType

Retrieves the specified entity type.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEntityType(GetEntityTypeRequest request) + *
  • getEntityType(GetEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getEntityType(EntityTypeName name) - *
  • getEntityType(String name) - *
  • getEntityType(EntityTypeName name, String languageCode) - *
  • getEntityType(String name, String languageCode) + *
  • getEntityType(EntityTypeName name) + *

  • getEntityType(String name) + *

  • getEntityType(EntityTypeName name, String languageCode) + *

  • getEntityType(String name, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEntityTypeCallable() + *
  • getEntityTypeCallable() *

*
CreateEntityType

CreateEntityType

Creates an entity type in the specified agent. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createEntityType(CreateEntityTypeRequest request) + *
  • createEntityType(CreateEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createEntityType(AgentName parent, EntityType entityType) - *
  • createEntityType(String parent, EntityType entityType) - *
  • createEntityType(AgentName parent, EntityType entityType, String languageCode) - *
  • createEntityType(String parent, EntityType entityType, String languageCode) + *
  • createEntityType(AgentName parent, EntityType entityType) + *

  • createEntityType(String parent, EntityType entityType) + *

  • createEntityType(AgentName parent, EntityType entityType, String languageCode) + *

  • createEntityType(String parent, EntityType entityType, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createEntityTypeCallable() + *
  • createEntityTypeCallable() *

*
UpdateEntityType

UpdateEntityType

Updates the specified entity type. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateEntityType(UpdateEntityTypeRequest request) + *
  • updateEntityType(UpdateEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateEntityType(EntityType entityType) - *
  • updateEntityType(EntityType entityType, String languageCode) - *
  • updateEntityType(EntityType entityType, String languageCode, FieldMask updateMask) + *
  • updateEntityType(EntityType entityType) + *

  • updateEntityType(EntityType entityType, String languageCode) + *

  • updateEntityType(EntityType entityType, String languageCode, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateEntityTypeCallable() + *
  • updateEntityTypeCallable() *

*
DeleteEntityType

DeleteEntityType

Deletes the specified entity type. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteEntityType(DeleteEntityTypeRequest request) + *
  • deleteEntityType(DeleteEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteEntityType(EntityTypeName name) - *
  • deleteEntityType(String name) + *
  • deleteEntityType(EntityTypeName name) + *

  • deleteEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteEntityTypeCallable() + *
  • deleteEntityTypeCallable() *

*
BatchUpdateEntityTypes

BatchUpdateEntityTypes

Updates/Creates multiple entity types in the specified agent. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse] @@ -187,17 +189,17 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchUpdateEntityTypesAsync(BatchUpdateEntityTypesRequest request) + *
  • batchUpdateEntityTypesAsync(BatchUpdateEntityTypesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchUpdateEntityTypesOperationCallable() - *
  • batchUpdateEntityTypesCallable() + *
  • batchUpdateEntityTypesOperationCallable() + *

  • batchUpdateEntityTypesCallable() *

*
BatchDeleteEntityTypes

BatchDeleteEntityTypes

Deletes entity types in the specified agent. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -205,22 +207,22 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchDeleteEntityTypesAsync(BatchDeleteEntityTypesRequest request) + *
  • batchDeleteEntityTypesAsync(BatchDeleteEntityTypesRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchDeleteEntityTypesAsync(AgentName parent, List entityTypeNames) - *
  • batchDeleteEntityTypesAsync(String parent, List entityTypeNames) + *
  • batchDeleteEntityTypesAsync(AgentName parent, List<String> entityTypeNames) + *

  • batchDeleteEntityTypesAsync(String parent, List<String> entityTypeNames) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchDeleteEntityTypesOperationCallable() - *
  • batchDeleteEntityTypesCallable() + *
  • batchDeleteEntityTypesOperationCallable() + *

  • batchDeleteEntityTypesCallable() *

*
BatchCreateEntities

BatchCreateEntities

Creates multiple new entities in the specified entity type. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -228,24 +230,24 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchCreateEntitiesAsync(BatchCreateEntitiesRequest request) + *
  • batchCreateEntitiesAsync(BatchCreateEntitiesRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchCreateEntitiesAsync(EntityTypeName parent, List entities) - *
  • batchCreateEntitiesAsync(String parent, List entities) - *
  • batchCreateEntitiesAsync(EntityTypeName parent, List entities, String languageCode) - *
  • batchCreateEntitiesAsync(String parent, List entities, String languageCode) + *
  • batchCreateEntitiesAsync(EntityTypeName parent, List<EntityType.Entity> entities) + *

  • batchCreateEntitiesAsync(String parent, List<EntityType.Entity> entities) + *

  • batchCreateEntitiesAsync(EntityTypeName parent, List<EntityType.Entity> entities, String languageCode) + *

  • batchCreateEntitiesAsync(String parent, List<EntityType.Entity> entities, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchCreateEntitiesOperationCallable() - *
  • batchCreateEntitiesCallable() + *
  • batchCreateEntitiesOperationCallable() + *

  • batchCreateEntitiesCallable() *

*
BatchUpdateEntities

BatchUpdateEntities

Updates or creates multiple entities in the specified entity type. This method does not affect entities in the entity type that aren't explicitly specified in the request. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training). *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: @@ -253,24 +255,24 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchUpdateEntitiesAsync(BatchUpdateEntitiesRequest request) + *
  • batchUpdateEntitiesAsync(BatchUpdateEntitiesRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchUpdateEntitiesAsync(EntityTypeName parent, List entities) - *
  • batchUpdateEntitiesAsync(String parent, List entities) - *
  • batchUpdateEntitiesAsync(EntityTypeName parent, List entities, String languageCode) - *
  • batchUpdateEntitiesAsync(String parent, List entities, String languageCode) + *
  • batchUpdateEntitiesAsync(EntityTypeName parent, List<EntityType.Entity> entities) + *

  • batchUpdateEntitiesAsync(String parent, List<EntityType.Entity> entities) + *

  • batchUpdateEntitiesAsync(EntityTypeName parent, List<EntityType.Entity> entities, String languageCode) + *

  • batchUpdateEntitiesAsync(String parent, List<EntityType.Entity> entities, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchUpdateEntitiesOperationCallable() - *
  • batchUpdateEntitiesCallable() + *
  • batchUpdateEntitiesOperationCallable() + *

  • batchUpdateEntitiesCallable() *

*
BatchDeleteEntities

BatchDeleteEntities

Deletes entities in the specified entity type. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -278,52 +280,51 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchDeleteEntitiesAsync(BatchDeleteEntitiesRequest request) + *
  • batchDeleteEntitiesAsync(BatchDeleteEntitiesRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchDeleteEntitiesAsync(EntityTypeName parent, List entityValues) - *
  • batchDeleteEntitiesAsync(String parent, List entityValues) - *
  • batchDeleteEntitiesAsync(EntityTypeName parent, List entityValues, String languageCode) - *
  • batchDeleteEntitiesAsync(String parent, List entityValues, String languageCode) + *
  • batchDeleteEntitiesAsync(EntityTypeName parent, List<String> entityValues) + *

  • batchDeleteEntitiesAsync(String parent, List<String> entityValues) + *

  • batchDeleteEntitiesAsync(EntityTypeName parent, List<String> entityValues, String languageCode) + *

  • batchDeleteEntitiesAsync(String parent, List<String> entityValues, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchDeleteEntitiesOperationCallable() - *
  • batchDeleteEntitiesCallable() + *
  • batchDeleteEntitiesOperationCallable() + *

  • batchDeleteEntitiesCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java index a7f7acc0aa64..1b4d726684e9 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java @@ -66,132 +66,133 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListEnvironments

ListEnvironments

Returns the list of all non-draft environments of the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEnvironments(ListEnvironmentsRequest request) + *
  • listEnvironments(ListEnvironmentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEnvironments(AgentName parent) - *
  • listEnvironments(String parent) + *
  • listEnvironments(AgentName parent) + *

  • listEnvironments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listEnvironmentsPagedCallable() - *
  • listEnvironmentsCallable() + *
  • listEnvironmentsPagedCallable() + *

  • listEnvironmentsCallable() *

*
GetEnvironment

GetEnvironment

Retrieves the specified agent environment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEnvironment(GetEnvironmentRequest request) + *
  • getEnvironment(GetEnvironmentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEnvironmentCallable() + *
  • getEnvironmentCallable() *

*
CreateEnvironment

CreateEnvironment

Creates an agent environment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createEnvironment(CreateEnvironmentRequest request) + *
  • createEnvironment(CreateEnvironmentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createEnvironmentCallable() + *
  • createEnvironmentCallable() *

*
UpdateEnvironment

UpdateEnvironment

Updates the specified agent environment. *

This method allows you to deploy new agent versions into the environment. When an environment is pointed to a new agent version by setting `environment.agent_version`, the environment is temporarily set to the `LOADING` state. During that time, the environment keeps on serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the `RUNNING` state. You can use "-" as Environment ID in environment name to update version in "draft" environment. WARNING: this will negate all recent changes to draft and can't be undone. You may want to save the draft to a version before calling this function.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateEnvironment(UpdateEnvironmentRequest request) + *
  • updateEnvironment(UpdateEnvironmentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateEnvironmentCallable() + *
  • updateEnvironmentCallable() *

*
DeleteEnvironment

DeleteEnvironment

Deletes the specified agent environment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteEnvironment(DeleteEnvironmentRequest request) + *
  • deleteEnvironment(DeleteEnvironmentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteEnvironmentCallable() + *
  • deleteEnvironmentCallable() *

*
GetEnvironmentHistory

GetEnvironmentHistory

Gets the history of the specified environment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEnvironmentHistory(GetEnvironmentHistoryRequest request) + *
  • getEnvironmentHistory(GetEnvironmentHistoryRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEnvironmentHistoryPagedCallable() - *
  • getEnvironmentHistoryCallable() + *
  • getEnvironmentHistoryPagedCallable() + *

  • getEnvironmentHistoryCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java index 1ec3c4d59e99..3d155b509606 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java @@ -62,77 +62,78 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetFulfillment

GetFulfillment

Retrieves the fulfillment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getFulfillment(GetFulfillmentRequest request) + *
  • getFulfillment(GetFulfillmentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getFulfillment(FulfillmentName name) - *
  • getFulfillment(String name) + *
  • getFulfillment(FulfillmentName name) + *

  • getFulfillment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getFulfillmentCallable() + *
  • getFulfillmentCallable() *

*
UpdateFulfillment

UpdateFulfillment

Updates the fulfillment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateFulfillment(UpdateFulfillmentRequest request) + *
  • updateFulfillment(UpdateFulfillmentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateFulfillment(Fulfillment fulfillment, FieldMask updateMask) + *
  • updateFulfillment(Fulfillment fulfillment, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateFulfillmentCallable() + *
  • updateFulfillmentCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java index 8ba46c777b54..4ece485b1257 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java @@ -67,119 +67,121 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListIntents

ListIntents

Returns the list of all intents in the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listIntents(ListIntentsRequest request) + *
  • listIntents(ListIntentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listIntents(AgentName parent) - *
  • listIntents(String parent) - *
  • listIntents(AgentName parent, String languageCode) - *
  • listIntents(String parent, String languageCode) + *
  • listIntents(AgentName parent) + *

  • listIntents(String parent) + *

  • listIntents(AgentName parent, String languageCode) + *

  • listIntents(String parent, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listIntentsPagedCallable() - *
  • listIntentsCallable() + *
  • listIntentsPagedCallable() + *

  • listIntentsCallable() *

*
GetIntent

GetIntent

Retrieves the specified intent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIntent(GetIntentRequest request) + *
  • getIntent(GetIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getIntent(IntentName name) - *
  • getIntent(String name) - *
  • getIntent(IntentName name, String languageCode) - *
  • getIntent(String name, String languageCode) + *
  • getIntent(IntentName name) + *

  • getIntent(String name) + *

  • getIntent(IntentName name, String languageCode) + *

  • getIntent(String name, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIntentCallable() + *
  • getIntentCallable() *

*
CreateIntent

CreateIntent

Creates an intent in the specified agent. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createIntent(CreateIntentRequest request) + *
  • createIntent(CreateIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createIntent(AgentName parent, Intent intent) - *
  • createIntent(String parent, Intent intent) - *
  • createIntent(AgentName parent, Intent intent, String languageCode) - *
  • createIntent(String parent, Intent intent, String languageCode) + *
  • createIntent(AgentName parent, Intent intent) + *

  • createIntent(String parent, Intent intent) + *

  • createIntent(AgentName parent, Intent intent, String languageCode) + *

  • createIntent(String parent, Intent intent, String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createIntentCallable() + *
  • createIntentCallable() *

*
UpdateIntent

UpdateIntent

Updates the specified intent. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateIntent(UpdateIntentRequest request) + *
  • updateIntent(UpdateIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateIntent(Intent intent) - *
  • updateIntent(Intent intent, FieldMask updateMask) - *
  • updateIntent(Intent intent, String languageCode) - *
  • updateIntent(Intent intent, String languageCode, FieldMask updateMask) + *
  • updateIntent(Intent intent) + *

  • updateIntent(Intent intent, FieldMask updateMask) + *

  • updateIntent(Intent intent, String languageCode) + *

  • updateIntent(Intent intent, String languageCode, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateIntentCallable() + *
  • updateIntentCallable() *

*
DeleteIntent

DeleteIntent

Deletes the specified intent and its direct or indirect followup intents. *

Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteIntent(DeleteIntentRequest request) + *
  • deleteIntent(DeleteIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteIntent(IntentName name) - *
  • deleteIntent(String name) + *
  • deleteIntent(IntentName name) + *

  • deleteIntent(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteIntentCallable() + *
  • deleteIntentCallable() *

*
BatchUpdateIntents

BatchUpdateIntents

Updates/Creates multiple intents in the specified agent. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse] @@ -187,24 +189,24 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchUpdateIntentsAsync(BatchUpdateIntentsRequest request) + *
  • batchUpdateIntentsAsync(BatchUpdateIntentsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchUpdateIntentsAsync(AgentName parent, IntentBatch intentBatchInline) - *
  • batchUpdateIntentsAsync(AgentName parent, String intentBatchUri) - *
  • batchUpdateIntentsAsync(String parent, IntentBatch intentBatchInline) - *
  • batchUpdateIntentsAsync(String parent, String intentBatchUri) + *
  • batchUpdateIntentsAsync(AgentName parent, IntentBatch intentBatchInline) + *

  • batchUpdateIntentsAsync(AgentName parent, String intentBatchUri) + *

  • batchUpdateIntentsAsync(String parent, IntentBatch intentBatchInline) + *

  • batchUpdateIntentsAsync(String parent, String intentBatchUri) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchUpdateIntentsOperationCallable() - *
  • batchUpdateIntentsCallable() + *
  • batchUpdateIntentsOperationCallable() + *

  • batchUpdateIntentsCallable() *

*
BatchDeleteIntents

BatchDeleteIntents

Deletes intents in the specified agent. *

This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: *

- `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) @@ -212,50 +214,49 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchDeleteIntentsAsync(BatchDeleteIntentsRequest request) + *
  • batchDeleteIntentsAsync(BatchDeleteIntentsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchDeleteIntentsAsync(AgentName parent, List intents) - *
  • batchDeleteIntentsAsync(String parent, List intents) + *
  • batchDeleteIntentsAsync(AgentName parent, List<Intent> intents) + *

  • batchDeleteIntentsAsync(String parent, List<Intent> intents) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchDeleteIntentsOperationCallable() - *
  • batchDeleteIntentsCallable() + *
  • batchDeleteIntentsOperationCallable() + *

  • batchDeleteIntentsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java index f4f7c74ee05a..bdd89765cfbe 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java @@ -64,143 +64,144 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListKnowledgeBases

ListKnowledgeBases

Returns the list of all knowledge bases of the specified agent. *

Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listKnowledgeBases(ListKnowledgeBasesRequest request) + *
  • listKnowledgeBases(ListKnowledgeBasesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listKnowledgeBases(LocationName parent) - *
  • listKnowledgeBases(ProjectName parent) - *
  • listKnowledgeBases(String parent) + *
  • listKnowledgeBases(LocationName parent) + *

  • listKnowledgeBases(ProjectName parent) + *

  • listKnowledgeBases(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listKnowledgeBasesPagedCallable() - *
  • listKnowledgeBasesCallable() + *
  • listKnowledgeBasesPagedCallable() + *

  • listKnowledgeBasesCallable() *

*
GetKnowledgeBase

GetKnowledgeBase

Retrieves the specified knowledge base. *

Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getKnowledgeBase(GetKnowledgeBaseRequest request) + *
  • getKnowledgeBase(GetKnowledgeBaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getKnowledgeBase(KnowledgeBaseName name) - *
  • getKnowledgeBase(String name) + *
  • getKnowledgeBase(KnowledgeBaseName name) + *

  • getKnowledgeBase(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getKnowledgeBaseCallable() + *
  • getKnowledgeBaseCallable() *

*
CreateKnowledgeBase

CreateKnowledgeBase

Creates a knowledge base. *

Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createKnowledgeBase(CreateKnowledgeBaseRequest request) + *
  • createKnowledgeBase(CreateKnowledgeBaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createKnowledgeBase(LocationName parent, KnowledgeBase knowledgeBase) - *
  • createKnowledgeBase(ProjectName parent, KnowledgeBase knowledgeBase) - *
  • createKnowledgeBase(String parent, KnowledgeBase knowledgeBase) + *
  • createKnowledgeBase(LocationName parent, KnowledgeBase knowledgeBase) + *

  • createKnowledgeBase(ProjectName parent, KnowledgeBase knowledgeBase) + *

  • createKnowledgeBase(String parent, KnowledgeBase knowledgeBase) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createKnowledgeBaseCallable() + *
  • createKnowledgeBaseCallable() *

*
DeleteKnowledgeBase

DeleteKnowledgeBase

Deletes the specified knowledge base. *

Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteKnowledgeBase(DeleteKnowledgeBaseRequest request) + *
  • deleteKnowledgeBase(DeleteKnowledgeBaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteKnowledgeBase(KnowledgeBaseName name) - *
  • deleteKnowledgeBase(String name) + *
  • deleteKnowledgeBase(KnowledgeBaseName name) + *

  • deleteKnowledgeBase(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteKnowledgeBaseCallable() + *
  • deleteKnowledgeBaseCallable() *

*
UpdateKnowledgeBase

UpdateKnowledgeBase

Updates the specified knowledge base. *

Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateKnowledgeBase(UpdateKnowledgeBaseRequest request) + *
  • updateKnowledgeBase(UpdateKnowledgeBaseRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateKnowledgeBase(KnowledgeBase knowledgeBase) - *
  • updateKnowledgeBase(KnowledgeBase knowledgeBase, FieldMask updateMask) + *
  • updateKnowledgeBase(KnowledgeBase knowledgeBase) + *

  • updateKnowledgeBase(KnowledgeBase knowledgeBase, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateKnowledgeBaseCallable() + *
  • updateKnowledgeBaseCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java index 368e7d9e5fa0..947d681bf44e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java @@ -65,243 +65,244 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateParticipant

CreateParticipant

Creates a new participant in a conversation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createParticipant(CreateParticipantRequest request) + *
  • createParticipant(CreateParticipantRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createParticipant(ConversationName parent, Participant participant) - *
  • createParticipant(String parent, Participant participant) + *
  • createParticipant(ConversationName parent, Participant participant) + *

  • createParticipant(String parent, Participant participant) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createParticipantCallable() + *
  • createParticipantCallable() *

*
GetParticipant

GetParticipant

Retrieves a conversation participant.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getParticipant(GetParticipantRequest request) + *
  • getParticipant(GetParticipantRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getParticipant(ParticipantName name) - *
  • getParticipant(String name) + *
  • getParticipant(ParticipantName name) + *

  • getParticipant(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getParticipantCallable() + *
  • getParticipantCallable() *

*
ListParticipants

ListParticipants

Returns the list of all participants in the specified conversation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listParticipants(ListParticipantsRequest request) + *
  • listParticipants(ListParticipantsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listParticipants(ConversationName parent) - *
  • listParticipants(String parent) + *
  • listParticipants(ConversationName parent) + *

  • listParticipants(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listParticipantsPagedCallable() - *
  • listParticipantsCallable() + *
  • listParticipantsPagedCallable() + *

  • listParticipantsCallable() *

*
UpdateParticipant

UpdateParticipant

Updates the specified participant.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateParticipant(UpdateParticipantRequest request) + *
  • updateParticipant(UpdateParticipantRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateParticipant(Participant participant, FieldMask updateMask) + *
  • updateParticipant(Participant participant, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateParticipantCallable() + *
  • updateParticipantCallable() *

*
AnalyzeContent

AnalyzeContent

Adds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation. *

Note: Always use agent versions for production traffic sent to virtual agents. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • analyzeContent(AnalyzeContentRequest request) + *
  • analyzeContent(AnalyzeContentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • analyzeContent(ParticipantName participant, AudioInput audioInput) - *
  • analyzeContent(ParticipantName participant, EventInput eventInput) - *
  • analyzeContent(ParticipantName participant, TextInput textInput) - *
  • analyzeContent(String participant, AudioInput audioInput) - *
  • analyzeContent(String participant, EventInput eventInput) - *
  • analyzeContent(String participant, TextInput textInput) + *
  • analyzeContent(ParticipantName participant, AudioInput audioInput) + *

  • analyzeContent(ParticipantName participant, EventInput eventInput) + *

  • analyzeContent(ParticipantName participant, TextInput textInput) + *

  • analyzeContent(String participant, AudioInput audioInput) + *

  • analyzeContent(String participant, EventInput eventInput) + *

  • analyzeContent(String participant, TextInput textInput) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • analyzeContentCallable() + *
  • analyzeContentCallable() *

*
StreamingAnalyzeContent

StreamingAnalyzeContent

Adds a text (e.g., chat) or audio (e.g., phone recording) message from a participant into the conversation. Note: This method is only available through the gRPC API (not REST). *

The top-level message sent to the client by the server is `StreamingAnalyzeContentResponse`. Multiple response messages can be returned in order. The first one or more messages contain the `recognition_result` field. Each result represents a more complete transcript of what the user said. The next message contains the `reply_text` field, and potentially the `reply_audio` and/or the `automated_agent_reply` fields. *

Note: Always use agent versions for production traffic sent to virtual agents. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • streamingAnalyzeContentCallable() + *
  • streamingAnalyzeContentCallable() *

*
SuggestArticles

SuggestArticles

Gets suggested articles for a participant based on specific historical messages. *

Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion based on the provided conversation context in the real time.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • suggestArticles(SuggestArticlesRequest request) + *
  • suggestArticles(SuggestArticlesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • suggestArticles(ParticipantName parent) - *
  • suggestArticles(String parent) + *
  • suggestArticles(ParticipantName parent) + *

  • suggestArticles(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • suggestArticlesCallable() + *
  • suggestArticlesCallable() *

*
SuggestFaqAnswers

SuggestFaqAnswers

Gets suggested faq answers for a participant based on specific historical messages.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • suggestFaqAnswers(SuggestFaqAnswersRequest request) + *
  • suggestFaqAnswers(SuggestFaqAnswersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • suggestFaqAnswers(ParticipantName parent) - *
  • suggestFaqAnswers(String parent) + *
  • suggestFaqAnswers(ParticipantName parent) + *

  • suggestFaqAnswers(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • suggestFaqAnswersCallable() + *
  • suggestFaqAnswersCallable() *

*
SuggestSmartReplies

SuggestSmartReplies

Gets smart replies for a participant based on specific historical messages.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • suggestSmartReplies(SuggestSmartRepliesRequest request) + *
  • suggestSmartReplies(SuggestSmartRepliesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • suggestSmartReplies(ParticipantName parent) - *
  • suggestSmartReplies(String parent) + *
  • suggestSmartReplies(ParticipantName parent) + *

  • suggestSmartReplies(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • suggestSmartRepliesCallable() + *
  • suggestSmartRepliesCallable() *

*
ListSuggestions

ListSuggestions

Deprecated: Use inline suggestion, event based suggestion or Suggestion* API instead. See [HumanAgentAssistantConfig.name][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.name] for more details. Removal Date: 2020-09-01. *

Retrieves suggestions for live agents. *

This method should be used by human agent client software to fetch auto generated suggestions in real-time, while the conversation with an end user is in progress. The functionality is implemented in terms of the [list pagination](https://cloud.google.com/apis/design/design_patterns#list_pagination) design pattern. The client app should use the `next_page_token` field to fetch the next batch of suggestions. `suggestions` are sorted by `create_time` in descending order. To fetch latest suggestion, just set `page_size` to 1. To fetch new suggestions without duplication, send request with filter `create_time_epoch_microseconds > [first item's create_time of previous request]` and empty page_token.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSuggestions(ListSuggestionsRequest request) + *
  • listSuggestions(ListSuggestionsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSuggestionsPagedCallable() - *
  • listSuggestionsCallable() + *
  • listSuggestionsPagedCallable() + *

  • listSuggestionsCallable() *

*
CompileSuggestion

CompileSuggestion

Deprecated. use [SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles] and [SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers] instead. *

Gets suggestions for a participant based on specific historical messages. *

Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion based on the provided conversation context in the real time.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • compileSuggestion(CompileSuggestionRequest request) + *
  • compileSuggestion(CompileSuggestionRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • compileSuggestionCallable() + *
  • compileSuggestionCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java index 5794fbdcbdc8..6d32f554c4f5 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java @@ -66,142 +66,143 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListSessionEntityTypes

ListSessionEntityTypes

Returns the list of all session entity types in the specified session. *

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSessionEntityTypes(ListSessionEntityTypesRequest request) + *
  • listSessionEntityTypes(ListSessionEntityTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSessionEntityTypes(SessionName parent) - *
  • listSessionEntityTypes(String parent) + *
  • listSessionEntityTypes(SessionName parent) + *

  • listSessionEntityTypes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSessionEntityTypesPagedCallable() - *
  • listSessionEntityTypesCallable() + *
  • listSessionEntityTypesPagedCallable() + *

  • listSessionEntityTypesCallable() *

*
GetSessionEntityType

GetSessionEntityType

Retrieves the specified session entity type. *

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSessionEntityType(GetSessionEntityTypeRequest request) + *
  • getSessionEntityType(GetSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSessionEntityType(SessionEntityTypeName name) - *
  • getSessionEntityType(String name) + *
  • getSessionEntityType(SessionEntityTypeName name) + *

  • getSessionEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSessionEntityTypeCallable() + *
  • getSessionEntityTypeCallable() *

*
CreateSessionEntityType

CreateSessionEntityType

Creates a session entity type. *

If the specified session entity type already exists, overrides the session entity type. *

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSessionEntityType(CreateSessionEntityTypeRequest request) + *
  • createSessionEntityType(CreateSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createSessionEntityType(SessionName parent, SessionEntityType sessionEntityType) - *
  • createSessionEntityType(String parent, SessionEntityType sessionEntityType) + *
  • createSessionEntityType(SessionName parent, SessionEntityType sessionEntityType) + *

  • createSessionEntityType(String parent, SessionEntityType sessionEntityType) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSessionEntityTypeCallable() + *
  • createSessionEntityTypeCallable() *

*
UpdateSessionEntityType

UpdateSessionEntityType

Updates the specified session entity type. *

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSessionEntityType(UpdateSessionEntityTypeRequest request) + *
  • updateSessionEntityType(UpdateSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateSessionEntityType(SessionEntityType sessionEntityType) - *
  • updateSessionEntityType(SessionEntityType sessionEntityType, FieldMask updateMask) + *
  • updateSessionEntityType(SessionEntityType sessionEntityType) + *

  • updateSessionEntityType(SessionEntityType sessionEntityType, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSessionEntityTypeCallable() + *
  • updateSessionEntityTypeCallable() *

*
DeleteSessionEntityType

DeleteSessionEntityType

Deletes the specified session entity type. *

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSessionEntityType(DeleteSessionEntityTypeRequest request) + *
  • deleteSessionEntityType(DeleteSessionEntityTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteSessionEntityType(SessionEntityTypeName name) - *
  • deleteSessionEntityType(String name) + *
  • deleteSessionEntityType(SessionEntityTypeName name) + *

  • deleteSessionEntityType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSessionEntityTypeCallable() + *
  • deleteSessionEntityTypeCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java index 8b18fa0dcfb5..cdf5f396c469 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java @@ -65,73 +65,74 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
DetectIntent

DetectIntent

Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. *

If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or in the future, consider using [AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] instead of `DetectIntent`. `AnalyzeContent` has additional functionality for Agent Assist and other CCAI products. *

Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • detectIntent(DetectIntentRequest request) + *
  • detectIntent(DetectIntentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • detectIntent(SessionName session, QueryInput queryInput) - *
  • detectIntent(String session, QueryInput queryInput) + *
  • detectIntent(SessionName session, QueryInput queryInput) + *

  • detectIntent(String session, QueryInput queryInput) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • detectIntentCallable() + *
  • detectIntentCallable() *

*
StreamingDetectIntent

StreamingDetectIntent

Processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST). *

If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or in the future, consider using [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent] instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has additional functionality for Agent Assist and other CCAI products. *

Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • streamingDetectIntentCallable() + *
  • streamingDetectIntentCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java index bdab13d15b98..940dfb1b3a25 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java @@ -62,137 +62,138 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListVersions

ListVersions

Returns the list of all versions of the specified agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listVersions(ListVersionsRequest request) + *
  • listVersions(ListVersionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listVersions(AgentName parent) - *
  • listVersions(String parent) + *
  • listVersions(AgentName parent) + *

  • listVersions(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listVersionsPagedCallable() - *
  • listVersionsCallable() + *
  • listVersionsPagedCallable() + *

  • listVersionsCallable() *

*
GetVersion

GetVersion

Retrieves the specified agent version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getVersion(GetVersionRequest request) + *
  • getVersion(GetVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getVersion(VersionName name) - *
  • getVersion(String name) + *
  • getVersion(VersionName name) + *

  • getVersion(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getVersionCallable() + *
  • getVersionCallable() *

*
CreateVersion

CreateVersion

Creates an agent version. *

The new version points to the agent instance in the "default" environment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createVersion(CreateVersionRequest request) + *
  • createVersion(CreateVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createVersion(AgentName parent, Version version) - *
  • createVersion(String parent, Version version) + *
  • createVersion(AgentName parent, Version version) + *

  • createVersion(String parent, Version version) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createVersionCallable() + *
  • createVersionCallable() *

*
UpdateVersion

UpdateVersion

Updates the specified agent version. *

Note that this method does not allow you to update the state of the agent the given version points to. It allows you to update only mutable properties of the version resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateVersion(UpdateVersionRequest request) + *
  • updateVersion(UpdateVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateVersion(Version version, FieldMask updateMask) + *
  • updateVersion(Version version, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateVersionCallable() + *
  • updateVersionCallable() *

*
DeleteVersion

DeleteVersion

Delete the specified agent version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteVersion(DeleteVersionRequest request) + *
  • deleteVersion(DeleteVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteVersion(VersionName name) - *
  • deleteVersion(String name) + *
  • deleteVersion(VersionName name) + *

  • deleteVersion(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteVersionCallable() + *
  • deleteVersionCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java index 26fe8bcc4d80..4525c712581d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java @@ -348,6 +348,15 @@ public AgentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -596,7 +605,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -609,7 +617,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -875,6 +882,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public AgentsStubSettings build() throws IOException { return new AgentsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java index c18dbc812f0b..9eb26ad951bc 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java @@ -283,6 +283,15 @@ public AnswerRecordsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -478,7 +487,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -491,7 +499,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -578,6 +585,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public AnswerRecordsStubSettings build() throws IOException { return new AnswerRecordsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java index 6b21209eb113..31b870fe7797 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java @@ -289,6 +289,15 @@ public ContextsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -499,7 +508,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -512,7 +520,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -622,6 +629,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ContextsStubSettings build() throws IOException { return new ContextsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java index 386b9bad669c..ccaf75993c0b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java @@ -372,6 +372,15 @@ public ConversationProfilesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -622,7 +631,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -635,7 +643,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -837,6 +844,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ConversationProfilesStubSettings build() throws IOException { return new ConversationProfilesStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java index ab712ac1bff2..0fe7a47332c6 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java @@ -394,6 +394,15 @@ public ConversationsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -635,7 +644,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -648,7 +656,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -799,6 +806,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ConversationsStubSettings build() throws IOException { return new ConversationsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java index 59bafcd386ef..411219aff08c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java @@ -345,6 +345,15 @@ public DocumentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -595,7 +604,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -608,7 +616,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -897,6 +904,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DocumentsStubSettings build() throws IOException { return new DocumentsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java index 88a73e00da35..abc445891c59 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java @@ -378,6 +378,15 @@ public EntityTypesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -657,7 +666,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -670,7 +678,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -989,6 +996,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EntityTypesStubSettings build() throws IOException { return new EntityTypesStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java index 13c359f6d304..979e4afc8503 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java @@ -365,6 +365,15 @@ public EnvironmentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -583,7 +592,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -596,7 +604,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -710,6 +717,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EnvironmentsStubSettings build() throws IOException { return new EnvironmentsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java index bd17bcb50e27..52756de684f3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java @@ -203,6 +203,15 @@ public FulfillmentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -390,7 +399,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -403,7 +411,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -472,6 +479,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public FulfillmentsStubSettings build() throws IOException { return new FulfillmentsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java index 0203291ebd8b..36622595ff43 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java @@ -318,6 +318,15 @@ public IntentsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -550,7 +559,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -563,7 +571,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -751,6 +758,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public IntentsStubSettings build() throws IOException { return new IntentsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java index d63c94049552..b73e3d127e6e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java @@ -296,6 +296,15 @@ public KnowledgeBasesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -505,7 +514,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -518,7 +526,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -622,6 +629,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public KnowledgeBasesStubSettings build() throws IOException { return new KnowledgeBasesStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java index a336f761832f..1eacfd44c379 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java @@ -423,6 +423,15 @@ public ParticipantsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -698,7 +707,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -711,7 +719,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -887,6 +894,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ParticipantsStubSettings build() throws IOException { return new ParticipantsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java index 6809c92587f7..1d9d1119a11f 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java @@ -314,6 +314,15 @@ public SessionEntityTypesStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -527,7 +536,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -540,7 +548,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -646,6 +653,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SessionEntityTypesStubSettings build() throws IOException { return new SessionEntityTypesStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java index 6e8767371e35..864834df8e73 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java @@ -206,6 +206,15 @@ public SessionsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -410,7 +419,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -423,7 +431,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -489,6 +496,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SessionsStubSettings build() throws IOException { return new SessionsStubSettings(this); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java index a10499c0c631..db01aa447295 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java @@ -282,6 +282,15 @@ public VersionsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -485,7 +494,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -498,7 +506,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -598,6 +605,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public VersionsStubSettings build() throws IOException { return new VersionsStubSettings(this); diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index eebacd0aade3..0c058fef3727 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.29.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java index 23dd7ffc87f6..f5223beb8a8f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java @@ -58,25 +58,26 @@ * close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CompleteQuery

CompleteQuery

Completes the specified user input with keyword suggestions.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • completeQuery(CompleteQueryRequest request) + *
  • completeQuery(CompleteQueryRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • completeQueryCallable() + *
  • completeQueryCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java index 13b9520985fe..092cf6159a22 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java @@ -63,128 +63,129 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ConverseConversation

ConverseConversation

Converses a conversation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • converseConversation(ConverseConversationRequest request) + *
  • converseConversation(ConverseConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • converseConversation(ConversationName name, TextInput query) - *
  • converseConversation(String name, TextInput query) + *
  • converseConversation(ConversationName name, TextInput query) + *

  • converseConversation(String name, TextInput query) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • converseConversationCallable() + *
  • converseConversationCallable() *

*
CreateConversation

CreateConversation

Creates a Conversation. *

If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to create already exists, an ALREADY_EXISTS error is returned.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createConversation(CreateConversationRequest request) + *
  • createConversation(CreateConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createConversation(DataStoreName parent, Conversation conversation) - *
  • createConversation(String parent, Conversation conversation) + *
  • createConversation(DataStoreName parent, Conversation conversation) + *

  • createConversation(String parent, Conversation conversation) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createConversationCallable() + *
  • createConversationCallable() *

*
DeleteConversation

DeleteConversation

Deletes a Conversation. *

If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to delete does not exist, a NOT_FOUND error is returned.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteConversation(DeleteConversationRequest request) + *
  • deleteConversation(DeleteConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteConversation(ConversationName name) - *
  • deleteConversation(String name) + *
  • deleteConversation(ConversationName name) + *

  • deleteConversation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteConversationCallable() + *
  • deleteConversationCallable() *

*
UpdateConversation

UpdateConversation

Updates a Conversation. *

[Conversation][google.cloud.discoveryengine.v1.Conversation] action type cannot be changed. If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does not exist, a NOT_FOUND error is returned.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateConversation(UpdateConversationRequest request) + *
  • updateConversation(UpdateConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateConversation(Conversation conversation, FieldMask updateMask) + *
  • updateConversation(Conversation conversation, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateConversationCallable() + *
  • updateConversationCallable() *

*
GetConversation

GetConversation

Gets a Conversation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getConversation(GetConversationRequest request) + *
  • getConversation(GetConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getConversation(ConversationName name) - *
  • getConversation(String name) + *
  • getConversation(ConversationName name) + *

  • getConversation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getConversationCallable() + *
  • getConversationCallable() *

*
ListConversations

ListConversations

Lists all Conversations by their parent [DataStore][google.cloud.discoveryengine.v1.DataStore].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listConversations(ListConversationsRequest request) + *
  • listConversations(ListConversationsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listConversations(DataStoreName parent) - *
  • listConversations(String parent) + *
  • listConversations(DataStoreName parent) + *

  • listConversations(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listConversationsPagedCallable() - *
  • listConversationsCallable() + *
  • listConversationsPagedCallable() + *

  • listConversationsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceClient.java index e186f725dca3..0002fa13d343 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceClient.java @@ -65,135 +65,136 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetDocument

GetDocument

Gets a [Document][google.cloud.discoveryengine.v1.Document].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDocument(GetDocumentRequest request) + *
  • getDocument(GetDocumentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDocument(DocumentName name) - *
  • getDocument(String name) + *
  • getDocument(DocumentName name) + *

  • getDocument(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDocumentCallable() + *
  • getDocumentCallable() *

*
ListDocuments

ListDocuments

Gets a list of [Document][google.cloud.discoveryengine.v1.Document]s.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDocuments(ListDocumentsRequest request) + *
  • listDocuments(ListDocumentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDocuments(BranchName parent) - *
  • listDocuments(String parent) + *
  • listDocuments(BranchName parent) + *

  • listDocuments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDocumentsPagedCallable() - *
  • listDocumentsCallable() + *
  • listDocumentsPagedCallable() + *

  • listDocumentsCallable() *

*
CreateDocument

CreateDocument

Creates a [Document][google.cloud.discoveryengine.v1.Document].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createDocument(CreateDocumentRequest request) + *
  • createDocument(CreateDocumentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createDocument(BranchName parent, Document document, String documentId) - *
  • createDocument(String parent, Document document, String documentId) + *
  • createDocument(BranchName parent, Document document, String documentId) + *

  • createDocument(String parent, Document document, String documentId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createDocumentCallable() + *
  • createDocumentCallable() *

*
UpdateDocument

UpdateDocument

Updates a [Document][google.cloud.discoveryengine.v1.Document].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateDocument(UpdateDocumentRequest request) + *
  • updateDocument(UpdateDocumentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateDocumentCallable() + *
  • updateDocumentCallable() *

*
DeleteDocument

DeleteDocument

Deletes a [Document][google.cloud.discoveryengine.v1.Document].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteDocument(DeleteDocumentRequest request) + *
  • deleteDocument(DeleteDocumentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteDocument(DocumentName name) - *
  • deleteDocument(String name) + *
  • deleteDocument(DocumentName name) + *

  • deleteDocument(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteDocumentCallable() + *
  • deleteDocumentCallable() *

*
ImportDocuments

ImportDocuments

Bulk import of multiple [Document][google.cloud.discoveryengine.v1.Document]s. Request processing may be synchronous. Non-existing items will be created. *

Note: It is possible for a subset of the [Document][google.cloud.discoveryengine.v1.Document]s to be successfully updated.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importDocumentsAsync(ImportDocumentsRequest request) + *
  • importDocumentsAsync(ImportDocumentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importDocumentsOperationCallable() - *
  • importDocumentsCallable() + *
  • importDocumentsOperationCallable() + *

  • importDocumentsCallable() *

*
PurgeDocuments

PurgeDocuments

Permanently deletes all selected [Document][google.cloud.discoveryengine.v1.Document]s in a branch. *

This process is asynchronous. Depending on the number of [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, this operation can take hours to complete. Before the delete operation completes, some [Document][google.cloud.discoveryengine.v1.Document]s might still be returned by [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument] or [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments]. *

To get a list of the [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, set [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1.PurgeDocumentsRequest.force] to false.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • purgeDocumentsAsync(PurgeDocumentsRequest request) + *
  • purgeDocumentsAsync(PurgeDocumentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • purgeDocumentsOperationCallable() - *
  • purgeDocumentsCallable() + *
  • purgeDocumentsOperationCallable() + *

  • purgeDocumentsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceClient.java index 8445504ce713..3b4527173e54 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceClient.java @@ -63,105 +63,106 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetSchema

GetSchema

Gets a [Schema][google.cloud.discoveryengine.v1.Schema].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSchema(GetSchemaRequest request) + *
  • getSchema(GetSchemaRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSchema(SchemaName name) - *
  • getSchema(String name) + *
  • getSchema(SchemaName name) + *

  • getSchema(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSchemaCallable() + *
  • getSchemaCallable() *

*
ListSchemas

ListSchemas

Gets a list of [Schema][google.cloud.discoveryengine.v1.Schema]s.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSchemas(ListSchemasRequest request) + *
  • listSchemas(ListSchemasRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSchemas(DataStoreName parent) - *
  • listSchemas(String parent) + *
  • listSchemas(DataStoreName parent) + *

  • listSchemas(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSchemasPagedCallable() - *
  • listSchemasCallable() + *
  • listSchemasPagedCallable() + *

  • listSchemasCallable() *

*
CreateSchema

CreateSchema

Creates a [Schema][google.cloud.discoveryengine.v1.Schema].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSchemaAsync(CreateSchemaRequest request) + *
  • createSchemaAsync(CreateSchemaRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createSchemaAsync(DataStoreName parent, Schema schema, String schemaId) - *
  • createSchemaAsync(String parent, Schema schema, String schemaId) + *
  • createSchemaAsync(DataStoreName parent, Schema schema, String schemaId) + *

  • createSchemaAsync(String parent, Schema schema, String schemaId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSchemaOperationCallable() - *
  • createSchemaCallable() + *
  • createSchemaOperationCallable() + *

  • createSchemaCallable() *

*
UpdateSchema

UpdateSchema

Updates a [Schema][google.cloud.discoveryengine.v1.Schema].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSchemaAsync(UpdateSchemaRequest request) + *
  • updateSchemaAsync(UpdateSchemaRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSchemaOperationCallable() - *
  • updateSchemaCallable() + *
  • updateSchemaOperationCallable() + *

  • updateSchemaCallable() *

*
DeleteSchema

DeleteSchema

Deletes a [Schema][google.cloud.discoveryengine.v1.Schema].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSchemaAsync(DeleteSchemaRequest request) + *
  • deleteSchemaAsync(DeleteSchemaRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteSchemaAsync(SchemaName name) - *
  • deleteSchemaAsync(String name) + *
  • deleteSchemaAsync(SchemaName name) + *

  • deleteSchemaAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSchemaOperationCallable() - *
  • deleteSchemaCallable() + *
  • deleteSchemaOperationCallable() + *

  • deleteSchemaCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java index 8b69dacdecdb..2d278ea3db1f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java @@ -84,26 +84,27 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
Search

Search

Performs a search.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • search(SearchRequest request) + *
  • search(SearchRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchPagedCallable() - *
  • searchCallable() + *
  • searchPagedCallable() + *

  • searchCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceClient.java index 80efc53d9304..44242a2a18d8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceClient.java @@ -61,56 +61,57 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
WriteUserEvent

WriteUserEvent

Writes a single user event.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • writeUserEvent(WriteUserEventRequest request) + *
  • writeUserEvent(WriteUserEventRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • writeUserEventCallable() + *
  • writeUserEventCallable() *

*
CollectUserEvent

CollectUserEvent

Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. *

This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • collectUserEvent(CollectUserEventRequest request) + *
  • collectUserEvent(CollectUserEventRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • collectUserEventCallable() + *
  • collectUserEventCallable() *

*
ImportUserEvents

ImportUserEvents

Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. *

Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importUserEventsAsync(ImportUserEventsRequest request) + *
  • importUserEventsAsync(ImportUserEventsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importUserEventsOperationCallable() - *
  • importUserEventsCallable() + *
  • importUserEventsOperationCallable() + *

  • importUserEventsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java index 6565ce0fd53e..4b7524a6522e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java @@ -114,6 +114,15 @@ public CompletionServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -278,7 +287,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -291,7 +299,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -328,6 +335,15 @@ public Builder applyToAllUnaryMethods( return completeQuerySettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public CompletionServiceStubSettings build() throws IOException { return new CompletionServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java index 6d056fc50c85..653f1c4ab8be 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java @@ -230,6 +230,15 @@ public ConversationalSearchServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -434,7 +443,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -447,7 +455,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -540,6 +547,15 @@ public Builder applyToAllUnaryMethods( return listConversationsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ConversationalSearchServiceStubSettings build() throws IOException { return new ConversationalSearchServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java index c610b4ac354e..f30b189ef4b1 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java @@ -250,6 +250,15 @@ public DocumentServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -481,7 +490,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -494,7 +502,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -658,6 +665,15 @@ public UnaryCallSettings.Builder purgeDocument return purgeDocumentsOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DocumentServiceStubSettings build() throws IOException { return new DocumentServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java index 394ff61ee576..4ad1e1da6316 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java @@ -238,6 +238,15 @@ public SchemaServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -444,7 +453,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -457,7 +465,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -631,6 +638,15 @@ public UnaryCallSettings.Builder deleteSchemaSet return deleteSchemaOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SchemaServiceStubSettings build() throws IOException { return new SchemaServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java index 90b907ba8068..2d5f89d9827d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java @@ -174,6 +174,15 @@ public SearchServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -338,7 +347,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -351,7 +359,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -388,6 +395,15 @@ public Builder applyToAllUnaryMethods( return searchSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SearchServiceStubSettings build() throws IOException { return new SearchServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java index 7069aed79615..c1fbb7a48664 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java @@ -144,6 +144,15 @@ public UserEventServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -340,7 +349,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -353,7 +361,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -443,6 +450,15 @@ public UnaryCallSettings.Builder collectUserE return importUserEventsOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public UserEventServiceStubSettings build() throws IOException { return new UserEventServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java index fb2ff69984f6..23b5a17660fc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java @@ -59,25 +59,26 @@ * close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CompleteQuery

CompleteQuery

Completes the specified user input with keyword suggestions.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • completeQuery(CompleteQueryRequest request) + *
  • completeQuery(CompleteQueryRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • completeQueryCallable() + *
  • completeQueryCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java index bcd4a5d33f48..94e9933c8e09 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java @@ -64,128 +64,129 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ConverseConversation

ConverseConversation

Converses a conversation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • converseConversation(ConverseConversationRequest request) + *
  • converseConversation(ConverseConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • converseConversation(ConversationName name, TextInput query) - *
  • converseConversation(String name, TextInput query) + *
  • converseConversation(ConversationName name, TextInput query) + *

  • converseConversation(String name, TextInput query) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • converseConversationCallable() + *
  • converseConversationCallable() *

*
CreateConversation

CreateConversation

Creates a Conversation. *

If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to create already exists, an ALREADY_EXISTS error is returned.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createConversation(CreateConversationRequest request) + *
  • createConversation(CreateConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createConversation(DataStoreName parent, Conversation conversation) - *
  • createConversation(String parent, Conversation conversation) + *
  • createConversation(DataStoreName parent, Conversation conversation) + *

  • createConversation(String parent, Conversation conversation) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createConversationCallable() + *
  • createConversationCallable() *

*
DeleteConversation

DeleteConversation

Deletes a Conversation. *

If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to delete does not exist, a NOT_FOUND error is returned.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteConversation(DeleteConversationRequest request) + *
  • deleteConversation(DeleteConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteConversation(ConversationName name) - *
  • deleteConversation(String name) + *
  • deleteConversation(ConversationName name) + *

  • deleteConversation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteConversationCallable() + *
  • deleteConversationCallable() *

*
UpdateConversation

UpdateConversation

Updates a Conversation. *

[Conversation][google.cloud.discoveryengine.v1alpha.Conversation] action type cannot be changed. If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to update does not exist, a NOT_FOUND error is returned.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateConversation(UpdateConversationRequest request) + *
  • updateConversation(UpdateConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateConversation(Conversation conversation, FieldMask updateMask) + *
  • updateConversation(Conversation conversation, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateConversationCallable() + *
  • updateConversationCallable() *

*
GetConversation

GetConversation

Gets a Conversation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getConversation(GetConversationRequest request) + *
  • getConversation(GetConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getConversation(ConversationName name) - *
  • getConversation(String name) + *
  • getConversation(ConversationName name) + *

  • getConversation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getConversationCallable() + *
  • getConversationCallable() *

*
ListConversations

ListConversations

Lists all Conversations by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listConversations(ListConversationsRequest request) + *
  • listConversations(ListConversationsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listConversations(DataStoreName parent) - *
  • listConversations(String parent) + *
  • listConversations(DataStoreName parent) + *

  • listConversations(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listConversationsPagedCallable() - *
  • listConversationsCallable() + *
  • listConversationsPagedCallable() + *

  • listConversationsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClient.java index dd754eb98bf5..4bd7ee3b6a41 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClient.java @@ -65,109 +65,110 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateDataStore

CreateDataStore

Creates a [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. *

DataStore is for storing [Documents][google.cloud.discoveryengine.v1alpha.Document]. To serve these documents for Search, or Recommendation use case, an [Engine][google.cloud.discoveryengine.v1alpha.Engine] needs to be created separately.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createDataStoreAsync(CreateDataStoreRequest request) + *
  • createDataStoreAsync(CreateDataStoreRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createDataStoreAsync(CollectionName parent, DataStore dataStore, String dataStoreId) - *
  • createDataStoreAsync(String parent, DataStore dataStore, String dataStoreId) + *
  • createDataStoreAsync(CollectionName parent, DataStore dataStore, String dataStoreId) + *

  • createDataStoreAsync(String parent, DataStore dataStore, String dataStoreId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createDataStoreOperationCallable() - *
  • createDataStoreCallable() + *
  • createDataStoreOperationCallable() + *

  • createDataStoreCallable() *

*
GetDataStore

GetDataStore

Gets a [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDataStore(GetDataStoreRequest request) + *
  • getDataStore(GetDataStoreRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDataStore(DataStoreName name) - *
  • getDataStore(String name) + *
  • getDataStore(DataStoreName name) + *

  • getDataStore(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDataStoreCallable() + *
  • getDataStoreCallable() *

*
ListDataStores

ListDataStores

Lists all the [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s associated with the project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDataStores(ListDataStoresRequest request) + *
  • listDataStores(ListDataStoresRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDataStores(CollectionName parent) - *
  • listDataStores(String parent) + *
  • listDataStores(CollectionName parent) + *

  • listDataStores(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDataStoresPagedCallable() - *
  • listDataStoresCallable() + *
  • listDataStoresPagedCallable() + *

  • listDataStoresCallable() *

*
DeleteDataStore

DeleteDataStore

Deletes a [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteDataStoreAsync(DeleteDataStoreRequest request) + *
  • deleteDataStoreAsync(DeleteDataStoreRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteDataStoreAsync(DataStoreName name) - *
  • deleteDataStoreAsync(String name) + *
  • deleteDataStoreAsync(DataStoreName name) + *

  • deleteDataStoreAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteDataStoreOperationCallable() - *
  • deleteDataStoreCallable() + *
  • deleteDataStoreOperationCallable() + *

  • deleteDataStoreCallable() *

*
UpdateDataStore

UpdateDataStore

Updates a [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateDataStore(UpdateDataStoreRequest request) + *
  • updateDataStore(UpdateDataStoreRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateDataStore(DataStore dataStore, FieldMask updateMask) + *
  • updateDataStore(DataStore dataStore, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateDataStoreCallable() + *
  • updateDataStoreCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java index 8ba7631160ff..1c47213596b3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java @@ -65,135 +65,136 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetDocument

GetDocument

Gets a [Document][google.cloud.discoveryengine.v1alpha.Document].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDocument(GetDocumentRequest request) + *
  • getDocument(GetDocumentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDocument(DocumentName name) - *
  • getDocument(String name) + *
  • getDocument(DocumentName name) + *

  • getDocument(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDocumentCallable() + *
  • getDocumentCallable() *

*
ListDocuments

ListDocuments

Gets a list of [Document][google.cloud.discoveryengine.v1alpha.Document]s.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDocuments(ListDocumentsRequest request) + *
  • listDocuments(ListDocumentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDocuments(BranchName parent) - *
  • listDocuments(String parent) + *
  • listDocuments(BranchName parent) + *

  • listDocuments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDocumentsPagedCallable() - *
  • listDocumentsCallable() + *
  • listDocumentsPagedCallable() + *

  • listDocumentsCallable() *

*
CreateDocument

CreateDocument

Creates a [Document][google.cloud.discoveryengine.v1alpha.Document].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createDocument(CreateDocumentRequest request) + *
  • createDocument(CreateDocumentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createDocument(BranchName parent, Document document, String documentId) - *
  • createDocument(String parent, Document document, String documentId) + *
  • createDocument(BranchName parent, Document document, String documentId) + *

  • createDocument(String parent, Document document, String documentId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createDocumentCallable() + *
  • createDocumentCallable() *

*
UpdateDocument

UpdateDocument

Updates a [Document][google.cloud.discoveryengine.v1alpha.Document].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateDocument(UpdateDocumentRequest request) + *
  • updateDocument(UpdateDocumentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateDocumentCallable() + *
  • updateDocumentCallable() *

*
DeleteDocument

DeleteDocument

Deletes a [Document][google.cloud.discoveryengine.v1alpha.Document].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteDocument(DeleteDocumentRequest request) + *
  • deleteDocument(DeleteDocumentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteDocument(DocumentName name) - *
  • deleteDocument(String name) + *
  • deleteDocument(DocumentName name) + *

  • deleteDocument(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteDocumentCallable() + *
  • deleteDocumentCallable() *

*
ImportDocuments

ImportDocuments

Bulk import of multiple [Document][google.cloud.discoveryengine.v1alpha.Document]s. Request processing may be synchronous. Non-existing items will be created. *

Note: It is possible for a subset of the [Document][google.cloud.discoveryengine.v1alpha.Document]s to be successfully updated.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importDocumentsAsync(ImportDocumentsRequest request) + *
  • importDocumentsAsync(ImportDocumentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importDocumentsOperationCallable() - *
  • importDocumentsCallable() + *
  • importDocumentsOperationCallable() + *

  • importDocumentsCallable() *

*
PurgeDocuments

PurgeDocuments

Permanently deletes all selected [Document][google.cloud.discoveryengine.v1alpha.Document]s in a branch. *

This process is asynchronous. Depending on the number of [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted, this operation can take hours to complete. Before the delete operation completes, some [Document][google.cloud.discoveryengine.v1alpha.Document]s might still be returned by [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument] or [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]. *

To get a list of the [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted, set [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.force] to false.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • purgeDocumentsAsync(PurgeDocumentsRequest request) + *
  • purgeDocumentsAsync(PurgeDocumentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • purgeDocumentsOperationCallable() - *
  • purgeDocumentsCallable() + *
  • purgeDocumentsOperationCallable() + *

  • purgeDocumentsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceClient.java index 7fdb212ba109..b4acbb70101a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceClient.java @@ -64,166 +64,167 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateEngine

CreateEngine

Creates a [Engine][google.cloud.discoveryengine.v1alpha.Engine].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createEngineAsync(CreateEngineRequest request) + *
  • createEngineAsync(CreateEngineRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createEngineAsync(CollectionName parent, Engine engine, String engineId) - *
  • createEngineAsync(String parent, Engine engine, String engineId) + *
  • createEngineAsync(CollectionName parent, Engine engine, String engineId) + *

  • createEngineAsync(String parent, Engine engine, String engineId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createEngineOperationCallable() - *
  • createEngineCallable() + *
  • createEngineOperationCallable() + *

  • createEngineCallable() *

*
DeleteEngine

DeleteEngine

Deletes a [Engine][google.cloud.discoveryengine.v1alpha.Engine].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteEngineAsync(DeleteEngineRequest request) + *
  • deleteEngineAsync(DeleteEngineRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteEngineAsync(EngineName name) - *
  • deleteEngineAsync(String name) + *
  • deleteEngineAsync(EngineName name) + *

  • deleteEngineAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteEngineOperationCallable() - *
  • deleteEngineCallable() + *
  • deleteEngineOperationCallable() + *

  • deleteEngineCallable() *

*
UpdateEngine

UpdateEngine

Updates an [Engine][google.cloud.discoveryengine.v1alpha.Engine]

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateEngine(UpdateEngineRequest request) + *
  • updateEngine(UpdateEngineRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateEngine(Engine engine, FieldMask updateMask) + *
  • updateEngine(Engine engine, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateEngineCallable() + *
  • updateEngineCallable() *

*
GetEngine

GetEngine

Gets a [Engine][google.cloud.discoveryengine.v1alpha.Engine].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEngine(GetEngineRequest request) + *
  • getEngine(GetEngineRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getEngine(EngineName name) - *
  • getEngine(String name) + *
  • getEngine(EngineName name) + *

  • getEngine(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEngineCallable() + *
  • getEngineCallable() *

*
ListEngines

ListEngines

Lists all the [Engine][google.cloud.discoveryengine.v1alpha.Engine]s associated with the project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEngines(ListEnginesRequest request) + *
  • listEngines(ListEnginesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEngines(CollectionName parent) - *
  • listEngines(String parent) + *
  • listEngines(CollectionName parent) + *

  • listEngines(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listEnginesPagedCallable() - *
  • listEnginesCallable() + *
  • listEnginesPagedCallable() + *

  • listEnginesCallable() *

*
PauseEngine

PauseEngine

Pauses the training of an existing engine. Only applicable if [solution_type][] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • pauseEngine(PauseEngineRequest request) + *
  • pauseEngine(PauseEngineRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • pauseEngine(EngineName name) - *
  • pauseEngine(String name) + *
  • pauseEngine(EngineName name) + *

  • pauseEngine(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • pauseEngineCallable() + *
  • pauseEngineCallable() *

*
ResumeEngine

ResumeEngine

Resumes the training of an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • resumeEngine(ResumeEngineRequest request) + *
  • resumeEngine(ResumeEngineRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • resumeEngine(EngineName name) - *
  • resumeEngine(String name) + *
  • resumeEngine(EngineName name) + *

  • resumeEngine(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • resumeEngineCallable() + *
  • resumeEngineCallable() *

*
TuneEngine

TuneEngine

Tunes an existing engine. Only applicable if [solution_type][] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • tuneEngineAsync(TuneEngineRequest request) + *
  • tuneEngineAsync(TuneEngineRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • tuneEngineAsync(EngineName name) - *
  • tuneEngineAsync(String name) + *
  • tuneEngineAsync(EngineName name) + *

  • tuneEngineAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • tuneEngineOperationCallable() - *
  • tuneEngineCallable() + *
  • tuneEngineOperationCallable() + *

  • tuneEngineCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClient.java index ec0a40753eb0..16e33b1ae152 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClient.java @@ -62,25 +62,26 @@ * calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
Recommend

Recommend

Makes a recommendation, which requires a contextual user event.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • recommend(RecommendRequest request) + *
  • recommend(RecommendRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • recommendCallable() + *
  • recommendCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClient.java index c744be550d54..17ab4a2b583c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClient.java @@ -63,105 +63,106 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetSchema

GetSchema

Gets a [Schema][google.cloud.discoveryengine.v1alpha.Schema].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSchema(GetSchemaRequest request) + *
  • getSchema(GetSchemaRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSchema(SchemaName name) - *
  • getSchema(String name) + *
  • getSchema(SchemaName name) + *

  • getSchema(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSchemaCallable() + *
  • getSchemaCallable() *

*
ListSchemas

ListSchemas

Gets a list of [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSchemas(ListSchemasRequest request) + *
  • listSchemas(ListSchemasRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSchemas(DataStoreName parent) - *
  • listSchemas(String parent) + *
  • listSchemas(DataStoreName parent) + *

  • listSchemas(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSchemasPagedCallable() - *
  • listSchemasCallable() + *
  • listSchemasPagedCallable() + *

  • listSchemasCallable() *

*
CreateSchema

CreateSchema

Creates a [Schema][google.cloud.discoveryengine.v1alpha.Schema].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSchemaAsync(CreateSchemaRequest request) + *
  • createSchemaAsync(CreateSchemaRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createSchemaAsync(DataStoreName parent, Schema schema, String schemaId) - *
  • createSchemaAsync(String parent, Schema schema, String schemaId) + *
  • createSchemaAsync(DataStoreName parent, Schema schema, String schemaId) + *

  • createSchemaAsync(String parent, Schema schema, String schemaId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSchemaOperationCallable() - *
  • createSchemaCallable() + *
  • createSchemaOperationCallable() + *

  • createSchemaCallable() *

*
UpdateSchema

UpdateSchema

Updates a [Schema][google.cloud.discoveryengine.v1alpha.Schema].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSchemaAsync(UpdateSchemaRequest request) + *
  • updateSchemaAsync(UpdateSchemaRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSchemaOperationCallable() - *
  • updateSchemaCallable() + *
  • updateSchemaOperationCallable() + *

  • updateSchemaCallable() *

*
DeleteSchema

DeleteSchema

Deletes a [Schema][google.cloud.discoveryengine.v1alpha.Schema].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSchemaAsync(DeleteSchemaRequest request) + *
  • deleteSchemaAsync(DeleteSchemaRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteSchemaAsync(SchemaName name) - *
  • deleteSchemaAsync(String name) + *
  • deleteSchemaAsync(SchemaName name) + *

  • deleteSchemaAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSchemaOperationCallable() - *
  • deleteSchemaCallable() + *
  • deleteSchemaOperationCallable() + *

  • deleteSchemaCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java index 72d755a2f168..c24714be0803 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java @@ -88,26 +88,27 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
Search

Search

Performs a search.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • search(SearchRequest request) + *
  • search(SearchRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchPagedCallable() - *
  • searchCallable() + *
  • searchPagedCallable() + *

  • searchCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceClient.java index e2036d552759..a23e4599e337 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceClient.java @@ -62,26 +62,27 @@ * close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
TrainCustomModel

TrainCustomModel

Trains a custom model.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • trainCustomModelAsync(TrainCustomModelRequest request) + *
  • trainCustomModelAsync(TrainCustomModelRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • trainCustomModelOperationCallable() - *
  • trainCustomModelCallable() + *
  • trainCustomModelOperationCallable() + *

  • trainCustomModelCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClient.java index 0d5c5f81f8a2..205ad202ef80 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClient.java @@ -65,218 +65,219 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetSiteSearchEngine

GetSiteSearchEngine

Gets the [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSiteSearchEngine(GetSiteSearchEngineRequest request) + *
  • getSiteSearchEngine(GetSiteSearchEngineRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSiteSearchEngine(SiteSearchEngineName name) - *
  • getSiteSearchEngine(String name) + *
  • getSiteSearchEngine(SiteSearchEngineName name) + *

  • getSiteSearchEngine(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSiteSearchEngineCallable() + *
  • getSiteSearchEngineCallable() *

*
CreateTargetSite

CreateTargetSite

Creates a [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createTargetSiteAsync(CreateTargetSiteRequest request) + *
  • createTargetSiteAsync(CreateTargetSiteRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createTargetSiteAsync(SiteSearchEngineName parent, TargetSite targetSite) - *
  • createTargetSiteAsync(String parent, TargetSite targetSite) + *
  • createTargetSiteAsync(SiteSearchEngineName parent, TargetSite targetSite) + *

  • createTargetSiteAsync(String parent, TargetSite targetSite) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createTargetSiteOperationCallable() - *
  • createTargetSiteCallable() + *
  • createTargetSiteOperationCallable() + *

  • createTargetSiteCallable() *

*
BatchCreateTargetSites

BatchCreateTargetSites

Creates [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in a batch.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchCreateTargetSitesAsync(BatchCreateTargetSitesRequest request) + *
  • batchCreateTargetSitesAsync(BatchCreateTargetSitesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchCreateTargetSitesOperationCallable() - *
  • batchCreateTargetSitesCallable() + *
  • batchCreateTargetSitesOperationCallable() + *

  • batchCreateTargetSitesCallable() *

*
GetTargetSite

GetTargetSite

Gets a [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTargetSite(GetTargetSiteRequest request) + *
  • getTargetSite(GetTargetSiteRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTargetSite(TargetSiteName name) - *
  • getTargetSite(String name) + *
  • getTargetSite(TargetSiteName name) + *

  • getTargetSite(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTargetSiteCallable() + *
  • getTargetSiteCallable() *

*
UpdateTargetSite

UpdateTargetSite

Updates a [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateTargetSiteAsync(UpdateTargetSiteRequest request) + *
  • updateTargetSiteAsync(UpdateTargetSiteRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateTargetSiteAsync(TargetSite targetSite) + *
  • updateTargetSiteAsync(TargetSite targetSite) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateTargetSiteOperationCallable() - *
  • updateTargetSiteCallable() + *
  • updateTargetSiteOperationCallable() + *

  • updateTargetSiteCallable() *

*
DeleteTargetSite

DeleteTargetSite

Deletes a [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteTargetSiteAsync(DeleteTargetSiteRequest request) + *
  • deleteTargetSiteAsync(DeleteTargetSiteRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteTargetSiteAsync(TargetSiteName name) - *
  • deleteTargetSiteAsync(String name) + *
  • deleteTargetSiteAsync(TargetSiteName name) + *

  • deleteTargetSiteAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteTargetSiteOperationCallable() - *
  • deleteTargetSiteCallable() + *
  • deleteTargetSiteOperationCallable() + *

  • deleteTargetSiteCallable() *

*
ListTargetSites

ListTargetSites

Gets a list of [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite]s.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTargetSites(ListTargetSitesRequest request) + *
  • listTargetSites(ListTargetSitesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTargetSites(SiteSearchEngineName parent) - *
  • listTargetSites(String parent) + *
  • listTargetSites(SiteSearchEngineName parent) + *

  • listTargetSites(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTargetSitesPagedCallable() - *
  • listTargetSitesCallable() + *
  • listTargetSitesPagedCallable() + *

  • listTargetSitesCallable() *

*
EnableAdvancedSiteSearch

EnableAdvancedSiteSearch

Upgrade from basic site search to advanced site search.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • enableAdvancedSiteSearchAsync(EnableAdvancedSiteSearchRequest request) + *
  • enableAdvancedSiteSearchAsync(EnableAdvancedSiteSearchRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • enableAdvancedSiteSearchOperationCallable() - *
  • enableAdvancedSiteSearchCallable() + *
  • enableAdvancedSiteSearchOperationCallable() + *

  • enableAdvancedSiteSearchCallable() *

*
DisableAdvancedSiteSearch

DisableAdvancedSiteSearch

Downgrade from advanced site search to basic site search.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • disableAdvancedSiteSearchAsync(DisableAdvancedSiteSearchRequest request) + *
  • disableAdvancedSiteSearchAsync(DisableAdvancedSiteSearchRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • disableAdvancedSiteSearchOperationCallable() - *
  • disableAdvancedSiteSearchCallable() + *
  • disableAdvancedSiteSearchOperationCallable() + *

  • disableAdvancedSiteSearchCallable() *

*
RecrawlUris

RecrawlUris

Request on-demand recrawl for a list of URIs.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • recrawlUrisAsync(RecrawlUrisRequest request) + *
  • recrawlUrisAsync(RecrawlUrisRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • recrawlUrisOperationCallable() - *
  • recrawlUrisCallable() + *
  • recrawlUrisOperationCallable() + *

  • recrawlUrisCallable() *

*
BatchVerifyTargetSites

BatchVerifyTargetSites

Verify target sites' ownership and validity. This API sends all the target sites under site search engine for verification.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchVerifyTargetSitesAsync(BatchVerifyTargetSitesRequest request) + *
  • batchVerifyTargetSitesAsync(BatchVerifyTargetSitesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchVerifyTargetSitesOperationCallable() - *
  • batchVerifyTargetSitesCallable() + *
  • batchVerifyTargetSitesOperationCallable() + *

  • batchVerifyTargetSitesCallable() *

*
FetchDomainVerificationStatus

FetchDomainVerificationStatus

Returns list of target sites with its domain verification status. This method can only be called under data store with BASIC_SITE_SEARCH state at the moment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • fetchDomainVerificationStatus(FetchDomainVerificationStatusRequest request) + *
  • fetchDomainVerificationStatus(FetchDomainVerificationStatusRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • fetchDomainVerificationStatusPagedCallable() - *
  • fetchDomainVerificationStatusCallable() + *
  • fetchDomainVerificationStatusPagedCallable() + *

  • fetchDomainVerificationStatusCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClient.java index d044045a8552..1933feb99151 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClient.java @@ -61,71 +61,72 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
WriteUserEvent

WriteUserEvent

Writes a single user event.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • writeUserEvent(WriteUserEventRequest request) + *
  • writeUserEvent(WriteUserEventRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • writeUserEventCallable() + *
  • writeUserEventCallable() *

*
CollectUserEvent

CollectUserEvent

Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. *

This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • collectUserEvent(CollectUserEventRequest request) + *
  • collectUserEvent(CollectUserEventRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • collectUserEventCallable() + *
  • collectUserEventCallable() *

*
PurgeUserEvents

PurgeUserEvents

Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • purgeUserEventsAsync(PurgeUserEventsRequest request) + *
  • purgeUserEventsAsync(PurgeUserEventsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • purgeUserEventsOperationCallable() - *
  • purgeUserEventsCallable() + *
  • purgeUserEventsOperationCallable() + *

  • purgeUserEventsCallable() *

*
ImportUserEvents

ImportUserEvents

Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. *

Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importUserEventsAsync(ImportUserEventsRequest request) + *
  • importUserEventsAsync(ImportUserEventsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importUserEventsOperationCallable() - *
  • importUserEventsCallable() + *
  • importUserEventsOperationCallable() + *

  • importUserEventsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java index 140b0cd5f0fc..029d4f86f281 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java @@ -115,6 +115,15 @@ public CompletionServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -279,7 +288,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -292,7 +300,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -329,6 +336,15 @@ public Builder applyToAllUnaryMethods( return completeQuerySettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public CompletionServiceStubSettings build() throws IOException { return new CompletionServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java index b91dba653180..1effe03eb620 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java @@ -231,6 +231,15 @@ public ConversationalSearchServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -435,7 +444,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -448,7 +456,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -541,6 +548,15 @@ public Builder applyToAllUnaryMethods( return listConversationsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ConversationalSearchServiceStubSettings build() throws IOException { return new ConversationalSearchServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java index c8d092a0621b..158892a23c72 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java @@ -233,6 +233,15 @@ public DataStoreServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -428,7 +437,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -441,7 +449,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -583,6 +590,15 @@ public UnaryCallSettings.Builder updateDataSt return updateDataStoreSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DataStoreServiceStubSettings build() throws IOException { return new DataStoreServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java index 04c21d1df497..cbebe5ad10a0 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java @@ -251,6 +251,15 @@ public DocumentServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -482,7 +491,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -495,7 +503,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -659,6 +666,15 @@ public UnaryCallSettings.Builder purgeDocument return purgeDocumentsOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DocumentServiceStubSettings build() throws IOException { return new DocumentServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStubSettings.java index 2cf2258bce7e..bf3911565111 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStubSettings.java @@ -261,6 +261,15 @@ public EngineServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -475,7 +484,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -488,7 +496,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -691,6 +698,15 @@ public UnaryCallSettings.Builder tuneEngineSetting return tuneEngineOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EngineServiceStubSettings build() throws IOException { return new EngineServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java index c649ba2f4fbe..beaef986eed5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java @@ -115,6 +115,15 @@ public RecommendationServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -279,7 +288,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -292,7 +300,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -328,6 +335,15 @@ public UnaryCallSettings.Builder recommendS return recommendSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public RecommendationServiceStubSettings build() throws IOException { return new RecommendationServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java index 0720e1b65526..d5268f64328f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java @@ -239,6 +239,15 @@ public SchemaServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -445,7 +454,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -458,7 +466,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -632,6 +639,15 @@ public UnaryCallSettings.Builder deleteSchemaSet return deleteSchemaOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SchemaServiceStubSettings build() throws IOException { return new SchemaServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java index e1e1c307b35e..f59a98c835c8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java @@ -175,6 +175,15 @@ public SearchServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -339,7 +348,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -352,7 +360,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -389,6 +396,15 @@ public Builder applyToAllUnaryMethods( return searchSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SearchServiceStubSettings build() throws IOException { return new SearchServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStubSettings.java index c961d305bc60..2ee40c02c930 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStubSettings.java @@ -130,6 +130,15 @@ public SearchTuningServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -290,7 +299,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -303,7 +311,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -373,6 +380,15 @@ public Builder applyToAllUnaryMethods( return trainCustomModelOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SearchTuningServiceStubSettings build() throws IOException { return new SearchTuningServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java index 051aaf08dc69..a245b949cf37 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java @@ -469,6 +469,15 @@ public SiteSearchEngineServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -771,7 +780,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -784,7 +792,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1223,6 +1230,15 @@ public UnaryCallSettings.Builder recrawlUrisSetti return fetchDomainVerificationStatusSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SiteSearchEngineServiceStubSettings build() throws IOException { return new SiteSearchEngineServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java index 50b0c1c2646f..76e2e0fc067d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java @@ -164,6 +164,15 @@ public UserEventServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -377,7 +386,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -390,7 +398,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -523,6 +530,15 @@ public UnaryCallSettings.Builder purgeUserEve return importUserEventsOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public UserEventServiceStubSettings build() throws IOException { return new UserEventServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java index 21fe3a0c126d..0884265b53a3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java @@ -59,25 +59,26 @@ * close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CompleteQuery

CompleteQuery

Completes the specified user input with keyword suggestions.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • completeQuery(CompleteQueryRequest request) + *
  • completeQuery(CompleteQueryRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • completeQueryCallable() + *
  • completeQueryCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java index 2bce94ed42ae..a3b9b1f20d06 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java @@ -64,128 +64,129 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ConverseConversation

ConverseConversation

Converses a conversation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • converseConversation(ConverseConversationRequest request) + *
  • converseConversation(ConverseConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • converseConversation(ConversationName name, TextInput query) - *
  • converseConversation(String name, TextInput query) + *
  • converseConversation(ConversationName name, TextInput query) + *

  • converseConversation(String name, TextInput query) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • converseConversationCallable() + *
  • converseConversationCallable() *

*
CreateConversation

CreateConversation

Creates a Conversation. *

If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to create already exists, an ALREADY_EXISTS error is returned.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createConversation(CreateConversationRequest request) + *
  • createConversation(CreateConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createConversation(DataStoreName parent, Conversation conversation) - *
  • createConversation(String parent, Conversation conversation) + *
  • createConversation(DataStoreName parent, Conversation conversation) + *

  • createConversation(String parent, Conversation conversation) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createConversationCallable() + *
  • createConversationCallable() *

*
DeleteConversation

DeleteConversation

Deletes a Conversation. *

If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to delete does not exist, a NOT_FOUND error is returned.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteConversation(DeleteConversationRequest request) + *
  • deleteConversation(DeleteConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteConversation(ConversationName name) - *
  • deleteConversation(String name) + *
  • deleteConversation(ConversationName name) + *

  • deleteConversation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteConversationCallable() + *
  • deleteConversationCallable() *

*
UpdateConversation

UpdateConversation

Updates a Conversation. *

[Conversation][google.cloud.discoveryengine.v1beta.Conversation] action type cannot be changed. If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update does not exist, a NOT_FOUND error is returned.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateConversation(UpdateConversationRequest request) + *
  • updateConversation(UpdateConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateConversation(Conversation conversation, FieldMask updateMask) + *
  • updateConversation(Conversation conversation, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateConversationCallable() + *
  • updateConversationCallable() *

*
GetConversation

GetConversation

Gets a Conversation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getConversation(GetConversationRequest request) + *
  • getConversation(GetConversationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getConversation(ConversationName name) - *
  • getConversation(String name) + *
  • getConversation(ConversationName name) + *

  • getConversation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getConversationCallable() + *
  • getConversationCallable() *

*
ListConversations

ListConversations

Lists all Conversations by their parent [DataStore][google.cloud.discoveryengine.v1beta.DataStore].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listConversations(ListConversationsRequest request) + *
  • listConversations(ListConversationsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listConversations(DataStoreName parent) - *
  • listConversations(String parent) + *
  • listConversations(DataStoreName parent) + *

  • listConversations(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listConversationsPagedCallable() - *
  • listConversationsCallable() + *
  • listConversationsPagedCallable() + *

  • listConversationsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java index 94dcfccecd61..7620d95cbc81 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java @@ -65,135 +65,136 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetDocument

GetDocument

Gets a [Document][google.cloud.discoveryengine.v1beta.Document].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDocument(GetDocumentRequest request) + *
  • getDocument(GetDocumentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDocument(DocumentName name) - *
  • getDocument(String name) + *
  • getDocument(DocumentName name) + *

  • getDocument(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDocumentCallable() + *
  • getDocumentCallable() *

*
ListDocuments

ListDocuments

Gets a list of [Document][google.cloud.discoveryengine.v1beta.Document]s.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDocuments(ListDocumentsRequest request) + *
  • listDocuments(ListDocumentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDocuments(BranchName parent) - *
  • listDocuments(String parent) + *
  • listDocuments(BranchName parent) + *

  • listDocuments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDocumentsPagedCallable() - *
  • listDocumentsCallable() + *
  • listDocumentsPagedCallable() + *

  • listDocumentsCallable() *

*
CreateDocument

CreateDocument

Creates a [Document][google.cloud.discoveryengine.v1beta.Document].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createDocument(CreateDocumentRequest request) + *
  • createDocument(CreateDocumentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createDocument(BranchName parent, Document document, String documentId) - *
  • createDocument(String parent, Document document, String documentId) + *
  • createDocument(BranchName parent, Document document, String documentId) + *

  • createDocument(String parent, Document document, String documentId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createDocumentCallable() + *
  • createDocumentCallable() *

*
UpdateDocument

UpdateDocument

Updates a [Document][google.cloud.discoveryengine.v1beta.Document].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateDocument(UpdateDocumentRequest request) + *
  • updateDocument(UpdateDocumentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateDocumentCallable() + *
  • updateDocumentCallable() *

*
DeleteDocument

DeleteDocument

Deletes a [Document][google.cloud.discoveryengine.v1beta.Document].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteDocument(DeleteDocumentRequest request) + *
  • deleteDocument(DeleteDocumentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteDocument(DocumentName name) - *
  • deleteDocument(String name) + *
  • deleteDocument(DocumentName name) + *

  • deleteDocument(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteDocumentCallable() + *
  • deleteDocumentCallable() *

*
ImportDocuments

ImportDocuments

Bulk import of multiple [Document][google.cloud.discoveryengine.v1beta.Document]s. Request processing may be synchronous. Non-existing items will be created. *

Note: It is possible for a subset of the [Document][google.cloud.discoveryengine.v1beta.Document]s to be successfully updated.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importDocumentsAsync(ImportDocumentsRequest request) + *
  • importDocumentsAsync(ImportDocumentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importDocumentsOperationCallable() - *
  • importDocumentsCallable() + *
  • importDocumentsOperationCallable() + *

  • importDocumentsCallable() *

*
PurgeDocuments

PurgeDocuments

Permanently deletes all selected [Document][google.cloud.discoveryengine.v1beta.Document]s in a branch. *

This process is asynchronous. Depending on the number of [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted, this operation can take hours to complete. Before the delete operation completes, some [Document][google.cloud.discoveryengine.v1beta.Document]s might still be returned by [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument] or [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments]. *

To get a list of the [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted, set [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.force] to false.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • purgeDocumentsAsync(PurgeDocumentsRequest request) + *
  • purgeDocumentsAsync(PurgeDocumentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • purgeDocumentsOperationCallable() - *
  • purgeDocumentsCallable() + *
  • purgeDocumentsOperationCallable() + *

  • purgeDocumentsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClient.java index d52bdc2e9fa2..772ffb7f5c1b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClient.java @@ -62,25 +62,26 @@ * calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
Recommend

Recommend

Makes a recommendation, which requires a contextual user event.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • recommend(RecommendRequest request) + *
  • recommend(RecommendRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • recommendCallable() + *
  • recommendCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClient.java index 2c418e8b4449..f58b06853cfa 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClient.java @@ -63,105 +63,106 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetSchema

GetSchema

Gets a [Schema][google.cloud.discoveryengine.v1beta.Schema].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSchema(GetSchemaRequest request) + *
  • getSchema(GetSchemaRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSchema(SchemaName name) - *
  • getSchema(String name) + *
  • getSchema(SchemaName name) + *

  • getSchema(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSchemaCallable() + *
  • getSchemaCallable() *

*
ListSchemas

ListSchemas

Gets a list of [Schema][google.cloud.discoveryengine.v1beta.Schema]s.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSchemas(ListSchemasRequest request) + *
  • listSchemas(ListSchemasRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSchemas(DataStoreName parent) - *
  • listSchemas(String parent) + *
  • listSchemas(DataStoreName parent) + *

  • listSchemas(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSchemasPagedCallable() - *
  • listSchemasCallable() + *
  • listSchemasPagedCallable() + *

  • listSchemasCallable() *

*
CreateSchema

CreateSchema

Creates a [Schema][google.cloud.discoveryengine.v1beta.Schema].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSchemaAsync(CreateSchemaRequest request) + *
  • createSchemaAsync(CreateSchemaRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createSchemaAsync(DataStoreName parent, Schema schema, String schemaId) - *
  • createSchemaAsync(String parent, Schema schema, String schemaId) + *
  • createSchemaAsync(DataStoreName parent, Schema schema, String schemaId) + *

  • createSchemaAsync(String parent, Schema schema, String schemaId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSchemaOperationCallable() - *
  • createSchemaCallable() + *
  • createSchemaOperationCallable() + *

  • createSchemaCallable() *

*
UpdateSchema

UpdateSchema

Updates a [Schema][google.cloud.discoveryengine.v1beta.Schema].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSchemaAsync(UpdateSchemaRequest request) + *
  • updateSchemaAsync(UpdateSchemaRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSchemaOperationCallable() - *
  • updateSchemaCallable() + *
  • updateSchemaOperationCallable() + *

  • updateSchemaCallable() *

*
DeleteSchema

DeleteSchema

Deletes a [Schema][google.cloud.discoveryengine.v1beta.Schema].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSchemaAsync(DeleteSchemaRequest request) + *
  • deleteSchemaAsync(DeleteSchemaRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteSchemaAsync(SchemaName name) - *
  • deleteSchemaAsync(String name) + *
  • deleteSchemaAsync(SchemaName name) + *

  • deleteSchemaAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSchemaOperationCallable() - *
  • deleteSchemaCallable() + *
  • deleteSchemaOperationCallable() + *

  • deleteSchemaCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java index 8fcdf437a4b4..ddcc316777da 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java @@ -87,26 +87,27 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
Search

Search

Performs a search.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • search(SearchRequest request) + *
  • search(SearchRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchPagedCallable() - *
  • searchCallable() + *
  • searchPagedCallable() + *

  • searchCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java index 1d855a55dced..7b334c5ebac8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java @@ -61,56 +61,57 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
WriteUserEvent

WriteUserEvent

Writes a single user event.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • writeUserEvent(WriteUserEventRequest request) + *
  • writeUserEvent(WriteUserEventRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • writeUserEventCallable() + *
  • writeUserEventCallable() *

*
CollectUserEvent

CollectUserEvent

Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. *

This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • collectUserEvent(CollectUserEventRequest request) + *
  • collectUserEvent(CollectUserEventRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • collectUserEventCallable() + *
  • collectUserEventCallable() *

*
ImportUserEvents

ImportUserEvents

Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. *

Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importUserEventsAsync(ImportUserEventsRequest request) + *
  • importUserEventsAsync(ImportUserEventsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importUserEventsOperationCallable() - *
  • importUserEventsCallable() + *
  • importUserEventsOperationCallable() + *

  • importUserEventsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java index 1925844ca08a..1c6fecb4d5c2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java @@ -115,6 +115,15 @@ public CompletionServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -279,7 +288,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -292,7 +300,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -329,6 +336,15 @@ public Builder applyToAllUnaryMethods( return completeQuerySettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public CompletionServiceStubSettings build() throws IOException { return new CompletionServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java index 8197d34f98d9..a21cec6e698c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java @@ -231,6 +231,15 @@ public ConversationalSearchServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -435,7 +444,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -448,7 +456,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -541,6 +548,15 @@ public Builder applyToAllUnaryMethods( return listConversationsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ConversationalSearchServiceStubSettings build() throws IOException { return new ConversationalSearchServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java index cbf4ed973836..8f339dd8e609 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java @@ -251,6 +251,15 @@ public DocumentServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -482,7 +491,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -495,7 +503,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -659,6 +666,15 @@ public UnaryCallSettings.Builder purgeDocument return purgeDocumentsOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DocumentServiceStubSettings build() throws IOException { return new DocumentServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java index 73c82fe2c91b..8d0f934178b9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java @@ -115,6 +115,15 @@ public RecommendationServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -279,7 +288,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -292,7 +300,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -328,6 +335,15 @@ public UnaryCallSettings.Builder recommendS return recommendSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public RecommendationServiceStubSettings build() throws IOException { return new RecommendationServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java index d86ea419c540..3b77402c9d4e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java @@ -239,6 +239,15 @@ public SchemaServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -445,7 +454,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -458,7 +466,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -632,6 +639,15 @@ public UnaryCallSettings.Builder deleteSchemaSet return deleteSchemaOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SchemaServiceStubSettings build() throws IOException { return new SchemaServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java index a880b2e3448e..8e2f30bd6657 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java @@ -175,6 +175,15 @@ public SearchServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -339,7 +348,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -352,7 +360,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -389,6 +396,15 @@ public Builder applyToAllUnaryMethods( return searchSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SearchServiceStubSettings build() throws IOException { return new SearchServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java index a18447ff69de..b035a821408f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java @@ -145,6 +145,15 @@ public UserEventServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -341,7 +350,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -354,7 +362,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -444,6 +451,15 @@ public UnaryCallSettings.Builder collectUserE return importUserEventsOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public UserEventServiceStubSettings build() throws IOException { return new UserEventServiceStubSettings(this); diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 858b2cd1cd80..9e281924b62a 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-distributedcloudedge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.30.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerClient.java b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerClient.java index 0f0a31b82deb..8ba7ef011ad5 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerClient.java +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerClient.java @@ -63,344 +63,345 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListClusters

ListClusters

Lists Clusters in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listClusters(ListClustersRequest request) + *
  • listClusters(ListClustersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listClusters(LocationName parent) - *
  • listClusters(String parent) + *
  • listClusters(LocationName parent) + *

  • listClusters(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listClustersPagedCallable() - *
  • listClustersCallable() + *
  • listClustersPagedCallable() + *

  • listClustersCallable() *

*
GetCluster

GetCluster

Gets details of a single Cluster.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getCluster(GetClusterRequest request) + *
  • getCluster(GetClusterRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getCluster(ClusterName name) - *
  • getCluster(String name) + *
  • getCluster(ClusterName name) + *

  • getCluster(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getClusterCallable() + *
  • getClusterCallable() *

*
CreateCluster

CreateCluster

Creates a new Cluster in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createClusterAsync(CreateClusterRequest request) + *
  • createClusterAsync(CreateClusterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createClusterAsync(LocationName parent, Cluster cluster, String clusterId) - *
  • createClusterAsync(String parent, Cluster cluster, String clusterId) + *
  • createClusterAsync(LocationName parent, Cluster cluster, String clusterId) + *

  • createClusterAsync(String parent, Cluster cluster, String clusterId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createClusterOperationCallable() - *
  • createClusterCallable() + *
  • createClusterOperationCallable() + *

  • createClusterCallable() *

*
UpdateCluster

UpdateCluster

Updates the parameters of a single Cluster.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateClusterAsync(UpdateClusterRequest request) + *
  • updateClusterAsync(UpdateClusterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateClusterAsync(Cluster cluster, FieldMask updateMask) + *
  • updateClusterAsync(Cluster cluster, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateClusterOperationCallable() - *
  • updateClusterCallable() + *
  • updateClusterOperationCallable() + *

  • updateClusterCallable() *

*
DeleteCluster

DeleteCluster

Deletes a single Cluster.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteClusterAsync(DeleteClusterRequest request) + *
  • deleteClusterAsync(DeleteClusterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteClusterAsync(ClusterName name) - *
  • deleteClusterAsync(String name) + *
  • deleteClusterAsync(ClusterName name) + *

  • deleteClusterAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteClusterOperationCallable() - *
  • deleteClusterCallable() + *
  • deleteClusterOperationCallable() + *

  • deleteClusterCallable() *

*
GenerateAccessToken

GenerateAccessToken

Generates an access token for a Cluster.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateAccessToken(GenerateAccessTokenRequest request) + *
  • generateAccessToken(GenerateAccessTokenRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • generateAccessToken(ClusterName cluster) - *
  • generateAccessToken(String cluster) + *
  • generateAccessToken(ClusterName cluster) + *

  • generateAccessToken(String cluster) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateAccessTokenCallable() + *
  • generateAccessTokenCallable() *

*
ListNodePools

ListNodePools

Lists NodePools in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listNodePools(ListNodePoolsRequest request) + *
  • listNodePools(ListNodePoolsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listNodePools(ClusterName parent) - *
  • listNodePools(String parent) + *
  • listNodePools(ClusterName parent) + *

  • listNodePools(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listNodePoolsPagedCallable() - *
  • listNodePoolsCallable() + *
  • listNodePoolsPagedCallable() + *

  • listNodePoolsCallable() *

*
GetNodePool

GetNodePool

Gets details of a single NodePool.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getNodePool(GetNodePoolRequest request) + *
  • getNodePool(GetNodePoolRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getNodePool(NodePoolName name) - *
  • getNodePool(String name) + *
  • getNodePool(NodePoolName name) + *

  • getNodePool(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getNodePoolCallable() + *
  • getNodePoolCallable() *

*
CreateNodePool

CreateNodePool

Creates a new NodePool in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createNodePoolAsync(CreateNodePoolRequest request) + *
  • createNodePoolAsync(CreateNodePoolRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createNodePoolAsync(ClusterName parent, NodePool nodePool, String nodePoolId) - *
  • createNodePoolAsync(String parent, NodePool nodePool, String nodePoolId) + *
  • createNodePoolAsync(ClusterName parent, NodePool nodePool, String nodePoolId) + *

  • createNodePoolAsync(String parent, NodePool nodePool, String nodePoolId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createNodePoolOperationCallable() - *
  • createNodePoolCallable() + *
  • createNodePoolOperationCallable() + *

  • createNodePoolCallable() *

*
UpdateNodePool

UpdateNodePool

Updates the parameters of a single NodePool.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateNodePoolAsync(UpdateNodePoolRequest request) + *
  • updateNodePoolAsync(UpdateNodePoolRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateNodePoolAsync(NodePool nodePool, FieldMask updateMask) + *
  • updateNodePoolAsync(NodePool nodePool, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateNodePoolOperationCallable() - *
  • updateNodePoolCallable() + *
  • updateNodePoolOperationCallable() + *

  • updateNodePoolCallable() *

*
DeleteNodePool

DeleteNodePool

Deletes a single NodePool.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteNodePoolAsync(DeleteNodePoolRequest request) + *
  • deleteNodePoolAsync(DeleteNodePoolRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteNodePoolAsync(NodePoolName name) - *
  • deleteNodePoolAsync(String name) + *
  • deleteNodePoolAsync(NodePoolName name) + *

  • deleteNodePoolAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteNodePoolOperationCallable() - *
  • deleteNodePoolCallable() + *
  • deleteNodePoolOperationCallable() + *

  • deleteNodePoolCallable() *

*
ListMachines

ListMachines

Lists Machines in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listMachines(ListMachinesRequest request) + *
  • listMachines(ListMachinesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listMachines(LocationName parent) - *
  • listMachines(String parent) + *
  • listMachines(LocationName parent) + *

  • listMachines(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listMachinesPagedCallable() - *
  • listMachinesCallable() + *
  • listMachinesPagedCallable() + *

  • listMachinesCallable() *

*
GetMachine

GetMachine

Gets details of a single Machine.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getMachine(GetMachineRequest request) + *
  • getMachine(GetMachineRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getMachine(MachineName name) - *
  • getMachine(String name) + *
  • getMachine(MachineName name) + *

  • getMachine(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getMachineCallable() + *
  • getMachineCallable() *

*
ListVpnConnections

ListVpnConnections

Lists VPN connections in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listVpnConnections(ListVpnConnectionsRequest request) + *
  • listVpnConnections(ListVpnConnectionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listVpnConnections(LocationName parent) - *
  • listVpnConnections(String parent) + *
  • listVpnConnections(LocationName parent) + *

  • listVpnConnections(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listVpnConnectionsPagedCallable() - *
  • listVpnConnectionsCallable() + *
  • listVpnConnectionsPagedCallable() + *

  • listVpnConnectionsCallable() *

*
GetVpnConnection

GetVpnConnection

Gets details of a single VPN connection.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getVpnConnection(GetVpnConnectionRequest request) + *
  • getVpnConnection(GetVpnConnectionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getVpnConnection(VpnConnectionName name) - *
  • getVpnConnection(String name) + *
  • getVpnConnection(VpnConnectionName name) + *

  • getVpnConnection(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getVpnConnectionCallable() + *
  • getVpnConnectionCallable() *

*
CreateVpnConnection

CreateVpnConnection

Creates a new VPN connection in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createVpnConnectionAsync(CreateVpnConnectionRequest request) + *
  • createVpnConnectionAsync(CreateVpnConnectionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createVpnConnectionAsync(LocationName parent, VpnConnection vpnConnection, String vpnConnectionId) - *
  • createVpnConnectionAsync(String parent, VpnConnection vpnConnection, String vpnConnectionId) + *
  • createVpnConnectionAsync(LocationName parent, VpnConnection vpnConnection, String vpnConnectionId) + *

  • createVpnConnectionAsync(String parent, VpnConnection vpnConnection, String vpnConnectionId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createVpnConnectionOperationCallable() - *
  • createVpnConnectionCallable() + *
  • createVpnConnectionOperationCallable() + *

  • createVpnConnectionCallable() *

*
DeleteVpnConnection

DeleteVpnConnection

Deletes a single VPN connection.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteVpnConnectionAsync(DeleteVpnConnectionRequest request) + *
  • deleteVpnConnectionAsync(DeleteVpnConnectionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteVpnConnectionAsync(VpnConnectionName name) - *
  • deleteVpnConnectionAsync(String name) + *
  • deleteVpnConnectionAsync(VpnConnectionName name) + *

  • deleteVpnConnectionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteVpnConnectionOperationCallable() - *
  • deleteVpnConnectionCallable() + *
  • deleteVpnConnectionOperationCallable() + *

  • deleteVpnConnectionCallable() *

*
* *

See the individual methods for example code. diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStubSettings.java b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStubSettings.java index eb298b7bd5b9..90e495fcb9a7 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStubSettings.java +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStubSettings.java @@ -551,6 +551,15 @@ public EdgeContainerStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -883,7 +892,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -896,7 +904,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1361,6 +1368,15 @@ public UnaryCallSettings.Builder getMachineSettings( return deleteVpnConnectionOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EdgeContainerStubSettings build() throws IOException { return new EdgeContainerStubSettings(this); diff --git a/java-dlp/README.md b/java-dlp/README.md index 09aca32249c7..72457b1856cf 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dlp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java index 893458ed69b5..6e1cca02c1ee 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java @@ -140,752 +140,753 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
InspectContent

InspectContent

Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. *

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. *

For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • inspectContent(InspectContentRequest request) + *
  • inspectContent(InspectContentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • inspectContentCallable() + *
  • inspectContentCallable() *

*
RedactImage

RedactImage

Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more. *

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • redactImage(RedactImageRequest request) + *
  • redactImage(RedactImageRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • redactImageCallable() + *
  • redactImageCallable() *

*
DeidentifyContent

DeidentifyContent

De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn more. *

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deidentifyContent(DeidentifyContentRequest request) + *
  • deidentifyContent(DeidentifyContentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deidentifyContentCallable() + *
  • deidentifyContentCallable() *

*
ReidentifyContent

ReidentifyContent

Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • reidentifyContent(ReidentifyContentRequest request) + *
  • reidentifyContent(ReidentifyContentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • reidentifyContentCallable() + *
  • reidentifyContentCallable() *

*
ListInfoTypes

ListInfoTypes

Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/dlp/docs/infotypes-reference to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listInfoTypes(ListInfoTypesRequest request) + *
  • listInfoTypes(ListInfoTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listInfoTypes(String parent) + *
  • listInfoTypes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listInfoTypesCallable() + *
  • listInfoTypesCallable() *

*
CreateInspectTemplate

CreateInspectTemplate

Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createInspectTemplate(CreateInspectTemplateRequest request) + *
  • createInspectTemplate(CreateInspectTemplateRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createInspectTemplate(LocationName parent, InspectTemplate inspectTemplate) - *
  • createInspectTemplate(OrganizationLocationName parent, InspectTemplate inspectTemplate) - *
  • createInspectTemplate(OrganizationName parent, InspectTemplate inspectTemplate) - *
  • createInspectTemplate(ProjectName parent, InspectTemplate inspectTemplate) - *
  • createInspectTemplate(String parent, InspectTemplate inspectTemplate) + *
  • createInspectTemplate(LocationName parent, InspectTemplate inspectTemplate) + *

  • createInspectTemplate(OrganizationLocationName parent, InspectTemplate inspectTemplate) + *

  • createInspectTemplate(OrganizationName parent, InspectTemplate inspectTemplate) + *

  • createInspectTemplate(ProjectName parent, InspectTemplate inspectTemplate) + *

  • createInspectTemplate(String parent, InspectTemplate inspectTemplate) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createInspectTemplateCallable() + *
  • createInspectTemplateCallable() *

*
UpdateInspectTemplate

UpdateInspectTemplate

Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateInspectTemplate(UpdateInspectTemplateRequest request) + *
  • updateInspectTemplate(UpdateInspectTemplateRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateInspectTemplate(InspectTemplateName name, InspectTemplate inspectTemplate, FieldMask updateMask) - *
  • updateInspectTemplate(String name, InspectTemplate inspectTemplate, FieldMask updateMask) + *
  • updateInspectTemplate(InspectTemplateName name, InspectTemplate inspectTemplate, FieldMask updateMask) + *

  • updateInspectTemplate(String name, InspectTemplate inspectTemplate, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateInspectTemplateCallable() + *
  • updateInspectTemplateCallable() *

*
GetInspectTemplate

GetInspectTemplate

Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getInspectTemplate(GetInspectTemplateRequest request) + *
  • getInspectTemplate(GetInspectTemplateRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getInspectTemplate(InspectTemplateName name) - *
  • getInspectTemplate(String name) + *
  • getInspectTemplate(InspectTemplateName name) + *

  • getInspectTemplate(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getInspectTemplateCallable() + *
  • getInspectTemplateCallable() *

*
ListInspectTemplates

ListInspectTemplates

Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listInspectTemplates(ListInspectTemplatesRequest request) + *
  • listInspectTemplates(ListInspectTemplatesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listInspectTemplates(LocationName parent) - *
  • listInspectTemplates(OrganizationLocationName parent) - *
  • listInspectTemplates(OrganizationName parent) - *
  • listInspectTemplates(ProjectName parent) - *
  • listInspectTemplates(String parent) + *
  • listInspectTemplates(LocationName parent) + *

  • listInspectTemplates(OrganizationLocationName parent) + *

  • listInspectTemplates(OrganizationName parent) + *

  • listInspectTemplates(ProjectName parent) + *

  • listInspectTemplates(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listInspectTemplatesPagedCallable() - *
  • listInspectTemplatesCallable() + *
  • listInspectTemplatesPagedCallable() + *

  • listInspectTemplatesCallable() *

*
DeleteInspectTemplate

DeleteInspectTemplate

Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteInspectTemplate(DeleteInspectTemplateRequest request) + *
  • deleteInspectTemplate(DeleteInspectTemplateRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteInspectTemplate(InspectTemplateName name) - *
  • deleteInspectTemplate(String name) + *
  • deleteInspectTemplate(InspectTemplateName name) + *

  • deleteInspectTemplate(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteInspectTemplateCallable() + *
  • deleteInspectTemplateCallable() *

*
CreateDeidentifyTemplate

CreateDeidentifyTemplate

Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createDeidentifyTemplate(CreateDeidentifyTemplateRequest request) + *
  • createDeidentifyTemplate(CreateDeidentifyTemplateRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createDeidentifyTemplate(LocationName parent, DeidentifyTemplate deidentifyTemplate) - *
  • createDeidentifyTemplate(OrganizationLocationName parent, DeidentifyTemplate deidentifyTemplate) - *
  • createDeidentifyTemplate(OrganizationName parent, DeidentifyTemplate deidentifyTemplate) - *
  • createDeidentifyTemplate(ProjectName parent, DeidentifyTemplate deidentifyTemplate) - *
  • createDeidentifyTemplate(String parent, DeidentifyTemplate deidentifyTemplate) + *
  • createDeidentifyTemplate(LocationName parent, DeidentifyTemplate deidentifyTemplate) + *

  • createDeidentifyTemplate(OrganizationLocationName parent, DeidentifyTemplate deidentifyTemplate) + *

  • createDeidentifyTemplate(OrganizationName parent, DeidentifyTemplate deidentifyTemplate) + *

  • createDeidentifyTemplate(ProjectName parent, DeidentifyTemplate deidentifyTemplate) + *

  • createDeidentifyTemplate(String parent, DeidentifyTemplate deidentifyTemplate) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createDeidentifyTemplateCallable() + *
  • createDeidentifyTemplateCallable() *

*
UpdateDeidentifyTemplate

UpdateDeidentifyTemplate

Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateDeidentifyTemplate(UpdateDeidentifyTemplateRequest request) + *
  • updateDeidentifyTemplate(UpdateDeidentifyTemplateRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateDeidentifyTemplate(DeidentifyTemplateName name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask) - *
  • updateDeidentifyTemplate(String name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask) + *
  • updateDeidentifyTemplate(DeidentifyTemplateName name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask) + *

  • updateDeidentifyTemplate(String name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateDeidentifyTemplateCallable() + *
  • updateDeidentifyTemplateCallable() *

*
GetDeidentifyTemplate

GetDeidentifyTemplate

Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDeidentifyTemplate(GetDeidentifyTemplateRequest request) + *
  • getDeidentifyTemplate(GetDeidentifyTemplateRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDeidentifyTemplate(DeidentifyTemplateName name) - *
  • getDeidentifyTemplate(String name) + *
  • getDeidentifyTemplate(DeidentifyTemplateName name) + *

  • getDeidentifyTemplate(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDeidentifyTemplateCallable() + *
  • getDeidentifyTemplateCallable() *

*
ListDeidentifyTemplates

ListDeidentifyTemplates

Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDeidentifyTemplates(ListDeidentifyTemplatesRequest request) + *
  • listDeidentifyTemplates(ListDeidentifyTemplatesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDeidentifyTemplates(LocationName parent) - *
  • listDeidentifyTemplates(OrganizationLocationName parent) - *
  • listDeidentifyTemplates(OrganizationName parent) - *
  • listDeidentifyTemplates(ProjectName parent) - *
  • listDeidentifyTemplates(String parent) + *
  • listDeidentifyTemplates(LocationName parent) + *

  • listDeidentifyTemplates(OrganizationLocationName parent) + *

  • listDeidentifyTemplates(OrganizationName parent) + *

  • listDeidentifyTemplates(ProjectName parent) + *

  • listDeidentifyTemplates(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDeidentifyTemplatesPagedCallable() - *
  • listDeidentifyTemplatesCallable() + *
  • listDeidentifyTemplatesPagedCallable() + *

  • listDeidentifyTemplatesCallable() *

*
DeleteDeidentifyTemplate

DeleteDeidentifyTemplate

Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request) + *
  • deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteDeidentifyTemplate(DeidentifyTemplateName name) - *
  • deleteDeidentifyTemplate(String name) + *
  • deleteDeidentifyTemplate(DeidentifyTemplateName name) + *

  • deleteDeidentifyTemplate(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteDeidentifyTemplateCallable() + *
  • deleteDeidentifyTemplateCallable() *

*
CreateJobTrigger

CreateJobTrigger

Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createJobTrigger(CreateJobTriggerRequest request) + *
  • createJobTrigger(CreateJobTriggerRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createJobTrigger(LocationName parent, JobTrigger jobTrigger) - *
  • createJobTrigger(ProjectName parent, JobTrigger jobTrigger) - *
  • createJobTrigger(String parent, JobTrigger jobTrigger) + *
  • createJobTrigger(LocationName parent, JobTrigger jobTrigger) + *

  • createJobTrigger(ProjectName parent, JobTrigger jobTrigger) + *

  • createJobTrigger(String parent, JobTrigger jobTrigger) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createJobTriggerCallable() + *
  • createJobTriggerCallable() *

*
UpdateJobTrigger

UpdateJobTrigger

Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateJobTrigger(UpdateJobTriggerRequest request) + *
  • updateJobTrigger(UpdateJobTriggerRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateJobTrigger(JobTriggerName name, JobTrigger jobTrigger, FieldMask updateMask) - *
  • updateJobTrigger(String name, JobTrigger jobTrigger, FieldMask updateMask) + *
  • updateJobTrigger(JobTriggerName name, JobTrigger jobTrigger, FieldMask updateMask) + *

  • updateJobTrigger(String name, JobTrigger jobTrigger, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateJobTriggerCallable() + *
  • updateJobTriggerCallable() *

*
HybridInspectJobTrigger

HybridInspectJobTrigger

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • hybridInspectJobTrigger(HybridInspectJobTriggerRequest request) + *
  • hybridInspectJobTrigger(HybridInspectJobTriggerRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • hybridInspectJobTrigger(JobTriggerName name) - *
  • hybridInspectJobTrigger(String name) + *
  • hybridInspectJobTrigger(JobTriggerName name) + *

  • hybridInspectJobTrigger(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • hybridInspectJobTriggerCallable() + *
  • hybridInspectJobTriggerCallable() *

*
GetJobTrigger

GetJobTrigger

Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getJobTrigger(GetJobTriggerRequest request) + *
  • getJobTrigger(GetJobTriggerRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getJobTrigger(JobTriggerName name) - *
  • getJobTrigger(String name) + *
  • getJobTrigger(JobTriggerName name) + *

  • getJobTrigger(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getJobTriggerCallable() + *
  • getJobTriggerCallable() *

*
ListJobTriggers

ListJobTriggers

Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listJobTriggers(ListJobTriggersRequest request) + *
  • listJobTriggers(ListJobTriggersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listJobTriggers(LocationName parent) - *
  • listJobTriggers(ProjectName parent) - *
  • listJobTriggers(String parent) + *
  • listJobTriggers(LocationName parent) + *

  • listJobTriggers(ProjectName parent) + *

  • listJobTriggers(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listJobTriggersPagedCallable() - *
  • listJobTriggersCallable() + *
  • listJobTriggersPagedCallable() + *

  • listJobTriggersCallable() *

*
DeleteJobTrigger

DeleteJobTrigger

Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteJobTrigger(DeleteJobTriggerRequest request) + *
  • deleteJobTrigger(DeleteJobTriggerRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteJobTrigger(JobTriggerName name) - *
  • deleteJobTrigger(String name) + *
  • deleteJobTrigger(JobTriggerName name) + *

  • deleteJobTrigger(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteJobTriggerCallable() + *
  • deleteJobTriggerCallable() *

*
ActivateJobTrigger

ActivateJobTrigger

Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • activateJobTrigger(ActivateJobTriggerRequest request) + *
  • activateJobTrigger(ActivateJobTriggerRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • activateJobTriggerCallable() + *
  • activateJobTriggerCallable() *

*
CreateDiscoveryConfig

CreateDiscoveryConfig

Creates a config for discovery to scan and profile storage.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createDiscoveryConfig(CreateDiscoveryConfigRequest request) + *
  • createDiscoveryConfig(CreateDiscoveryConfigRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createDiscoveryConfig(LocationName parent, DiscoveryConfig discoveryConfig) - *
  • createDiscoveryConfig(String parent, DiscoveryConfig discoveryConfig) + *
  • createDiscoveryConfig(LocationName parent, DiscoveryConfig discoveryConfig) + *

  • createDiscoveryConfig(String parent, DiscoveryConfig discoveryConfig) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createDiscoveryConfigCallable() + *
  • createDiscoveryConfigCallable() *

*
UpdateDiscoveryConfig

UpdateDiscoveryConfig

Updates a discovery configuration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateDiscoveryConfig(UpdateDiscoveryConfigRequest request) + *
  • updateDiscoveryConfig(UpdateDiscoveryConfigRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateDiscoveryConfig(DiscoveryConfigName name, DiscoveryConfig discoveryConfig, FieldMask updateMask) - *
  • updateDiscoveryConfig(String name, DiscoveryConfig discoveryConfig, FieldMask updateMask) + *
  • updateDiscoveryConfig(DiscoveryConfigName name, DiscoveryConfig discoveryConfig, FieldMask updateMask) + *

  • updateDiscoveryConfig(String name, DiscoveryConfig discoveryConfig, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateDiscoveryConfigCallable() + *
  • updateDiscoveryConfigCallable() *

*
GetDiscoveryConfig

GetDiscoveryConfig

Gets a discovery configuration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDiscoveryConfig(GetDiscoveryConfigRequest request) + *
  • getDiscoveryConfig(GetDiscoveryConfigRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDiscoveryConfig(DiscoveryConfigName name) - *
  • getDiscoveryConfig(String name) + *
  • getDiscoveryConfig(DiscoveryConfigName name) + *

  • getDiscoveryConfig(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDiscoveryConfigCallable() + *
  • getDiscoveryConfigCallable() *

*
ListDiscoveryConfigs

ListDiscoveryConfigs

Lists discovery configurations.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDiscoveryConfigs(ListDiscoveryConfigsRequest request) + *
  • listDiscoveryConfigs(ListDiscoveryConfigsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDiscoveryConfigs(LocationName parent) - *
  • listDiscoveryConfigs(String parent) + *
  • listDiscoveryConfigs(LocationName parent) + *

  • listDiscoveryConfigs(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDiscoveryConfigsPagedCallable() - *
  • listDiscoveryConfigsCallable() + *
  • listDiscoveryConfigsPagedCallable() + *

  • listDiscoveryConfigsCallable() *

*
DeleteDiscoveryConfig

DeleteDiscoveryConfig

Deletes a discovery configuration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteDiscoveryConfig(DeleteDiscoveryConfigRequest request) + *
  • deleteDiscoveryConfig(DeleteDiscoveryConfigRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteDiscoveryConfig(DiscoveryConfigName name) - *
  • deleteDiscoveryConfig(String name) + *
  • deleteDiscoveryConfig(DiscoveryConfigName name) + *

  • deleteDiscoveryConfig(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteDiscoveryConfigCallable() + *
  • deleteDiscoveryConfigCallable() *

*
CreateDlpJob

CreateDlpJob

Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. *

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createDlpJob(CreateDlpJobRequest request) + *
  • createDlpJob(CreateDlpJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createDlpJob(LocationName parent, InspectJobConfig inspectJob) - *
  • createDlpJob(LocationName parent, RiskAnalysisJobConfig riskJob) - *
  • createDlpJob(ProjectName parent, InspectJobConfig inspectJob) - *
  • createDlpJob(ProjectName parent, RiskAnalysisJobConfig riskJob) - *
  • createDlpJob(String parent, InspectJobConfig inspectJob) - *
  • createDlpJob(String parent, RiskAnalysisJobConfig riskJob) + *
  • createDlpJob(LocationName parent, InspectJobConfig inspectJob) + *

  • createDlpJob(LocationName parent, RiskAnalysisJobConfig riskJob) + *

  • createDlpJob(ProjectName parent, InspectJobConfig inspectJob) + *

  • createDlpJob(ProjectName parent, RiskAnalysisJobConfig riskJob) + *

  • createDlpJob(String parent, InspectJobConfig inspectJob) + *

  • createDlpJob(String parent, RiskAnalysisJobConfig riskJob) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createDlpJobCallable() + *
  • createDlpJobCallable() *

*
ListDlpJobs

ListDlpJobs

Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDlpJobs(ListDlpJobsRequest request) + *
  • listDlpJobs(ListDlpJobsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDlpJobs(LocationName parent) - *
  • listDlpJobs(ProjectName parent) - *
  • listDlpJobs(String parent) + *
  • listDlpJobs(LocationName parent) + *

  • listDlpJobs(ProjectName parent) + *

  • listDlpJobs(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDlpJobsPagedCallable() - *
  • listDlpJobsCallable() + *
  • listDlpJobsPagedCallable() + *

  • listDlpJobsCallable() *

*
GetDlpJob

GetDlpJob

Gets the latest state of a long-running DlpJob. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDlpJob(GetDlpJobRequest request) + *
  • getDlpJob(GetDlpJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDlpJob(DlpJobName name) - *
  • getDlpJob(String name) + *
  • getDlpJob(DlpJobName name) + *

  • getDlpJob(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDlpJobCallable() + *
  • getDlpJobCallable() *

*
DeleteDlpJob

DeleteDlpJob

Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteDlpJob(DeleteDlpJobRequest request) + *
  • deleteDlpJob(DeleteDlpJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteDlpJob(DlpJobName name) - *
  • deleteDlpJob(String name) + *
  • deleteDlpJob(DlpJobName name) + *

  • deleteDlpJob(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteDlpJobCallable() + *
  • deleteDlpJobCallable() *

*
CancelDlpJob

CancelDlpJob

Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • cancelDlpJob(CancelDlpJobRequest request) + *
  • cancelDlpJob(CancelDlpJobRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • cancelDlpJobCallable() + *
  • cancelDlpJobCallable() *

*
CreateStoredInfoType

CreateStoredInfoType

Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createStoredInfoType(CreateStoredInfoTypeRequest request) + *
  • createStoredInfoType(CreateStoredInfoTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createStoredInfoType(LocationName parent, StoredInfoTypeConfig config) - *
  • createStoredInfoType(OrganizationLocationName parent, StoredInfoTypeConfig config) - *
  • createStoredInfoType(OrganizationName parent, StoredInfoTypeConfig config) - *
  • createStoredInfoType(ProjectName parent, StoredInfoTypeConfig config) - *
  • createStoredInfoType(String parent, StoredInfoTypeConfig config) + *
  • createStoredInfoType(LocationName parent, StoredInfoTypeConfig config) + *

  • createStoredInfoType(OrganizationLocationName parent, StoredInfoTypeConfig config) + *

  • createStoredInfoType(OrganizationName parent, StoredInfoTypeConfig config) + *

  • createStoredInfoType(ProjectName parent, StoredInfoTypeConfig config) + *

  • createStoredInfoType(String parent, StoredInfoTypeConfig config) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createStoredInfoTypeCallable() + *
  • createStoredInfoTypeCallable() *

*
UpdateStoredInfoType

UpdateStoredInfoType

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateStoredInfoType(UpdateStoredInfoTypeRequest request) + *
  • updateStoredInfoType(UpdateStoredInfoTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateStoredInfoType(StoredInfoTypeName name, StoredInfoTypeConfig config, FieldMask updateMask) - *
  • updateStoredInfoType(String name, StoredInfoTypeConfig config, FieldMask updateMask) + *
  • updateStoredInfoType(StoredInfoTypeName name, StoredInfoTypeConfig config, FieldMask updateMask) + *

  • updateStoredInfoType(String name, StoredInfoTypeConfig config, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateStoredInfoTypeCallable() + *
  • updateStoredInfoTypeCallable() *

*
GetStoredInfoType

GetStoredInfoType

Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getStoredInfoType(GetStoredInfoTypeRequest request) + *
  • getStoredInfoType(GetStoredInfoTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getStoredInfoType(StoredInfoTypeName name) - *
  • getStoredInfoType(String name) + *
  • getStoredInfoType(StoredInfoTypeName name) + *

  • getStoredInfoType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getStoredInfoTypeCallable() + *
  • getStoredInfoTypeCallable() *

*
ListStoredInfoTypes

ListStoredInfoTypes

Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listStoredInfoTypes(ListStoredInfoTypesRequest request) + *
  • listStoredInfoTypes(ListStoredInfoTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listStoredInfoTypes(LocationName parent) - *
  • listStoredInfoTypes(OrganizationLocationName parent) - *
  • listStoredInfoTypes(OrganizationName parent) - *
  • listStoredInfoTypes(ProjectName parent) - *
  • listStoredInfoTypes(String parent) + *
  • listStoredInfoTypes(LocationName parent) + *

  • listStoredInfoTypes(OrganizationLocationName parent) + *

  • listStoredInfoTypes(OrganizationName parent) + *

  • listStoredInfoTypes(ProjectName parent) + *

  • listStoredInfoTypes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listStoredInfoTypesPagedCallable() - *
  • listStoredInfoTypesCallable() + *
  • listStoredInfoTypesPagedCallable() + *

  • listStoredInfoTypesCallable() *

*
DeleteStoredInfoType

DeleteStoredInfoType

Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteStoredInfoType(DeleteStoredInfoTypeRequest request) + *
  • deleteStoredInfoType(DeleteStoredInfoTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteStoredInfoType(StoredInfoTypeName name) - *
  • deleteStoredInfoType(String name) + *
  • deleteStoredInfoType(StoredInfoTypeName name) + *

  • deleteStoredInfoType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteStoredInfoTypeCallable() + *
  • deleteStoredInfoTypeCallable() *

*
HybridInspectDlpJob

HybridInspectDlpJob

Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • hybridInspectDlpJob(HybridInspectDlpJobRequest request) + *
  • hybridInspectDlpJob(HybridInspectDlpJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • hybridInspectDlpJob(DlpJobName name) - *
  • hybridInspectDlpJob(String name) + *
  • hybridInspectDlpJob(DlpJobName name) + *

  • hybridInspectDlpJob(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • hybridInspectDlpJobCallable() + *
  • hybridInspectDlpJobCallable() *

*
FinishDlpJob

FinishDlpJob

Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled actions that have not yet run.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • finishDlpJob(FinishDlpJobRequest request) + *
  • finishDlpJob(FinishDlpJobRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • finishDlpJobCallable() + *
  • finishDlpJobCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java index 952bcaac18aa..15748570893d 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java @@ -851,6 +851,15 @@ public DlpServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -1307,7 +1316,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1320,7 +1328,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1782,6 +1789,15 @@ public UnaryCallSettings.Builder finishDlpJobSetting return finishDlpJobSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DlpServiceStubSettings build() throws IOException { return new DlpServiceStubSettings(this); diff --git a/java-dms/README.md b/java-dms/README.md index 60ed341dd21a..0412fcbc4a8b 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.32.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java index 97035c9363a2..7a99e79bf402 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java @@ -63,734 +63,735 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListMigrationJobs

ListMigrationJobs

Lists migration jobs in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listMigrationJobs(ListMigrationJobsRequest request) + *
  • listMigrationJobs(ListMigrationJobsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listMigrationJobs(LocationName parent) - *
  • listMigrationJobs(String parent) + *
  • listMigrationJobs(LocationName parent) + *

  • listMigrationJobs(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listMigrationJobsPagedCallable() - *
  • listMigrationJobsCallable() + *
  • listMigrationJobsPagedCallable() + *

  • listMigrationJobsCallable() *

*
GetMigrationJob

GetMigrationJob

Gets details of a single migration job.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getMigrationJob(GetMigrationJobRequest request) + *
  • getMigrationJob(GetMigrationJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getMigrationJob(MigrationJobName name) - *
  • getMigrationJob(String name) + *
  • getMigrationJob(MigrationJobName name) + *

  • getMigrationJob(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getMigrationJobCallable() + *
  • getMigrationJobCallable() *

*
CreateMigrationJob

CreateMigrationJob

Creates a new migration job in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createMigrationJobAsync(CreateMigrationJobRequest request) + *
  • createMigrationJobAsync(CreateMigrationJobRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createMigrationJobAsync(LocationName parent, MigrationJob migrationJob, String migrationJobId) - *
  • createMigrationJobAsync(String parent, MigrationJob migrationJob, String migrationJobId) + *
  • createMigrationJobAsync(LocationName parent, MigrationJob migrationJob, String migrationJobId) + *

  • createMigrationJobAsync(String parent, MigrationJob migrationJob, String migrationJobId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createMigrationJobOperationCallable() - *
  • createMigrationJobCallable() + *
  • createMigrationJobOperationCallable() + *

  • createMigrationJobCallable() *

*
UpdateMigrationJob

UpdateMigrationJob

Updates the parameters of a single migration job.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateMigrationJobAsync(UpdateMigrationJobRequest request) + *
  • updateMigrationJobAsync(UpdateMigrationJobRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateMigrationJobAsync(MigrationJob migrationJob, FieldMask updateMask) + *
  • updateMigrationJobAsync(MigrationJob migrationJob, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateMigrationJobOperationCallable() - *
  • updateMigrationJobCallable() + *
  • updateMigrationJobOperationCallable() + *

  • updateMigrationJobCallable() *

*
DeleteMigrationJob

DeleteMigrationJob

Deletes a single migration job.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteMigrationJobAsync(DeleteMigrationJobRequest request) + *
  • deleteMigrationJobAsync(DeleteMigrationJobRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteMigrationJobAsync(MigrationJobName name) - *
  • deleteMigrationJobAsync(String name) + *
  • deleteMigrationJobAsync(MigrationJobName name) + *

  • deleteMigrationJobAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteMigrationJobOperationCallable() - *
  • deleteMigrationJobCallable() + *
  • deleteMigrationJobOperationCallable() + *

  • deleteMigrationJobCallable() *

*
StartMigrationJob

StartMigrationJob

Start an already created migration job.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • startMigrationJobAsync(StartMigrationJobRequest request) + *
  • startMigrationJobAsync(StartMigrationJobRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • startMigrationJobOperationCallable() - *
  • startMigrationJobCallable() + *
  • startMigrationJobOperationCallable() + *

  • startMigrationJobCallable() *

*
StopMigrationJob

StopMigrationJob

Stops a running migration job.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • stopMigrationJobAsync(StopMigrationJobRequest request) + *
  • stopMigrationJobAsync(StopMigrationJobRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • stopMigrationJobOperationCallable() - *
  • stopMigrationJobCallable() + *
  • stopMigrationJobOperationCallable() + *

  • stopMigrationJobCallable() *

*
ResumeMigrationJob

ResumeMigrationJob

Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • resumeMigrationJobAsync(ResumeMigrationJobRequest request) + *
  • resumeMigrationJobAsync(ResumeMigrationJobRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • resumeMigrationJobOperationCallable() - *
  • resumeMigrationJobCallable() + *
  • resumeMigrationJobOperationCallable() + *

  • resumeMigrationJobCallable() *

*
PromoteMigrationJob

PromoteMigrationJob

Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • promoteMigrationJobAsync(PromoteMigrationJobRequest request) + *
  • promoteMigrationJobAsync(PromoteMigrationJobRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • promoteMigrationJobOperationCallable() - *
  • promoteMigrationJobCallable() + *
  • promoteMigrationJobOperationCallable() + *

  • promoteMigrationJobCallable() *

*
VerifyMigrationJob

VerifyMigrationJob

Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • verifyMigrationJobAsync(VerifyMigrationJobRequest request) + *
  • verifyMigrationJobAsync(VerifyMigrationJobRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • verifyMigrationJobOperationCallable() - *
  • verifyMigrationJobCallable() + *
  • verifyMigrationJobOperationCallable() + *

  • verifyMigrationJobCallable() *

*
RestartMigrationJob

RestartMigrationJob

Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • restartMigrationJobAsync(RestartMigrationJobRequest request) + *
  • restartMigrationJobAsync(RestartMigrationJobRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • restartMigrationJobOperationCallable() - *
  • restartMigrationJobCallable() + *
  • restartMigrationJobOperationCallable() + *

  • restartMigrationJobCallable() *

*
GenerateSshScript

GenerateSshScript

Generate a SSH configuration script to configure the reverse SSH connectivity.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateSshScript(GenerateSshScriptRequest request) + *
  • generateSshScript(GenerateSshScriptRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateSshScriptCallable() + *
  • generateSshScriptCallable() *

*
GenerateTcpProxyScript

GenerateTcpProxyScript

Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateTcpProxyScript(GenerateTcpProxyScriptRequest request) + *
  • generateTcpProxyScript(GenerateTcpProxyScriptRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateTcpProxyScriptCallable() + *
  • generateTcpProxyScriptCallable() *

*
ListConnectionProfiles

ListConnectionProfiles

Retrieves a list of all connection profiles in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listConnectionProfiles(ListConnectionProfilesRequest request) + *
  • listConnectionProfiles(ListConnectionProfilesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listConnectionProfiles(LocationName parent) - *
  • listConnectionProfiles(String parent) + *
  • listConnectionProfiles(LocationName parent) + *

  • listConnectionProfiles(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listConnectionProfilesPagedCallable() - *
  • listConnectionProfilesCallable() + *
  • listConnectionProfilesPagedCallable() + *

  • listConnectionProfilesCallable() *

*
GetConnectionProfile

GetConnectionProfile

Gets details of a single connection profile.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getConnectionProfile(GetConnectionProfileRequest request) + *
  • getConnectionProfile(GetConnectionProfileRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getConnectionProfile(ConnectionProfileName name) - *
  • getConnectionProfile(String name) + *
  • getConnectionProfile(ConnectionProfileName name) + *

  • getConnectionProfile(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getConnectionProfileCallable() + *
  • getConnectionProfileCallable() *

*
CreateConnectionProfile

CreateConnectionProfile

Creates a new connection profile in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createConnectionProfileAsync(CreateConnectionProfileRequest request) + *
  • createConnectionProfileAsync(CreateConnectionProfileRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createConnectionProfileAsync(LocationName parent, ConnectionProfile connectionProfile, String connectionProfileId) - *
  • createConnectionProfileAsync(String parent, ConnectionProfile connectionProfile, String connectionProfileId) + *
  • createConnectionProfileAsync(LocationName parent, ConnectionProfile connectionProfile, String connectionProfileId) + *

  • createConnectionProfileAsync(String parent, ConnectionProfile connectionProfile, String connectionProfileId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createConnectionProfileOperationCallable() - *
  • createConnectionProfileCallable() + *
  • createConnectionProfileOperationCallable() + *

  • createConnectionProfileCallable() *

*
UpdateConnectionProfile

UpdateConnectionProfile

Update the configuration of a single connection profile.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateConnectionProfileAsync(UpdateConnectionProfileRequest request) + *
  • updateConnectionProfileAsync(UpdateConnectionProfileRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateConnectionProfileAsync(ConnectionProfile connectionProfile, FieldMask updateMask) + *
  • updateConnectionProfileAsync(ConnectionProfile connectionProfile, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateConnectionProfileOperationCallable() - *
  • updateConnectionProfileCallable() + *
  • updateConnectionProfileOperationCallable() + *

  • updateConnectionProfileCallable() *

*
DeleteConnectionProfile

DeleteConnectionProfile

Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteConnectionProfileAsync(DeleteConnectionProfileRequest request) + *
  • deleteConnectionProfileAsync(DeleteConnectionProfileRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteConnectionProfileAsync(ConnectionProfileName name) - *
  • deleteConnectionProfileAsync(String name) + *
  • deleteConnectionProfileAsync(ConnectionProfileName name) + *

  • deleteConnectionProfileAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteConnectionProfileOperationCallable() - *
  • deleteConnectionProfileCallable() + *
  • deleteConnectionProfileOperationCallable() + *

  • deleteConnectionProfileCallable() *

*
CreatePrivateConnection

CreatePrivateConnection

Creates a new private connection in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createPrivateConnectionAsync(CreatePrivateConnectionRequest request) + *
  • createPrivateConnectionAsync(CreatePrivateConnectionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createPrivateConnectionAsync(LocationName parent, PrivateConnection privateConnection, String privateConnectionId) - *
  • createPrivateConnectionAsync(String parent, PrivateConnection privateConnection, String privateConnectionId) + *
  • createPrivateConnectionAsync(LocationName parent, PrivateConnection privateConnection, String privateConnectionId) + *

  • createPrivateConnectionAsync(String parent, PrivateConnection privateConnection, String privateConnectionId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createPrivateConnectionOperationCallable() - *
  • createPrivateConnectionCallable() + *
  • createPrivateConnectionOperationCallable() + *

  • createPrivateConnectionCallable() *

*
GetPrivateConnection

GetPrivateConnection

Gets details of a single private connection.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getPrivateConnection(GetPrivateConnectionRequest request) + *
  • getPrivateConnection(GetPrivateConnectionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getPrivateConnection(PrivateConnectionName name) - *
  • getPrivateConnection(String name) + *
  • getPrivateConnection(PrivateConnectionName name) + *

  • getPrivateConnection(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getPrivateConnectionCallable() + *
  • getPrivateConnectionCallable() *

*
ListPrivateConnections

ListPrivateConnections

Retrieves a list of private connections in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listPrivateConnections(ListPrivateConnectionsRequest request) + *
  • listPrivateConnections(ListPrivateConnectionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listPrivateConnections(LocationName parent) - *
  • listPrivateConnections(String parent) + *
  • listPrivateConnections(LocationName parent) + *

  • listPrivateConnections(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listPrivateConnectionsPagedCallable() - *
  • listPrivateConnectionsCallable() + *
  • listPrivateConnectionsPagedCallable() + *

  • listPrivateConnectionsCallable() *

*
DeletePrivateConnection

DeletePrivateConnection

Deletes a single Database Migration Service private connection.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deletePrivateConnectionAsync(DeletePrivateConnectionRequest request) + *
  • deletePrivateConnectionAsync(DeletePrivateConnectionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deletePrivateConnectionAsync(PrivateConnectionName name) - *
  • deletePrivateConnectionAsync(String name) + *
  • deletePrivateConnectionAsync(PrivateConnectionName name) + *

  • deletePrivateConnectionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deletePrivateConnectionOperationCallable() - *
  • deletePrivateConnectionCallable() + *
  • deletePrivateConnectionOperationCallable() + *

  • deletePrivateConnectionCallable() *

*
GetConversionWorkspace

GetConversionWorkspace

Gets details of a single conversion workspace.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getConversionWorkspace(GetConversionWorkspaceRequest request) + *
  • getConversionWorkspace(GetConversionWorkspaceRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getConversionWorkspace(ConversionWorkspaceName name) - *
  • getConversionWorkspace(String name) + *
  • getConversionWorkspace(ConversionWorkspaceName name) + *

  • getConversionWorkspace(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getConversionWorkspaceCallable() + *
  • getConversionWorkspaceCallable() *

*
ListConversionWorkspaces

ListConversionWorkspaces

Lists conversion workspaces in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listConversionWorkspaces(ListConversionWorkspacesRequest request) + *
  • listConversionWorkspaces(ListConversionWorkspacesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listConversionWorkspaces(LocationName parent) - *
  • listConversionWorkspaces(String parent) + *
  • listConversionWorkspaces(LocationName parent) + *

  • listConversionWorkspaces(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listConversionWorkspacesPagedCallable() - *
  • listConversionWorkspacesCallable() + *
  • listConversionWorkspacesPagedCallable() + *

  • listConversionWorkspacesCallable() *

*
CreateConversionWorkspace

CreateConversionWorkspace

Creates a new conversion workspace in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createConversionWorkspaceAsync(CreateConversionWorkspaceRequest request) + *
  • createConversionWorkspaceAsync(CreateConversionWorkspaceRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createConversionWorkspaceAsync(LocationName parent, ConversionWorkspace conversionWorkspace, String conversionWorkspaceId) - *
  • createConversionWorkspaceAsync(String parent, ConversionWorkspace conversionWorkspace, String conversionWorkspaceId) + *
  • createConversionWorkspaceAsync(LocationName parent, ConversionWorkspace conversionWorkspace, String conversionWorkspaceId) + *

  • createConversionWorkspaceAsync(String parent, ConversionWorkspace conversionWorkspace, String conversionWorkspaceId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createConversionWorkspaceOperationCallable() - *
  • createConversionWorkspaceCallable() + *
  • createConversionWorkspaceOperationCallable() + *

  • createConversionWorkspaceCallable() *

*
UpdateConversionWorkspace

UpdateConversionWorkspace

Updates the parameters of a single conversion workspace.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateConversionWorkspaceAsync(UpdateConversionWorkspaceRequest request) + *
  • updateConversionWorkspaceAsync(UpdateConversionWorkspaceRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateConversionWorkspaceAsync(ConversionWorkspace conversionWorkspace, FieldMask updateMask) + *
  • updateConversionWorkspaceAsync(ConversionWorkspace conversionWorkspace, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateConversionWorkspaceOperationCallable() - *
  • updateConversionWorkspaceCallable() + *
  • updateConversionWorkspaceOperationCallable() + *

  • updateConversionWorkspaceCallable() *

*
DeleteConversionWorkspace

DeleteConversionWorkspace

Deletes a single conversion workspace.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteConversionWorkspaceAsync(DeleteConversionWorkspaceRequest request) + *
  • deleteConversionWorkspaceAsync(DeleteConversionWorkspaceRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteConversionWorkspaceAsync(ConversionWorkspaceName name) - *
  • deleteConversionWorkspaceAsync(String name) + *
  • deleteConversionWorkspaceAsync(ConversionWorkspaceName name) + *

  • deleteConversionWorkspaceAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteConversionWorkspaceOperationCallable() - *
  • deleteConversionWorkspaceCallable() + *
  • deleteConversionWorkspaceOperationCallable() + *

  • deleteConversionWorkspaceCallable() *

*
CreateMappingRule

CreateMappingRule

Creates a new mapping rule for a given conversion workspace.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createMappingRule(CreateMappingRuleRequest request) + *
  • createMappingRule(CreateMappingRuleRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createMappingRule(ConversionWorkspaceName parent, MappingRule mappingRule, String mappingRuleId) - *
  • createMappingRule(String parent, MappingRule mappingRule, String mappingRuleId) + *
  • createMappingRule(ConversionWorkspaceName parent, MappingRule mappingRule, String mappingRuleId) + *

  • createMappingRule(String parent, MappingRule mappingRule, String mappingRuleId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createMappingRuleCallable() + *
  • createMappingRuleCallable() *

*
DeleteMappingRule

DeleteMappingRule

Deletes a single mapping rule.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteMappingRule(DeleteMappingRuleRequest request) + *
  • deleteMappingRule(DeleteMappingRuleRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteMappingRule(ConversionWorkspaceName name) - *
  • deleteMappingRule(String name) + *
  • deleteMappingRule(ConversionWorkspaceName name) + *

  • deleteMappingRule(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteMappingRuleCallable() + *
  • deleteMappingRuleCallable() *

*
ListMappingRules

ListMappingRules

Lists the mapping rules for a specific conversion workspace.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listMappingRules(ListMappingRulesRequest request) + *
  • listMappingRules(ListMappingRulesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listMappingRules(ConversionWorkspaceName parent) - *
  • listMappingRules(String parent) + *
  • listMappingRules(ConversionWorkspaceName parent) + *

  • listMappingRules(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listMappingRulesPagedCallable() - *
  • listMappingRulesCallable() + *
  • listMappingRulesPagedCallable() + *

  • listMappingRulesCallable() *

*
GetMappingRule

GetMappingRule

Gets the details of a mapping rule.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getMappingRule(GetMappingRuleRequest request) + *
  • getMappingRule(GetMappingRuleRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getMappingRule(MappingRuleName name) - *
  • getMappingRule(String name) + *
  • getMappingRule(MappingRuleName name) + *

  • getMappingRule(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getMappingRuleCallable() + *
  • getMappingRuleCallable() *

*
SeedConversionWorkspace

SeedConversionWorkspace

Imports a snapshot of the source database into the conversion workspace.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • seedConversionWorkspaceAsync(SeedConversionWorkspaceRequest request) + *
  • seedConversionWorkspaceAsync(SeedConversionWorkspaceRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • seedConversionWorkspaceOperationCallable() - *
  • seedConversionWorkspaceCallable() + *
  • seedConversionWorkspaceOperationCallable() + *

  • seedConversionWorkspaceCallable() *

*
ImportMappingRules

ImportMappingRules

Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importMappingRulesAsync(ImportMappingRulesRequest request) + *
  • importMappingRulesAsync(ImportMappingRulesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importMappingRulesOperationCallable() - *
  • importMappingRulesCallable() + *
  • importMappingRulesOperationCallable() + *

  • importMappingRulesCallable() *

*
ConvertConversionWorkspace

ConvertConversionWorkspace

Creates a draft tree schema for the destination database.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • convertConversionWorkspaceAsync(ConvertConversionWorkspaceRequest request) + *
  • convertConversionWorkspaceAsync(ConvertConversionWorkspaceRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • convertConversionWorkspaceOperationCallable() - *
  • convertConversionWorkspaceCallable() + *
  • convertConversionWorkspaceOperationCallable() + *

  • convertConversionWorkspaceCallable() *

*
CommitConversionWorkspace

CommitConversionWorkspace

Marks all the data in the conversion workspace as committed.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • commitConversionWorkspaceAsync(CommitConversionWorkspaceRequest request) + *
  • commitConversionWorkspaceAsync(CommitConversionWorkspaceRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • commitConversionWorkspaceOperationCallable() - *
  • commitConversionWorkspaceCallable() + *
  • commitConversionWorkspaceOperationCallable() + *

  • commitConversionWorkspaceCallable() *

*
RollbackConversionWorkspace

RollbackConversionWorkspace

Rolls back a conversion workspace to the last committed snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • rollbackConversionWorkspaceAsync(RollbackConversionWorkspaceRequest request) + *
  • rollbackConversionWorkspaceAsync(RollbackConversionWorkspaceRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • rollbackConversionWorkspaceOperationCallable() - *
  • rollbackConversionWorkspaceCallable() + *
  • rollbackConversionWorkspaceOperationCallable() + *

  • rollbackConversionWorkspaceCallable() *

*
ApplyConversionWorkspace

ApplyConversionWorkspace

Applies draft tree onto a specific destination database.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • applyConversionWorkspaceAsync(ApplyConversionWorkspaceRequest request) + *
  • applyConversionWorkspaceAsync(ApplyConversionWorkspaceRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • applyConversionWorkspaceOperationCallable() - *
  • applyConversionWorkspaceCallable() + *
  • applyConversionWorkspaceOperationCallable() + *

  • applyConversionWorkspaceCallable() *

*
DescribeDatabaseEntities

DescribeDatabaseEntities

Describes the database entities tree for a specific conversion workspace and a specific tree type. *

Database entities are not resources like conversion workspaces or mapping rules, and they can't be created, updated or deleted. Instead, they are simple data objects describing the structure of the client database.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • describeDatabaseEntities(DescribeDatabaseEntitiesRequest request) + *
  • describeDatabaseEntities(DescribeDatabaseEntitiesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • describeDatabaseEntitiesPagedCallable() - *
  • describeDatabaseEntitiesCallable() + *
  • describeDatabaseEntitiesPagedCallable() + *

  • describeDatabaseEntitiesCallable() *

*
SearchBackgroundJobs

SearchBackgroundJobs

Searches/lists the background jobs for a specific conversion workspace. *

The background jobs are not resources like conversion workspaces or mapping rules, and they can't be created, updated or deleted. Instead, they are a way to expose the data plane jobs log.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • searchBackgroundJobs(SearchBackgroundJobsRequest request) + *
  • searchBackgroundJobs(SearchBackgroundJobsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchBackgroundJobsCallable() + *
  • searchBackgroundJobsCallable() *

*
DescribeConversionWorkspaceRevisions

DescribeConversionWorkspaceRevisions

Retrieves a list of committed revisions of a specific conversion workspace.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • describeConversionWorkspaceRevisions(DescribeConversionWorkspaceRevisionsRequest request) + *
  • describeConversionWorkspaceRevisions(DescribeConversionWorkspaceRevisionsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • describeConversionWorkspaceRevisionsCallable() + *
  • describeConversionWorkspaceRevisionsCallable() *

*
FetchStaticIps

FetchStaticIps

Fetches a set of static IP addresses that need to be allowlisted by the customer when using the static-IP connectivity method.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • fetchStaticIps(FetchStaticIpsRequest request) + *
  • fetchStaticIps(FetchStaticIpsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • fetchStaticIps(LocationName name) - *
  • fetchStaticIps(String name) + *
  • fetchStaticIps(LocationName name) + *

  • fetchStaticIps(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • fetchStaticIpsPagedCallable() - *
  • fetchStaticIpsCallable() + *
  • fetchStaticIpsPagedCallable() + *

  • fetchStaticIpsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java index 74264dd126b9..b836249592aa 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java @@ -1173,6 +1173,15 @@ public DataMigrationServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -1812,7 +1821,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -3061,6 +3069,15 @@ public UnaryCallSettings.Builder getMappingR return fetchStaticIpsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DataMigrationServiceStubSettings build() throws IOException { return new DataMigrationServiceStubSettings(this); diff --git a/java-document-ai/README.md b/java-document-ai/README.md index 1c31752e6e86..cce38e8ed3c8 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-document-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java index aa85ab8c11e3..2fc3c5b36184 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java @@ -71,458 +71,459 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ProcessDocument

ProcessDocument

Processes a single document.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • processDocument(ProcessRequest request) + *
  • processDocument(ProcessRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • processDocument(ResourceName name) - *
  • processDocument(String name) + *
  • processDocument(ResourceName name) + *

  • processDocument(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • processDocumentCallable() + *
  • processDocumentCallable() *

*
BatchProcessDocuments

BatchProcessDocuments

LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchProcessDocumentsAsync(BatchProcessRequest request) + *
  • batchProcessDocumentsAsync(BatchProcessRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchProcessDocumentsAsync(ResourceName name) - *
  • batchProcessDocumentsAsync(String name) + *
  • batchProcessDocumentsAsync(ResourceName name) + *

  • batchProcessDocumentsAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchProcessDocumentsOperationCallable() - *
  • batchProcessDocumentsCallable() + *
  • batchProcessDocumentsOperationCallable() + *

  • batchProcessDocumentsCallable() *

*
FetchProcessorTypes

FetchProcessorTypes

Fetches processor types. Note that we don't use [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes] here, because it isn't paginated.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • fetchProcessorTypes(FetchProcessorTypesRequest request) + *
  • fetchProcessorTypes(FetchProcessorTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • fetchProcessorTypes(LocationName parent) - *
  • fetchProcessorTypes(String parent) + *
  • fetchProcessorTypes(LocationName parent) + *

  • fetchProcessorTypes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • fetchProcessorTypesCallable() + *
  • fetchProcessorTypesCallable() *

*
ListProcessorTypes

ListProcessorTypes

Lists the processor types that exist.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listProcessorTypes(ListProcessorTypesRequest request) + *
  • listProcessorTypes(ListProcessorTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listProcessorTypes(LocationName parent) - *
  • listProcessorTypes(String parent) + *
  • listProcessorTypes(LocationName parent) + *

  • listProcessorTypes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listProcessorTypesPagedCallable() - *
  • listProcessorTypesCallable() + *
  • listProcessorTypesPagedCallable() + *

  • listProcessorTypesCallable() *

*
GetProcessorType

GetProcessorType

Gets a processor type detail.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getProcessorType(GetProcessorTypeRequest request) + *
  • getProcessorType(GetProcessorTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getProcessorType(ProcessorTypeName name) - *
  • getProcessorType(String name) + *
  • getProcessorType(ProcessorTypeName name) + *

  • getProcessorType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getProcessorTypeCallable() + *
  • getProcessorTypeCallable() *

*
ListProcessors

ListProcessors

Lists all processors which belong to this project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listProcessors(ListProcessorsRequest request) + *
  • listProcessors(ListProcessorsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listProcessors(LocationName parent) - *
  • listProcessors(String parent) + *
  • listProcessors(LocationName parent) + *

  • listProcessors(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listProcessorsPagedCallable() - *
  • listProcessorsCallable() + *
  • listProcessorsPagedCallable() + *

  • listProcessorsCallable() *

*
GetProcessor

GetProcessor

Gets a processor detail.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getProcessor(GetProcessorRequest request) + *
  • getProcessor(GetProcessorRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getProcessor(ProcessorName name) - *
  • getProcessor(String name) + *
  • getProcessor(ProcessorName name) + *

  • getProcessor(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getProcessorCallable() + *
  • getProcessorCallable() *

*
TrainProcessorVersion

TrainProcessorVersion

Trains a new processor version. Operation metadata is returned as [TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • trainProcessorVersionAsync(TrainProcessorVersionRequest request) + *
  • trainProcessorVersionAsync(TrainProcessorVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • trainProcessorVersionAsync(ProcessorName parent, ProcessorVersion processorVersion) - *
  • trainProcessorVersionAsync(String parent, ProcessorVersion processorVersion) + *
  • trainProcessorVersionAsync(ProcessorName parent, ProcessorVersion processorVersion) + *

  • trainProcessorVersionAsync(String parent, ProcessorVersion processorVersion) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • trainProcessorVersionOperationCallable() - *
  • trainProcessorVersionCallable() + *
  • trainProcessorVersionOperationCallable() + *

  • trainProcessorVersionCallable() *

*
GetProcessorVersion

GetProcessorVersion

Gets a processor version detail.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getProcessorVersion(GetProcessorVersionRequest request) + *
  • getProcessorVersion(GetProcessorVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getProcessorVersion(ProcessorVersionName name) - *
  • getProcessorVersion(String name) + *
  • getProcessorVersion(ProcessorVersionName name) + *

  • getProcessorVersion(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getProcessorVersionCallable() + *
  • getProcessorVersionCallable() *

*
ListProcessorVersions

ListProcessorVersions

Lists all versions of a processor.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listProcessorVersions(ListProcessorVersionsRequest request) + *
  • listProcessorVersions(ListProcessorVersionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listProcessorVersions(ProcessorName parent) - *
  • listProcessorVersions(String parent) + *
  • listProcessorVersions(ProcessorName parent) + *

  • listProcessorVersions(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listProcessorVersionsPagedCallable() - *
  • listProcessorVersionsCallable() + *
  • listProcessorVersionsPagedCallable() + *

  • listProcessorVersionsCallable() *

*
DeleteProcessorVersion

DeleteProcessorVersion

Deletes the processor version, all artifacts under the processor version will be deleted.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteProcessorVersionAsync(DeleteProcessorVersionRequest request) + *
  • deleteProcessorVersionAsync(DeleteProcessorVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteProcessorVersionAsync(ProcessorVersionName name) - *
  • deleteProcessorVersionAsync(String name) + *
  • deleteProcessorVersionAsync(ProcessorVersionName name) + *

  • deleteProcessorVersionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteProcessorVersionOperationCallable() - *
  • deleteProcessorVersionCallable() + *
  • deleteProcessorVersionOperationCallable() + *

  • deleteProcessorVersionCallable() *

*
DeployProcessorVersion

DeployProcessorVersion

Deploys the processor version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deployProcessorVersionAsync(DeployProcessorVersionRequest request) + *
  • deployProcessorVersionAsync(DeployProcessorVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deployProcessorVersionAsync(ProcessorVersionName name) - *
  • deployProcessorVersionAsync(String name) + *
  • deployProcessorVersionAsync(ProcessorVersionName name) + *

  • deployProcessorVersionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deployProcessorVersionOperationCallable() - *
  • deployProcessorVersionCallable() + *
  • deployProcessorVersionOperationCallable() + *

  • deployProcessorVersionCallable() *

*
UndeployProcessorVersion

UndeployProcessorVersion

Undeploys the processor version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • undeployProcessorVersionAsync(UndeployProcessorVersionRequest request) + *
  • undeployProcessorVersionAsync(UndeployProcessorVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • undeployProcessorVersionAsync(ProcessorVersionName name) - *
  • undeployProcessorVersionAsync(String name) + *
  • undeployProcessorVersionAsync(ProcessorVersionName name) + *

  • undeployProcessorVersionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • undeployProcessorVersionOperationCallable() - *
  • undeployProcessorVersionCallable() + *
  • undeployProcessorVersionOperationCallable() + *

  • undeployProcessorVersionCallable() *

*
CreateProcessor

CreateProcessor

Creates a processor from the [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The processor will be at `ENABLED` state by default after its creation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createProcessor(CreateProcessorRequest request) + *
  • createProcessor(CreateProcessorRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createProcessor(LocationName parent, Processor processor) - *
  • createProcessor(String parent, Processor processor) + *
  • createProcessor(LocationName parent, Processor processor) + *

  • createProcessor(String parent, Processor processor) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createProcessorCallable() + *
  • createProcessorCallable() *

*
DeleteProcessor

DeleteProcessor

Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteProcessorAsync(DeleteProcessorRequest request) + *
  • deleteProcessorAsync(DeleteProcessorRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteProcessorAsync(ProcessorName name) - *
  • deleteProcessorAsync(String name) + *
  • deleteProcessorAsync(ProcessorName name) + *

  • deleteProcessorAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteProcessorOperationCallable() - *
  • deleteProcessorCallable() + *
  • deleteProcessorOperationCallable() + *

  • deleteProcessorCallable() *

*
EnableProcessor

EnableProcessor

Enables a processor

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • enableProcessorAsync(EnableProcessorRequest request) + *
  • enableProcessorAsync(EnableProcessorRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • enableProcessorOperationCallable() - *
  • enableProcessorCallable() + *
  • enableProcessorOperationCallable() + *

  • enableProcessorCallable() *

*
DisableProcessor

DisableProcessor

Disables a processor

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • disableProcessorAsync(DisableProcessorRequest request) + *
  • disableProcessorAsync(DisableProcessorRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • disableProcessorOperationCallable() - *
  • disableProcessorCallable() + *
  • disableProcessorOperationCallable() + *

  • disableProcessorCallable() *

*
SetDefaultProcessorVersion

SetDefaultProcessorVersion

Set the default (active) version of a [Processor][google.cloud.documentai.v1.Processor] that will be used in [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] and [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setDefaultProcessorVersionAsync(SetDefaultProcessorVersionRequest request) + *
  • setDefaultProcessorVersionAsync(SetDefaultProcessorVersionRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setDefaultProcessorVersionOperationCallable() - *
  • setDefaultProcessorVersionCallable() + *
  • setDefaultProcessorVersionOperationCallable() + *

  • setDefaultProcessorVersionCallable() *

*
ReviewDocument

ReviewDocument

Send a document for Human Review. The input document should be processed by the specified processor.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • reviewDocumentAsync(ReviewDocumentRequest request) + *
  • reviewDocumentAsync(ReviewDocumentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • reviewDocumentAsync(HumanReviewConfigName humanReviewConfig) - *
  • reviewDocumentAsync(String humanReviewConfig) + *
  • reviewDocumentAsync(HumanReviewConfigName humanReviewConfig) + *

  • reviewDocumentAsync(String humanReviewConfig) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • reviewDocumentOperationCallable() - *
  • reviewDocumentCallable() + *
  • reviewDocumentOperationCallable() + *

  • reviewDocumentCallable() *

*
EvaluateProcessorVersion

EvaluateProcessorVersion

Evaluates a ProcessorVersion against annotated documents, producing an Evaluation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • evaluateProcessorVersionAsync(EvaluateProcessorVersionRequest request) + *
  • evaluateProcessorVersionAsync(EvaluateProcessorVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • evaluateProcessorVersionAsync(ProcessorVersionName processorVersion) - *
  • evaluateProcessorVersionAsync(String processorVersion) + *
  • evaluateProcessorVersionAsync(ProcessorVersionName processorVersion) + *

  • evaluateProcessorVersionAsync(String processorVersion) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • evaluateProcessorVersionOperationCallable() - *
  • evaluateProcessorVersionCallable() + *
  • evaluateProcessorVersionOperationCallable() + *

  • evaluateProcessorVersionCallable() *

*
GetEvaluation

GetEvaluation

Retrieves a specific evaluation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEvaluation(GetEvaluationRequest request) + *
  • getEvaluation(GetEvaluationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getEvaluation(EvaluationName name) - *
  • getEvaluation(String name) + *
  • getEvaluation(EvaluationName name) + *

  • getEvaluation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEvaluationCallable() + *
  • getEvaluationCallable() *

*
ListEvaluations

ListEvaluations

Retrieves a set of evaluations for a given processor version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEvaluations(ListEvaluationsRequest request) + *
  • listEvaluations(ListEvaluationsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEvaluations(ProcessorVersionName parent) - *
  • listEvaluations(String parent) + *
  • listEvaluations(ProcessorVersionName parent) + *

  • listEvaluations(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listEvaluationsPagedCallable() - *
  • listEvaluationsCallable() + *
  • listEvaluationsPagedCallable() + *

  • listEvaluationsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java index 33623044c5c8..c5a7987844c1 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java @@ -778,6 +778,15 @@ public DocumentProcessorServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -1223,7 +1232,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1236,7 +1244,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1910,6 +1917,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DocumentProcessorServiceStubSettings build() throws IOException { return new DocumentProcessorServiceStubSettings(this); diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceClient.java index a723e09159b6..189569e5c9bd 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceClient.java @@ -58,27 +58,28 @@ * calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
BatchProcessDocuments

BatchProcessDocuments

LRO endpoint to batch process many documents.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchProcessDocumentsAsync(List requests) - *
  • batchProcessDocumentsAsync(BatchProcessDocumentsRequest request) + *
  • batchProcessDocumentsAsync(List<ProcessDocumentRequest> requests) + *

  • batchProcessDocumentsAsync(BatchProcessDocumentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchProcessDocumentsOperationCallable() - *
  • batchProcessDocumentsCallable() + *
  • batchProcessDocumentsOperationCallable() + *

  • batchProcessDocumentsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java index ad701a69c35e..ba2c3bc6254b 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java @@ -124,6 +124,15 @@ public DocumentUnderstandingServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -274,7 +283,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -345,6 +353,15 @@ public Builder applyToAllUnaryMethods( return batchProcessDocumentsOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DocumentUnderstandingServiceStubSettings build() throws IOException { return new DocumentUnderstandingServiceStubSettings(this); diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java index 384c31577c04..f97c25989cd6 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java @@ -79,70 +79,71 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
BatchProcessDocuments

BatchProcessDocuments

LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchProcessDocumentsAsync(List requests) - *
  • batchProcessDocumentsAsync(BatchProcessDocumentsRequest request) + *
  • batchProcessDocumentsAsync(List<ProcessDocumentRequest> requests) + *

  • batchProcessDocumentsAsync(BatchProcessDocumentsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchProcessDocumentsOperationCallable() - *
  • batchProcessDocumentsCallable() + *
  • batchProcessDocumentsOperationCallable() + *

  • batchProcessDocumentsCallable() *

*
ProcessDocument

ProcessDocument

Processes a single document.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • processDocument(ProcessDocumentRequest request) + *
  • processDocument(ProcessDocumentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • processDocumentCallable() + *
  • processDocumentCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java index 310471d8c7af..48bdf3c3a291 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java @@ -213,6 +213,15 @@ public DocumentUnderstandingServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -389,7 +398,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -492,6 +500,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DocumentUnderstandingServiceStubSettings build() throws IOException { return new DocumentUnderstandingServiceStubSettings(this); diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java index ff1156803f31..52b1467874eb 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java @@ -71,478 +71,479 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ProcessDocument

ProcessDocument

Processes a single document.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • processDocument(ProcessRequest request) + *
  • processDocument(ProcessRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • processDocument(ResourceName name) - *
  • processDocument(String name) + *
  • processDocument(ResourceName name) + *

  • processDocument(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • processDocumentCallable() + *
  • processDocumentCallable() *

*
BatchProcessDocuments

BatchProcessDocuments

LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchProcessDocumentsAsync(BatchProcessRequest request) + *
  • batchProcessDocumentsAsync(BatchProcessRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchProcessDocumentsAsync(ResourceName name) - *
  • batchProcessDocumentsAsync(String name) + *
  • batchProcessDocumentsAsync(ResourceName name) + *

  • batchProcessDocumentsAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchProcessDocumentsOperationCallable() - *
  • batchProcessDocumentsCallable() + *
  • batchProcessDocumentsOperationCallable() + *

  • batchProcessDocumentsCallable() *

*
FetchProcessorTypes

FetchProcessorTypes

Fetches processor types. Note that we don't use [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes] here, because it isn't paginated.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • fetchProcessorTypes(FetchProcessorTypesRequest request) + *
  • fetchProcessorTypes(FetchProcessorTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • fetchProcessorTypes(LocationName parent) - *
  • fetchProcessorTypes(String parent) + *
  • fetchProcessorTypes(LocationName parent) + *

  • fetchProcessorTypes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • fetchProcessorTypesCallable() + *
  • fetchProcessorTypesCallable() *

*
ListProcessorTypes

ListProcessorTypes

Lists the processor types that exist.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listProcessorTypes(ListProcessorTypesRequest request) + *
  • listProcessorTypes(ListProcessorTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listProcessorTypes(LocationName parent) - *
  • listProcessorTypes(String parent) + *
  • listProcessorTypes(LocationName parent) + *

  • listProcessorTypes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listProcessorTypesPagedCallable() - *
  • listProcessorTypesCallable() + *
  • listProcessorTypesPagedCallable() + *

  • listProcessorTypesCallable() *

*
GetProcessorType

GetProcessorType

Gets a processor type detail.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getProcessorType(GetProcessorTypeRequest request) + *
  • getProcessorType(GetProcessorTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getProcessorType(ProcessorTypeName name) - *
  • getProcessorType(String name) + *
  • getProcessorType(ProcessorTypeName name) + *

  • getProcessorType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getProcessorTypeCallable() + *
  • getProcessorTypeCallable() *

*
ListProcessors

ListProcessors

Lists all processors which belong to this project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listProcessors(ListProcessorsRequest request) + *
  • listProcessors(ListProcessorsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listProcessors(LocationName parent) - *
  • listProcessors(String parent) + *
  • listProcessors(LocationName parent) + *

  • listProcessors(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listProcessorsPagedCallable() - *
  • listProcessorsCallable() + *
  • listProcessorsPagedCallable() + *

  • listProcessorsCallable() *

*
GetProcessor

GetProcessor

Gets a processor detail.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getProcessor(GetProcessorRequest request) + *
  • getProcessor(GetProcessorRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getProcessor(ProcessorName name) - *
  • getProcessor(String name) + *
  • getProcessor(ProcessorName name) + *

  • getProcessor(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getProcessorCallable() + *
  • getProcessorCallable() *

*
TrainProcessorVersion

TrainProcessorVersion

Trains a new processor version. Operation metadata is returned as [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • trainProcessorVersionAsync(TrainProcessorVersionRequest request) + *
  • trainProcessorVersionAsync(TrainProcessorVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • trainProcessorVersionAsync(ProcessorName parent, ProcessorVersion processorVersion) - *
  • trainProcessorVersionAsync(String parent, ProcessorVersion processorVersion) + *
  • trainProcessorVersionAsync(ProcessorName parent, ProcessorVersion processorVersion) + *

  • trainProcessorVersionAsync(String parent, ProcessorVersion processorVersion) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • trainProcessorVersionOperationCallable() - *
  • trainProcessorVersionCallable() + *
  • trainProcessorVersionOperationCallable() + *

  • trainProcessorVersionCallable() *

*
GetProcessorVersion

GetProcessorVersion

Gets a processor version detail.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getProcessorVersion(GetProcessorVersionRequest request) + *
  • getProcessorVersion(GetProcessorVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getProcessorVersion(ProcessorVersionName name) - *
  • getProcessorVersion(String name) + *
  • getProcessorVersion(ProcessorVersionName name) + *

  • getProcessorVersion(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getProcessorVersionCallable() + *
  • getProcessorVersionCallable() *

*
ListProcessorVersions

ListProcessorVersions

Lists all versions of a processor.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listProcessorVersions(ListProcessorVersionsRequest request) + *
  • listProcessorVersions(ListProcessorVersionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listProcessorVersions(ProcessorName parent) - *
  • listProcessorVersions(String parent) + *
  • listProcessorVersions(ProcessorName parent) + *

  • listProcessorVersions(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listProcessorVersionsPagedCallable() - *
  • listProcessorVersionsCallable() + *
  • listProcessorVersionsPagedCallable() + *

  • listProcessorVersionsCallable() *

*
DeleteProcessorVersion

DeleteProcessorVersion

Deletes the processor version, all artifacts under the processor version will be deleted.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteProcessorVersionAsync(DeleteProcessorVersionRequest request) + *
  • deleteProcessorVersionAsync(DeleteProcessorVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteProcessorVersionAsync(ProcessorVersionName name) - *
  • deleteProcessorVersionAsync(String name) + *
  • deleteProcessorVersionAsync(ProcessorVersionName name) + *

  • deleteProcessorVersionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteProcessorVersionOperationCallable() - *
  • deleteProcessorVersionCallable() + *
  • deleteProcessorVersionOperationCallable() + *

  • deleteProcessorVersionCallable() *

*
DeployProcessorVersion

DeployProcessorVersion

Deploys the processor version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deployProcessorVersionAsync(DeployProcessorVersionRequest request) + *
  • deployProcessorVersionAsync(DeployProcessorVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deployProcessorVersionAsync(ProcessorVersionName name) - *
  • deployProcessorVersionAsync(String name) + *
  • deployProcessorVersionAsync(ProcessorVersionName name) + *

  • deployProcessorVersionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deployProcessorVersionOperationCallable() - *
  • deployProcessorVersionCallable() + *
  • deployProcessorVersionOperationCallable() + *

  • deployProcessorVersionCallable() *

*
UndeployProcessorVersion

UndeployProcessorVersion

Undeploys the processor version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • undeployProcessorVersionAsync(UndeployProcessorVersionRequest request) + *
  • undeployProcessorVersionAsync(UndeployProcessorVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • undeployProcessorVersionAsync(ProcessorVersionName name) - *
  • undeployProcessorVersionAsync(String name) + *
  • undeployProcessorVersionAsync(ProcessorVersionName name) + *

  • undeployProcessorVersionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • undeployProcessorVersionOperationCallable() - *
  • undeployProcessorVersionCallable() + *
  • undeployProcessorVersionOperationCallable() + *

  • undeployProcessorVersionCallable() *

*
CreateProcessor

CreateProcessor

Creates a processor from the [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] provided. The processor will be at `ENABLED` state by default after its creation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createProcessor(CreateProcessorRequest request) + *
  • createProcessor(CreateProcessorRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createProcessor(LocationName parent, Processor processor) - *
  • createProcessor(String parent, Processor processor) + *
  • createProcessor(LocationName parent, Processor processor) + *

  • createProcessor(String parent, Processor processor) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createProcessorCallable() + *
  • createProcessorCallable() *

*
DeleteProcessor

DeleteProcessor

Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteProcessorAsync(DeleteProcessorRequest request) + *
  • deleteProcessorAsync(DeleteProcessorRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteProcessorAsync(ProcessorName name) - *
  • deleteProcessorAsync(String name) + *
  • deleteProcessorAsync(ProcessorName name) + *

  • deleteProcessorAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteProcessorOperationCallable() - *
  • deleteProcessorCallable() + *
  • deleteProcessorOperationCallable() + *

  • deleteProcessorCallable() *

*
EnableProcessor

EnableProcessor

Enables a processor

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • enableProcessorAsync(EnableProcessorRequest request) + *
  • enableProcessorAsync(EnableProcessorRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • enableProcessorOperationCallable() - *
  • enableProcessorCallable() + *
  • enableProcessorOperationCallable() + *

  • enableProcessorCallable() *

*
DisableProcessor

DisableProcessor

Disables a processor

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • disableProcessorAsync(DisableProcessorRequest request) + *
  • disableProcessorAsync(DisableProcessorRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • disableProcessorOperationCallable() - *
  • disableProcessorCallable() + *
  • disableProcessorOperationCallable() + *

  • disableProcessorCallable() *

*
SetDefaultProcessorVersion

SetDefaultProcessorVersion

Set the default (active) version of a [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] and [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setDefaultProcessorVersionAsync(SetDefaultProcessorVersionRequest request) + *
  • setDefaultProcessorVersionAsync(SetDefaultProcessorVersionRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setDefaultProcessorVersionOperationCallable() - *
  • setDefaultProcessorVersionCallable() + *
  • setDefaultProcessorVersionOperationCallable() + *

  • setDefaultProcessorVersionCallable() *

*
ReviewDocument

ReviewDocument

Send a document for Human Review. The input document should be processed by the specified processor.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • reviewDocumentAsync(ReviewDocumentRequest request) + *
  • reviewDocumentAsync(ReviewDocumentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • reviewDocumentAsync(HumanReviewConfigName humanReviewConfig) - *
  • reviewDocumentAsync(String humanReviewConfig) + *
  • reviewDocumentAsync(HumanReviewConfigName humanReviewConfig) + *

  • reviewDocumentAsync(String humanReviewConfig) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • reviewDocumentOperationCallable() - *
  • reviewDocumentCallable() + *
  • reviewDocumentOperationCallable() + *

  • reviewDocumentCallable() *

*
EvaluateProcessorVersion

EvaluateProcessorVersion

Evaluates a ProcessorVersion against annotated documents, producing an Evaluation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • evaluateProcessorVersionAsync(EvaluateProcessorVersionRequest request) + *
  • evaluateProcessorVersionAsync(EvaluateProcessorVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • evaluateProcessorVersionAsync(ProcessorVersionName processorVersion) - *
  • evaluateProcessorVersionAsync(String processorVersion) + *
  • evaluateProcessorVersionAsync(ProcessorVersionName processorVersion) + *

  • evaluateProcessorVersionAsync(String processorVersion) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • evaluateProcessorVersionOperationCallable() - *
  • evaluateProcessorVersionCallable() + *
  • evaluateProcessorVersionOperationCallable() + *

  • evaluateProcessorVersionCallable() *

*
GetEvaluation

GetEvaluation

Retrieves a specific evaluation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEvaluation(GetEvaluationRequest request) + *
  • getEvaluation(GetEvaluationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getEvaluation(EvaluationName name) - *
  • getEvaluation(String name) + *
  • getEvaluation(EvaluationName name) + *

  • getEvaluation(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEvaluationCallable() + *
  • getEvaluationCallable() *

*
ListEvaluations

ListEvaluations

Retrieves a set of evaluations for a given processor version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEvaluations(ListEvaluationsRequest request) + *
  • listEvaluations(ListEvaluationsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEvaluations(ProcessorVersionName parent) - *
  • listEvaluations(String parent) + *
  • listEvaluations(ProcessorVersionName parent) + *

  • listEvaluations(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listEvaluationsPagedCallable() - *
  • listEvaluationsCallable() + *
  • listEvaluationsPagedCallable() + *

  • listEvaluationsCallable() *

*
ImportProcessorVersion

ImportProcessorVersion

Imports a processor version from source processor version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importProcessorVersionAsync(ImportProcessorVersionRequest request) + *
  • importProcessorVersionAsync(ImportProcessorVersionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • importProcessorVersionAsync(ProcessorName parent) - *
  • importProcessorVersionAsync(String parent) + *
  • importProcessorVersionAsync(ProcessorName parent) + *

  • importProcessorVersionAsync(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importProcessorVersionOperationCallable() - *
  • importProcessorVersionCallable() + *
  • importProcessorVersionOperationCallable() + *

  • importProcessorVersionCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java index 508df85bd683..f3ea19b69ee7 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java @@ -66,174 +66,175 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
UpdateDataset

UpdateDataset

Updates metadata associated with a dataset.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateDatasetAsync(UpdateDatasetRequest request) + *
  • updateDatasetAsync(UpdateDatasetRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateDatasetAsync(Dataset dataset, FieldMask updateMask) + *
  • updateDatasetAsync(Dataset dataset, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateDatasetOperationCallable() - *
  • updateDatasetCallable() + *
  • updateDatasetOperationCallable() + *

  • updateDatasetCallable() *

*
ImportDocuments

ImportDocuments

Import documents into a dataset.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importDocumentsAsync(ImportDocumentsRequest request) + *
  • importDocumentsAsync(ImportDocumentsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • importDocumentsAsync(DatasetName dataset) - *
  • importDocumentsAsync(String dataset) + *
  • importDocumentsAsync(DatasetName dataset) + *

  • importDocumentsAsync(String dataset) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importDocumentsOperationCallable() - *
  • importDocumentsCallable() + *
  • importDocumentsOperationCallable() + *

  • importDocumentsCallable() *

*
GetDocument

GetDocument

Returns relevant fields present in the requested document.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDocument(GetDocumentRequest request) + *
  • getDocument(GetDocumentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDocument(DatasetName dataset) - *
  • getDocument(String dataset) + *
  • getDocument(DatasetName dataset) + *

  • getDocument(String dataset) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDocumentCallable() + *
  • getDocumentCallable() *

*
ListDocuments

ListDocuments

Returns a list of documents present in the dataset.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDocuments(ListDocumentsRequest request) + *
  • listDocuments(ListDocumentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDocuments(DatasetName dataset) - *
  • listDocuments(String dataset) + *
  • listDocuments(DatasetName dataset) + *

  • listDocuments(String dataset) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDocumentsPagedCallable() - *
  • listDocumentsCallable() + *
  • listDocumentsPagedCallable() + *

  • listDocumentsCallable() *

*
BatchDeleteDocuments

BatchDeleteDocuments

Deletes a set of documents.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchDeleteDocumentsAsync(BatchDeleteDocumentsRequest request) + *
  • batchDeleteDocumentsAsync(BatchDeleteDocumentsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchDeleteDocumentsAsync(String dataset) + *
  • batchDeleteDocumentsAsync(String dataset) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchDeleteDocumentsOperationCallable() - *
  • batchDeleteDocumentsCallable() + *
  • batchDeleteDocumentsOperationCallable() + *

  • batchDeleteDocumentsCallable() *

*
GetDatasetSchema

GetDatasetSchema

Gets the `DatasetSchema` of a `Dataset`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getDatasetSchema(GetDatasetSchemaRequest request) + *
  • getDatasetSchema(GetDatasetSchemaRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getDatasetSchema(DatasetSchemaName name) - *
  • getDatasetSchema(String name) + *
  • getDatasetSchema(DatasetSchemaName name) + *

  • getDatasetSchema(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getDatasetSchemaCallable() + *
  • getDatasetSchemaCallable() *

*
UpdateDatasetSchema

UpdateDatasetSchema

Updates a `DatasetSchema`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateDatasetSchema(UpdateDatasetSchemaRequest request) + *
  • updateDatasetSchema(UpdateDatasetSchemaRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateDatasetSchema(DatasetSchema datasetSchema, FieldMask updateMask) + *
  • updateDatasetSchema(DatasetSchema datasetSchema, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateDatasetSchemaCallable() + *
  • updateDatasetSchemaCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java index b358c099404d..a211077a17fb 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java @@ -804,6 +804,15 @@ public DocumentProcessorServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -1266,7 +1275,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1279,7 +1287,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -2001,6 +2008,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DocumentProcessorServiceStubSettings build() throws IOException { return new DocumentProcessorServiceStubSettings(this); diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java index 260a9f82f2c3..ca104fa06a2b 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java @@ -339,6 +339,15 @@ public DocumentServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -570,7 +579,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -583,7 +591,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -809,6 +816,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DocumentServiceStubSettings build() throws IOException { return new DocumentServiceStubSettings(this); diff --git a/java-domains/README.md b/java-domains/README.md index aa392d8972da..15b00717b95c 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-domains.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.30.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java index 0552c447823f..768ebc965421 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java @@ -64,93 +64,95 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
SearchDomains

SearchDomains

Searches for available domain names similar to the provided query. *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on a domain before registering to confirm availability.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • searchDomains(SearchDomainsRequest request) + *
  • searchDomains(SearchDomainsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • searchDomains(LocationName location, String query) - *
  • searchDomains(String location, String query) + *
  • searchDomains(LocationName location, String query) + *

  • searchDomains(String location, String query) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchDomainsCallable() + *
  • searchDomainsCallable() *

*
RetrieveRegisterParameters

RetrieveRegisterParameters

Gets parameters needed to register a new domain name, including price and up-to-date availability. Use the returned values to call `RegisterDomain`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • retrieveRegisterParameters(RetrieveRegisterParametersRequest request) + *
  • retrieveRegisterParameters(RetrieveRegisterParametersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • retrieveRegisterParameters(LocationName location, String domainName) - *
  • retrieveRegisterParameters(String location, String domainName) + *
  • retrieveRegisterParameters(LocationName location, String domainName) + *

  • retrieveRegisterParameters(String location, String domainName) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • retrieveRegisterParametersCallable() + *
  • retrieveRegisterParametersCallable() *

*
RegisterDomain

RegisterDomain

Registers a new domain name and creates a corresponding `Registration` resource. *

Call `RetrieveRegisterParameters` first to check availability of the domain name and determine parameters like price that are needed to build a call to this method. *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the domain was not registered successfully, and you can safely delete the resource and retry registration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • registerDomainAsync(RegisterDomainRequest request) + *
  • registerDomainAsync(RegisterDomainRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • registerDomainAsync(LocationName parent, Registration registration, Money yearlyPrice) - *
  • registerDomainAsync(String parent, Registration registration, Money yearlyPrice) + *
  • registerDomainAsync(LocationName parent, Registration registration, Money yearlyPrice) + *

  • registerDomainAsync(String parent, Registration registration, Money yearlyPrice) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • registerDomainOperationCallable() - *
  • registerDomainCallable() + *
  • registerDomainOperationCallable() + *

  • registerDomainCallable() *

*
RetrieveTransferParameters

RetrieveTransferParameters

Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported. *

Use the returned values to call `TransferDomain`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • retrieveTransferParameters(RetrieveTransferParametersRequest request) + *
  • retrieveTransferParameters(RetrieveTransferParametersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • retrieveTransferParameters(LocationName location, String domainName) - *
  • retrieveTransferParameters(String location, String domainName) + *
  • retrieveTransferParameters(LocationName location, String domainName) + *

  • retrieveTransferParameters(String location, String domainName) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • retrieveTransferParametersCallable() + *
  • retrieveTransferParametersCallable() *

*
TransferDomain

TransferDomain

Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported. *

Before calling this method, go to the domain's current registrar to unlock the domain for transfer and retrieve the domain's transfer authorization code. Then call `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to build a call to this method. *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take several days to complete the transfer process. The registrant can often speed up this process by approving the transfer through the current registrar, either by clicking a link in an email from the registrar or by visiting the registrar's website. @@ -158,61 +160,61 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • transferDomainAsync(TransferDomainRequest request) + *
  • transferDomainAsync(TransferDomainRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • transferDomainAsync(LocationName parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) - *
  • transferDomainAsync(String parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) + *
  • transferDomainAsync(LocationName parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) + *

  • transferDomainAsync(String parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • transferDomainOperationCallable() - *
  • transferDomainCallable() + *
  • transferDomainOperationCallable() + *

  • transferDomainCallable() *

*
ListRegistrations

ListRegistrations

Lists the `Registration` resources in a project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listRegistrations(ListRegistrationsRequest request) + *
  • listRegistrations(ListRegistrationsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listRegistrations(LocationName parent) - *
  • listRegistrations(String parent) + *
  • listRegistrations(LocationName parent) + *

  • listRegistrations(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listRegistrationsPagedCallable() - *
  • listRegistrationsCallable() + *
  • listRegistrationsPagedCallable() + *

  • listRegistrationsCallable() *

*
GetRegistration

GetRegistration

Gets the details of a `Registration` resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getRegistration(GetRegistrationRequest request) + *
  • getRegistration(GetRegistrationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getRegistration(RegistrationName name) - *
  • getRegistration(String name) + *
  • getRegistration(RegistrationName name) + *

  • getRegistration(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getRegistrationCallable() + *
  • getRegistrationCallable() *

*
UpdateRegistration

UpdateRegistration

Updates select fields of a `Registration` resource, notably `labels`. To update other fields, use the appropriate custom update method: *

    *
  • To update management settings, see `ConfigureManagementSettings` @@ -222,102 +224,102 @@ *
*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateRegistrationAsync(UpdateRegistrationRequest request) + *
  • updateRegistrationAsync(UpdateRegistrationRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateRegistrationAsync(Registration registration, FieldMask updateMask) + *
  • updateRegistrationAsync(Registration registration, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateRegistrationOperationCallable() - *
  • updateRegistrationCallable() + *
  • updateRegistrationOperationCallable() + *

  • updateRegistrationCallable() *

*
ConfigureManagementSettings

ConfigureManagementSettings

Updates a `Registration`'s management settings.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • configureManagementSettingsAsync(ConfigureManagementSettingsRequest request) + *
  • configureManagementSettingsAsync(ConfigureManagementSettingsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • configureManagementSettingsAsync(RegistrationName registration, ManagementSettings managementSettings, FieldMask updateMask) - *
  • configureManagementSettingsAsync(String registration, ManagementSettings managementSettings, FieldMask updateMask) + *
  • configureManagementSettingsAsync(RegistrationName registration, ManagementSettings managementSettings, FieldMask updateMask) + *

  • configureManagementSettingsAsync(String registration, ManagementSettings managementSettings, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • configureManagementSettingsOperationCallable() - *
  • configureManagementSettingsCallable() + *
  • configureManagementSettingsOperationCallable() + *

  • configureManagementSettingsCallable() *

*
ConfigureDnsSettings

ConfigureDnsSettings

Updates a `Registration`'s DNS settings.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • configureDnsSettingsAsync(ConfigureDnsSettingsRequest request) + *
  • configureDnsSettingsAsync(ConfigureDnsSettingsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • configureDnsSettingsAsync(RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) - *
  • configureDnsSettingsAsync(String registration, DnsSettings dnsSettings, FieldMask updateMask) + *
  • configureDnsSettingsAsync(RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) + *

  • configureDnsSettingsAsync(String registration, DnsSettings dnsSettings, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • configureDnsSettingsOperationCallable() - *
  • configureDnsSettingsCallable() + *
  • configureDnsSettingsOperationCallable() + *

  • configureDnsSettingsCallable() *

*
ConfigureContactSettings

ConfigureContactSettings

Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact .

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • configureContactSettingsAsync(ConfigureContactSettingsRequest request) + *
  • configureContactSettingsAsync(ConfigureContactSettingsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • configureContactSettingsAsync(RegistrationName registration, ContactSettings contactSettings, FieldMask updateMask) - *
  • configureContactSettingsAsync(String registration, ContactSettings contactSettings, FieldMask updateMask) + *
  • configureContactSettingsAsync(RegistrationName registration, ContactSettings contactSettings, FieldMask updateMask) + *

  • configureContactSettingsAsync(String registration, ContactSettings contactSettings, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • configureContactSettingsOperationCallable() - *
  • configureContactSettingsCallable() + *
  • configureContactSettingsOperationCallable() + *

  • configureContactSettingsCallable() *

*
ExportRegistration

ExportRegistration

Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. *

When an active domain is successfully exported, you can continue to use the domain in [Google Domains](https://domains.google/) until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportRegistrationAsync(ExportRegistrationRequest request) + *
  • exportRegistrationAsync(ExportRegistrationRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • exportRegistrationAsync(RegistrationName name) - *
  • exportRegistrationAsync(String name) + *
  • exportRegistrationAsync(RegistrationName name) + *

  • exportRegistrationAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportRegistrationOperationCallable() - *
  • exportRegistrationCallable() + *
  • exportRegistrationOperationCallable() + *

  • exportRegistrationCallable() *

*
DeleteRegistration

DeleteRegistration

Deletes a `Registration` resource. *

This method works on any `Registration` resource using [Subscription or Commitment billing](/domains/pricing#billing-models), provided that the resource was created at least 1 day in the past. *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this method works if: @@ -330,61 +332,60 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteRegistrationAsync(DeleteRegistrationRequest request) + *
  • deleteRegistrationAsync(DeleteRegistrationRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteRegistrationAsync(RegistrationName name) - *
  • deleteRegistrationAsync(String name) + *
  • deleteRegistrationAsync(RegistrationName name) + *

  • deleteRegistrationAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteRegistrationOperationCallable() - *
  • deleteRegistrationCallable() + *
  • deleteRegistrationOperationCallable() + *

  • deleteRegistrationCallable() *

*
RetrieveAuthorizationCode

RetrieveAuthorizationCode

Gets the authorization code of the `Registration` for the purpose of transferring the domain to another registrar. *

You can call this method only after 60 days have elapsed since the initial domain registration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • retrieveAuthorizationCode(RetrieveAuthorizationCodeRequest request) + *
  • retrieveAuthorizationCode(RetrieveAuthorizationCodeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • retrieveAuthorizationCode(RegistrationName registration) - *
  • retrieveAuthorizationCode(String registration) + *
  • retrieveAuthorizationCode(RegistrationName registration) + *

  • retrieveAuthorizationCode(String registration) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • retrieveAuthorizationCodeCallable() + *
  • retrieveAuthorizationCodeCallable() *

*
ResetAuthorizationCode

ResetAuthorizationCode

Resets the authorization code of the `Registration` to a new random string. *

You can call this method only after 60 days have elapsed since the initial domain registration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • resetAuthorizationCode(ResetAuthorizationCodeRequest request) + *
  • resetAuthorizationCode(ResetAuthorizationCodeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • resetAuthorizationCode(RegistrationName registration) - *
  • resetAuthorizationCode(String registration) + *
  • resetAuthorizationCode(RegistrationName registration) + *

  • resetAuthorizationCode(String registration) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • resetAuthorizationCodeCallable() + *
  • resetAuthorizationCodeCallable() *

*
* *

See the individual methods for example code. diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java index 39501bc45423..05aea1ee0b00 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java @@ -376,6 +376,15 @@ public DomainsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -693,7 +702,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -706,7 +714,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1158,6 +1165,15 @@ public UnaryCallSettings.Builder transferDomai return resetAuthorizationCodeSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DomainsStubSettings build() throws IOException { return new DomainsStubSettings(this); diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java index 00861c531643..af269ce9faea 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java @@ -64,93 +64,95 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
SearchDomains

SearchDomains

Searches for available domain names similar to the provided query. *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on a domain before registering to confirm availability.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • searchDomains(SearchDomainsRequest request) + *
  • searchDomains(SearchDomainsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • searchDomains(LocationName location, String query) - *
  • searchDomains(String location, String query) + *
  • searchDomains(LocationName location, String query) + *

  • searchDomains(String location, String query) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchDomainsCallable() + *
  • searchDomainsCallable() *

*
RetrieveRegisterParameters

RetrieveRegisterParameters

Gets parameters needed to register a new domain name, including price and up-to-date availability. Use the returned values to call `RegisterDomain`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • retrieveRegisterParameters(RetrieveRegisterParametersRequest request) + *
  • retrieveRegisterParameters(RetrieveRegisterParametersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • retrieveRegisterParameters(LocationName location, String domainName) - *
  • retrieveRegisterParameters(String location, String domainName) + *
  • retrieveRegisterParameters(LocationName location, String domainName) + *

  • retrieveRegisterParameters(String location, String domainName) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • retrieveRegisterParametersCallable() + *
  • retrieveRegisterParametersCallable() *

*
RegisterDomain

RegisterDomain

Registers a new domain name and creates a corresponding `Registration` resource. *

Call `RetrieveRegisterParameters` first to check availability of the domain name and determine parameters like price that are needed to build a call to this method. *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the domain was not registered successfully, and you can safely delete the resource and retry registration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • registerDomainAsync(RegisterDomainRequest request) + *
  • registerDomainAsync(RegisterDomainRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • registerDomainAsync(LocationName parent, Registration registration, Money yearlyPrice) - *
  • registerDomainAsync(String parent, Registration registration, Money yearlyPrice) + *
  • registerDomainAsync(LocationName parent, Registration registration, Money yearlyPrice) + *

  • registerDomainAsync(String parent, Registration registration, Money yearlyPrice) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • registerDomainOperationCallable() - *
  • registerDomainCallable() + *
  • registerDomainOperationCallable() + *

  • registerDomainCallable() *

*
RetrieveTransferParameters

RetrieveTransferParameters

Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported. *

Use the returned values to call `TransferDomain`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • retrieveTransferParameters(RetrieveTransferParametersRequest request) + *
  • retrieveTransferParameters(RetrieveTransferParametersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • retrieveTransferParameters(LocationName location, String domainName) - *
  • retrieveTransferParameters(String location, String domainName) + *
  • retrieveTransferParameters(LocationName location, String domainName) + *

  • retrieveTransferParameters(String location, String domainName) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • retrieveTransferParametersCallable() + *
  • retrieveTransferParametersCallable() *

*
TransferDomain

TransferDomain

Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported. *

Before calling this method, go to the domain's current registrar to unlock the domain for transfer and retrieve the domain's transfer authorization code. Then call `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to build a call to this method. *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take several days to complete the transfer process. The registrant can often speed up this process by approving the transfer through the current registrar, either by clicking a link in an email from the registrar or by visiting the registrar's website. @@ -158,61 +160,61 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • transferDomainAsync(TransferDomainRequest request) + *
  • transferDomainAsync(TransferDomainRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • transferDomainAsync(LocationName parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) - *
  • transferDomainAsync(String parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) + *
  • transferDomainAsync(LocationName parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) + *

  • transferDomainAsync(String parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • transferDomainOperationCallable() - *
  • transferDomainCallable() + *
  • transferDomainOperationCallable() + *

  • transferDomainCallable() *

*
ListRegistrations

ListRegistrations

Lists the `Registration` resources in a project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listRegistrations(ListRegistrationsRequest request) + *
  • listRegistrations(ListRegistrationsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listRegistrations(LocationName parent) - *
  • listRegistrations(String parent) + *
  • listRegistrations(LocationName parent) + *

  • listRegistrations(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listRegistrationsPagedCallable() - *
  • listRegistrationsCallable() + *
  • listRegistrationsPagedCallable() + *

  • listRegistrationsCallable() *

*
GetRegistration

GetRegistration

Gets the details of a `Registration` resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getRegistration(GetRegistrationRequest request) + *
  • getRegistration(GetRegistrationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getRegistration(RegistrationName name) - *
  • getRegistration(String name) + *
  • getRegistration(RegistrationName name) + *

  • getRegistration(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getRegistrationCallable() + *
  • getRegistrationCallable() *

*
UpdateRegistration

UpdateRegistration

Updates select fields of a `Registration` resource, notably `labels`. To update other fields, use the appropriate custom update method: *

    *
  • To update management settings, see `ConfigureManagementSettings` @@ -222,102 +224,102 @@ *
*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateRegistrationAsync(UpdateRegistrationRequest request) + *
  • updateRegistrationAsync(UpdateRegistrationRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateRegistrationAsync(Registration registration, FieldMask updateMask) + *
  • updateRegistrationAsync(Registration registration, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateRegistrationOperationCallable() - *
  • updateRegistrationCallable() + *
  • updateRegistrationOperationCallable() + *

  • updateRegistrationCallable() *

*
ConfigureManagementSettings

ConfigureManagementSettings

Updates a `Registration`'s management settings.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • configureManagementSettingsAsync(ConfigureManagementSettingsRequest request) + *
  • configureManagementSettingsAsync(ConfigureManagementSettingsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • configureManagementSettingsAsync(RegistrationName registration, ManagementSettings managementSettings, FieldMask updateMask) - *
  • configureManagementSettingsAsync(String registration, ManagementSettings managementSettings, FieldMask updateMask) + *
  • configureManagementSettingsAsync(RegistrationName registration, ManagementSettings managementSettings, FieldMask updateMask) + *

  • configureManagementSettingsAsync(String registration, ManagementSettings managementSettings, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • configureManagementSettingsOperationCallable() - *
  • configureManagementSettingsCallable() + *
  • configureManagementSettingsOperationCallable() + *

  • configureManagementSettingsCallable() *

*
ConfigureDnsSettings

ConfigureDnsSettings

Updates a `Registration`'s DNS settings.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • configureDnsSettingsAsync(ConfigureDnsSettingsRequest request) + *
  • configureDnsSettingsAsync(ConfigureDnsSettingsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • configureDnsSettingsAsync(RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) - *
  • configureDnsSettingsAsync(String registration, DnsSettings dnsSettings, FieldMask updateMask) + *
  • configureDnsSettingsAsync(RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) + *

  • configureDnsSettingsAsync(String registration, DnsSettings dnsSettings, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • configureDnsSettingsOperationCallable() - *
  • configureDnsSettingsCallable() + *
  • configureDnsSettingsOperationCallable() + *

  • configureDnsSettingsCallable() *

*
ConfigureContactSettings

ConfigureContactSettings

Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact .

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • configureContactSettingsAsync(ConfigureContactSettingsRequest request) + *
  • configureContactSettingsAsync(ConfigureContactSettingsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • configureContactSettingsAsync(RegistrationName registration, ContactSettings contactSettings, FieldMask updateMask) - *
  • configureContactSettingsAsync(String registration, ContactSettings contactSettings, FieldMask updateMask) + *
  • configureContactSettingsAsync(RegistrationName registration, ContactSettings contactSettings, FieldMask updateMask) + *

  • configureContactSettingsAsync(String registration, ContactSettings contactSettings, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • configureContactSettingsOperationCallable() - *
  • configureContactSettingsCallable() + *
  • configureContactSettingsOperationCallable() + *

  • configureContactSettingsCallable() *

*
ExportRegistration

ExportRegistration

Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. *

When an active domain is successfully exported, you can continue to use the domain in [Google Domains](https://domains.google/) until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportRegistrationAsync(ExportRegistrationRequest request) + *
  • exportRegistrationAsync(ExportRegistrationRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • exportRegistrationAsync(RegistrationName name) - *
  • exportRegistrationAsync(String name) + *
  • exportRegistrationAsync(RegistrationName name) + *

  • exportRegistrationAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportRegistrationOperationCallable() - *
  • exportRegistrationCallable() + *
  • exportRegistrationOperationCallable() + *

  • exportRegistrationCallable() *

*
DeleteRegistration

DeleteRegistration

Deletes a `Registration` resource. *

This method works on any `Registration` resource using [Subscription or Commitment billing](/domains/pricing#billing-models), provided that the resource was created at least 1 day in the past. *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this method works if: @@ -330,61 +332,60 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteRegistrationAsync(DeleteRegistrationRequest request) + *
  • deleteRegistrationAsync(DeleteRegistrationRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteRegistrationAsync(RegistrationName name) - *
  • deleteRegistrationAsync(String name) + *
  • deleteRegistrationAsync(RegistrationName name) + *

  • deleteRegistrationAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteRegistrationOperationCallable() - *
  • deleteRegistrationCallable() + *
  • deleteRegistrationOperationCallable() + *

  • deleteRegistrationCallable() *

*
RetrieveAuthorizationCode

RetrieveAuthorizationCode

Gets the authorization code of the `Registration` for the purpose of transferring the domain to another registrar. *

You can call this method only after 60 days have elapsed since the initial domain registration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • retrieveAuthorizationCode(RetrieveAuthorizationCodeRequest request) + *
  • retrieveAuthorizationCode(RetrieveAuthorizationCodeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • retrieveAuthorizationCode(RegistrationName registration) - *
  • retrieveAuthorizationCode(String registration) + *
  • retrieveAuthorizationCode(RegistrationName registration) + *

  • retrieveAuthorizationCode(String registration) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • retrieveAuthorizationCodeCallable() + *
  • retrieveAuthorizationCodeCallable() *

*
ResetAuthorizationCode

ResetAuthorizationCode

Resets the authorization code of the `Registration` to a new random string. *

You can call this method only after 60 days have elapsed since the initial domain registration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • resetAuthorizationCode(ResetAuthorizationCodeRequest request) + *
  • resetAuthorizationCode(ResetAuthorizationCodeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • resetAuthorizationCode(RegistrationName registration) - *
  • resetAuthorizationCode(String registration) + *
  • resetAuthorizationCode(RegistrationName registration) + *

  • resetAuthorizationCode(String registration) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • resetAuthorizationCodeCallable() + *
  • resetAuthorizationCodeCallable() *

*
* *

See the individual methods for example code. diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java index 171b56c2c637..ad9568d7bdfc 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java @@ -377,6 +377,15 @@ public DomainsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -694,7 +703,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -707,7 +715,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1159,6 +1166,15 @@ public UnaryCallSettings.Builder transferDomai return resetAuthorizationCodeSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DomainsStubSettings build() throws IOException { return new DomainsStubSettings(this); diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java index a2d20438e1c8..bb83614bb72c 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java @@ -64,93 +64,95 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
SearchDomains

SearchDomains

Searches for available domain names similar to the provided query. *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on a domain before registering to confirm availability.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • searchDomains(SearchDomainsRequest request) + *
  • searchDomains(SearchDomainsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • searchDomains(LocationName location, String query) - *
  • searchDomains(String location, String query) + *
  • searchDomains(LocationName location, String query) + *

  • searchDomains(String location, String query) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchDomainsCallable() + *
  • searchDomainsCallable() *

*
RetrieveRegisterParameters

RetrieveRegisterParameters

Gets parameters needed to register a new domain name, including price and up-to-date availability. Use the returned values to call `RegisterDomain`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • retrieveRegisterParameters(RetrieveRegisterParametersRequest request) + *
  • retrieveRegisterParameters(RetrieveRegisterParametersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • retrieveRegisterParameters(LocationName location, String domainName) - *
  • retrieveRegisterParameters(String location, String domainName) + *
  • retrieveRegisterParameters(LocationName location, String domainName) + *

  • retrieveRegisterParameters(String location, String domainName) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • retrieveRegisterParametersCallable() + *
  • retrieveRegisterParametersCallable() *

*
RegisterDomain

RegisterDomain

Registers a new domain name and creates a corresponding `Registration` resource. *

Call `RetrieveRegisterParameters` first to check availability of the domain name and determine parameters like price that are needed to build a call to this method. *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the domain was not registered successfully, and you can safely delete the resource and retry registration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • registerDomainAsync(RegisterDomainRequest request) + *
  • registerDomainAsync(RegisterDomainRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • registerDomainAsync(LocationName parent, Registration registration, Money yearlyPrice) - *
  • registerDomainAsync(String parent, Registration registration, Money yearlyPrice) + *
  • registerDomainAsync(LocationName parent, Registration registration, Money yearlyPrice) + *

  • registerDomainAsync(String parent, Registration registration, Money yearlyPrice) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • registerDomainOperationCallable() - *
  • registerDomainCallable() + *
  • registerDomainOperationCallable() + *

  • registerDomainCallable() *

*
RetrieveTransferParameters

RetrieveTransferParameters

Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported. *

Use the returned values to call `TransferDomain`.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • retrieveTransferParameters(RetrieveTransferParametersRequest request) + *
  • retrieveTransferParameters(RetrieveTransferParametersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • retrieveTransferParameters(LocationName location, String domainName) - *
  • retrieveTransferParameters(String location, String domainName) + *
  • retrieveTransferParameters(LocationName location, String domainName) + *

  • retrieveTransferParameters(String location, String domainName) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • retrieveTransferParametersCallable() + *
  • retrieveTransferParametersCallable() *

*
TransferDomain

TransferDomain

Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported. *

Before calling this method, go to the domain's current registrar to unlock the domain for transfer and retrieve the domain's transfer authorization code. Then call `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to build a call to this method. *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take several days to complete the transfer process. The registrant can often speed up this process by approving the transfer through the current registrar, either by clicking a link in an email from the registrar or by visiting the registrar's website. @@ -158,61 +160,61 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • transferDomainAsync(TransferDomainRequest request) + *
  • transferDomainAsync(TransferDomainRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • transferDomainAsync(LocationName parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) - *
  • transferDomainAsync(String parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) + *
  • transferDomainAsync(LocationName parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) + *

  • transferDomainAsync(String parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • transferDomainOperationCallable() - *
  • transferDomainCallable() + *
  • transferDomainOperationCallable() + *

  • transferDomainCallable() *

*
ListRegistrations

ListRegistrations

Lists the `Registration` resources in a project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listRegistrations(ListRegistrationsRequest request) + *
  • listRegistrations(ListRegistrationsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listRegistrations(LocationName parent) - *
  • listRegistrations(String parent) + *
  • listRegistrations(LocationName parent) + *

  • listRegistrations(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listRegistrationsPagedCallable() - *
  • listRegistrationsCallable() + *
  • listRegistrationsPagedCallable() + *

  • listRegistrationsCallable() *

*
GetRegistration

GetRegistration

Gets the details of a `Registration` resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getRegistration(GetRegistrationRequest request) + *
  • getRegistration(GetRegistrationRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getRegistration(RegistrationName name) - *
  • getRegistration(String name) + *
  • getRegistration(RegistrationName name) + *

  • getRegistration(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getRegistrationCallable() + *
  • getRegistrationCallable() *

*
UpdateRegistration

UpdateRegistration

Updates select fields of a `Registration` resource, notably `labels`. To update other fields, use the appropriate custom update method: *

    *
  • To update management settings, see `ConfigureManagementSettings` @@ -222,102 +224,102 @@ *
*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateRegistrationAsync(UpdateRegistrationRequest request) + *
  • updateRegistrationAsync(UpdateRegistrationRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateRegistrationAsync(Registration registration, FieldMask updateMask) + *
  • updateRegistrationAsync(Registration registration, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateRegistrationOperationCallable() - *
  • updateRegistrationCallable() + *
  • updateRegistrationOperationCallable() + *

  • updateRegistrationCallable() *

*
ConfigureManagementSettings

ConfigureManagementSettings

Updates a `Registration`'s management settings.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • configureManagementSettingsAsync(ConfigureManagementSettingsRequest request) + *
  • configureManagementSettingsAsync(ConfigureManagementSettingsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • configureManagementSettingsAsync(RegistrationName registration, ManagementSettings managementSettings, FieldMask updateMask) - *
  • configureManagementSettingsAsync(String registration, ManagementSettings managementSettings, FieldMask updateMask) + *
  • configureManagementSettingsAsync(RegistrationName registration, ManagementSettings managementSettings, FieldMask updateMask) + *

  • configureManagementSettingsAsync(String registration, ManagementSettings managementSettings, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • configureManagementSettingsOperationCallable() - *
  • configureManagementSettingsCallable() + *
  • configureManagementSettingsOperationCallable() + *

  • configureManagementSettingsCallable() *

*
ConfigureDnsSettings

ConfigureDnsSettings

Updates a `Registration`'s DNS settings.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • configureDnsSettingsAsync(ConfigureDnsSettingsRequest request) + *
  • configureDnsSettingsAsync(ConfigureDnsSettingsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • configureDnsSettingsAsync(RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) - *
  • configureDnsSettingsAsync(String registration, DnsSettings dnsSettings, FieldMask updateMask) + *
  • configureDnsSettingsAsync(RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) + *

  • configureDnsSettingsAsync(String registration, DnsSettings dnsSettings, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • configureDnsSettingsOperationCallable() - *
  • configureDnsSettingsCallable() + *
  • configureDnsSettingsOperationCallable() + *

  • configureDnsSettingsCallable() *

*
ConfigureContactSettings

ConfigureContactSettings

Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact .

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • configureContactSettingsAsync(ConfigureContactSettingsRequest request) + *
  • configureContactSettingsAsync(ConfigureContactSettingsRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • configureContactSettingsAsync(RegistrationName registration, ContactSettings contactSettings, FieldMask updateMask) - *
  • configureContactSettingsAsync(String registration, ContactSettings contactSettings, FieldMask updateMask) + *
  • configureContactSettingsAsync(RegistrationName registration, ContactSettings contactSettings, FieldMask updateMask) + *

  • configureContactSettingsAsync(String registration, ContactSettings contactSettings, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • configureContactSettingsOperationCallable() - *
  • configureContactSettingsCallable() + *
  • configureContactSettingsOperationCallable() + *

  • configureContactSettingsCallable() *

*
ExportRegistration

ExportRegistration

Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. *

When an active domain is successfully exported, you can continue to use the domain in [Google Domains](https://domains.google/) until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • exportRegistrationAsync(ExportRegistrationRequest request) + *
  • exportRegistrationAsync(ExportRegistrationRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • exportRegistrationAsync(RegistrationName name) - *
  • exportRegistrationAsync(String name) + *
  • exportRegistrationAsync(RegistrationName name) + *

  • exportRegistrationAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • exportRegistrationOperationCallable() - *
  • exportRegistrationCallable() + *
  • exportRegistrationOperationCallable() + *

  • exportRegistrationCallable() *

*
DeleteRegistration

DeleteRegistration

Deletes a `Registration` resource. *

This method works on any `Registration` resource using [Subscription or Commitment billing](/domains/pricing#billing-models), provided that the resource was created at least 1 day in the past. *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this method works if: @@ -330,61 +332,60 @@ *

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteRegistrationAsync(DeleteRegistrationRequest request) + *
  • deleteRegistrationAsync(DeleteRegistrationRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteRegistrationAsync(RegistrationName name) - *
  • deleteRegistrationAsync(String name) + *
  • deleteRegistrationAsync(RegistrationName name) + *

  • deleteRegistrationAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteRegistrationOperationCallable() - *
  • deleteRegistrationCallable() + *
  • deleteRegistrationOperationCallable() + *

  • deleteRegistrationCallable() *

*
RetrieveAuthorizationCode

RetrieveAuthorizationCode

Gets the authorization code of the `Registration` for the purpose of transferring the domain to another registrar. *

You can call this method only after 60 days have elapsed since the initial domain registration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • retrieveAuthorizationCode(RetrieveAuthorizationCodeRequest request) + *
  • retrieveAuthorizationCode(RetrieveAuthorizationCodeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • retrieveAuthorizationCode(RegistrationName registration) - *
  • retrieveAuthorizationCode(String registration) + *
  • retrieveAuthorizationCode(RegistrationName registration) + *

  • retrieveAuthorizationCode(String registration) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • retrieveAuthorizationCodeCallable() + *
  • retrieveAuthorizationCodeCallable() *

*
ResetAuthorizationCode

ResetAuthorizationCode

Resets the authorization code of the `Registration` to a new random string. *

You can call this method only after 60 days have elapsed since the initial domain registration.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • resetAuthorizationCode(ResetAuthorizationCodeRequest request) + *
  • resetAuthorizationCode(ResetAuthorizationCodeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • resetAuthorizationCode(RegistrationName registration) - *
  • resetAuthorizationCode(String registration) + *
  • resetAuthorizationCode(RegistrationName registration) + *

  • resetAuthorizationCode(String registration) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • resetAuthorizationCodeCallable() + *
  • resetAuthorizationCodeCallable() *

*
* *

See the individual methods for example code. diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java index f19159016ffa..8772b4095793 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java @@ -377,6 +377,15 @@ public DomainsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -694,7 +703,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -707,7 +715,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1159,6 +1166,15 @@ public UnaryCallSettings.Builder transferDomai return resetAuthorizationCodeSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DomainsStubSettings build() throws IOException { return new DomainsStubSettings(this); diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index 41e0667b388c..c2673d3d741e 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-edgenetwork/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-edgenetwork.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClient.java b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClient.java index db95007a81c0..9e6693765148 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClient.java +++ b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClient.java @@ -69,548 +69,549 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
InitializeZone

InitializeZone

InitializeZone will initialize resources for a zone in a project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • initializeZone(InitializeZoneRequest request) + *
  • initializeZone(InitializeZoneRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • initializeZone(ZoneName name) - *
  • initializeZone(String name) + *
  • initializeZone(ZoneName name) + *

  • initializeZone(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • initializeZoneCallable() + *
  • initializeZoneCallable() *

*
ListZones

ListZones

Lists Zones in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listZones(ListZonesRequest request) + *
  • listZones(ListZonesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listZones(LocationName parent) - *
  • listZones(String parent) + *
  • listZones(LocationName parent) + *

  • listZones(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listZonesPagedCallable() - *
  • listZonesCallable() + *
  • listZonesPagedCallable() + *

  • listZonesCallable() *

*
GetZone

GetZone

Gets details of a single Zone.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getZone(GetZoneRequest request) + *
  • getZone(GetZoneRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getZone(ZoneName name) - *
  • getZone(String name) + *
  • getZone(ZoneName name) + *

  • getZone(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getZoneCallable() + *
  • getZoneCallable() *

*
ListNetworks

ListNetworks

Lists Networks in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listNetworks(ListNetworksRequest request) + *
  • listNetworks(ListNetworksRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listNetworks(ZoneName parent) - *
  • listNetworks(String parent) + *
  • listNetworks(ZoneName parent) + *

  • listNetworks(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listNetworksPagedCallable() - *
  • listNetworksCallable() + *
  • listNetworksPagedCallable() + *

  • listNetworksCallable() *

*
GetNetwork

GetNetwork

Gets details of a single Network.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getNetwork(GetNetworkRequest request) + *
  • getNetwork(GetNetworkRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getNetwork(NetworkName name) - *
  • getNetwork(String name) + *
  • getNetwork(NetworkName name) + *

  • getNetwork(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getNetworkCallable() + *
  • getNetworkCallable() *

*
DiagnoseNetwork

DiagnoseNetwork

Get the diagnostics of a single network resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • diagnoseNetwork(DiagnoseNetworkRequest request) + *
  • diagnoseNetwork(DiagnoseNetworkRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • diagnoseNetwork(NetworkName name) - *
  • diagnoseNetwork(String name) + *
  • diagnoseNetwork(NetworkName name) + *

  • diagnoseNetwork(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • diagnoseNetworkCallable() + *
  • diagnoseNetworkCallable() *

*
CreateNetwork

CreateNetwork

Creates a new Network in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createNetworkAsync(CreateNetworkRequest request) + *
  • createNetworkAsync(CreateNetworkRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createNetworkAsync(ZoneName parent, Network network, String networkId) - *
  • createNetworkAsync(String parent, Network network, String networkId) + *
  • createNetworkAsync(ZoneName parent, Network network, String networkId) + *

  • createNetworkAsync(String parent, Network network, String networkId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createNetworkOperationCallable() - *
  • createNetworkCallable() + *
  • createNetworkOperationCallable() + *

  • createNetworkCallable() *

*
DeleteNetwork

DeleteNetwork

Deletes a single Network.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteNetworkAsync(DeleteNetworkRequest request) + *
  • deleteNetworkAsync(DeleteNetworkRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteNetworkAsync(NetworkName name) - *
  • deleteNetworkAsync(String name) + *
  • deleteNetworkAsync(NetworkName name) + *

  • deleteNetworkAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteNetworkOperationCallable() - *
  • deleteNetworkCallable() + *
  • deleteNetworkOperationCallable() + *

  • deleteNetworkCallable() *

*
ListSubnets

ListSubnets

Lists Subnets in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSubnets(ListSubnetsRequest request) + *
  • listSubnets(ListSubnetsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSubnets(ZoneName parent) - *
  • listSubnets(String parent) + *
  • listSubnets(ZoneName parent) + *

  • listSubnets(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSubnetsPagedCallable() - *
  • listSubnetsCallable() + *
  • listSubnetsPagedCallable() + *

  • listSubnetsCallable() *

*
GetSubnet

GetSubnet

Gets details of a single Subnet.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSubnet(GetSubnetRequest request) + *
  • getSubnet(GetSubnetRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSubnet(SubnetName name) - *
  • getSubnet(String name) + *
  • getSubnet(SubnetName name) + *

  • getSubnet(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSubnetCallable() + *
  • getSubnetCallable() *

*
CreateSubnet

CreateSubnet

Creates a new Subnet in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSubnetAsync(CreateSubnetRequest request) + *
  • createSubnetAsync(CreateSubnetRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createSubnetAsync(ZoneName parent, Subnet subnet, String subnetId) - *
  • createSubnetAsync(String parent, Subnet subnet, String subnetId) + *
  • createSubnetAsync(ZoneName parent, Subnet subnet, String subnetId) + *

  • createSubnetAsync(String parent, Subnet subnet, String subnetId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSubnetOperationCallable() - *
  • createSubnetCallable() + *
  • createSubnetOperationCallable() + *

  • createSubnetCallable() *

*
UpdateSubnet

UpdateSubnet

Updates the parameters of a single Subnet.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSubnetAsync(UpdateSubnetRequest request) + *
  • updateSubnetAsync(UpdateSubnetRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateSubnetAsync(Subnet subnet, FieldMask updateMask) + *
  • updateSubnetAsync(Subnet subnet, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSubnetOperationCallable() - *
  • updateSubnetCallable() + *
  • updateSubnetOperationCallable() + *

  • updateSubnetCallable() *

*
DeleteSubnet

DeleteSubnet

Deletes a single Subnet.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSubnetAsync(DeleteSubnetRequest request) + *
  • deleteSubnetAsync(DeleteSubnetRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteSubnetAsync(SubnetName name) - *
  • deleteSubnetAsync(String name) + *
  • deleteSubnetAsync(SubnetName name) + *

  • deleteSubnetAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSubnetOperationCallable() - *
  • deleteSubnetCallable() + *
  • deleteSubnetOperationCallable() + *

  • deleteSubnetCallable() *

*
ListInterconnects

ListInterconnects

Lists Interconnects in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listInterconnects(ListInterconnectsRequest request) + *
  • listInterconnects(ListInterconnectsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listInterconnects(ZoneName parent) - *
  • listInterconnects(String parent) + *
  • listInterconnects(ZoneName parent) + *

  • listInterconnects(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listInterconnectsPagedCallable() - *
  • listInterconnectsCallable() + *
  • listInterconnectsPagedCallable() + *

  • listInterconnectsCallable() *

*
GetInterconnect

GetInterconnect

Gets details of a single Interconnect.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getInterconnect(GetInterconnectRequest request) + *
  • getInterconnect(GetInterconnectRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getInterconnect(InterconnectName name) - *
  • getInterconnect(String name) + *
  • getInterconnect(InterconnectName name) + *

  • getInterconnect(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getInterconnectCallable() + *
  • getInterconnectCallable() *

*
DiagnoseInterconnect

DiagnoseInterconnect

Get the diagnostics of a single interconnect resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • diagnoseInterconnect(DiagnoseInterconnectRequest request) + *
  • diagnoseInterconnect(DiagnoseInterconnectRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • diagnoseInterconnect(InterconnectName name) - *
  • diagnoseInterconnect(String name) + *
  • diagnoseInterconnect(InterconnectName name) + *

  • diagnoseInterconnect(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • diagnoseInterconnectCallable() + *
  • diagnoseInterconnectCallable() *

*
ListInterconnectAttachments

ListInterconnectAttachments

Lists InterconnectAttachments in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listInterconnectAttachments(ListInterconnectAttachmentsRequest request) + *
  • listInterconnectAttachments(ListInterconnectAttachmentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listInterconnectAttachments(ZoneName parent) - *
  • listInterconnectAttachments(String parent) + *
  • listInterconnectAttachments(ZoneName parent) + *

  • listInterconnectAttachments(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listInterconnectAttachmentsPagedCallable() - *
  • listInterconnectAttachmentsCallable() + *
  • listInterconnectAttachmentsPagedCallable() + *

  • listInterconnectAttachmentsCallable() *

*
GetInterconnectAttachment

GetInterconnectAttachment

Gets details of a single InterconnectAttachment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getInterconnectAttachment(GetInterconnectAttachmentRequest request) + *
  • getInterconnectAttachment(GetInterconnectAttachmentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getInterconnectAttachment(InterconnectAttachmentName name) - *
  • getInterconnectAttachment(String name) + *
  • getInterconnectAttachment(InterconnectAttachmentName name) + *

  • getInterconnectAttachment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getInterconnectAttachmentCallable() + *
  • getInterconnectAttachmentCallable() *

*
CreateInterconnectAttachment

CreateInterconnectAttachment

Creates a new InterconnectAttachment in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createInterconnectAttachmentAsync(CreateInterconnectAttachmentRequest request) + *
  • createInterconnectAttachmentAsync(CreateInterconnectAttachmentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createInterconnectAttachmentAsync(ZoneName parent, InterconnectAttachment interconnectAttachment, String interconnectAttachmentId) - *
  • createInterconnectAttachmentAsync(String parent, InterconnectAttachment interconnectAttachment, String interconnectAttachmentId) + *
  • createInterconnectAttachmentAsync(ZoneName parent, InterconnectAttachment interconnectAttachment, String interconnectAttachmentId) + *

  • createInterconnectAttachmentAsync(String parent, InterconnectAttachment interconnectAttachment, String interconnectAttachmentId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createInterconnectAttachmentOperationCallable() - *
  • createInterconnectAttachmentCallable() + *
  • createInterconnectAttachmentOperationCallable() + *

  • createInterconnectAttachmentCallable() *

*
DeleteInterconnectAttachment

DeleteInterconnectAttachment

Deletes a single InterconnectAttachment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteInterconnectAttachmentAsync(DeleteInterconnectAttachmentRequest request) + *
  • deleteInterconnectAttachmentAsync(DeleteInterconnectAttachmentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteInterconnectAttachmentAsync(InterconnectAttachmentName name) - *
  • deleteInterconnectAttachmentAsync(String name) + *
  • deleteInterconnectAttachmentAsync(InterconnectAttachmentName name) + *

  • deleteInterconnectAttachmentAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteInterconnectAttachmentOperationCallable() - *
  • deleteInterconnectAttachmentCallable() + *
  • deleteInterconnectAttachmentOperationCallable() + *

  • deleteInterconnectAttachmentCallable() *

*
ListRouters

ListRouters

Lists Routers in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listRouters(ListRoutersRequest request) + *
  • listRouters(ListRoutersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listRouters(ZoneName parent) - *
  • listRouters(String parent) + *
  • listRouters(ZoneName parent) + *

  • listRouters(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listRoutersPagedCallable() - *
  • listRoutersCallable() + *
  • listRoutersPagedCallable() + *

  • listRoutersCallable() *

*
GetRouter

GetRouter

Gets details of a single Router.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getRouter(GetRouterRequest request) + *
  • getRouter(GetRouterRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getRouter(RouterName name) - *
  • getRouter(String name) + *
  • getRouter(RouterName name) + *

  • getRouter(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getRouterCallable() + *
  • getRouterCallable() *

*
DiagnoseRouter

DiagnoseRouter

Get the diagnostics of a single router resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • diagnoseRouter(DiagnoseRouterRequest request) + *
  • diagnoseRouter(DiagnoseRouterRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • diagnoseRouter(RouterName name) - *
  • diagnoseRouter(String name) + *
  • diagnoseRouter(RouterName name) + *

  • diagnoseRouter(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • diagnoseRouterCallable() + *
  • diagnoseRouterCallable() *

*
CreateRouter

CreateRouter

Creates a new Router in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createRouterAsync(CreateRouterRequest request) + *
  • createRouterAsync(CreateRouterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createRouterAsync(ZoneName parent, Router router, String routerId) - *
  • createRouterAsync(String parent, Router router, String routerId) + *
  • createRouterAsync(ZoneName parent, Router router, String routerId) + *

  • createRouterAsync(String parent, Router router, String routerId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createRouterOperationCallable() - *
  • createRouterCallable() + *
  • createRouterOperationCallable() + *

  • createRouterCallable() *

*
UpdateRouter

UpdateRouter

Updates the parameters of a single Router.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateRouterAsync(UpdateRouterRequest request) + *
  • updateRouterAsync(UpdateRouterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateRouterAsync(Router router, FieldMask updateMask) + *
  • updateRouterAsync(Router router, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateRouterOperationCallable() - *
  • updateRouterCallable() + *
  • updateRouterOperationCallable() + *

  • updateRouterCallable() *

*
DeleteRouter

DeleteRouter

Deletes a single Router.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteRouterAsync(DeleteRouterRequest request) + *
  • deleteRouterAsync(DeleteRouterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteRouterAsync(RouterName name) - *
  • deleteRouterAsync(String name) + *
  • deleteRouterAsync(RouterName name) + *

  • deleteRouterAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteRouterOperationCallable() - *
  • deleteRouterCallable() + *
  • deleteRouterOperationCallable() + *

  • deleteRouterCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStubSettings.java b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStubSettings.java index dda3e6af25a4..ccd596386346 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStubSettings.java +++ b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStubSettings.java @@ -861,6 +861,15 @@ public EdgeNetworkStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -1290,7 +1299,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1303,7 +1311,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1956,6 +1963,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EdgeNetworkStubSettings build() throws IOException { return new EdgeNetworkStubSettings(this); diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index 4738c30c5d14..e31fa3559308 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-enterpriseknowledgegraph.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.29.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java index bba699dec848..8e5f0dcc4b06 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java @@ -62,183 +62,184 @@ * automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateEntityReconciliationJob

CreateEntityReconciliationJob

Creates a EntityReconciliationJob. A EntityReconciliationJob once created will right away be attempted to start.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createEntityReconciliationJob(CreateEntityReconciliationJobRequest request) + *
  • createEntityReconciliationJob(CreateEntityReconciliationJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createEntityReconciliationJob(LocationName parent, EntityReconciliationJob entityReconciliationJob) - *
  • createEntityReconciliationJob(String parent, EntityReconciliationJob entityReconciliationJob) + *
  • createEntityReconciliationJob(LocationName parent, EntityReconciliationJob entityReconciliationJob) + *

  • createEntityReconciliationJob(String parent, EntityReconciliationJob entityReconciliationJob) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createEntityReconciliationJobCallable() + *
  • createEntityReconciliationJobCallable() *

*
GetEntityReconciliationJob

GetEntityReconciliationJob

Gets a EntityReconciliationJob.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEntityReconciliationJob(GetEntityReconciliationJobRequest request) + *
  • getEntityReconciliationJob(GetEntityReconciliationJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getEntityReconciliationJob(EntityReconciliationJobName name) - *
  • getEntityReconciliationJob(String name) + *
  • getEntityReconciliationJob(EntityReconciliationJobName name) + *

  • getEntityReconciliationJob(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEntityReconciliationJobCallable() + *
  • getEntityReconciliationJobCallable() *

*
ListEntityReconciliationJobs

ListEntityReconciliationJobs

Lists Entity Reconciliation Jobs.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEntityReconciliationJobs(ListEntityReconciliationJobsRequest request) + *
  • listEntityReconciliationJobs(ListEntityReconciliationJobsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEntityReconciliationJobs(LocationName parent) - *
  • listEntityReconciliationJobs(String parent) + *
  • listEntityReconciliationJobs(LocationName parent) + *

  • listEntityReconciliationJobs(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listEntityReconciliationJobsPagedCallable() - *
  • listEntityReconciliationJobsCallable() + *
  • listEntityReconciliationJobsPagedCallable() + *

  • listEntityReconciliationJobsCallable() *

*
CancelEntityReconciliationJob

CancelEntityReconciliationJob

Cancels a EntityReconciliationJob. Success of cancellation is not guaranteed.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • cancelEntityReconciliationJob(CancelEntityReconciliationJobRequest request) + *
  • cancelEntityReconciliationJob(CancelEntityReconciliationJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • cancelEntityReconciliationJob(EntityReconciliationJobName name) - *
  • cancelEntityReconciliationJob(String name) + *
  • cancelEntityReconciliationJob(EntityReconciliationJobName name) + *

  • cancelEntityReconciliationJob(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • cancelEntityReconciliationJobCallable() + *
  • cancelEntityReconciliationJobCallable() *

*
DeleteEntityReconciliationJob

DeleteEntityReconciliationJob

Deletes a EntityReconciliationJob. It only deletes the job when the job state is in FAILED, SUCCEEDED, and CANCELLED.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteEntityReconciliationJob(DeleteEntityReconciliationJobRequest request) + *
  • deleteEntityReconciliationJob(DeleteEntityReconciliationJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteEntityReconciliationJob(EntityReconciliationJobName name) - *
  • deleteEntityReconciliationJob(String name) + *
  • deleteEntityReconciliationJob(EntityReconciliationJobName name) + *

  • deleteEntityReconciliationJob(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteEntityReconciliationJobCallable() + *
  • deleteEntityReconciliationJobCallable() *

*
Lookup

Lookup

Finds the Cloud KG entities with CKG ID(s).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • lookup(LookupRequest request) + *
  • lookup(LookupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • lookup(LocationName parent, List ids) - *
  • lookup(String parent, List ids) + *
  • lookup(LocationName parent, List<String> ids) + *

  • lookup(String parent, List<String> ids) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • lookupCallable() + *
  • lookupCallable() *

*
Search

Search

Searches the Cloud KG entities with entity name.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • search(SearchRequest request) + *
  • search(SearchRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • search(LocationName parent, String query) - *
  • search(String parent, String query) + *
  • search(LocationName parent, String query) + *

  • search(String parent, String query) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchCallable() + *
  • searchCallable() *

*
LookupPublicKg

LookupPublicKg

Finds the public KG entities with public KG ID(s).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • lookupPublicKg(LookupPublicKgRequest request) + *
  • lookupPublicKg(LookupPublicKgRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • lookupPublicKg(LocationName parent, List ids) - *
  • lookupPublicKg(String parent, List ids) + *
  • lookupPublicKg(LocationName parent, List<String> ids) + *

  • lookupPublicKg(String parent, List<String> ids) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • lookupPublicKgCallable() + *
  • lookupPublicKgCallable() *

*
SearchPublicKg

SearchPublicKg

Searches the public KG entities with entity name.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • searchPublicKg(SearchPublicKgRequest request) + *
  • searchPublicKg(SearchPublicKgRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • searchPublicKg(LocationName parent, String query) - *
  • searchPublicKg(String parent, String query) + *
  • searchPublicKg(LocationName parent, String query) + *

  • searchPublicKg(String parent, String query) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchPublicKgCallable() + *
  • searchPublicKgCallable() *

*
* *

See the individual methods for example code. diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java index 0e7e5e6fd26a..fb6d9b4d00f2 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java @@ -285,6 +285,15 @@ public EnterpriseKnowledgeGraphServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -537,7 +546,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -550,7 +558,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -676,6 +683,15 @@ public UnaryCallSettings.Builder searchSettings() return searchPublicKgSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EnterpriseKnowledgeGraphServiceStubSettings build() throws IOException { return new EnterpriseKnowledgeGraphServiceStubSettings(this); diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index 34cd669bf9ad..6ad180753d63 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-errorreporting.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.153.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.154.0-beta [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java index 2800e82c0c87..a5a06b4920e9 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java @@ -49,48 +49,49 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetGroup

GetGroup

Get the specified group.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getGroup(GetGroupRequest request) + *
  • getGroup(GetGroupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getGroup(ErrorGroupName groupName) - *
  • getGroup(String groupName) + *
  • getGroup(ErrorGroupName groupName) + *

  • getGroup(String groupName) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getGroupCallable() + *
  • getGroupCallable() *

*
UpdateGroup

UpdateGroup

Replace the data for the specified group. Fails if the group does not exist.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateGroup(UpdateGroupRequest request) + *
  • updateGroup(UpdateGroupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateGroup(ErrorGroup group) + *
  • updateGroup(ErrorGroup group) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateGroupCallable() + *
  • updateGroupCallable() *

*
* *

See the individual methods for example code. diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java index 9bd9438db89c..9ae27c5b8900 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java @@ -58,70 +58,71 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListGroupStats

ListGroupStats

Lists the specified groups.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listGroupStats(ListGroupStatsRequest request) + *
  • listGroupStats(ListGroupStatsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listGroupStats(ProjectName projectName, QueryTimeRange timeRange) - *
  • listGroupStats(String projectName, QueryTimeRange timeRange) + *
  • listGroupStats(ProjectName projectName, QueryTimeRange timeRange) + *

  • listGroupStats(String projectName, QueryTimeRange timeRange) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listGroupStatsPagedCallable() - *
  • listGroupStatsCallable() + *
  • listGroupStatsPagedCallable() + *

  • listGroupStatsCallable() *

*
ListEvents

ListEvents

Lists the specified events.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEvents(ListEventsRequest request) + *
  • listEvents(ListEventsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEvents(ProjectName projectName, String groupId) - *
  • listEvents(String projectName, String groupId) + *
  • listEvents(ProjectName projectName, String groupId) + *

  • listEvents(String projectName, String groupId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listEventsPagedCallable() - *
  • listEventsCallable() + *
  • listEventsPagedCallable() + *

  • listEventsCallable() *

*
DeleteEvents

DeleteEvents

Deletes all error events of a given project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteEvents(DeleteEventsRequest request) + *
  • deleteEvents(DeleteEventsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteEvents(ProjectName projectName) - *
  • deleteEvents(String projectName) + *
  • deleteEvents(ProjectName projectName) + *

  • deleteEvents(String projectName) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteEventsCallable() + *
  • deleteEventsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java index 4684f19b789f..2dcd39f7fc9d 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java @@ -51,12 +51,14 @@ * close(). * * + * * * * * + * * - * + * * * - * *
Methods
MethodDescriptionMethod Variants
ReportErrorEvent

ReportErrorEvent

Report an individual error event and record the event to a log. *

This endpoint accepts **either** an OAuth token, *

    @@ -67,20 +69,19 @@ *
*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • reportErrorEvent(ReportErrorEventRequest request) + *
  • reportErrorEvent(ReportErrorEventRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • reportErrorEvent(ProjectName projectName, ReportedErrorEvent event) - *
  • reportErrorEvent(String projectName, ReportedErrorEvent event) + *
  • reportErrorEvent(ProjectName projectName, ReportedErrorEvent event) + *

  • reportErrorEvent(String projectName, ReportedErrorEvent event) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • reportErrorEventCallable() + *
  • reportErrorEventCallable() *

*
* *

See the individual methods for example code. diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java index aa91ee58b9c4..0e5c684b3005 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java @@ -121,6 +121,15 @@ public ErrorGroupServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -290,7 +299,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -303,7 +311,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -349,6 +356,15 @@ public UnaryCallSettings.Builder updateGroupSett return updateGroupSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ErrorGroupServiceStubSettings build() throws IOException { return new ErrorGroupServiceStubSettings(this); diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java index c5c9755bbbbe..86f0c701fa97 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java @@ -259,6 +259,15 @@ public ErrorStatsServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -439,7 +448,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -452,7 +460,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -512,6 +519,15 @@ public Builder applyToAllUnaryMethods( return deleteEventsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ErrorStatsServiceStubSettings build() throws IOException { return new ErrorStatsServiceStubSettings(this); diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java index dd7f8c6eed52..f886f0f696db 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java @@ -116,6 +116,15 @@ public ReportErrorsServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -277,7 +286,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -290,7 +298,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -327,6 +334,15 @@ public Builder applyToAllUnaryMethods( return reportErrorEventSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ReportErrorsServiceStubSettings build() throws IOException { return new ReportErrorsServiceStubSettings(this); diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index 3c7d6c342036..209a39290321 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-essential-contacts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.33.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java index ea148b04265b..24eb4ed2bbb9 100644 --- a/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java +++ b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java @@ -60,139 +60,140 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateContact

CreateContact

Adds a new contact for a resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createContact(CreateContactRequest request) + *
  • createContact(CreateContactRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createContact(FolderName parent, Contact contact) - *
  • createContact(OrganizationName parent, Contact contact) - *
  • createContact(ProjectName parent, Contact contact) - *
  • createContact(String parent, Contact contact) + *
  • createContact(FolderName parent, Contact contact) + *

  • createContact(OrganizationName parent, Contact contact) + *

  • createContact(ProjectName parent, Contact contact) + *

  • createContact(String parent, Contact contact) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createContactCallable() + *
  • createContactCallable() *

*
UpdateContact

UpdateContact

Updates a contact. Note: A contact's email address cannot be changed.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateContact(UpdateContactRequest request) + *
  • updateContact(UpdateContactRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateContact(Contact contact, FieldMask updateMask) + *
  • updateContact(Contact contact, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateContactCallable() + *
  • updateContactCallable() *

*
ListContacts

ListContacts

Lists the contacts that have been set on a resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listContacts(ListContactsRequest request) + *
  • listContacts(ListContactsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listContacts(FolderName parent) - *
  • listContacts(OrganizationName parent) - *
  • listContacts(ProjectName parent) - *
  • listContacts(String parent) + *
  • listContacts(FolderName parent) + *

  • listContacts(OrganizationName parent) + *

  • listContacts(ProjectName parent) + *

  • listContacts(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listContactsPagedCallable() - *
  • listContactsCallable() + *
  • listContactsPagedCallable() + *

  • listContactsCallable() *

*
GetContact

GetContact

Gets a single contact.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getContact(GetContactRequest request) + *
  • getContact(GetContactRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getContact(ContactName name) - *
  • getContact(String name) + *
  • getContact(ContactName name) + *

  • getContact(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getContactCallable() + *
  • getContactCallable() *

*
DeleteContact

DeleteContact

Deletes a contact.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteContact(DeleteContactRequest request) + *
  • deleteContact(DeleteContactRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteContact(ContactName name) - *
  • deleteContact(String name) + *
  • deleteContact(ContactName name) + *

  • deleteContact(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteContactCallable() + *
  • deleteContactCallable() *

*
ComputeContacts

ComputeContacts

Lists all contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • computeContacts(ComputeContactsRequest request) + *
  • computeContacts(ComputeContactsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • computeContactsPagedCallable() - *
  • computeContactsCallable() + *
  • computeContactsPagedCallable() + *

  • computeContactsCallable() *

*
SendTestMessage

SendTestMessage

Allows a contact admin to send a test message to contact to verify that it has been configured correctly.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • sendTestMessage(SendTestMessageRequest request) + *
  • sendTestMessage(SendTestMessageRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • sendTestMessageCallable() + *
  • sendTestMessageCallable() *

*
* *

See the individual methods for example code. diff --git a/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java index 745b8c0131e3..3c07d3751e0e 100644 --- a/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java +++ b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java @@ -284,6 +284,15 @@ public EssentialContactsServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -500,7 +509,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -513,7 +521,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -613,6 +620,15 @@ public UnaryCallSettings.Builder sendTestMessageS return sendTestMessageSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EssentialContactsServiceStubSettings build() throws IOException { return new EssentialContactsServiceStubSettings(this); diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 766aac4ee3b7..9042744f556e 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.33.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java index 74b2514ab20d..8b7f7e72b716 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java @@ -73,39 +73,40 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
PublishChannelConnectionEvents

PublishChannelConnectionEvents

Publish events to a ChannelConnection in a partner's project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • publishChannelConnectionEvents(PublishChannelConnectionEventsRequest request) + *
  • publishChannelConnectionEvents(PublishChannelConnectionEventsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • publishChannelConnectionEventsCallable() + *
  • publishChannelConnectionEventsCallable() *

*
PublishEvents

PublishEvents

Publish events to a subscriber's channel.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • publishEvents(PublishEventsRequest request) + *
  • publishEvents(PublishEventsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • publishEventsCallable() + *
  • publishEventsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java index 327d6fbae0c2..83bcc6537ebd 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java @@ -124,6 +124,15 @@ public PublisherStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -295,7 +304,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -308,7 +316,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -357,6 +364,15 @@ public Builder applyToAllUnaryMethods( return publishEventsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public PublisherStubSettings build() throws IOException { return new PublisherStubSettings(this); diff --git a/java-eventarc/README.md b/java-eventarc/README.md index dfb32cdfdf43..56d9781a5a1a 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.33.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcClient.java b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcClient.java index 3e52c1916552..27e28e85dcb1 100644 --- a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcClient.java +++ b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcClient.java @@ -71,435 +71,436 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetTrigger

GetTrigger

Get a single trigger.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTrigger(GetTriggerRequest request) + *
  • getTrigger(GetTriggerRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTrigger(TriggerName name) - *
  • getTrigger(String name) + *
  • getTrigger(TriggerName name) + *

  • getTrigger(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTriggerCallable() + *
  • getTriggerCallable() *

*
ListTriggers

ListTriggers

List triggers.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTriggers(ListTriggersRequest request) + *
  • listTriggers(ListTriggersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTriggers(LocationName parent) - *
  • listTriggers(String parent) + *
  • listTriggers(LocationName parent) + *

  • listTriggers(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTriggersPagedCallable() - *
  • listTriggersCallable() + *
  • listTriggersPagedCallable() + *

  • listTriggersCallable() *

*
CreateTrigger

CreateTrigger

Create a new trigger in a particular project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createTriggerAsync(CreateTriggerRequest request) + *
  • createTriggerAsync(CreateTriggerRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createTriggerAsync(LocationName parent, Trigger trigger, String triggerId) - *
  • createTriggerAsync(String parent, Trigger trigger, String triggerId) + *
  • createTriggerAsync(LocationName parent, Trigger trigger, String triggerId) + *

  • createTriggerAsync(String parent, Trigger trigger, String triggerId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createTriggerOperationCallable() - *
  • createTriggerCallable() + *
  • createTriggerOperationCallable() + *

  • createTriggerCallable() *

*
UpdateTrigger

UpdateTrigger

Update a single trigger.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateTriggerAsync(UpdateTriggerRequest request) + *
  • updateTriggerAsync(UpdateTriggerRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateTriggerAsync(Trigger trigger, FieldMask updateMask, boolean allowMissing) + *
  • updateTriggerAsync(Trigger trigger, FieldMask updateMask, boolean allowMissing) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateTriggerOperationCallable() - *
  • updateTriggerCallable() + *
  • updateTriggerOperationCallable() + *

  • updateTriggerCallable() *

*
DeleteTrigger

DeleteTrigger

Delete a single trigger.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteTriggerAsync(DeleteTriggerRequest request) + *
  • deleteTriggerAsync(DeleteTriggerRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteTriggerAsync(TriggerName name, boolean allowMissing) - *
  • deleteTriggerAsync(String name, boolean allowMissing) + *
  • deleteTriggerAsync(TriggerName name, boolean allowMissing) + *

  • deleteTriggerAsync(String name, boolean allowMissing) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteTriggerOperationCallable() - *
  • deleteTriggerCallable() + *
  • deleteTriggerOperationCallable() + *

  • deleteTriggerCallable() *

*
GetChannel

GetChannel

Get a single Channel.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getChannel(GetChannelRequest request) + *
  • getChannel(GetChannelRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getChannel(ChannelName name) - *
  • getChannel(String name) + *
  • getChannel(ChannelName name) + *

  • getChannel(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getChannelCallable() + *
  • getChannelCallable() *

*
ListChannels

ListChannels

List channels.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listChannels(ListChannelsRequest request) + *
  • listChannels(ListChannelsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listChannels(LocationName parent) - *
  • listChannels(String parent) + *
  • listChannels(LocationName parent) + *

  • listChannels(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listChannelsPagedCallable() - *
  • listChannelsCallable() + *
  • listChannelsPagedCallable() + *

  • listChannelsCallable() *

*
CreateChannel

CreateChannel

Create a new channel in a particular project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createChannelAsync(CreateChannelRequest request) + *
  • createChannelAsync(CreateChannelRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createChannelAsync(LocationName parent, Channel channel, String channelId) - *
  • createChannelAsync(String parent, Channel channel, String channelId) + *
  • createChannelAsync(LocationName parent, Channel channel, String channelId) + *

  • createChannelAsync(String parent, Channel channel, String channelId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createChannelOperationCallable() - *
  • createChannelCallable() + *
  • createChannelOperationCallable() + *

  • createChannelCallable() *

*
UpdateChannel

UpdateChannel

Update a single channel.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateChannelAsync(UpdateChannelRequest request) + *
  • updateChannelAsync(UpdateChannelRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateChannelAsync(Channel channel, FieldMask updateMask) + *
  • updateChannelAsync(Channel channel, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateChannelOperationCallable() - *
  • updateChannelCallable() + *
  • updateChannelOperationCallable() + *

  • updateChannelCallable() *

*
DeleteChannel

DeleteChannel

Delete a single channel.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteChannelAsync(DeleteChannelRequest request) + *
  • deleteChannelAsync(DeleteChannelRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteChannelAsync(ChannelName name) - *
  • deleteChannelAsync(String name) + *
  • deleteChannelAsync(ChannelName name) + *

  • deleteChannelAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteChannelOperationCallable() - *
  • deleteChannelCallable() + *
  • deleteChannelOperationCallable() + *

  • deleteChannelCallable() *

*
GetProvider

GetProvider

Get a single Provider.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getProvider(GetProviderRequest request) + *
  • getProvider(GetProviderRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getProvider(ProviderName name) - *
  • getProvider(String name) + *
  • getProvider(ProviderName name) + *

  • getProvider(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getProviderCallable() + *
  • getProviderCallable() *

*
ListProviders

ListProviders

List providers.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listProviders(ListProvidersRequest request) + *
  • listProviders(ListProvidersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listProviders(LocationName parent) - *
  • listProviders(String parent) + *
  • listProviders(LocationName parent) + *

  • listProviders(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listProvidersPagedCallable() - *
  • listProvidersCallable() + *
  • listProvidersPagedCallable() + *

  • listProvidersCallable() *

*
GetChannelConnection

GetChannelConnection

Get a single ChannelConnection.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getChannelConnection(GetChannelConnectionRequest request) + *
  • getChannelConnection(GetChannelConnectionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getChannelConnection(ChannelConnectionName name) - *
  • getChannelConnection(String name) + *
  • getChannelConnection(ChannelConnectionName name) + *

  • getChannelConnection(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getChannelConnectionCallable() + *
  • getChannelConnectionCallable() *

*
ListChannelConnections

ListChannelConnections

List channel connections.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listChannelConnections(ListChannelConnectionsRequest request) + *
  • listChannelConnections(ListChannelConnectionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listChannelConnections(LocationName parent) - *
  • listChannelConnections(String parent) + *
  • listChannelConnections(LocationName parent) + *

  • listChannelConnections(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listChannelConnectionsPagedCallable() - *
  • listChannelConnectionsCallable() + *
  • listChannelConnectionsPagedCallable() + *

  • listChannelConnectionsCallable() *

*
CreateChannelConnection

CreateChannelConnection

Create a new ChannelConnection in a particular project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createChannelConnectionAsync(CreateChannelConnectionRequest request) + *
  • createChannelConnectionAsync(CreateChannelConnectionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createChannelConnectionAsync(LocationName parent, ChannelConnection channelConnection, String channelConnectionId) - *
  • createChannelConnectionAsync(String parent, ChannelConnection channelConnection, String channelConnectionId) + *
  • createChannelConnectionAsync(LocationName parent, ChannelConnection channelConnection, String channelConnectionId) + *

  • createChannelConnectionAsync(String parent, ChannelConnection channelConnection, String channelConnectionId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createChannelConnectionOperationCallable() - *
  • createChannelConnectionCallable() + *
  • createChannelConnectionOperationCallable() + *

  • createChannelConnectionCallable() *

*
DeleteChannelConnection

DeleteChannelConnection

Delete a single ChannelConnection.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteChannelConnectionAsync(DeleteChannelConnectionRequest request) + *
  • deleteChannelConnectionAsync(DeleteChannelConnectionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteChannelConnectionAsync(ChannelConnectionName name) - *
  • deleteChannelConnectionAsync(String name) + *
  • deleteChannelConnectionAsync(ChannelConnectionName name) + *

  • deleteChannelConnectionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteChannelConnectionOperationCallable() - *
  • deleteChannelConnectionCallable() + *
  • deleteChannelConnectionOperationCallable() + *

  • deleteChannelConnectionCallable() *

*
GetGoogleChannelConfig

GetGoogleChannelConfig

Get a GoogleChannelConfig

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getGoogleChannelConfig(GetGoogleChannelConfigRequest request) + *
  • getGoogleChannelConfig(GetGoogleChannelConfigRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getGoogleChannelConfig(GoogleChannelConfigName name) - *
  • getGoogleChannelConfig(String name) + *
  • getGoogleChannelConfig(GoogleChannelConfigName name) + *

  • getGoogleChannelConfig(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getGoogleChannelConfigCallable() + *
  • getGoogleChannelConfigCallable() *

*
UpdateGoogleChannelConfig

UpdateGoogleChannelConfig

Update a single GoogleChannelConfig

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateGoogleChannelConfig(UpdateGoogleChannelConfigRequest request) + *
  • updateGoogleChannelConfig(UpdateGoogleChannelConfigRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateGoogleChannelConfig(GoogleChannelConfig googleChannelConfig, FieldMask updateMask) + *
  • updateGoogleChannelConfig(GoogleChannelConfig googleChannelConfig, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateGoogleChannelConfigCallable() + *
  • updateGoogleChannelConfigCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
SetIamPolicy

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setIamPolicy(SetIamPolicyRequest request) + *
  • setIamPolicy(SetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setIamPolicyCallable() + *
  • setIamPolicyCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIamPolicy(GetIamPolicyRequest request) + *
  • getIamPolicy(GetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIamPolicyCallable() + *
  • getIamPolicyCallable() *

*
TestIamPermissions

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • testIamPermissions(TestIamPermissionsRequest request) + *
  • testIamPermissions(TestIamPermissionsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • testIamPermissionsCallable() + *
  • testIamPermissionsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStubSettings.java b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStubSettings.java index ce42a1e0e003..c5f1cfba9836 100644 --- a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStubSettings.java +++ b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStubSettings.java @@ -675,6 +675,15 @@ public EventarcStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -1024,7 +1033,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1037,7 +1045,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1569,6 +1576,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EventarcStubSettings build() throws IOException { return new EventarcStubSettings(this); diff --git a/java-filestore/README.md b/java-filestore/README.md index b8b8ef6cfbaa..f397079c6e9b 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-filestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.34.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java index 247574984ef2..c8ed6073cb50 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java @@ -89,336 +89,337 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListInstances

ListInstances

Lists all instances in a project for either a specified location or for all locations.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listInstances(ListInstancesRequest request) + *
  • listInstances(ListInstancesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listInstances(LocationName parent) - *
  • listInstances(String parent) + *
  • listInstances(LocationName parent) + *

  • listInstances(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listInstancesPagedCallable() - *
  • listInstancesCallable() + *
  • listInstancesPagedCallable() + *

  • listInstancesCallable() *

*
GetInstance

GetInstance

Gets the details of a specific instance.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getInstance(GetInstanceRequest request) + *
  • getInstance(GetInstanceRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getInstance(InstanceName name) - *
  • getInstance(String name) + *
  • getInstance(InstanceName name) + *

  • getInstance(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getInstanceCallable() + *
  • getInstanceCallable() *

*
CreateInstance

CreateInstance

Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createInstanceAsync(CreateInstanceRequest request) + *
  • createInstanceAsync(CreateInstanceRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createInstanceAsync(LocationName parent, Instance instance, String instanceId) - *
  • createInstanceAsync(String parent, Instance instance, String instanceId) + *
  • createInstanceAsync(LocationName parent, Instance instance, String instanceId) + *

  • createInstanceAsync(String parent, Instance instance, String instanceId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createInstanceOperationCallable() - *
  • createInstanceCallable() + *
  • createInstanceOperationCallable() + *

  • createInstanceCallable() *

*
UpdateInstance

UpdateInstance

Updates the settings of a specific instance.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateInstanceAsync(UpdateInstanceRequest request) + *
  • updateInstanceAsync(UpdateInstanceRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateInstanceAsync(Instance instance, FieldMask updateMask) + *
  • updateInstanceAsync(Instance instance, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateInstanceOperationCallable() - *
  • updateInstanceCallable() + *
  • updateInstanceOperationCallable() + *

  • updateInstanceCallable() *

*
RestoreInstance

RestoreInstance

Restores an existing instance's file share from a backup. *

The capacity of the instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • restoreInstanceAsync(RestoreInstanceRequest request) + *
  • restoreInstanceAsync(RestoreInstanceRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • restoreInstanceOperationCallable() - *
  • restoreInstanceCallable() + *
  • restoreInstanceOperationCallable() + *

  • restoreInstanceCallable() *

*
RevertInstance

RevertInstance

Revert an existing instance's file system to a specified snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • revertInstanceAsync(RevertInstanceRequest request) + *
  • revertInstanceAsync(RevertInstanceRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • revertInstanceOperationCallable() - *
  • revertInstanceCallable() + *
  • revertInstanceOperationCallable() + *

  • revertInstanceCallable() *

*
DeleteInstance

DeleteInstance

Deletes an instance.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteInstanceAsync(DeleteInstanceRequest request) + *
  • deleteInstanceAsync(DeleteInstanceRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteInstanceAsync(InstanceName name) - *
  • deleteInstanceAsync(String name) + *
  • deleteInstanceAsync(InstanceName name) + *

  • deleteInstanceAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteInstanceOperationCallable() - *
  • deleteInstanceCallable() + *
  • deleteInstanceOperationCallable() + *

  • deleteInstanceCallable() *

*
ListSnapshots

ListSnapshots

Lists all snapshots in a project for either a specified location or for all locations.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSnapshots(ListSnapshotsRequest request) + *
  • listSnapshots(ListSnapshotsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSnapshots(InstanceName parent) - *
  • listSnapshots(String parent) + *
  • listSnapshots(InstanceName parent) + *

  • listSnapshots(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSnapshotsPagedCallable() - *
  • listSnapshotsCallable() + *
  • listSnapshotsPagedCallable() + *

  • listSnapshotsCallable() *

*
GetSnapshot

GetSnapshot

Gets the details of a specific snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSnapshot(GetSnapshotRequest request) + *
  • getSnapshot(GetSnapshotRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSnapshot(SnapshotName name) - *
  • getSnapshot(String name) + *
  • getSnapshot(SnapshotName name) + *

  • getSnapshot(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSnapshotCallable() + *
  • getSnapshotCallable() *

*
CreateSnapshot

CreateSnapshot

Creates a snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSnapshotAsync(CreateSnapshotRequest request) + *
  • createSnapshotAsync(CreateSnapshotRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createSnapshotAsync(InstanceName parent, Snapshot snapshot, String snapshotId) - *
  • createSnapshotAsync(String parent, Snapshot snapshot, String snapshotId) + *
  • createSnapshotAsync(InstanceName parent, Snapshot snapshot, String snapshotId) + *

  • createSnapshotAsync(String parent, Snapshot snapshot, String snapshotId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSnapshotOperationCallable() - *
  • createSnapshotCallable() + *
  • createSnapshotOperationCallable() + *

  • createSnapshotCallable() *

*
DeleteSnapshot

DeleteSnapshot

Deletes a snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSnapshotAsync(DeleteSnapshotRequest request) + *
  • deleteSnapshotAsync(DeleteSnapshotRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteSnapshotAsync(SnapshotName name) - *
  • deleteSnapshotAsync(String name) + *
  • deleteSnapshotAsync(SnapshotName name) + *

  • deleteSnapshotAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSnapshotOperationCallable() - *
  • deleteSnapshotCallable() + *
  • deleteSnapshotOperationCallable() + *

  • deleteSnapshotCallable() *

*
UpdateSnapshot

UpdateSnapshot

Updates the settings of a specific snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSnapshotAsync(UpdateSnapshotRequest request) + *
  • updateSnapshotAsync(UpdateSnapshotRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateSnapshotAsync(Snapshot snapshot, FieldMask updateMask) + *
  • updateSnapshotAsync(Snapshot snapshot, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSnapshotOperationCallable() - *
  • updateSnapshotCallable() + *
  • updateSnapshotOperationCallable() + *

  • updateSnapshotCallable() *

*
ListBackups

ListBackups

Lists all backups in a project for either a specified location or for all locations.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listBackups(ListBackupsRequest request) + *
  • listBackups(ListBackupsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listBackups(LocationName parent) - *
  • listBackups(String parent) + *
  • listBackups(LocationName parent) + *

  • listBackups(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listBackupsPagedCallable() - *
  • listBackupsCallable() + *
  • listBackupsPagedCallable() + *

  • listBackupsCallable() *

*
GetBackup

GetBackup

Gets the details of a specific backup.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getBackup(GetBackupRequest request) + *
  • getBackup(GetBackupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getBackup(BackupName name) - *
  • getBackup(String name) + *
  • getBackup(BackupName name) + *

  • getBackup(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getBackupCallable() + *
  • getBackupCallable() *

*
CreateBackup

CreateBackup

Creates a backup.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createBackupAsync(CreateBackupRequest request) + *
  • createBackupAsync(CreateBackupRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createBackupAsync(LocationName parent, Backup backup, String backupId) - *
  • createBackupAsync(String parent, Backup backup, String backupId) + *
  • createBackupAsync(LocationName parent, Backup backup, String backupId) + *

  • createBackupAsync(String parent, Backup backup, String backupId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createBackupOperationCallable() - *
  • createBackupCallable() + *
  • createBackupOperationCallable() + *

  • createBackupCallable() *

*
DeleteBackup

DeleteBackup

Deletes a backup.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteBackupAsync(DeleteBackupRequest request) + *
  • deleteBackupAsync(DeleteBackupRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteBackupAsync(BackupName name) - *
  • deleteBackupAsync(String name) + *
  • deleteBackupAsync(BackupName name) + *

  • deleteBackupAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteBackupOperationCallable() - *
  • deleteBackupCallable() + *
  • deleteBackupOperationCallable() + *

  • deleteBackupCallable() *

*
UpdateBackup

UpdateBackup

Updates the settings of a specific backup.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateBackupAsync(UpdateBackupRequest request) + *
  • updateBackupAsync(UpdateBackupRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateBackupAsync(Backup backup, FieldMask updateMask) + *
  • updateBackupAsync(Backup backup, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateBackupOperationCallable() - *
  • updateBackupCallable() + *
  • updateBackupOperationCallable() + *

  • updateBackupCallable() *

*
* *

See the individual methods for example code. diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java index ead29eb02d74..096ed9fc76fc 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java @@ -503,6 +503,15 @@ public CloudFilestoreManagerStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -867,7 +876,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -880,7 +888,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1434,6 +1441,15 @@ public UnaryCallSettings.Builder updateBackupSet return updateBackupOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public CloudFilestoreManagerStubSettings build() throws IOException { return new CloudFilestoreManagerStubSettings(this); diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java index 9f2f29554095..da2c241449e7 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java @@ -89,434 +89,435 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListInstances

ListInstances

Lists all instances in a project for either a specified location or for all locations.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listInstances(ListInstancesRequest request) + *
  • listInstances(ListInstancesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listInstances(LocationName parent) - *
  • listInstances(String parent) + *
  • listInstances(LocationName parent) + *

  • listInstances(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listInstancesPagedCallable() - *
  • listInstancesCallable() + *
  • listInstancesPagedCallable() + *

  • listInstancesCallable() *

*
GetInstance

GetInstance

Gets the details of a specific instance.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getInstance(GetInstanceRequest request) + *
  • getInstance(GetInstanceRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getInstance(InstanceName name) - *
  • getInstance(String name) + *
  • getInstance(InstanceName name) + *

  • getInstance(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getInstanceCallable() + *
  • getInstanceCallable() *

*
CreateInstance

CreateInstance

Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createInstanceAsync(CreateInstanceRequest request) + *
  • createInstanceAsync(CreateInstanceRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createInstanceAsync(LocationName parent, Instance instance, String instanceId) - *
  • createInstanceAsync(String parent, Instance instance, String instanceId) + *
  • createInstanceAsync(LocationName parent, Instance instance, String instanceId) + *

  • createInstanceAsync(String parent, Instance instance, String instanceId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createInstanceOperationCallable() - *
  • createInstanceCallable() + *
  • createInstanceOperationCallable() + *

  • createInstanceCallable() *

*
UpdateInstance

UpdateInstance

Updates the settings of a specific instance.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateInstanceAsync(UpdateInstanceRequest request) + *
  • updateInstanceAsync(UpdateInstanceRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateInstanceAsync(Instance instance, FieldMask updateMask) + *
  • updateInstanceAsync(Instance instance, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateInstanceOperationCallable() - *
  • updateInstanceCallable() + *
  • updateInstanceOperationCallable() + *

  • updateInstanceCallable() *

*
RestoreInstance

RestoreInstance

Restores an existing instance's file share from a backup. *

The capacity of the instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • restoreInstanceAsync(RestoreInstanceRequest request) + *
  • restoreInstanceAsync(RestoreInstanceRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • restoreInstanceOperationCallable() - *
  • restoreInstanceCallable() + *
  • restoreInstanceOperationCallable() + *

  • restoreInstanceCallable() *

*
RevertInstance

RevertInstance

Revert an existing instance's file system to a specified snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • revertInstanceAsync(RevertInstanceRequest request) + *
  • revertInstanceAsync(RevertInstanceRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • revertInstanceOperationCallable() - *
  • revertInstanceCallable() + *
  • revertInstanceOperationCallable() + *

  • revertInstanceCallable() *

*
DeleteInstance

DeleteInstance

Deletes an instance.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteInstanceAsync(DeleteInstanceRequest request) + *
  • deleteInstanceAsync(DeleteInstanceRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteInstanceAsync(InstanceName name) - *
  • deleteInstanceAsync(String name) + *
  • deleteInstanceAsync(InstanceName name) + *

  • deleteInstanceAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteInstanceOperationCallable() - *
  • deleteInstanceCallable() + *
  • deleteInstanceOperationCallable() + *

  • deleteInstanceCallable() *

*
ListSnapshots

ListSnapshots

Lists all snapshots in a project for either a specified location or for all locations.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSnapshots(ListSnapshotsRequest request) + *
  • listSnapshots(ListSnapshotsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSnapshots(InstanceName parent) - *
  • listSnapshots(String parent) + *
  • listSnapshots(InstanceName parent) + *

  • listSnapshots(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSnapshotsPagedCallable() - *
  • listSnapshotsCallable() + *
  • listSnapshotsPagedCallable() + *

  • listSnapshotsCallable() *

*
GetSnapshot

GetSnapshot

Gets the details of a specific snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSnapshot(GetSnapshotRequest request) + *
  • getSnapshot(GetSnapshotRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSnapshot(SnapshotName name) - *
  • getSnapshot(String name) + *
  • getSnapshot(SnapshotName name) + *

  • getSnapshot(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSnapshotCallable() + *
  • getSnapshotCallable() *

*
CreateSnapshot

CreateSnapshot

Creates a snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSnapshotAsync(CreateSnapshotRequest request) + *
  • createSnapshotAsync(CreateSnapshotRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createSnapshotAsync(InstanceName parent, Snapshot snapshot, String snapshotId) - *
  • createSnapshotAsync(String parent, Snapshot snapshot, String snapshotId) + *
  • createSnapshotAsync(InstanceName parent, Snapshot snapshot, String snapshotId) + *

  • createSnapshotAsync(String parent, Snapshot snapshot, String snapshotId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSnapshotOperationCallable() - *
  • createSnapshotCallable() + *
  • createSnapshotOperationCallable() + *

  • createSnapshotCallable() *

*
DeleteSnapshot

DeleteSnapshot

Deletes a snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSnapshotAsync(DeleteSnapshotRequest request) + *
  • deleteSnapshotAsync(DeleteSnapshotRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteSnapshotAsync(SnapshotName name) - *
  • deleteSnapshotAsync(String name) + *
  • deleteSnapshotAsync(SnapshotName name) + *

  • deleteSnapshotAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSnapshotOperationCallable() - *
  • deleteSnapshotCallable() + *
  • deleteSnapshotOperationCallable() + *

  • deleteSnapshotCallable() *

*
UpdateSnapshot

UpdateSnapshot

Updates the settings of a specific snapshot.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSnapshotAsync(UpdateSnapshotRequest request) + *
  • updateSnapshotAsync(UpdateSnapshotRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateSnapshotAsync(Snapshot snapshot, FieldMask updateMask) + *
  • updateSnapshotAsync(Snapshot snapshot, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateSnapshotOperationCallable() - *
  • updateSnapshotCallable() + *
  • updateSnapshotOperationCallable() + *

  • updateSnapshotCallable() *

*
ListBackups

ListBackups

Lists all backups in a project for either a specified location or for all locations.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listBackups(ListBackupsRequest request) + *
  • listBackups(ListBackupsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listBackups(LocationName parent) - *
  • listBackups(String parent) + *
  • listBackups(LocationName parent) + *

  • listBackups(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listBackupsPagedCallable() - *
  • listBackupsCallable() + *
  • listBackupsPagedCallable() + *

  • listBackupsCallable() *

*
GetBackup

GetBackup

Gets the details of a specific backup.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getBackup(GetBackupRequest request) + *
  • getBackup(GetBackupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getBackup(BackupName name) - *
  • getBackup(String name) + *
  • getBackup(BackupName name) + *

  • getBackup(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getBackupCallable() + *
  • getBackupCallable() *

*
CreateBackup

CreateBackup

Creates a backup.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createBackupAsync(CreateBackupRequest request) + *
  • createBackupAsync(CreateBackupRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createBackupAsync(LocationName parent, Backup backup, String backupId) - *
  • createBackupAsync(String parent, Backup backup, String backupId) + *
  • createBackupAsync(LocationName parent, Backup backup, String backupId) + *

  • createBackupAsync(String parent, Backup backup, String backupId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createBackupOperationCallable() - *
  • createBackupCallable() + *
  • createBackupOperationCallable() + *

  • createBackupCallable() *

*
DeleteBackup

DeleteBackup

Deletes a backup.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteBackupAsync(DeleteBackupRequest request) + *
  • deleteBackupAsync(DeleteBackupRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteBackupAsync(BackupName name) - *
  • deleteBackupAsync(String name) + *
  • deleteBackupAsync(BackupName name) + *

  • deleteBackupAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteBackupOperationCallable() - *
  • deleteBackupCallable() + *
  • deleteBackupOperationCallable() + *

  • deleteBackupCallable() *

*
UpdateBackup

UpdateBackup

Updates the settings of a specific backup.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateBackupAsync(UpdateBackupRequest request) + *
  • updateBackupAsync(UpdateBackupRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateBackupAsync(Backup backup, FieldMask updateMask) + *
  • updateBackupAsync(Backup backup, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateBackupOperationCallable() - *
  • updateBackupCallable() + *
  • updateBackupOperationCallable() + *

  • updateBackupCallable() *

*
ListShares

ListShares

Lists all shares for a specified instance.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listShares(ListSharesRequest request) + *
  • listShares(ListSharesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listShares(InstanceName parent) - *
  • listShares(String parent) + *
  • listShares(InstanceName parent) + *

  • listShares(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listSharesPagedCallable() - *
  • listSharesCallable() + *
  • listSharesPagedCallable() + *

  • listSharesCallable() *

*
GetShare

GetShare

Gets the details of a specific share.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getShare(GetShareRequest request) + *
  • getShare(GetShareRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getShare(ShareName name) - *
  • getShare(String name) + *
  • getShare(ShareName name) + *

  • getShare(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getShareCallable() + *
  • getShareCallable() *

*
CreateShare

CreateShare

Creates a share.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createShareAsync(CreateShareRequest request) + *
  • createShareAsync(CreateShareRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createShareAsync(InstanceName parent, Share share, String shareId) - *
  • createShareAsync(String parent, Share share, String shareId) + *
  • createShareAsync(InstanceName parent, Share share, String shareId) + *

  • createShareAsync(String parent, Share share, String shareId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createShareOperationCallable() - *
  • createShareCallable() + *
  • createShareOperationCallable() + *

  • createShareCallable() *

*
DeleteShare

DeleteShare

Deletes a share.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteShareAsync(DeleteShareRequest request) + *
  • deleteShareAsync(DeleteShareRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteShareAsync(ShareName name) - *
  • deleteShareAsync(String name) + *
  • deleteShareAsync(ShareName name) + *

  • deleteShareAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteShareOperationCallable() - *
  • deleteShareCallable() + *
  • deleteShareOperationCallable() + *

  • deleteShareCallable() *

*
UpdateShare

UpdateShare

Updates the settings of a specific share.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateShareAsync(UpdateShareRequest request) + *
  • updateShareAsync(UpdateShareRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateShareAsync(Share share, FieldMask updateMask) + *
  • updateShareAsync(Share share, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateShareOperationCallable() - *
  • updateShareCallable() + *
  • updateShareOperationCallable() + *

  • updateShareCallable() *

*
* *

See the individual methods for example code. diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java index f95c2a8b95db..3a66e31464e3 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java @@ -621,6 +621,15 @@ public CloudFilestoreManagerStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -1032,7 +1041,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1045,7 +1053,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1743,6 +1750,15 @@ public UnaryCallSettings.Builder updateShareSetti return updateShareOperationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public CloudFilestoreManagerStubSettings build() throws IOException { return new CloudFilestoreManagerStubSettings(this); diff --git a/java-functions/README.md b/java-functions/README.md index be4b21d57c7f..7037c1cb075c 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-functions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.35.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java index 6f30cfb2954c..2258865fde8e 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java @@ -71,124 +71,126 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListFunctions

ListFunctions

Returns a list of functions that belong to the requested project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listFunctions(ListFunctionsRequest request) + *
  • listFunctions(ListFunctionsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listFunctionsPagedCallable() - *
  • listFunctionsCallable() + *
  • listFunctionsPagedCallable() + *

  • listFunctionsCallable() *

*
GetFunction

GetFunction

Returns a function with the given name from the requested project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getFunction(GetFunctionRequest request) + *
  • getFunction(GetFunctionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getFunction(CloudFunctionName name) - *
  • getFunction(String name) + *
  • getFunction(CloudFunctionName name) + *

  • getFunction(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getFunctionCallable() + *
  • getFunctionCallable() *

*
CreateFunction

CreateFunction

Creates a new function. If a function with the given name already exists in the specified project, the long running operation returns an `ALREADY_EXISTS` error.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createFunctionAsync(CreateFunctionRequest request) + *
  • createFunctionAsync(CreateFunctionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createFunctionAsync(LocationName location, CloudFunction function) - *
  • createFunctionAsync(String location, CloudFunction function) + *
  • createFunctionAsync(LocationName location, CloudFunction function) + *

  • createFunctionAsync(String location, CloudFunction function) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createFunctionOperationCallable() - *
  • createFunctionCallable() + *
  • createFunctionOperationCallable() + *

  • createFunctionCallable() *

*
UpdateFunction

UpdateFunction

Updates existing function.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateFunctionAsync(UpdateFunctionRequest request) + *
  • updateFunctionAsync(UpdateFunctionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateFunctionAsync(CloudFunction function) + *
  • updateFunctionAsync(CloudFunction function) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateFunctionOperationCallable() - *
  • updateFunctionCallable() + *
  • updateFunctionOperationCallable() + *

  • updateFunctionCallable() *

*
DeleteFunction

DeleteFunction

Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger is updated to remove this function.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteFunctionAsync(DeleteFunctionRequest request) + *
  • deleteFunctionAsync(DeleteFunctionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteFunctionAsync(CloudFunctionName name) - *
  • deleteFunctionAsync(String name) + *
  • deleteFunctionAsync(CloudFunctionName name) + *

  • deleteFunctionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteFunctionOperationCallable() - *
  • deleteFunctionCallable() + *
  • deleteFunctionOperationCallable() + *

  • deleteFunctionCallable() *

*
CallFunction

CallFunction

Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very limited traffic is allowed. For more information on the actual limits, refer to [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • callFunction(CallFunctionRequest request) + *
  • callFunction(CallFunctionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • callFunction(CloudFunctionName name, String data) - *
  • callFunction(String name, String data) + *
  • callFunction(CloudFunctionName name, String data) + *

  • callFunction(String name, String data) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • callFunctionCallable() + *
  • callFunctionCallable() *

*
GenerateUploadUrl

GenerateUploadUrl

Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. *

When uploading source code to the generated signed URL, please follow these restrictions: *

    @@ -208,86 +210,85 @@ *
*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateUploadUrl(GenerateUploadUrlRequest request) + *
  • generateUploadUrl(GenerateUploadUrlRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateUploadUrlCallable() + *
  • generateUploadUrlCallable() *

*
GenerateDownloadUrl

GenerateDownloadUrl

Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and must be used within minutes after generation. For more information about the signed URL usage, see: https://cloud.google.com/storage/docs/access-control/signed-urls

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateDownloadUrl(GenerateDownloadUrlRequest request) + *
  • generateDownloadUrl(GenerateDownloadUrlRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateDownloadUrlCallable() + *
  • generateDownloadUrlCallable() *

*
SetIamPolicy

SetIamPolicy

Sets the IAM access control policy on the specified function. Replaces any existing policy.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setIamPolicy(SetIamPolicyRequest request) + *
  • setIamPolicy(SetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setIamPolicyCallable() + *
  • setIamPolicyCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the IAM access control policy for a function. Returns an empty policy if the function exists and does not have a policy set.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIamPolicy(GetIamPolicyRequest request) + *
  • getIamPolicy(GetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIamPolicyCallable() + *
  • getIamPolicyCallable() *

*
TestIamPermissions

TestIamPermissions

Tests the specified permissions against the IAM access control policy for a function. If the function does not exist, this returns an empty set of permissions, not a NOT_FOUND error.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • testIamPermissions(TestIamPermissionsRequest request) + *
  • testIamPermissions(TestIamPermissionsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • testIamPermissionsCallable() + *
  • testIamPermissionsCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java index 9a18581e8f7a..4c18628bdda9 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java @@ -359,6 +359,15 @@ public CloudFunctionsServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -634,7 +643,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -647,7 +655,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -897,6 +904,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return listLocationsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public CloudFunctionsServiceStubSettings build() throws IOException { return new CloudFunctionsServiceStubSettings(this); diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java index 87d40ca2f36c..802f7213e8e7 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java @@ -76,110 +76,112 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetFunction

GetFunction

Returns a function with the given name from the requested project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getFunction(GetFunctionRequest request) + *
  • getFunction(GetFunctionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getFunction(FunctionName name) - *
  • getFunction(String name) + *
  • getFunction(FunctionName name) + *

  • getFunction(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getFunctionCallable() + *
  • getFunctionCallable() *

*
ListFunctions

ListFunctions

Returns a list of functions that belong to the requested project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listFunctions(ListFunctionsRequest request) + *
  • listFunctions(ListFunctionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listFunctions(LocationName parent) - *
  • listFunctions(String parent) + *
  • listFunctions(LocationName parent) + *

  • listFunctions(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listFunctionsPagedCallable() - *
  • listFunctionsCallable() + *
  • listFunctionsPagedCallable() + *

  • listFunctionsCallable() *

*
CreateFunction

CreateFunction

Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createFunctionAsync(CreateFunctionRequest request) + *
  • createFunctionAsync(CreateFunctionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createFunctionAsync(LocationName parent, Function function, String functionId) - *
  • createFunctionAsync(String parent, Function function, String functionId) + *
  • createFunctionAsync(LocationName parent, Function function, String functionId) + *

  • createFunctionAsync(String parent, Function function, String functionId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createFunctionOperationCallable() - *
  • createFunctionCallable() + *
  • createFunctionOperationCallable() + *

  • createFunctionCallable() *

*
UpdateFunction

UpdateFunction

Updates existing function.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateFunctionAsync(UpdateFunctionRequest request) + *
  • updateFunctionAsync(UpdateFunctionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateFunctionAsync(Function function, FieldMask updateMask) + *
  • updateFunctionAsync(Function function, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateFunctionOperationCallable() - *
  • updateFunctionCallable() + *
  • updateFunctionOperationCallable() + *

  • updateFunctionCallable() *

*
DeleteFunction

DeleteFunction

Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteFunctionAsync(DeleteFunctionRequest request) + *
  • deleteFunctionAsync(DeleteFunctionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteFunctionAsync(FunctionName name) - *
  • deleteFunctionAsync(String name) + *
  • deleteFunctionAsync(FunctionName name) + *

  • deleteFunctionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteFunctionOperationCallable() - *
  • deleteFunctionCallable() + *
  • deleteFunctionOperationCallable() + *

  • deleteFunctionCallable() *

*
GenerateUploadUrl

GenerateUploadUrl

Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. *

When uploading source code to the generated signed URL, please follow these restrictions: *

    @@ -197,107 +199,106 @@ *
*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateUploadUrl(GenerateUploadUrlRequest request) + *
  • generateUploadUrl(GenerateUploadUrlRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateUploadUrlCallable() + *
  • generateUploadUrlCallable() *

*
GenerateDownloadUrl

GenerateDownloadUrl

Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateDownloadUrl(GenerateDownloadUrlRequest request) + *
  • generateDownloadUrl(GenerateDownloadUrlRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateDownloadUrlCallable() + *
  • generateDownloadUrlCallable() *

*
ListRuntimes

ListRuntimes

Returns a list of runtimes that are supported for the requested project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listRuntimes(ListRuntimesRequest request) + *
  • listRuntimes(ListRuntimesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listRuntimes(LocationName parent) - *
  • listRuntimes(String parent) + *
  • listRuntimes(LocationName parent) + *

  • listRuntimes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listRuntimesCallable() + *
  • listRuntimesCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
SetIamPolicy

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setIamPolicy(SetIamPolicyRequest request) + *
  • setIamPolicy(SetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setIamPolicyCallable() + *
  • setIamPolicyCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIamPolicy(GetIamPolicyRequest request) + *
  • getIamPolicy(GetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIamPolicyCallable() + *
  • getIamPolicyCallable() *

*
TestIamPermissions

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • testIamPermissions(TestIamPermissionsRequest request) + *
  • testIamPermissions(TestIamPermissionsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • testIamPermissionsCallable() + *
  • testIamPermissionsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java index 6cd9a4829e47..141e5b7f6c32 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java @@ -356,6 +356,15 @@ public FunctionServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -602,7 +611,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -615,7 +623,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -865,6 +872,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public FunctionServiceStubSettings build() throws IOException { return new FunctionServiceStubSettings(this); diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java index 130fc1d4ad3e..4a5aa0b109c1 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java @@ -76,110 +76,112 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetFunction

GetFunction

Returns a function with the given name from the requested project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getFunction(GetFunctionRequest request) + *
  • getFunction(GetFunctionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getFunction(FunctionName name) - *
  • getFunction(String name) + *
  • getFunction(FunctionName name) + *

  • getFunction(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getFunctionCallable() + *
  • getFunctionCallable() *

*
ListFunctions

ListFunctions

Returns a list of functions that belong to the requested project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listFunctions(ListFunctionsRequest request) + *
  • listFunctions(ListFunctionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listFunctions(LocationName parent) - *
  • listFunctions(String parent) + *
  • listFunctions(LocationName parent) + *

  • listFunctions(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listFunctionsPagedCallable() - *
  • listFunctionsCallable() + *
  • listFunctionsPagedCallable() + *

  • listFunctionsCallable() *

*
CreateFunction

CreateFunction

Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createFunctionAsync(CreateFunctionRequest request) + *
  • createFunctionAsync(CreateFunctionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createFunctionAsync(LocationName parent, Function function, String functionId) - *
  • createFunctionAsync(String parent, Function function, String functionId) + *
  • createFunctionAsync(LocationName parent, Function function, String functionId) + *

  • createFunctionAsync(String parent, Function function, String functionId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createFunctionOperationCallable() - *
  • createFunctionCallable() + *
  • createFunctionOperationCallable() + *

  • createFunctionCallable() *

*
UpdateFunction

UpdateFunction

Updates existing function.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateFunctionAsync(UpdateFunctionRequest request) + *
  • updateFunctionAsync(UpdateFunctionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateFunctionAsync(Function function, FieldMask updateMask) + *
  • updateFunctionAsync(Function function, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateFunctionOperationCallable() - *
  • updateFunctionCallable() + *
  • updateFunctionOperationCallable() + *

  • updateFunctionCallable() *

*
DeleteFunction

DeleteFunction

Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteFunctionAsync(DeleteFunctionRequest request) + *
  • deleteFunctionAsync(DeleteFunctionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteFunctionAsync(FunctionName name) - *
  • deleteFunctionAsync(String name) + *
  • deleteFunctionAsync(FunctionName name) + *

  • deleteFunctionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteFunctionOperationCallable() - *
  • deleteFunctionCallable() + *
  • deleteFunctionOperationCallable() + *

  • deleteFunctionCallable() *

*
GenerateUploadUrl

GenerateUploadUrl

Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. *

When uploading source code to the generated signed URL, please follow these restrictions: *

    @@ -197,107 +199,106 @@ *
*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateUploadUrl(GenerateUploadUrlRequest request) + *
  • generateUploadUrl(GenerateUploadUrlRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateUploadUrlCallable() + *
  • generateUploadUrlCallable() *

*
GenerateDownloadUrl

GenerateDownloadUrl

Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateDownloadUrl(GenerateDownloadUrlRequest request) + *
  • generateDownloadUrl(GenerateDownloadUrlRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateDownloadUrlCallable() + *
  • generateDownloadUrlCallable() *

*
ListRuntimes

ListRuntimes

Returns a list of runtimes that are supported for the requested project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listRuntimes(ListRuntimesRequest request) + *
  • listRuntimes(ListRuntimesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listRuntimes(LocationName parent) - *
  • listRuntimes(String parent) + *
  • listRuntimes(LocationName parent) + *

  • listRuntimes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listRuntimesCallable() + *
  • listRuntimesCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
SetIamPolicy

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setIamPolicy(SetIamPolicyRequest request) + *
  • setIamPolicy(SetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setIamPolicyCallable() + *
  • setIamPolicyCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIamPolicy(GetIamPolicyRequest request) + *
  • getIamPolicy(GetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIamPolicyCallable() + *
  • getIamPolicyCallable() *

*
TestIamPermissions

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • testIamPermissions(TestIamPermissionsRequest request) + *
  • testIamPermissions(TestIamPermissionsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • testIamPermissionsCallable() + *
  • testIamPermissionsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java index 788f92fb63e2..2eca189b1d41 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java @@ -357,6 +357,15 @@ public FunctionServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -603,7 +612,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -616,7 +624,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -866,6 +873,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public FunctionServiceStubSettings build() throws IOException { return new FunctionServiceStubSettings(this); diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java index fe3889ae2ed3..5b699ad7dd55 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java @@ -76,110 +76,112 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetFunction

GetFunction

Returns a function with the given name from the requested project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getFunction(GetFunctionRequest request) + *
  • getFunction(GetFunctionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getFunction(FunctionName name) - *
  • getFunction(String name) + *
  • getFunction(FunctionName name) + *

  • getFunction(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getFunctionCallable() + *
  • getFunctionCallable() *

*
ListFunctions

ListFunctions

Returns a list of functions that belong to the requested project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listFunctions(ListFunctionsRequest request) + *
  • listFunctions(ListFunctionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listFunctions(LocationName parent) - *
  • listFunctions(String parent) + *
  • listFunctions(LocationName parent) + *

  • listFunctions(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listFunctionsPagedCallable() - *
  • listFunctionsCallable() + *
  • listFunctionsPagedCallable() + *

  • listFunctionsCallable() *

*
CreateFunction

CreateFunction

Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createFunctionAsync(CreateFunctionRequest request) + *
  • createFunctionAsync(CreateFunctionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createFunctionAsync(LocationName parent, Function function, String functionId) - *
  • createFunctionAsync(String parent, Function function, String functionId) + *
  • createFunctionAsync(LocationName parent, Function function, String functionId) + *

  • createFunctionAsync(String parent, Function function, String functionId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createFunctionOperationCallable() - *
  • createFunctionCallable() + *
  • createFunctionOperationCallable() + *

  • createFunctionCallable() *

*
UpdateFunction

UpdateFunction

Updates existing function.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateFunctionAsync(UpdateFunctionRequest request) + *
  • updateFunctionAsync(UpdateFunctionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateFunctionAsync(Function function, FieldMask updateMask) + *
  • updateFunctionAsync(Function function, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateFunctionOperationCallable() - *
  • updateFunctionCallable() + *
  • updateFunctionOperationCallable() + *

  • updateFunctionCallable() *

*
DeleteFunction

DeleteFunction

Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteFunctionAsync(DeleteFunctionRequest request) + *
  • deleteFunctionAsync(DeleteFunctionRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteFunctionAsync(FunctionName name) - *
  • deleteFunctionAsync(String name) + *
  • deleteFunctionAsync(FunctionName name) + *

  • deleteFunctionAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteFunctionOperationCallable() - *
  • deleteFunctionCallable() + *
  • deleteFunctionOperationCallable() + *

  • deleteFunctionCallable() *

*
GenerateUploadUrl

GenerateUploadUrl

Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. *

When uploading source code to the generated signed URL, please follow these restrictions: *

    @@ -197,107 +199,106 @@ *
*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateUploadUrl(GenerateUploadUrlRequest request) + *
  • generateUploadUrl(GenerateUploadUrlRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateUploadUrlCallable() + *
  • generateUploadUrlCallable() *

*
GenerateDownloadUrl

GenerateDownloadUrl

Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateDownloadUrl(GenerateDownloadUrlRequest request) + *
  • generateDownloadUrl(GenerateDownloadUrlRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateDownloadUrlCallable() + *
  • generateDownloadUrlCallable() *

*
ListRuntimes

ListRuntimes

Returns a list of runtimes that are supported for the requested project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listRuntimes(ListRuntimesRequest request) + *
  • listRuntimes(ListRuntimesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listRuntimes(LocationName parent) - *
  • listRuntimes(String parent) + *
  • listRuntimes(LocationName parent) + *

  • listRuntimes(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listRuntimesCallable() + *
  • listRuntimesCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
SetIamPolicy

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setIamPolicy(SetIamPolicyRequest request) + *
  • setIamPolicy(SetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setIamPolicyCallable() + *
  • setIamPolicyCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIamPolicy(GetIamPolicyRequest request) + *
  • getIamPolicy(GetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIamPolicyCallable() + *
  • getIamPolicyCallable() *

*
TestIamPermissions

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • testIamPermissions(TestIamPermissionsRequest request) + *
  • testIamPermissions(TestIamPermissionsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • testIamPermissionsCallable() + *
  • testIamPermissionsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java index 6c2da290abdd..8fd1fa64e5d7 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java @@ -357,6 +357,15 @@ public FunctionServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -603,7 +612,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -616,7 +624,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -866,6 +873,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public FunctionServiceStubSettings build() throws IOException { return new FunctionServiceStubSettings(this); diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index ed072126c962..3dc42ac98d6b 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-backup.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.32.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java index 3ef7bdab5a1d..127c8d7777bc 100644 --- a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java +++ b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java @@ -72,554 +72,555 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateBackupPlan

CreateBackupPlan

Creates a new BackupPlan in a given location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createBackupPlanAsync(CreateBackupPlanRequest request) + *
  • createBackupPlanAsync(CreateBackupPlanRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createBackupPlanAsync(LocationName parent, BackupPlan backupPlan, String backupPlanId) - *
  • createBackupPlanAsync(String parent, BackupPlan backupPlan, String backupPlanId) + *
  • createBackupPlanAsync(LocationName parent, BackupPlan backupPlan, String backupPlanId) + *

  • createBackupPlanAsync(String parent, BackupPlan backupPlan, String backupPlanId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createBackupPlanOperationCallable() - *
  • createBackupPlanCallable() + *
  • createBackupPlanOperationCallable() + *

  • createBackupPlanCallable() *

*
ListBackupPlans

ListBackupPlans

Lists BackupPlans in a given location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listBackupPlans(ListBackupPlansRequest request) + *
  • listBackupPlans(ListBackupPlansRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listBackupPlans(LocationName parent) - *
  • listBackupPlans(String parent) + *
  • listBackupPlans(LocationName parent) + *

  • listBackupPlans(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listBackupPlansPagedCallable() - *
  • listBackupPlansCallable() + *
  • listBackupPlansPagedCallable() + *

  • listBackupPlansCallable() *

*
GetBackupPlan

GetBackupPlan

Retrieve the details of a single BackupPlan.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getBackupPlan(GetBackupPlanRequest request) + *
  • getBackupPlan(GetBackupPlanRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getBackupPlan(BackupPlanName name) - *
  • getBackupPlan(String name) + *
  • getBackupPlan(BackupPlanName name) + *

  • getBackupPlan(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getBackupPlanCallable() + *
  • getBackupPlanCallable() *

*
UpdateBackupPlan

UpdateBackupPlan

Update a BackupPlan.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateBackupPlanAsync(UpdateBackupPlanRequest request) + *
  • updateBackupPlanAsync(UpdateBackupPlanRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateBackupPlanAsync(BackupPlan backupPlan, FieldMask updateMask) + *
  • updateBackupPlanAsync(BackupPlan backupPlan, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateBackupPlanOperationCallable() - *
  • updateBackupPlanCallable() + *
  • updateBackupPlanOperationCallable() + *

  • updateBackupPlanCallable() *

*
DeleteBackupPlan

DeleteBackupPlan

Deletes an existing BackupPlan.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteBackupPlanAsync(DeleteBackupPlanRequest request) + *
  • deleteBackupPlanAsync(DeleteBackupPlanRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteBackupPlanAsync(BackupPlanName name) - *
  • deleteBackupPlanAsync(String name) + *
  • deleteBackupPlanAsync(BackupPlanName name) + *

  • deleteBackupPlanAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteBackupPlanOperationCallable() - *
  • deleteBackupPlanCallable() + *
  • deleteBackupPlanOperationCallable() + *

  • deleteBackupPlanCallable() *

*
CreateBackup

CreateBackup

Creates a Backup for the given BackupPlan.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createBackupAsync(CreateBackupRequest request) + *
  • createBackupAsync(CreateBackupRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createBackupAsync(BackupPlanName parent, Backup backup, String backupId) - *
  • createBackupAsync(String parent, Backup backup, String backupId) + *
  • createBackupAsync(BackupPlanName parent, Backup backup, String backupId) + *

  • createBackupAsync(String parent, Backup backup, String backupId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createBackupOperationCallable() - *
  • createBackupCallable() + *
  • createBackupOperationCallable() + *

  • createBackupCallable() *

*
ListBackups

ListBackups

Lists the Backups for a given BackupPlan.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listBackups(ListBackupsRequest request) + *
  • listBackups(ListBackupsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listBackups(BackupPlanName parent) - *
  • listBackups(String parent) + *
  • listBackups(BackupPlanName parent) + *

  • listBackups(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listBackupsPagedCallable() - *
  • listBackupsCallable() + *
  • listBackupsPagedCallable() + *

  • listBackupsCallable() *

*
GetBackup

GetBackup

Retrieve the details of a single Backup.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getBackup(GetBackupRequest request) + *
  • getBackup(GetBackupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getBackup(BackupName name) - *
  • getBackup(String name) + *
  • getBackup(BackupName name) + *

  • getBackup(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getBackupCallable() + *
  • getBackupCallable() *

*
UpdateBackup

UpdateBackup

Update a Backup.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateBackupAsync(UpdateBackupRequest request) + *
  • updateBackupAsync(UpdateBackupRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateBackupAsync(Backup backup, FieldMask updateMask) + *
  • updateBackupAsync(Backup backup, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateBackupOperationCallable() - *
  • updateBackupCallable() + *
  • updateBackupOperationCallable() + *

  • updateBackupCallable() *

*
DeleteBackup

DeleteBackup

Deletes an existing Backup.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteBackupAsync(DeleteBackupRequest request) + *
  • deleteBackupAsync(DeleteBackupRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteBackupAsync(BackupName name) - *
  • deleteBackupAsync(String name) + *
  • deleteBackupAsync(BackupName name) + *

  • deleteBackupAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteBackupOperationCallable() - *
  • deleteBackupCallable() + *
  • deleteBackupOperationCallable() + *

  • deleteBackupCallable() *

*
ListVolumeBackups

ListVolumeBackups

Lists the VolumeBackups for a given Backup.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listVolumeBackups(ListVolumeBackupsRequest request) + *
  • listVolumeBackups(ListVolumeBackupsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listVolumeBackups(BackupName parent) - *
  • listVolumeBackups(String parent) + *
  • listVolumeBackups(BackupName parent) + *

  • listVolumeBackups(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listVolumeBackupsPagedCallable() - *
  • listVolumeBackupsCallable() + *
  • listVolumeBackupsPagedCallable() + *

  • listVolumeBackupsCallable() *

*
GetVolumeBackup

GetVolumeBackup

Retrieve the details of a single VolumeBackup.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getVolumeBackup(GetVolumeBackupRequest request) + *
  • getVolumeBackup(GetVolumeBackupRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getVolumeBackup(VolumeBackupName name) - *
  • getVolumeBackup(String name) + *
  • getVolumeBackup(VolumeBackupName name) + *

  • getVolumeBackup(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getVolumeBackupCallable() + *
  • getVolumeBackupCallable() *

*
CreateRestorePlan

CreateRestorePlan

Creates a new RestorePlan in a given location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createRestorePlanAsync(CreateRestorePlanRequest request) + *
  • createRestorePlanAsync(CreateRestorePlanRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createRestorePlanAsync(LocationName parent, RestorePlan restorePlan, String restorePlanId) - *
  • createRestorePlanAsync(String parent, RestorePlan restorePlan, String restorePlanId) + *
  • createRestorePlanAsync(LocationName parent, RestorePlan restorePlan, String restorePlanId) + *

  • createRestorePlanAsync(String parent, RestorePlan restorePlan, String restorePlanId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createRestorePlanOperationCallable() - *
  • createRestorePlanCallable() + *
  • createRestorePlanOperationCallable() + *

  • createRestorePlanCallable() *

*
ListRestorePlans

ListRestorePlans

Lists RestorePlans in a given location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listRestorePlans(ListRestorePlansRequest request) + *
  • listRestorePlans(ListRestorePlansRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listRestorePlans(LocationName parent) - *
  • listRestorePlans(String parent) + *
  • listRestorePlans(LocationName parent) + *

  • listRestorePlans(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listRestorePlansPagedCallable() - *
  • listRestorePlansCallable() + *
  • listRestorePlansPagedCallable() + *

  • listRestorePlansCallable() *

*
GetRestorePlan

GetRestorePlan

Retrieve the details of a single RestorePlan.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getRestorePlan(GetRestorePlanRequest request) + *
  • getRestorePlan(GetRestorePlanRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getRestorePlan(RestorePlanName name) - *
  • getRestorePlan(String name) + *
  • getRestorePlan(RestorePlanName name) + *

  • getRestorePlan(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getRestorePlanCallable() + *
  • getRestorePlanCallable() *

*
UpdateRestorePlan

UpdateRestorePlan

Update a RestorePlan.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateRestorePlanAsync(UpdateRestorePlanRequest request) + *
  • updateRestorePlanAsync(UpdateRestorePlanRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateRestorePlanAsync(RestorePlan restorePlan, FieldMask updateMask) + *
  • updateRestorePlanAsync(RestorePlan restorePlan, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateRestorePlanOperationCallable() - *
  • updateRestorePlanCallable() + *
  • updateRestorePlanOperationCallable() + *

  • updateRestorePlanCallable() *

*
DeleteRestorePlan

DeleteRestorePlan

Deletes an existing RestorePlan.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteRestorePlanAsync(DeleteRestorePlanRequest request) + *
  • deleteRestorePlanAsync(DeleteRestorePlanRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteRestorePlanAsync(RestorePlanName name) - *
  • deleteRestorePlanAsync(String name) + *
  • deleteRestorePlanAsync(RestorePlanName name) + *

  • deleteRestorePlanAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteRestorePlanOperationCallable() - *
  • deleteRestorePlanCallable() + *
  • deleteRestorePlanOperationCallable() + *

  • deleteRestorePlanCallable() *

*
CreateRestore

CreateRestore

Creates a new Restore for the given RestorePlan.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createRestoreAsync(CreateRestoreRequest request) + *
  • createRestoreAsync(CreateRestoreRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createRestoreAsync(RestorePlanName parent, Restore restore, String restoreId) - *
  • createRestoreAsync(String parent, Restore restore, String restoreId) + *
  • createRestoreAsync(RestorePlanName parent, Restore restore, String restoreId) + *

  • createRestoreAsync(String parent, Restore restore, String restoreId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createRestoreOperationCallable() - *
  • createRestoreCallable() + *
  • createRestoreOperationCallable() + *

  • createRestoreCallable() *

*
ListRestores

ListRestores

Lists the Restores for a given RestorePlan.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listRestores(ListRestoresRequest request) + *
  • listRestores(ListRestoresRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listRestores(RestorePlanName parent) - *
  • listRestores(String parent) + *
  • listRestores(RestorePlanName parent) + *

  • listRestores(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listRestoresPagedCallable() - *
  • listRestoresCallable() + *
  • listRestoresPagedCallable() + *

  • listRestoresCallable() *

*
GetRestore

GetRestore

Retrieves the details of a single Restore.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getRestore(GetRestoreRequest request) + *
  • getRestore(GetRestoreRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getRestore(RestoreName name) - *
  • getRestore(String name) + *
  • getRestore(RestoreName name) + *

  • getRestore(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getRestoreCallable() + *
  • getRestoreCallable() *

*
UpdateRestore

UpdateRestore

Update a Restore.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateRestoreAsync(UpdateRestoreRequest request) + *
  • updateRestoreAsync(UpdateRestoreRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateRestoreAsync(Restore restore, FieldMask updateMask) + *
  • updateRestoreAsync(Restore restore, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateRestoreOperationCallable() - *
  • updateRestoreCallable() + *
  • updateRestoreOperationCallable() + *

  • updateRestoreCallable() *

*
DeleteRestore

DeleteRestore

Deletes an existing Restore.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteRestoreAsync(DeleteRestoreRequest request) + *
  • deleteRestoreAsync(DeleteRestoreRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteRestoreAsync(RestoreName name) - *
  • deleteRestoreAsync(String name) + *
  • deleteRestoreAsync(RestoreName name) + *

  • deleteRestoreAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteRestoreOperationCallable() - *
  • deleteRestoreCallable() + *
  • deleteRestoreOperationCallable() + *

  • deleteRestoreCallable() *

*
ListVolumeRestores

ListVolumeRestores

Lists the VolumeRestores for a given Restore.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listVolumeRestores(ListVolumeRestoresRequest request) + *
  • listVolumeRestores(ListVolumeRestoresRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listVolumeRestores(RestoreName parent) - *
  • listVolumeRestores(String parent) + *
  • listVolumeRestores(RestoreName parent) + *

  • listVolumeRestores(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listVolumeRestoresPagedCallable() - *
  • listVolumeRestoresCallable() + *
  • listVolumeRestoresPagedCallable() + *

  • listVolumeRestoresCallable() *

*
GetVolumeRestore

GetVolumeRestore

Retrieve the details of a single VolumeRestore.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getVolumeRestore(GetVolumeRestoreRequest request) + *
  • getVolumeRestore(GetVolumeRestoreRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getVolumeRestore(VolumeRestoreName name) - *
  • getVolumeRestore(String name) + *
  • getVolumeRestore(VolumeRestoreName name) + *

  • getVolumeRestore(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getVolumeRestoreCallable() + *
  • getVolumeRestoreCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
SetIamPolicy

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • setIamPolicy(SetIamPolicyRequest request) + *
  • setIamPolicy(SetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • setIamPolicyCallable() + *
  • setIamPolicyCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getIamPolicy(GetIamPolicyRequest request) + *
  • getIamPolicy(GetIamPolicyRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getIamPolicyCallable() + *
  • getIamPolicyCallable() *

*
TestIamPermissions

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • testIamPermissions(TestIamPermissionsRequest request) + *
  • testIamPermissions(TestIamPermissionsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • testIamPermissionsCallable() + *
  • testIamPermissionsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java index a79f2cc690f9..18ebf9c68089 100644 --- a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java +++ b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java @@ -862,6 +862,15 @@ public BackupForGKEStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -1319,7 +1328,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1332,7 +1340,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -2055,6 +2062,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public BackupForGKEStubSettings build() throws IOException { return new BackupForGKEStubSettings(this); diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index 04e7bd71f054..e11625788f1e 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-connect-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.34.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayServiceClient.java b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayServiceClient.java index bd4b17dce277..395116f0f761 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayServiceClient.java +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayServiceClient.java @@ -57,81 +57,82 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetResource

GetResource

GetResource performs an HTTP GET request on the Kubernetes API Server.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getResource(HttpBody request) + *
  • getResource(HttpBody request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getResourceCallable() + *
  • getResourceCallable() *

*
PostResource

PostResource

PostResource performs an HTTP POST on the Kubernetes API Server.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • postResource(HttpBody request) + *
  • postResource(HttpBody request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • postResourceCallable() + *
  • postResourceCallable() *

*
DeleteResource

DeleteResource

DeleteResource performs an HTTP DELETE on the Kubernetes API Server.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteResource(HttpBody request) + *
  • deleteResource(HttpBody request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteResourceCallable() + *
  • deleteResourceCallable() *

*
PutResource

PutResource

PutResource performs an HTTP PUT on the Kubernetes API Server.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • putResource(HttpBody request) + *
  • putResource(HttpBody request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • putResourceCallable() + *
  • putResourceCallable() *

*
PatchResource

PatchResource

PatchResource performs an HTTP PATCH on the Kubernetes API Server.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • patchResource(HttpBody request) + *
  • patchResource(HttpBody request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • patchResourceCallable() + *
  • patchResourceCallable() *

*
* *

See the individual methods for example code. diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayServiceStubSettings.java b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayServiceStubSettings.java index c03eea6e477a..d1668cfef619 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayServiceStubSettings.java +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayServiceStubSettings.java @@ -127,6 +127,15 @@ public GatewayServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -279,7 +288,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -355,6 +363,15 @@ public UnaryCallSettings.Builder patchResourceSettings() { return patchResourceSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public GatewayServiceStubSettings build() throws IOException { return new GatewayServiceStubSettings(this); diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 036eed375c92..8e59a8ca4811 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-multi-cloud.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.32.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClient.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClient.java index eed730cfc7fb..9fd97bdeeecf 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClient.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClient.java @@ -65,185 +65,186 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateAttachedCluster

CreateAttachedCluster

Creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource on a given Google Cloud Platform project and region. *

If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createAttachedClusterAsync(CreateAttachedClusterRequest request) + *
  • createAttachedClusterAsync(CreateAttachedClusterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createAttachedClusterAsync(LocationName parent, AttachedCluster attachedCluster, String attachedClusterId) - *
  • createAttachedClusterAsync(String parent, AttachedCluster attachedCluster, String attachedClusterId) + *
  • createAttachedClusterAsync(LocationName parent, AttachedCluster attachedCluster, String attachedClusterId) + *

  • createAttachedClusterAsync(String parent, AttachedCluster attachedCluster, String attachedClusterId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createAttachedClusterOperationCallable() - *
  • createAttachedClusterCallable() + *
  • createAttachedClusterOperationCallable() + *

  • createAttachedClusterCallable() *

*
UpdateAttachedCluster

UpdateAttachedCluster

Updates an [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateAttachedClusterAsync(UpdateAttachedClusterRequest request) + *
  • updateAttachedClusterAsync(UpdateAttachedClusterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateAttachedClusterAsync(AttachedCluster attachedCluster, FieldMask updateMask) + *
  • updateAttachedClusterAsync(AttachedCluster attachedCluster, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateAttachedClusterOperationCallable() - *
  • updateAttachedClusterCallable() + *
  • updateAttachedClusterOperationCallable() + *

  • updateAttachedClusterCallable() *

*
ImportAttachedCluster

ImportAttachedCluster

Imports creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource by importing an existing Fleet Membership resource. *

Attached Clusters created before the introduction of the Anthos Multi-Cloud API can be imported through this method. *

If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importAttachedClusterAsync(ImportAttachedClusterRequest request) + *
  • importAttachedClusterAsync(ImportAttachedClusterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • importAttachedClusterAsync(LocationName parent, String fleetMembership) - *
  • importAttachedClusterAsync(String parent, String fleetMembership) + *
  • importAttachedClusterAsync(LocationName parent, String fleetMembership) + *

  • importAttachedClusterAsync(String parent, String fleetMembership) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • importAttachedClusterOperationCallable() - *
  • importAttachedClusterCallable() + *
  • importAttachedClusterOperationCallable() + *

  • importAttachedClusterCallable() *

*
GetAttachedCluster

GetAttachedCluster

Describes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAttachedCluster(GetAttachedClusterRequest request) + *
  • getAttachedCluster(GetAttachedClusterRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAttachedCluster(AttachedClusterName name) - *
  • getAttachedCluster(String name) + *
  • getAttachedCluster(AttachedClusterName name) + *

  • getAttachedCluster(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAttachedClusterCallable() + *
  • getAttachedClusterCallable() *

*
ListAttachedClusters

ListAttachedClusters

Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources on a given Google Cloud project and region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAttachedClusters(ListAttachedClustersRequest request) + *
  • listAttachedClusters(ListAttachedClustersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAttachedClusters(LocationName parent) - *
  • listAttachedClusters(String parent) + *
  • listAttachedClusters(LocationName parent) + *

  • listAttachedClusters(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listAttachedClustersPagedCallable() - *
  • listAttachedClustersCallable() + *
  • listAttachedClustersPagedCallable() + *

  • listAttachedClustersCallable() *

*
DeleteAttachedCluster

DeleteAttachedCluster

Deletes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. *

If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAttachedClusterAsync(DeleteAttachedClusterRequest request) + *
  • deleteAttachedClusterAsync(DeleteAttachedClusterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteAttachedClusterAsync(AttachedClusterName name) - *
  • deleteAttachedClusterAsync(String name) + *
  • deleteAttachedClusterAsync(AttachedClusterName name) + *

  • deleteAttachedClusterAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAttachedClusterOperationCallable() - *
  • deleteAttachedClusterCallable() + *
  • deleteAttachedClusterOperationCallable() + *

  • deleteAttachedClusterCallable() *

*
GetAttachedServerConfig

GetAttachedServerConfig

Returns information, such as supported Kubernetes versions, on a given Google Cloud location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAttachedServerConfig(GetAttachedServerConfigRequest request) + *
  • getAttachedServerConfig(GetAttachedServerConfigRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAttachedServerConfig(AttachedServerConfigName name) - *
  • getAttachedServerConfig(String name) + *
  • getAttachedServerConfig(AttachedServerConfigName name) + *

  • getAttachedServerConfig(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAttachedServerConfigCallable() + *
  • getAttachedServerConfigCallable() *

*
GenerateAttachedClusterInstallManifest

GenerateAttachedClusterInstallManifest

Generates the install manifest to be installed on the target cluster.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateAttachedClusterInstallManifest(GenerateAttachedClusterInstallManifestRequest request) + *
  • generateAttachedClusterInstallManifest(GenerateAttachedClusterInstallManifestRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • generateAttachedClusterInstallManifest(LocationName parent, String attachedClusterId) - *
  • generateAttachedClusterInstallManifest(String parent, String attachedClusterId) + *
  • generateAttachedClusterInstallManifest(LocationName parent, String attachedClusterId) + *

  • generateAttachedClusterInstallManifest(String parent, String attachedClusterId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateAttachedClusterInstallManifestCallable() + *
  • generateAttachedClusterInstallManifestCallable() *

*
GenerateAttachedClusterAgentToken

GenerateAttachedClusterAgentToken

Generates an access token for a cluster agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateAttachedClusterAgentToken(GenerateAttachedClusterAgentTokenRequest request) + *
  • generateAttachedClusterAgentToken(GenerateAttachedClusterAgentTokenRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateAttachedClusterAgentTokenCallable() + *
  • generateAttachedClusterAgentTokenCallable() *

*
* *

See the individual methods for example code. diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java index 2efa6714fd1b..59673babc9e4 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java @@ -63,307 +63,308 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateAwsCluster

CreateAwsCluster

Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given Google Cloud Platform project and region. *

If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createAwsClusterAsync(CreateAwsClusterRequest request) + *
  • createAwsClusterAsync(CreateAwsClusterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createAwsClusterAsync(LocationName parent, AwsCluster awsCluster, String awsClusterId) - *
  • createAwsClusterAsync(String parent, AwsCluster awsCluster, String awsClusterId) + *
  • createAwsClusterAsync(LocationName parent, AwsCluster awsCluster, String awsClusterId) + *

  • createAwsClusterAsync(String parent, AwsCluster awsCluster, String awsClusterId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createAwsClusterOperationCallable() - *
  • createAwsClusterCallable() + *
  • createAwsClusterOperationCallable() + *

  • createAwsClusterCallable() *

*
UpdateAwsCluster

UpdateAwsCluster

Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateAwsClusterAsync(UpdateAwsClusterRequest request) + *
  • updateAwsClusterAsync(UpdateAwsClusterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateAwsClusterAsync(AwsCluster awsCluster, FieldMask updateMask) + *
  • updateAwsClusterAsync(AwsCluster awsCluster, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateAwsClusterOperationCallable() - *
  • updateAwsClusterCallable() + *
  • updateAwsClusterOperationCallable() + *

  • updateAwsClusterCallable() *

*
GetAwsCluster

GetAwsCluster

Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAwsCluster(GetAwsClusterRequest request) + *
  • getAwsCluster(GetAwsClusterRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAwsCluster(AwsClusterName name) - *
  • getAwsCluster(String name) + *
  • getAwsCluster(AwsClusterName name) + *

  • getAwsCluster(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAwsClusterCallable() + *
  • getAwsClusterCallable() *

*
ListAwsClusters

ListAwsClusters

Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAwsClusters(ListAwsClustersRequest request) + *
  • listAwsClusters(ListAwsClustersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAwsClusters(LocationName parent) - *
  • listAwsClusters(String parent) + *
  • listAwsClusters(LocationName parent) + *

  • listAwsClusters(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listAwsClustersPagedCallable() - *
  • listAwsClustersCallable() + *
  • listAwsClustersPagedCallable() + *

  • listAwsClustersCallable() *

*
DeleteAwsCluster

DeleteAwsCluster

Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. *

Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. *

If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAwsClusterAsync(DeleteAwsClusterRequest request) + *
  • deleteAwsClusterAsync(DeleteAwsClusterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteAwsClusterAsync(AwsClusterName name) - *
  • deleteAwsClusterAsync(String name) + *
  • deleteAwsClusterAsync(AwsClusterName name) + *

  • deleteAwsClusterAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAwsClusterOperationCallable() - *
  • deleteAwsClusterCallable() + *
  • deleteAwsClusterOperationCallable() + *

  • deleteAwsClusterCallable() *

*
GenerateAwsClusterAgentToken

GenerateAwsClusterAgentToken

Generates an access token for a cluster agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateAwsClusterAgentToken(GenerateAwsClusterAgentTokenRequest request) + *
  • generateAwsClusterAgentToken(GenerateAwsClusterAgentTokenRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateAwsClusterAgentTokenCallable() + *
  • generateAwsClusterAgentTokenCallable() *

*
GenerateAwsAccessToken

GenerateAwsAccessToken

Generates a short-lived access token to authenticate to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateAwsAccessToken(GenerateAwsAccessTokenRequest request) + *
  • generateAwsAccessToken(GenerateAwsAccessTokenRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateAwsAccessTokenCallable() + *
  • generateAwsAccessTokenCallable() *

*
CreateAwsNodePool

CreateAwsNodePool

Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. *

If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createAwsNodePoolAsync(CreateAwsNodePoolRequest request) + *
  • createAwsNodePoolAsync(CreateAwsNodePoolRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createAwsNodePoolAsync(AwsClusterName parent, AwsNodePool awsNodePool, String awsNodePoolId) - *
  • createAwsNodePoolAsync(String parent, AwsNodePool awsNodePool, String awsNodePoolId) + *
  • createAwsNodePoolAsync(AwsClusterName parent, AwsNodePool awsNodePool, String awsNodePoolId) + *

  • createAwsNodePoolAsync(String parent, AwsNodePool awsNodePool, String awsNodePoolId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createAwsNodePoolOperationCallable() - *
  • createAwsNodePoolCallable() + *
  • createAwsNodePoolOperationCallable() + *

  • createAwsNodePoolCallable() *

*
UpdateAwsNodePool

UpdateAwsNodePool

Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateAwsNodePoolAsync(UpdateAwsNodePoolRequest request) + *
  • updateAwsNodePoolAsync(UpdateAwsNodePoolRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateAwsNodePoolAsync(AwsNodePool awsNodePool, FieldMask updateMask) + *
  • updateAwsNodePoolAsync(AwsNodePool awsNodePool, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateAwsNodePoolOperationCallable() - *
  • updateAwsNodePoolCallable() + *
  • updateAwsNodePoolOperationCallable() + *

  • updateAwsNodePoolCallable() *

*
RollbackAwsNodePoolUpdate

RollbackAwsNodePoolUpdate

Rolls back a previously aborted or failed [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] update request. Makes no changes if the last update request successfully finished. If an update request is in progress, you cannot rollback the update. You must first cancel or let it finish unsuccessfully before you can rollback.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • rollbackAwsNodePoolUpdateAsync(RollbackAwsNodePoolUpdateRequest request) + *
  • rollbackAwsNodePoolUpdateAsync(RollbackAwsNodePoolUpdateRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • rollbackAwsNodePoolUpdateAsync(AwsNodePoolName name) - *
  • rollbackAwsNodePoolUpdateAsync(String name) + *
  • rollbackAwsNodePoolUpdateAsync(AwsNodePoolName name) + *

  • rollbackAwsNodePoolUpdateAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • rollbackAwsNodePoolUpdateOperationCallable() - *
  • rollbackAwsNodePoolUpdateCallable() + *
  • rollbackAwsNodePoolUpdateOperationCallable() + *

  • rollbackAwsNodePoolUpdateCallable() *

*
GetAwsNodePool

GetAwsNodePool

Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAwsNodePool(GetAwsNodePoolRequest request) + *
  • getAwsNodePool(GetAwsNodePoolRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAwsNodePool(AwsNodePoolName name) - *
  • getAwsNodePool(String name) + *
  • getAwsNodePool(AwsNodePoolName name) + *

  • getAwsNodePool(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAwsNodePoolCallable() + *
  • getAwsNodePoolCallable() *

*
ListAwsNodePools

ListAwsNodePools

Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAwsNodePools(ListAwsNodePoolsRequest request) + *
  • listAwsNodePools(ListAwsNodePoolsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAwsNodePools(AwsClusterName parent) - *
  • listAwsNodePools(String parent) + *
  • listAwsNodePools(AwsClusterName parent) + *

  • listAwsNodePools(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listAwsNodePoolsPagedCallable() - *
  • listAwsNodePoolsCallable() + *
  • listAwsNodePoolsPagedCallable() + *

  • listAwsNodePoolsCallable() *

*
DeleteAwsNodePool

DeleteAwsNodePool

Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. *

If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAwsNodePoolAsync(DeleteAwsNodePoolRequest request) + *
  • deleteAwsNodePoolAsync(DeleteAwsNodePoolRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteAwsNodePoolAsync(AwsNodePoolName name) - *
  • deleteAwsNodePoolAsync(String name) + *
  • deleteAwsNodePoolAsync(AwsNodePoolName name) + *

  • deleteAwsNodePoolAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAwsNodePoolOperationCallable() - *
  • deleteAwsNodePoolCallable() + *
  • deleteAwsNodePoolOperationCallable() + *

  • deleteAwsNodePoolCallable() *

*
GetAwsOpenIdConfig

GetAwsOpenIdConfig

Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAwsOpenIdConfig(GetAwsOpenIdConfigRequest request) + *
  • getAwsOpenIdConfig(GetAwsOpenIdConfigRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAwsOpenIdConfigCallable() + *
  • getAwsOpenIdConfigCallable() *

*
GetAwsJsonWebKeys

GetAwsJsonWebKeys

Gets the public component of the cluster signing keys in JSON Web Key format.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAwsJsonWebKeys(GetAwsJsonWebKeysRequest request) + *
  • getAwsJsonWebKeys(GetAwsJsonWebKeysRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAwsJsonWebKeysCallable() + *
  • getAwsJsonWebKeysCallable() *

*
GetAwsServerConfig

GetAwsServerConfig

Returns information, such as supported AWS regions and Kubernetes versions, on a given Google Cloud location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAwsServerConfig(GetAwsServerConfigRequest request) + *
  • getAwsServerConfig(GetAwsServerConfigRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAwsServerConfig(AwsServerConfigName name) - *
  • getAwsServerConfig(String name) + *
  • getAwsServerConfig(AwsServerConfigName name) + *

  • getAwsServerConfig(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAwsServerConfigCallable() + *
  • getAwsServerConfigCallable() *

*
* *

See the individual methods for example code. diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java index 30f2921c07ee..4ca72b0eec67 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java @@ -63,380 +63,381 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateAzureClient

CreateAzureClient

Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project and region. *

`AzureClient` resources hold client authentication information needed by the Anthos Multicloud API to manage Azure resources on your Azure subscription on your behalf. *

If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createAzureClientAsync(CreateAzureClientRequest request) + *
  • createAzureClientAsync(CreateAzureClientRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createAzureClientAsync(LocationName parent, AzureClient azureClient, String azureClientId) - *
  • createAzureClientAsync(String parent, AzureClient azureClient, String azureClientId) + *
  • createAzureClientAsync(LocationName parent, AzureClient azureClient, String azureClientId) + *

  • createAzureClientAsync(String parent, AzureClient azureClient, String azureClientId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createAzureClientOperationCallable() - *
  • createAzureClientCallable() + *
  • createAzureClientOperationCallable() + *

  • createAzureClientCallable() *

*
GetAzureClient

GetAzureClient

Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAzureClient(GetAzureClientRequest request) + *
  • getAzureClient(GetAzureClientRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAzureClient(AzureClientName name) - *
  • getAzureClient(String name) + *
  • getAzureClient(AzureClientName name) + *

  • getAzureClient(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAzureClientCallable() + *
  • getAzureClientCallable() *

*
ListAzureClients

ListAzureClients

Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAzureClients(ListAzureClientsRequest request) + *
  • listAzureClients(ListAzureClientsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAzureClients(LocationName parent) - *
  • listAzureClients(String parent) + *
  • listAzureClients(LocationName parent) + *

  • listAzureClients(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listAzureClientsPagedCallable() - *
  • listAzureClientsCallable() + *
  • listAzureClientsPagedCallable() + *

  • listAzureClientsCallable() *

*
DeleteAzureClient

DeleteAzureClient

Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. *

If the client is used by one or more clusters, deletion will fail and a `FAILED_PRECONDITION` error will be returned. *

If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAzureClientAsync(DeleteAzureClientRequest request) + *
  • deleteAzureClientAsync(DeleteAzureClientRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteAzureClientAsync(AzureClientName name) - *
  • deleteAzureClientAsync(String name) + *
  • deleteAzureClientAsync(AzureClientName name) + *

  • deleteAzureClientAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAzureClientOperationCallable() - *
  • deleteAzureClientCallable() + *
  • deleteAzureClientOperationCallable() + *

  • deleteAzureClientCallable() *

*
CreateAzureCluster

CreateAzureCluster

Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given Google Cloud Platform project and region. *

If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createAzureClusterAsync(CreateAzureClusterRequest request) + *
  • createAzureClusterAsync(CreateAzureClusterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createAzureClusterAsync(LocationName parent, AzureCluster azureCluster, String azureClusterId) - *
  • createAzureClusterAsync(String parent, AzureCluster azureCluster, String azureClusterId) + *
  • createAzureClusterAsync(LocationName parent, AzureCluster azureCluster, String azureClusterId) + *

  • createAzureClusterAsync(String parent, AzureCluster azureCluster, String azureClusterId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createAzureClusterOperationCallable() - *
  • createAzureClusterCallable() + *
  • createAzureClusterOperationCallable() + *

  • createAzureClusterCallable() *

*
UpdateAzureCluster

UpdateAzureCluster

Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateAzureClusterAsync(UpdateAzureClusterRequest request) + *
  • updateAzureClusterAsync(UpdateAzureClusterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateAzureClusterAsync(AzureCluster azureCluster, FieldMask updateMask) + *
  • updateAzureClusterAsync(AzureCluster azureCluster, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateAzureClusterOperationCallable() - *
  • updateAzureClusterCallable() + *
  • updateAzureClusterOperationCallable() + *

  • updateAzureClusterCallable() *

*
GetAzureCluster

GetAzureCluster

Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAzureCluster(GetAzureClusterRequest request) + *
  • getAzureCluster(GetAzureClusterRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAzureCluster(AzureClusterName name) - *
  • getAzureCluster(String name) + *
  • getAzureCluster(AzureClusterName name) + *

  • getAzureCluster(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAzureClusterCallable() + *
  • getAzureClusterCallable() *

*
ListAzureClusters

ListAzureClusters

Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAzureClusters(ListAzureClustersRequest request) + *
  • listAzureClusters(ListAzureClustersRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAzureClusters(LocationName parent) - *
  • listAzureClusters(String parent) + *
  • listAzureClusters(LocationName parent) + *

  • listAzureClusters(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listAzureClustersPagedCallable() - *
  • listAzureClustersCallable() + *
  • listAzureClustersPagedCallable() + *

  • listAzureClustersCallable() *

*
DeleteAzureCluster

DeleteAzureCluster

Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. *

Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. *

If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAzureClusterAsync(DeleteAzureClusterRequest request) + *
  • deleteAzureClusterAsync(DeleteAzureClusterRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteAzureClusterAsync(AzureClusterName name) - *
  • deleteAzureClusterAsync(String name) + *
  • deleteAzureClusterAsync(AzureClusterName name) + *

  • deleteAzureClusterAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAzureClusterOperationCallable() - *
  • deleteAzureClusterCallable() + *
  • deleteAzureClusterOperationCallable() + *

  • deleteAzureClusterCallable() *

*
GenerateAzureClusterAgentToken

GenerateAzureClusterAgentToken

Generates an access token for a cluster agent.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateAzureClusterAgentToken(GenerateAzureClusterAgentTokenRequest request) + *
  • generateAzureClusterAgentToken(GenerateAzureClusterAgentTokenRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateAzureClusterAgentTokenCallable() + *
  • generateAzureClusterAgentTokenCallable() *

*
GenerateAzureAccessToken

GenerateAzureAccessToken

Generates a short-lived access token to authenticate to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateAzureAccessToken(GenerateAzureAccessTokenRequest request) + *
  • generateAzureAccessToken(GenerateAzureAccessTokenRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateAzureAccessTokenCallable() + *
  • generateAzureAccessTokenCallable() *

*
CreateAzureNodePool

CreateAzureNodePool

Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. *

If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createAzureNodePoolAsync(CreateAzureNodePoolRequest request) + *
  • createAzureNodePoolAsync(CreateAzureNodePoolRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createAzureNodePoolAsync(AzureClusterName parent, AzureNodePool azureNodePool, String azureNodePoolId) - *
  • createAzureNodePoolAsync(String parent, AzureNodePool azureNodePool, String azureNodePoolId) + *
  • createAzureNodePoolAsync(AzureClusterName parent, AzureNodePool azureNodePool, String azureNodePoolId) + *

  • createAzureNodePoolAsync(String parent, AzureNodePool azureNodePool, String azureNodePoolId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createAzureNodePoolOperationCallable() - *
  • createAzureNodePoolCallable() + *
  • createAzureNodePoolOperationCallable() + *

  • createAzureNodePoolCallable() *

*
UpdateAzureNodePool

UpdateAzureNodePool

Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateAzureNodePoolAsync(UpdateAzureNodePoolRequest request) + *
  • updateAzureNodePoolAsync(UpdateAzureNodePoolRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateAzureNodePoolAsync(AzureNodePool azureNodePool, FieldMask updateMask) + *
  • updateAzureNodePoolAsync(AzureNodePool azureNodePool, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateAzureNodePoolOperationCallable() - *
  • updateAzureNodePoolCallable() + *
  • updateAzureNodePoolOperationCallable() + *

  • updateAzureNodePoolCallable() *

*
GetAzureNodePool

GetAzureNodePool

Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAzureNodePool(GetAzureNodePoolRequest request) + *
  • getAzureNodePool(GetAzureNodePoolRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAzureNodePool(AzureNodePoolName name) - *
  • getAzureNodePool(String name) + *
  • getAzureNodePool(AzureNodePoolName name) + *

  • getAzureNodePool(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAzureNodePoolCallable() + *
  • getAzureNodePoolCallable() *

*
ListAzureNodePools

ListAzureNodePools

Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAzureNodePools(ListAzureNodePoolsRequest request) + *
  • listAzureNodePools(ListAzureNodePoolsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAzureNodePools(AzureClusterName parent) - *
  • listAzureNodePools(String parent) + *
  • listAzureNodePools(AzureClusterName parent) + *

  • listAzureNodePools(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listAzureNodePoolsPagedCallable() - *
  • listAzureNodePoolsCallable() + *
  • listAzureNodePoolsPagedCallable() + *

  • listAzureNodePoolsCallable() *

*
DeleteAzureNodePool

DeleteAzureNodePool

Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. *

If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAzureNodePoolAsync(DeleteAzureNodePoolRequest request) + *
  • deleteAzureNodePoolAsync(DeleteAzureNodePoolRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteAzureNodePoolAsync(AzureNodePoolName name) - *
  • deleteAzureNodePoolAsync(String name) + *
  • deleteAzureNodePoolAsync(AzureNodePoolName name) + *

  • deleteAzureNodePoolAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAzureNodePoolOperationCallable() - *
  • deleteAzureNodePoolCallable() + *
  • deleteAzureNodePoolOperationCallable() + *

  • deleteAzureNodePoolCallable() *

*
GetAzureOpenIdConfig

GetAzureOpenIdConfig

Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAzureOpenIdConfig(GetAzureOpenIdConfigRequest request) + *
  • getAzureOpenIdConfig(GetAzureOpenIdConfigRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAzureOpenIdConfig(AzureClusterName azureCluster) - *
  • getAzureOpenIdConfig(String azureCluster) + *
  • getAzureOpenIdConfig(AzureClusterName azureCluster) + *

  • getAzureOpenIdConfig(String azureCluster) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAzureOpenIdConfigCallable() + *
  • getAzureOpenIdConfigCallable() *

*
GetAzureJsonWebKeys

GetAzureJsonWebKeys

Gets the public component of the cluster signing keys in JSON Web Key format.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAzureJsonWebKeys(GetAzureJsonWebKeysRequest request) + *
  • getAzureJsonWebKeys(GetAzureJsonWebKeysRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAzureJsonWebKeys(AzureClusterName azureCluster) - *
  • getAzureJsonWebKeys(String azureCluster) + *
  • getAzureJsonWebKeys(AzureClusterName azureCluster) + *

  • getAzureJsonWebKeys(String azureCluster) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAzureJsonWebKeysCallable() + *
  • getAzureJsonWebKeysCallable() *

*
GetAzureServerConfig

GetAzureServerConfig

Returns information, such as supported Azure regions and Kubernetes versions, on a given Google Cloud location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAzureServerConfig(GetAzureServerConfigRequest request) + *
  • getAzureServerConfig(GetAzureServerConfigRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAzureServerConfig(AzureServerConfigName name) - *
  • getAzureServerConfig(String name) + *
  • getAzureServerConfig(AzureServerConfigName name) + *

  • getAzureServerConfig(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAzureServerConfigCallable() + *
  • getAzureServerConfigCallable() *

*
* *

See the individual methods for example code. diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java index 3f694f3a5958..14b65d28e9c1 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java @@ -319,6 +319,15 @@ public AttachedClustersStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -595,7 +604,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -608,7 +616,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -873,6 +880,15 @@ public Builder applyToAllUnaryMethods( return generateAttachedClusterAgentTokenSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public AttachedClustersStubSettings build() throws IOException { return new AttachedClustersStubSettings(this); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java index a03ec35637f3..8e6bd35a7ca4 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java @@ -434,6 +434,15 @@ public AwsClustersStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -765,7 +774,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -778,7 +786,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1207,6 +1214,15 @@ public UnaryCallSettings.Builder getAwsNodeP return getAwsServerConfigSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public AwsClustersStubSettings build() throws IOException { return new AwsClustersStubSettings(this); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java index 459573840bc7..193eef60055b 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java @@ -537,6 +537,15 @@ public AzureClustersStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -907,7 +916,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -920,7 +928,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1417,6 +1424,15 @@ public UnaryCallSettings.Builder getAzureCli return getAzureServerConfigSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public AzureClustersStubSettings build() throws IOException { return new AzureClustersStubSettings(this);