From 161f5b5a46daa21fcbc5b38ba9f341e59c487b88 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 10:07:26 -0500 Subject: [PATCH] fix(deps): [Many APIs] Update the Java code generator (gapic-generator-java) to 2.32.0 (#10252) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(deps): Update the Java code generator (gapic-generator-java) to 2.32.0 PiperOrigin-RevId: 599914188 Source-Link: https://github.com/googleapis/googleapis/commit/17e6661f8bf43374633adf950454ed8e69bdcee1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d86ba5be537e489435105ca85566cc4103301aba Copy-Tag: eyJwIjoiamF2YS1na2VodWIvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1ncmFmZWFzLy5Pd2xCb3QueWFtbCIsImgiOiJkODZiYTViZTUzN2U0ODk0MzUxMDVjYTg1NTY2Y2M0MTAzMzAxYWJhIn0= Copy-Tag: eyJwIjoiamF2YS1nc3VpdGUtYWRkb25zLy5Pd2xCb3QueWFtbCIsImgiOiJkODZiYTViZTUzN2U0ODk0MzUxMDVjYTg1NTY2Y2M0MTAzMzAxYWJhIn0= Copy-Tag: eyJwIjoiamF2YS1pYW0tYWRtaW4vLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1pYW1jcmVkZW50aWFscy8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 Copy-Tag: eyJwIjoiamF2YS1pZHMvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1pbmZyYS1tYW5hZ2VyLy5Pd2xCb3QueWFtbCIsImgiOiJkODZiYTViZTUzN2U0ODk0MzUxMDVjYTg1NTY2Y2M0MTAzMzAxYWJhIn0= Copy-Tag: eyJwIjoiamF2YS1pb3QvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1rbXMvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1rbXNpbnZlbnRvcnkvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1sYW5ndWFnZS8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 Copy-Tag: eyJwIjoiamF2YS1saWZlLXNjaWVuY2VzLy5Pd2xCb3QueWFtbCIsImgiOiJkODZiYTViZTUzN2U0ODk0MzUxMDVjYTg1NTY2Y2M0MTAzMzAxYWJhIn0= Copy-Tag: eyJwIjoiamF2YS1tYW5hZ2VkLWlkZW50aXRpZXMvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1tYXBzLWFkZHJlc3N2YWxpZGF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiJkODZiYTViZTUzN2U0ODk0MzUxMDVjYTg1NTY2Y2M0MTAzMzAxYWJhIn0= Copy-Tag: eyJwIjoiamF2YS1tYXBzLW1hcHNwbGF0Zm9ybWRhdGFzZXRzLy5Pd2xCb3QueWFtbCIsImgiOiJkODZiYTViZTUzN2U0ODk0MzUxMDVjYTg1NTY2Y2M0MTAzMzAxYWJhIn0= Copy-Tag: eyJwIjoiamF2YS1tYXBzLXBsYWNlcy8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 Copy-Tag: eyJwIjoiamF2YS1tYXBzLXJvdXRpbmcvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1tZWRpYXRyYW5zbGF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiJkODZiYTViZTUzN2U0ODk0MzUxMDVjYTg1NTY2Y2M0MTAzMzAxYWJhIn0= Copy-Tag: eyJwIjoiamF2YS1tZWV0Ly5Pd2xCb3QueWFtbCIsImgiOiJkODZiYTViZTUzN2U0ODk0MzUxMDVjYTg1NTY2Y2M0MTAzMzAxYWJhIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-gkehub/README.md | 2 +- .../google/cloud/gkehub/v1/GkeHubClient.java | 125 +++---- .../gkehub/v1/stub/GkeHubStubSettings.java | 20 +- .../cloud/gkehub/v1alpha/GkeHubClient.java | 51 +-- .../v1alpha/stub/GkeHubStubSettings.java | 20 +- .../cloud/gkehub/v1alpha2/GkeHubClient.java | 71 ++-- .../v1alpha2/stub/GkeHubStubSettings.java | 20 +- .../cloud/gkehub/v1beta/GkeHubClient.java | 51 +-- .../v1beta/stub/GkeHubStubSettings.java | 20 +- .../GkeHubMembershipServiceClient.java | 111 +++---- .../GkeHubMembershipServiceStubSettings.java | 20 +- java-grafeas/README.md | 2 +- .../java/io/grafeas/v1/GrafeasClient.java | 149 ++++----- .../grafeas/v1/stub/GrafeasStubSettings.java | 19 +- java-gsuite-addons/README.md | 2 +- .../gsuiteaddons/v1/GSuiteAddOnsClient.java | 93 +++--- .../v1/stub/GSuiteAddOnsStubSettings.java | 20 +- java-iam-admin/README.md | 2 +- .../google/cloud/iam/admin/v1/IAMClient.java | 259 +++++++-------- .../iam/admin/v1/stub/IAMStubSettings.java | 19 +- java-iam/README.md | 2 +- .../com/google/iam/v2/PoliciesClient.java | 49 +-- .../iam/v2/stub/PoliciesStubSettings.java | 20 +- .../com/google/iam/v2beta/PoliciesClient.java | 49 +-- .../iam/v2beta/stub/PoliciesStubSettings.java | 20 +- java-iamcredentials/README.md | 2 +- .../credentials/v1/IamCredentialsClient.java | 43 +-- .../v1/stub/IamCredentialsStubSettings.java | 20 +- java-ids/README.md | 2 +- .../com/google/cloud/ids/v1/IDSClient.java | 49 +-- .../cloud/ids/v1/stub/IDSStubSettings.java | 20 +- .../google/cloud/config/v1/ConfigClient.java | 253 +++++++-------- .../config/v1/stub/ConfigStubSettings.java | 20 +- java-iot/README.md | 2 +- .../cloud/iot/v1/DeviceManagerClient.java | 197 +++++------ .../v1/stub/DeviceManagerStubSettings.java | 20 +- java-kms/README.md | 2 +- .../google/cloud/kms/v1/EkmServiceClient.java | 103 +++--- .../kms/v1/KeyManagementServiceClient.java | 305 +++++++++--------- .../kms/v1/stub/EkmServiceStubSettings.java | 20 +- .../KeyManagementServiceStubSettings.java | 20 +- java-kmsinventory/README.md | 2 +- .../v1/KeyDashboardServiceClient.java | 15 +- .../v1/KeyTrackingServiceClient.java | 29 +- .../stub/KeyDashboardServiceStubSettings.java | 20 +- .../stub/KeyTrackingServiceStubSettings.java | 20 +- java-language/README.md | 2 +- .../language/v1/LanguageServiceClient.java | 69 ++-- .../v1/stub/LanguageServiceStubSettings.java | 20 +- .../v1beta2/LanguageServiceClient.java | 69 ++-- .../stub/LanguageServiceStubSettings.java | 20 +- .../language/v2/LanguageServiceClient.java | 49 +-- .../v2/stub/LanguageServiceStubSettings.java | 20 +- java-life-sciences/README.md | 2 +- .../v2beta/WorkflowsServiceV2BetaClient.java | 25 +- .../WorkflowsServiceV2BetaStubSettings.java | 20 +- java-managed-identities/README.md | 2 +- .../v1/ManagedIdentitiesServiceClient.java | 117 +++---- .../ManagedIdentitiesServiceStubSettings.java | 19 +- java-maps-addressvalidation/README.md | 2 +- .../v1/AddressValidationClient.java | 15 +- .../stub/AddressValidationStubSettings.java | 20 +- java-maps-places/README.md | 2 +- .../google/maps/places/v1/PlacesClient.java | 35 +- .../places/v1/stub/PlacesStubSettings.java | 20 +- java-maps-routing/README.md | 2 +- .../google/maps/routing/v2/RoutesClient.java | 13 +- .../routing/v2/stub/RoutesStubSettings.java | 20 +- java-mediatranslation/README.md | 2 +- .../SpeechTranslationServiceClient.java | 7 +- .../SpeechTranslationServiceStubSettings.java | 19 +- .../ConferenceRecordsServiceClient.java | 131 ++++---- .../apps/meet/v2beta/SpacesServiceClient.java | 39 +-- .../ConferenceRecordsServiceStubSettings.java | 20 +- .../stub/SpacesServiceStubSettings.java | 20 +- 75 files changed, 1839 insertions(+), 1342 deletions(-) diff --git a/java-gkehub/README.md b/java-gkehub/README.md index 0f5e691cc9e9..c45b5e83ad33 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/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-gkehub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/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-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java index be8e325546d1..7ad3923d4d2d 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java @@ -78,226 +78,227 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListMemberships

ListMemberships

Lists Memberships in a given project and location.

*

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

*
    - *
  • listMemberships(ListMembershipsRequest request) + *
  • listMemberships(ListMembershipsRequest request) *

*

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

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

  • listMemberships(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.

*
    - *
  • listMembershipsPagedCallable() - *
  • listMembershipsCallable() + *
  • listMembershipsPagedCallable() + *

  • listMembershipsCallable() *

*
ListFeatures

ListFeatures

Lists Features in a given project and location.

*

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

*
    - *
  • listFeatures(ListFeaturesRequest request) + *
  • listFeatures(ListFeaturesRequest request) *

*

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

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

  • listFeatures(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.

*
    - *
  • listFeaturesPagedCallable() - *
  • listFeaturesCallable() + *
  • listFeaturesPagedCallable() + *

  • listFeaturesCallable() *

*
GetMembership

GetMembership

Gets the details of a Membership.

*

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

*
    - *
  • getMembership(GetMembershipRequest request) + *
  • getMembership(GetMembershipRequest request) *

*

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

*
    - *
  • getMembership(MembershipName name) - *
  • getMembership(String name) + *
  • getMembership(MembershipName name) + *

  • getMembership(String name) *

*

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

*
    - *
  • getMembershipCallable() + *
  • getMembershipCallable() *

*
GetFeature

GetFeature

Gets details of a single Feature.

*

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

*
    - *
  • getFeature(GetFeatureRequest request) + *
  • getFeature(GetFeatureRequest request) *

*

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

*
    - *
  • getFeature(FeatureName name) - *
  • getFeature(String name) + *
  • getFeature(FeatureName name) + *

  • getFeature(String name) *

*

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

*
    - *
  • getFeatureCallable() + *
  • getFeatureCallable() *

*
CreateMembership

CreateMembership

Creates a new Membership. *

**This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.

*

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

*
    - *
  • createMembershipAsync(CreateMembershipRequest request) + *
  • createMembershipAsync(CreateMembershipRequest request) *

*

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

*
    - *
  • createMembershipAsync(LocationName parent, Membership resource, String membershipId) - *
  • createMembershipAsync(String parent, Membership resource, String membershipId) + *
  • createMembershipAsync(LocationName parent, Membership resource, String membershipId) + *

  • createMembershipAsync(String parent, Membership resource, String membershipId) *

*

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

*
    - *
  • createMembershipOperationCallable() - *
  • createMembershipCallable() + *
  • createMembershipOperationCallable() + *

  • createMembershipCallable() *

*
CreateFeature

CreateFeature

Adds a new Feature.

*

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

*
    - *
  • createFeatureAsync(CreateFeatureRequest request) + *
  • createFeatureAsync(CreateFeatureRequest request) *

*

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

*
    - *
  • createFeatureAsync(LocationName parent, Feature resource, String featureId) - *
  • createFeatureAsync(String parent, Feature resource, String featureId) + *
  • createFeatureAsync(LocationName parent, Feature resource, String featureId) + *

  • createFeatureAsync(String parent, Feature resource, String featureId) *

*

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

*
    - *
  • createFeatureOperationCallable() - *
  • createFeatureCallable() + *
  • createFeatureOperationCallable() + *

  • createFeatureCallable() *

*
DeleteMembership

DeleteMembership

Removes a Membership. *

**This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.

*

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

*
    - *
  • deleteMembershipAsync(DeleteMembershipRequest request) + *
  • deleteMembershipAsync(DeleteMembershipRequest request) *

*

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

*
    - *
  • deleteMembershipAsync(MembershipName name) - *
  • deleteMembershipAsync(String name) + *
  • deleteMembershipAsync(MembershipName name) + *

  • deleteMembershipAsync(String name) *

*

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

*
    - *
  • deleteMembershipOperationCallable() - *
  • deleteMembershipCallable() + *
  • deleteMembershipOperationCallable() + *

  • deleteMembershipCallable() *

*
DeleteFeature

DeleteFeature

Removes a Feature.

*

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

*
    - *
  • deleteFeatureAsync(DeleteFeatureRequest request) + *
  • deleteFeatureAsync(DeleteFeatureRequest request) *

*

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

*
    - *
  • deleteFeatureAsync(FeatureName name) - *
  • deleteFeatureAsync(String name) + *
  • deleteFeatureAsync(FeatureName name) + *

  • deleteFeatureAsync(String name) *

*

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

*
    - *
  • deleteFeatureOperationCallable() - *
  • deleteFeatureCallable() + *
  • deleteFeatureOperationCallable() + *

  • deleteFeatureCallable() *

*
UpdateMembership

UpdateMembership

Updates an existing Membership.

*

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

*
    - *
  • updateMembershipAsync(UpdateMembershipRequest request) + *
  • updateMembershipAsync(UpdateMembershipRequest request) *

*

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

*
    - *
  • updateMembershipAsync(MembershipName name, Membership resource, FieldMask updateMask) - *
  • updateMembershipAsync(String name, Membership resource, FieldMask updateMask) + *
  • updateMembershipAsync(MembershipName name, Membership resource, FieldMask updateMask) + *

  • updateMembershipAsync(String name, Membership resource, 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.

*
    - *
  • updateMembershipOperationCallable() - *
  • updateMembershipCallable() + *
  • updateMembershipOperationCallable() + *

  • updateMembershipCallable() *

*
UpdateFeature

UpdateFeature

Updates an existing Feature.

*

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

*
    - *
  • updateFeatureAsync(UpdateFeatureRequest request) + *
  • updateFeatureAsync(UpdateFeatureRequest request) *

*

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

*
    - *
  • updateFeatureAsync(FeatureName name, Feature resource, FieldMask updateMask) - *
  • updateFeatureAsync(String name, Feature resource, FieldMask updateMask) + *
  • updateFeatureAsync(FeatureName name, Feature resource, FieldMask updateMask) + *

  • updateFeatureAsync(String name, Feature resource, 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.

*
    - *
  • updateFeatureOperationCallable() - *
  • updateFeatureCallable() + *
  • updateFeatureOperationCallable() + *

  • updateFeatureCallable() *

*
GenerateConnectManifest

GenerateConnectManifest

Generates the manifest for deployment of the GKE connect agent. *

**This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly.

*

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

*
    - *
  • generateConnectManifest(GenerateConnectManifestRequest request) + *
  • generateConnectManifest(GenerateConnectManifestRequest request) *

*

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

*
    - *
  • generateConnectManifestCallable() + *
  • generateConnectManifestCallable() *

*
* *

See the individual methods for example code. diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java index 69872337b9fd..6e896b546c5f 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java @@ -367,6 +367,15 @@ public GkeHubStub 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() { @@ -631,7 +640,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); @@ -644,7 +652,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); @@ -981,6 +988,15 @@ public UnaryCallSettings.Builder updateFeatureS return generateConnectManifestSettings; } + /** 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 GkeHubStubSettings build() throws IOException { return new GkeHubStubSettings(this); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java index 9043cb63fdf0..a894591b7a9c 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java @@ -76,105 +76,106 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListFeatures

ListFeatures

Lists Features in a given project and location.

*

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

*
    - *
  • listFeatures(ListFeaturesRequest request) + *
  • listFeatures(ListFeaturesRequest request) *

*

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

*
    - *
  • listFeatures(String parent) + *
  • listFeatures(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.

*
    - *
  • listFeaturesPagedCallable() - *
  • listFeaturesCallable() + *
  • listFeaturesPagedCallable() + *

  • listFeaturesCallable() *

*
GetFeature

GetFeature

Gets details of a single Feature.

*

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

*
    - *
  • getFeature(GetFeatureRequest request) + *
  • getFeature(GetFeatureRequest request) *

*

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

*
    - *
  • getFeature(String name) + *
  • getFeature(String name) *

*

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

*
    - *
  • getFeatureCallable() + *
  • getFeatureCallable() *

*
CreateFeature

CreateFeature

Adds a new Feature.

*

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

*
    - *
  • createFeatureAsync(CreateFeatureRequest request) + *
  • createFeatureAsync(CreateFeatureRequest request) *

*

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

*
    - *
  • createFeatureAsync(String parent, Feature resource, String featureId) + *
  • createFeatureAsync(String parent, Feature resource, String featureId) *

*

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

*
    - *
  • createFeatureOperationCallable() - *
  • createFeatureCallable() + *
  • createFeatureOperationCallable() + *

  • createFeatureCallable() *

*
DeleteFeature

DeleteFeature

Removes a Feature.

*

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

*
    - *
  • deleteFeatureAsync(DeleteFeatureRequest request) + *
  • deleteFeatureAsync(DeleteFeatureRequest request) *

*

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

*
    - *
  • deleteFeatureAsync(String name) + *
  • deleteFeatureAsync(String name) *

*

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

*
    - *
  • deleteFeatureOperationCallable() - *
  • deleteFeatureCallable() + *
  • deleteFeatureOperationCallable() + *

  • deleteFeatureCallable() *

*
UpdateFeature

UpdateFeature

Updates an existing Feature.

*

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

*
    - *
  • updateFeatureAsync(UpdateFeatureRequest request) + *
  • updateFeatureAsync(UpdateFeatureRequest request) *

*

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

*
    - *
  • updateFeatureAsync(String name, Feature resource, FieldMask updateMask) + *
  • updateFeatureAsync(String name, Feature resource, 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.

*
    - *
  • updateFeatureOperationCallable() - *
  • updateFeatureCallable() + *
  • updateFeatureOperationCallable() + *

  • updateFeatureCallable() *

*
* *

See the individual methods for example code. diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java index db91473a5264..044b8e1f0279 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java @@ -236,6 +236,15 @@ public GkeHubStub 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() { @@ -440,7 +449,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); @@ -453,7 +461,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); @@ -627,6 +634,15 @@ public UnaryCallSettings.Builder updateFeatureS return updateFeatureOperationSettings; } + /** 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 GkeHubStubSettings build() throws IOException { return new GkeHubStubSettings(this); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java index 06f634528c6d..80fb040ccf1e 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java @@ -70,141 +70,142 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListMemberships

ListMemberships

Lists Memberships in a given project and location.

*

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

*
    - *
  • listMemberships(ListMembershipsRequest request) + *
  • listMemberships(ListMembershipsRequest request) *

*

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

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

  • listMemberships(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.

*
    - *
  • listMembershipsPagedCallable() - *
  • listMembershipsCallable() + *
  • listMembershipsPagedCallable() + *

  • listMembershipsCallable() *

*
GetMembership

GetMembership

Gets the details of a Membership.

*

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

*
    - *
  • getMembership(GetMembershipRequest request) + *
  • getMembership(GetMembershipRequest request) *

*

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

*
    - *
  • getMembership(MembershipName name) - *
  • getMembership(String name) + *
  • getMembership(MembershipName name) + *

  • getMembership(String name) *

*

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

*
    - *
  • getMembershipCallable() + *
  • getMembershipCallable() *

*
CreateMembership

CreateMembership

Creates a new Membership. *

**This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.

*

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

*
    - *
  • createMembershipAsync(CreateMembershipRequest request) + *
  • createMembershipAsync(CreateMembershipRequest request) *

*

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

*
    - *
  • createMembershipAsync(LocationName parent, Membership resource, String membershipId) - *
  • createMembershipAsync(String parent, Membership resource, String membershipId) + *
  • createMembershipAsync(LocationName parent, Membership resource, String membershipId) + *

  • createMembershipAsync(String parent, Membership resource, String membershipId) *

*

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

*
    - *
  • createMembershipOperationCallable() - *
  • createMembershipCallable() + *
  • createMembershipOperationCallable() + *

  • createMembershipCallable() *

*
DeleteMembership

DeleteMembership

Removes a Membership. *

**This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.

*

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

*
    - *
  • deleteMembershipAsync(DeleteMembershipRequest request) + *
  • deleteMembershipAsync(DeleteMembershipRequest request) *

*

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

*
    - *
  • deleteMembershipAsync(MembershipName name) - *
  • deleteMembershipAsync(String name) + *
  • deleteMembershipAsync(MembershipName name) + *

  • deleteMembershipAsync(String name) *

*

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

*
    - *
  • deleteMembershipOperationCallable() - *
  • deleteMembershipCallable() + *
  • deleteMembershipOperationCallable() + *

  • deleteMembershipCallable() *

*
UpdateMembership

UpdateMembership

Updates an existing Membership.

*

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

*
    - *
  • updateMembershipAsync(UpdateMembershipRequest request) + *
  • updateMembershipAsync(UpdateMembershipRequest request) *

*

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

*
    - *
  • updateMembershipAsync(String name, Membership resource, FieldMask updateMask) + *
  • updateMembershipAsync(String name, Membership resource, 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.

*
    - *
  • updateMembershipOperationCallable() - *
  • updateMembershipCallable() + *
  • updateMembershipOperationCallable() + *

  • updateMembershipCallable() *

*
GenerateConnectManifest

GenerateConnectManifest

Generates the manifest for deployment of the GKE connect agent. *

**This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly.

*

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

*
    - *
  • generateConnectManifest(GenerateConnectManifestRequest request) + *
  • generateConnectManifest(GenerateConnectManifestRequest request) *

*

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

*
    - *
  • generateConnectManifestCallable() + *
  • generateConnectManifestCallable() *

*
InitializeHub

InitializeHub

Initializes the Hub in this project, which includes creating the default Hub Service Account and the Hub Workload Identity Pool. Initialization is optional, and happens automatically when the first Membership is created. *

InitializeHub should be called when the first Membership cannot be registered without these resources. A common example is granting the Hub Service Account access to another project, which requires the account to exist first.

*

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

*
    - *
  • initializeHub(InitializeHubRequest request) + *
  • initializeHub(InitializeHubRequest request) *

*

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

*
    - *
  • initializeHubCallable() + *
  • initializeHubCallable() *

*
* *

See the individual methods for example code. diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java index 024a85ceb4a7..8aa1c9dc0e19 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java @@ -259,6 +259,15 @@ public GkeHubStub 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); @@ -696,6 +703,15 @@ public UnaryCallSettings.Builder getMembership return initializeHubSettings; } + /** 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 GkeHubStubSettings build() throws IOException { return new GkeHubStubSettings(this); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java index ac4a467ad37e..ac6bc5bd5f50 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java @@ -76,105 +76,106 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListFeatures

ListFeatures

Lists Features in a given project and location.

*

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

*
    - *
  • listFeatures(ListFeaturesRequest request) + *
  • listFeatures(ListFeaturesRequest request) *

*

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

*
    - *
  • listFeatures(String parent) + *
  • listFeatures(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.

*
    - *
  • listFeaturesPagedCallable() - *
  • listFeaturesCallable() + *
  • listFeaturesPagedCallable() + *

  • listFeaturesCallable() *

*
GetFeature

GetFeature

Gets details of a single Feature.

*

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

*
    - *
  • getFeature(GetFeatureRequest request) + *
  • getFeature(GetFeatureRequest request) *

*

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

*
    - *
  • getFeature(String name) + *
  • getFeature(String name) *

*

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

*
    - *
  • getFeatureCallable() + *
  • getFeatureCallable() *

*
CreateFeature

CreateFeature

Adds a new Feature.

*

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

*
    - *
  • createFeatureAsync(CreateFeatureRequest request) + *
  • createFeatureAsync(CreateFeatureRequest request) *

*

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

*
    - *
  • createFeatureAsync(String parent, Feature resource, String featureId) + *
  • createFeatureAsync(String parent, Feature resource, String featureId) *

*

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

*
    - *
  • createFeatureOperationCallable() - *
  • createFeatureCallable() + *
  • createFeatureOperationCallable() + *

  • createFeatureCallable() *

*
DeleteFeature

DeleteFeature

Removes a Feature.

*

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

*
    - *
  • deleteFeatureAsync(DeleteFeatureRequest request) + *
  • deleteFeatureAsync(DeleteFeatureRequest request) *

*

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

*
    - *
  • deleteFeatureAsync(String name) + *
  • deleteFeatureAsync(String name) *

*

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

*
    - *
  • deleteFeatureOperationCallable() - *
  • deleteFeatureCallable() + *
  • deleteFeatureOperationCallable() + *

  • deleteFeatureCallable() *

*
UpdateFeature

UpdateFeature

Updates an existing Feature.

*

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

*
    - *
  • updateFeatureAsync(UpdateFeatureRequest request) + *
  • updateFeatureAsync(UpdateFeatureRequest request) *

*

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

*
    - *
  • updateFeatureAsync(String name, Feature resource, FieldMask updateMask) + *
  • updateFeatureAsync(String name, Feature resource, 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.

*
    - *
  • updateFeatureOperationCallable() - *
  • updateFeatureCallable() + *
  • updateFeatureOperationCallable() + *

  • updateFeatureCallable() *

*
* *

See the individual methods for example code. diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java index 7abc54a3ea3c..c434f9b7326a 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java @@ -236,6 +236,15 @@ public GkeHubStub 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() { @@ -440,7 +449,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); @@ -453,7 +461,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); @@ -627,6 +634,15 @@ public UnaryCallSettings.Builder updateFeatureS return updateFeatureOperationSettings; } + /** 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 GkeHubStubSettings build() throws IOException { return new GkeHubStubSettings(this); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java index e5fdc865f349..791a79d2f5a2 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java @@ -82,230 +82,231 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListMemberships

ListMemberships

Lists Memberships in a given project and location.

*

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

*
    - *
  • listMemberships(ListMembershipsRequest request) + *
  • listMemberships(ListMembershipsRequest request) *

*

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

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

  • listMemberships(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.

*
    - *
  • listMembershipsPagedCallable() - *
  • listMembershipsCallable() + *
  • listMembershipsPagedCallable() + *

  • listMembershipsCallable() *

*
GetMembership

GetMembership

Gets the details of a Membership.

*

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

*
    - *
  • getMembership(GetMembershipRequest request) + *
  • getMembership(GetMembershipRequest request) *

*

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

*
    - *
  • getMembership(MembershipName name) - *
  • getMembership(String name) + *
  • getMembership(MembershipName name) + *

  • getMembership(String name) *

*

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

*
    - *
  • getMembershipCallable() + *
  • getMembershipCallable() *

*
CreateMembership

CreateMembership

Creates a new Membership. *

**This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.

*

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

*
    - *
  • createMembershipAsync(CreateMembershipRequest request) + *
  • createMembershipAsync(CreateMembershipRequest request) *

*

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

*
    - *
  • createMembershipAsync(LocationName parent, Membership resource, String membershipId) - *
  • createMembershipAsync(String parent, Membership resource, String membershipId) + *
  • createMembershipAsync(LocationName parent, Membership resource, String membershipId) + *

  • createMembershipAsync(String parent, Membership resource, String membershipId) *

*

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

*
    - *
  • createMembershipOperationCallable() - *
  • createMembershipCallable() + *
  • createMembershipOperationCallable() + *

  • createMembershipCallable() *

*
DeleteMembership

DeleteMembership

Removes a Membership. *

**This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.

*

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

*
    - *
  • deleteMembershipAsync(DeleteMembershipRequest request) + *
  • deleteMembershipAsync(DeleteMembershipRequest request) *

*

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

*
    - *
  • deleteMembershipAsync(MembershipName name) - *
  • deleteMembershipAsync(String name) + *
  • deleteMembershipAsync(MembershipName name) + *

  • deleteMembershipAsync(String name) *

*

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

*
    - *
  • deleteMembershipOperationCallable() - *
  • deleteMembershipCallable() + *
  • deleteMembershipOperationCallable() + *

  • deleteMembershipCallable() *

*
UpdateMembership

UpdateMembership

Updates an existing Membership.

*

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

*
    - *
  • updateMembershipAsync(UpdateMembershipRequest request) + *
  • updateMembershipAsync(UpdateMembershipRequest request) *

*

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

*
    - *
  • updateMembershipAsync(MembershipName name, Membership resource, FieldMask updateMask) - *
  • updateMembershipAsync(String name, Membership resource, FieldMask updateMask) + *
  • updateMembershipAsync(MembershipName name, Membership resource, FieldMask updateMask) + *

  • updateMembershipAsync(String name, Membership resource, 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.

*
    - *
  • updateMembershipOperationCallable() - *
  • updateMembershipCallable() + *
  • updateMembershipOperationCallable() + *

  • updateMembershipCallable() *

*
GenerateConnectManifest

GenerateConnectManifest

Generates the manifest for deployment of the GKE connect agent. *

**This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly.

*

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

*
    - *
  • generateConnectManifest(GenerateConnectManifestRequest request) + *
  • generateConnectManifest(GenerateConnectManifestRequest request) *

*

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

*
    - *
  • generateConnectManifestCallable() + *
  • generateConnectManifestCallable() *

*
ValidateExclusivity

ValidateExclusivity

ValidateExclusivity validates the state of exclusivity in the cluster. The validation does not depend on an existing Hub membership resource.

*

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

*
    - *
  • validateExclusivity(ValidateExclusivityRequest request) + *
  • validateExclusivity(ValidateExclusivityRequest request) *

*

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

*
    - *
  • validateExclusivityCallable() + *
  • validateExclusivityCallable() *

*
GenerateExclusivityManifest

GenerateExclusivityManifest

GenerateExclusivityManifest generates the manifests to update the exclusivity artifacts in the cluster if needed. *

Exclusivity artifacts include the Membership custom resource definition (CRD) and the singleton Membership custom resource (CR). Combined with ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes cluster is only registered to a single GKE Hub. *

The Membership CRD is versioned, and may require conversion when the GKE Hub API server begins serving a newer version of the CRD and corresponding CR. The response will be the converted CRD and CR if there are any differences between the versions.

*

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

*
    - *
  • generateExclusivityManifest(GenerateExclusivityManifestRequest request) + *
  • generateExclusivityManifest(GenerateExclusivityManifestRequest request) *

*

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

*
    - *
  • generateExclusivityManifestCallable() + *
  • generateExclusivityManifestCallable() *

*
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-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java index b648c844923f..6670c652d446 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java @@ -372,6 +372,15 @@ public GkeHubMembershipServiceStub 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() { @@ -642,7 +651,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); @@ -655,7 +663,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); @@ -920,6 +927,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 GkeHubMembershipServiceStubSettings build() throws IOException { return new GkeHubMembershipServiceStubSettings(this); diff --git a/java-grafeas/README.md b/java-grafeas/README.md index 558850344fff..f3755d04bdc4 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -191,7 +191,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/io.grafeas/grafeas.svg -[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.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-grafeas/src/main/java/io/grafeas/v1/GrafeasClient.java b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasClient.java index e6706085621e..2fb6d7d55f90 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasClient.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasClient.java @@ -69,280 +69,281 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetOccurrence

GetOccurrence

Gets the specified occurrence.

*

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

*
    - *
  • getOccurrence(GetOccurrenceRequest request) + *
  • getOccurrence(GetOccurrenceRequest request) *

*

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

*
    - *
  • getOccurrence(OccurrenceName name) - *
  • getOccurrence(String name) + *
  • getOccurrence(OccurrenceName name) + *

  • getOccurrence(String name) *

*

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

*
    - *
  • getOccurrenceCallable() + *
  • getOccurrenceCallable() *

*
ListOccurrences

ListOccurrences

Lists occurrences for the specified project.

*

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

*
    - *
  • listOccurrences(ListOccurrencesRequest request) + *
  • listOccurrences(ListOccurrencesRequest request) *

*

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

*
    - *
  • listOccurrences(ProjectName parent, String filter) - *
  • listOccurrences(String parent, String filter) + *
  • listOccurrences(ProjectName parent, String filter) + *

  • listOccurrences(String parent, String filter) *

*

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

*
    - *
  • listOccurrencesPagedCallable() - *
  • listOccurrencesCallable() + *
  • listOccurrencesPagedCallable() + *

  • listOccurrencesCallable() *

*
DeleteOccurrence

DeleteOccurrence

Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.

*

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

*
    - *
  • deleteOccurrence(DeleteOccurrenceRequest request) + *
  • deleteOccurrence(DeleteOccurrenceRequest request) *

*

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

*
    - *
  • deleteOccurrence(OccurrenceName name) - *
  • deleteOccurrence(String name) + *
  • deleteOccurrence(OccurrenceName name) + *

  • deleteOccurrence(String name) *

*

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

*
    - *
  • deleteOccurrenceCallable() + *
  • deleteOccurrenceCallable() *

*
CreateOccurrence

CreateOccurrence

Creates a new occurrence.

*

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

*
    - *
  • createOccurrence(CreateOccurrenceRequest request) + *
  • createOccurrence(CreateOccurrenceRequest request) *

*

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

*
    - *
  • createOccurrence(ProjectName parent, Occurrence occurrence) - *
  • createOccurrence(String parent, Occurrence occurrence) + *
  • createOccurrence(ProjectName parent, Occurrence occurrence) + *

  • createOccurrence(String parent, Occurrence occurrence) *

*

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

*
    - *
  • createOccurrenceCallable() + *
  • createOccurrenceCallable() *

*
BatchCreateOccurrences

BatchCreateOccurrences

Creates new occurrences in batch.

*

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

*
    - *
  • batchCreateOccurrences(BatchCreateOccurrencesRequest request) + *
  • batchCreateOccurrences(BatchCreateOccurrencesRequest request) *

*

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

*
    - *
  • batchCreateOccurrences(ProjectName parent, List occurrences) - *
  • batchCreateOccurrences(String parent, List occurrences) + *
  • batchCreateOccurrences(ProjectName parent, List<Occurrence> occurrences) + *

  • batchCreateOccurrences(String parent, List<Occurrence> occurrences) *

*

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

*
    - *
  • batchCreateOccurrencesCallable() + *
  • batchCreateOccurrencesCallable() *

*
UpdateOccurrence

UpdateOccurrence

Updates the specified occurrence.

*

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

*
    - *
  • updateOccurrence(UpdateOccurrenceRequest request) + *
  • updateOccurrence(UpdateOccurrenceRequest request) *

*

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

*
    - *
  • updateOccurrence(OccurrenceName name, Occurrence occurrence, FieldMask updateMask) - *
  • updateOccurrence(String name, Occurrence occurrence, FieldMask updateMask) + *
  • updateOccurrence(OccurrenceName name, Occurrence occurrence, FieldMask updateMask) + *

  • updateOccurrence(String name, Occurrence occurrence, 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.

*
    - *
  • updateOccurrenceCallable() + *
  • updateOccurrenceCallable() *

*
GetOccurrenceNote

GetOccurrenceNote

Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.

*

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

*
    - *
  • getOccurrenceNote(GetOccurrenceNoteRequest request) + *
  • getOccurrenceNote(GetOccurrenceNoteRequest request) *

*

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

*
    - *
  • getOccurrenceNote(OccurrenceName name) - *
  • getOccurrenceNote(String name) + *
  • getOccurrenceNote(OccurrenceName name) + *

  • getOccurrenceNote(String name) *

*

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

*
    - *
  • getOccurrenceNoteCallable() + *
  • getOccurrenceNoteCallable() *

*
GetNote

GetNote

Gets the specified note.

*

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

*
    - *
  • getNote(GetNoteRequest request) + *
  • getNote(GetNoteRequest request) *

*

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

*
    - *
  • getNote(NoteName name) - *
  • getNote(String name) + *
  • getNote(NoteName name) + *

  • getNote(String name) *

*

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

*
    - *
  • getNoteCallable() + *
  • getNoteCallable() *

*
ListNotes

ListNotes

Lists notes for the specified project.

*

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

*
    - *
  • listNotes(ListNotesRequest request) + *
  • listNotes(ListNotesRequest request) *

*

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

*
    - *
  • listNotes(ProjectName parent, String filter) - *
  • listNotes(String parent, String filter) + *
  • listNotes(ProjectName parent, String filter) + *

  • listNotes(String parent, String filter) *

*

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

*
    - *
  • listNotesPagedCallable() - *
  • listNotesCallable() + *
  • listNotesPagedCallable() + *

  • listNotesCallable() *

*
DeleteNote

DeleteNote

Deletes the specified note.

*

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

*
    - *
  • deleteNote(DeleteNoteRequest request) + *
  • deleteNote(DeleteNoteRequest request) *

*

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

*
    - *
  • deleteNote(NoteName name) - *
  • deleteNote(String name) + *
  • deleteNote(NoteName name) + *

  • deleteNote(String name) *

*

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

*
    - *
  • deleteNoteCallable() + *
  • deleteNoteCallable() *

*
CreateNote

CreateNote

Creates a new note.

*

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

*
    - *
  • createNote(CreateNoteRequest request) + *
  • createNote(CreateNoteRequest request) *

*

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

*
    - *
  • createNote(ProjectName parent, String noteId, Note note) - *
  • createNote(String parent, String noteId, Note note) + *
  • createNote(ProjectName parent, String noteId, Note note) + *

  • createNote(String parent, String noteId, Note note) *

*

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

*
    - *
  • createNoteCallable() + *
  • createNoteCallable() *

*
BatchCreateNotes

BatchCreateNotes

Creates new notes in batch.

*

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

*
    - *
  • batchCreateNotes(BatchCreateNotesRequest request) + *
  • batchCreateNotes(BatchCreateNotesRequest request) *

*

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

*
    - *
  • batchCreateNotes(ProjectName parent, Map notes) - *
  • batchCreateNotes(String parent, Map notes) + *
  • batchCreateNotes(ProjectName parent, Map<String, Note> notes) + *

  • batchCreateNotes(String parent, Map<String, Note> notes) *

*

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

*
    - *
  • batchCreateNotesCallable() + *
  • batchCreateNotesCallable() *

*
UpdateNote

UpdateNote

Updates the specified note.

*

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

*
    - *
  • updateNote(UpdateNoteRequest request) + *
  • updateNote(UpdateNoteRequest request) *

*

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

*
    - *
  • updateNote(NoteName name, Note note, FieldMask updateMask) - *
  • updateNote(String name, Note note, FieldMask updateMask) + *
  • updateNote(NoteName name, Note note, FieldMask updateMask) + *

  • updateNote(String name, Note note, 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.

*
    - *
  • updateNoteCallable() + *
  • updateNoteCallable() *

*
ListNoteOccurrences

ListNoteOccurrences

Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.

*

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

*
    - *
  • listNoteOccurrences(ListNoteOccurrencesRequest request) + *
  • listNoteOccurrences(ListNoteOccurrencesRequest request) *

*

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

*
    - *
  • listNoteOccurrences(NoteName name, String filter) - *
  • listNoteOccurrences(String name, String filter) + *
  • listNoteOccurrences(NoteName name, String filter) + *

  • listNoteOccurrences(String name, String filter) *

*

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

*
    - *
  • listNoteOccurrencesPagedCallable() - *
  • listNoteOccurrencesCallable() + *
  • listNoteOccurrencesPagedCallable() + *

  • listNoteOccurrencesCallable() *

*
* *

See the individual methods for example code. diff --git a/java-grafeas/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java b/java-grafeas/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java index 93345845de92..a2ba24b51b82 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java @@ -394,6 +394,15 @@ public GrafeasStub 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() { @@ -638,7 +647,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); @@ -815,6 +823,15 @@ public UnaryCallSettings.Builder updateNoteSettings() { return listNoteOccurrencesSettings; } + /** 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 GrafeasStubSettings build() throws IOException { return new GrafeasStubSettings(this); diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index 7e3136daa4a2..5f2a23a3ae73 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/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-gsuite-addons.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/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-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java index 2b80722d2da0..5aaa8581a7d7 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java @@ -77,182 +77,183 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetAuthorization

GetAuthorization

Gets the authorization information for deployments in a given project.

*

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

*
    - *
  • getAuthorization(GetAuthorizationRequest request) + *
  • getAuthorization(GetAuthorizationRequest request) *

*

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

*
    - *
  • getAuthorization(AuthorizationName name) - *
  • getAuthorization(String name) + *
  • getAuthorization(AuthorizationName name) + *

  • getAuthorization(String name) *

*

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

*
    - *
  • getAuthorizationCallable() + *
  • getAuthorizationCallable() *

*
CreateDeployment

CreateDeployment

Creates a deployment with the specified name and configuration.

*

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

*
    - *
  • createDeployment(CreateDeploymentRequest request) + *
  • createDeployment(CreateDeploymentRequest request) *

*

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

*
    - *
  • createDeployment(ProjectName parent, Deployment deployment, String deploymentId) - *
  • createDeployment(String parent, Deployment deployment, String deploymentId) + *
  • createDeployment(ProjectName parent, Deployment deployment, String deploymentId) + *

  • createDeployment(String parent, Deployment deployment, String deploymentId) *

*

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

*
    - *
  • createDeploymentCallable() + *
  • createDeploymentCallable() *

*
ReplaceDeployment

ReplaceDeployment

Creates or replaces a deployment with the specified name.

*

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

*
    - *
  • replaceDeployment(ReplaceDeploymentRequest request) + *
  • replaceDeployment(ReplaceDeploymentRequest request) *

*

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

*
    - *
  • replaceDeployment(Deployment deployment) + *
  • replaceDeployment(Deployment deployment) *

*

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

*
    - *
  • replaceDeploymentCallable() + *
  • replaceDeploymentCallable() *

*
GetDeployment

GetDeployment

Gets the deployment with the specified name.

*

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() *

*
ListDeployments

ListDeployments

Lists all deployments in a particular project.

*

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(ProjectName parent) - *
  • listDeployments(String parent) + *
  • listDeployments(ProjectName 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() *

*
DeleteDeployment

DeleteDeployment

Deletes the deployment with the given name.

*

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

*
    - *
  • deleteDeployment(DeleteDeploymentRequest request) + *
  • deleteDeployment(DeleteDeploymentRequest request) *

*

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

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

  • deleteDeployment(String name) *

*

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

*
    - *
  • deleteDeploymentCallable() + *
  • deleteDeploymentCallable() *

*
InstallDeployment

InstallDeployment

Installs a deployment in developer mode. See: https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.

*

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

*
    - *
  • installDeployment(InstallDeploymentRequest request) + *
  • installDeployment(InstallDeploymentRequest request) *

*

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

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

  • installDeployment(String name) *

*

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

*
    - *
  • installDeploymentCallable() + *
  • installDeploymentCallable() *

*
UninstallDeployment

UninstallDeployment

Uninstalls a developer mode deployment. See: https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.

*

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

*
    - *
  • uninstallDeployment(UninstallDeploymentRequest request) + *
  • uninstallDeployment(UninstallDeploymentRequest request) *

*

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

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

  • uninstallDeployment(String name) *

*

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

*
    - *
  • uninstallDeploymentCallable() + *
  • uninstallDeploymentCallable() *

*
GetInstallStatus

GetInstallStatus

Fetches the install status of a developer mode deployment.

*

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

*
    - *
  • getInstallStatus(GetInstallStatusRequest request) + *
  • getInstallStatus(GetInstallStatusRequest request) *

*

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

*
    - *
  • getInstallStatus(InstallStatusName name) - *
  • getInstallStatus(String name) + *
  • getInstallStatus(InstallStatusName name) + *

  • getInstallStatus(String name) *

*

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

*
    - *
  • getInstallStatusCallable() + *
  • getInstallStatusCallable() *

*
* *

See the individual methods for example code. diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java index f37213aaffeb..4b4795c12c8f 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java @@ -240,6 +240,15 @@ public GSuiteAddOnsStub 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); @@ -620,6 +627,15 @@ public UnaryCallSettings.Builder installDeploym return getInstallStatusSettings; } + /** 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 GSuiteAddOnsStubSettings build() throws IOException { return new GSuiteAddOnsStubSettings(this); diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index 2a32bfa0ef8f..a4b54b4d3308 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/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-iam-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.28.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-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java index f3beb4d07a4b..630f318794ea 100644 --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java @@ -139,100 +139,102 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListServiceAccounts

ListServiceAccounts

Lists every [ServiceAccount][google.iam.admin.v1.ServiceAccount] that belongs to a specific project.

*

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

*
    - *
  • listServiceAccounts(ListServiceAccountsRequest request) + *
  • listServiceAccounts(ListServiceAccountsRequest request) *

*

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

*
    - *
  • listServiceAccounts(ProjectName name) - *
  • listServiceAccounts(String name) + *
  • listServiceAccounts(ProjectName name) + *

  • listServiceAccounts(String name) *

*

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

*
    - *
  • listServiceAccountsPagedCallable() - *
  • listServiceAccountsCallable() + *
  • listServiceAccountsPagedCallable() + *

  • listServiceAccountsCallable() *

*
GetServiceAccount

GetServiceAccount

Gets a [ServiceAccount][google.iam.admin.v1.ServiceAccount].

*

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

*
    - *
  • getServiceAccount(GetServiceAccountRequest request) + *
  • getServiceAccount(GetServiceAccountRequest request) *

*

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

*
    - *
  • getServiceAccount(ServiceAccountName name) - *
  • getServiceAccount(String name) + *
  • getServiceAccount(ServiceAccountName name) + *

  • getServiceAccount(String name) *

*

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

*
    - *
  • getServiceAccountCallable() + *
  • getServiceAccountCallable() *

*
CreateServiceAccount

CreateServiceAccount

Creates a [ServiceAccount][google.iam.admin.v1.ServiceAccount].

*

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

*
    - *
  • createServiceAccount(CreateServiceAccountRequest request) + *
  • createServiceAccount(CreateServiceAccountRequest request) *

*

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

*
    - *
  • createServiceAccount(ProjectName name, String accountId, ServiceAccount serviceAccount) - *
  • createServiceAccount(String name, String accountId, ServiceAccount serviceAccount) + *
  • createServiceAccount(ProjectName name, String accountId, ServiceAccount serviceAccount) + *

  • createServiceAccount(String name, String accountId, ServiceAccount serviceAccount) *

*

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

*
    - *
  • createServiceAccountCallable() + *
  • createServiceAccountCallable() *

*
UpdateServiceAccount

UpdateServiceAccount

**Note:** We are in the process of deprecating this method. Use [PatchServiceAccount][google.iam.admin.v1.IAM.PatchServiceAccount] instead. *

Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. *

You can update only the `display_name` field.

*

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

*
    - *
  • updateServiceAccount(ServiceAccount request) + *
  • updateServiceAccount(ServiceAccount request) *

*

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

*
    - *
  • updateServiceAccountCallable() + *
  • updateServiceAccountCallable() *

*
PatchServiceAccount

PatchServiceAccount

Patches a [ServiceAccount][google.iam.admin.v1.ServiceAccount].

*

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

*
    - *
  • patchServiceAccount(PatchServiceAccountRequest request) + *
  • patchServiceAccount(PatchServiceAccountRequest request) *

*

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

*
    - *
  • patchServiceAccountCallable() + *
  • patchServiceAccountCallable() *

*
DeleteServiceAccount

DeleteServiceAccount

Deletes a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. *

**Warning:** After you delete a service account, you might not be able to undelete it. If you know that you need to re-enable the service account in the future, use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] instead. *

If you delete a service account, IAM permanently removes the service account 30 days later. Google Cloud cannot recover the service account after it is permanently removed, even if you file a support request. @@ -240,53 +242,53 @@ *

*

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

*
    - *
  • deleteServiceAccount(DeleteServiceAccountRequest request) + *
  • deleteServiceAccount(DeleteServiceAccountRequest request) *

*

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

*
    - *
  • deleteServiceAccount(ServiceAccountName name) - *
  • deleteServiceAccount(String name) + *
  • deleteServiceAccount(ServiceAccountName name) + *

  • deleteServiceAccount(String name) *

*

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

*
    - *
  • deleteServiceAccountCallable() + *
  • deleteServiceAccountCallable() *

*
UndeleteServiceAccount

UndeleteServiceAccount

Restores a deleted [ServiceAccount][google.iam.admin.v1.ServiceAccount]. *

**Important:** It is not always possible to restore a deleted service account. Use this method only as a last resort. *

After you delete a service account, IAM permanently removes the service account 30 days later. There is no way to restore a deleted service account that has been permanently removed.

*

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

*
    - *
  • undeleteServiceAccount(UndeleteServiceAccountRequest request) + *
  • undeleteServiceAccount(UndeleteServiceAccountRequest request) *

*

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

*
    - *
  • undeleteServiceAccountCallable() + *
  • undeleteServiceAccountCallable() *

*
EnableServiceAccount

EnableServiceAccount

Enables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] that was disabled by [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount]. *

If the service account is already enabled, then this method has no effect. *

If the service account was disabled by other means—for example, if Google disabled the service account because it was compromised—you cannot use this method to enable the service account.

*

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

*
    - *
  • enableServiceAccount(EnableServiceAccountRequest request) + *
  • enableServiceAccount(EnableServiceAccountRequest request) *

*

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

*
    - *
  • enableServiceAccountCallable() + *
  • enableServiceAccountCallable() *

*
DisableServiceAccount

DisableServiceAccount

Disables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] immediately. *

If an application uses the service account to authenticate, that application can no longer call Google APIs or access Google Cloud resources. Existing access tokens for the service account are rejected, and requests for new access tokens will fail. *

To re-enable the service account, use [EnableServiceAccount][google.iam.admin.v1.IAM.EnableServiceAccount]. After you re-enable the service account, its existing access tokens will be accepted, and you can request new access tokens. @@ -294,205 +296,205 @@ *

*

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

*
    - *
  • disableServiceAccount(DisableServiceAccountRequest request) + *
  • disableServiceAccount(DisableServiceAccountRequest request) *

*

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

*
    - *
  • disableServiceAccountCallable() + *
  • disableServiceAccountCallable() *

*
ListServiceAccountKeys

ListServiceAccountKeys

Lists every [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey] for a service account.

*

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

*
    - *
  • listServiceAccountKeys(ListServiceAccountKeysRequest request) + *
  • listServiceAccountKeys(ListServiceAccountKeysRequest request) *

*

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

*
    - *
  • listServiceAccountKeys(ServiceAccountName name, List keyTypes) - *
  • listServiceAccountKeys(String name, List keyTypes) + *
  • listServiceAccountKeys(ServiceAccountName name, List<ListServiceAccountKeysRequest.KeyType> keyTypes) + *

  • listServiceAccountKeys(String name, List<ListServiceAccountKeysRequest.KeyType> keyTypes) *

*

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

*
    - *
  • listServiceAccountKeysCallable() + *
  • listServiceAccountKeysCallable() *

*
GetServiceAccountKey

GetServiceAccountKey

Gets a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].

*

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

*
    - *
  • getServiceAccountKey(GetServiceAccountKeyRequest request) + *
  • getServiceAccountKey(GetServiceAccountKeyRequest request) *

*

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

*
    - *
  • getServiceAccountKey(KeyName name, ServiceAccountPublicKeyType publicKeyType) - *
  • getServiceAccountKey(String name, ServiceAccountPublicKeyType publicKeyType) + *
  • getServiceAccountKey(KeyName name, ServiceAccountPublicKeyType publicKeyType) + *

  • getServiceAccountKey(String name, ServiceAccountPublicKeyType publicKeyType) *

*

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

*
    - *
  • getServiceAccountKeyCallable() + *
  • getServiceAccountKeyCallable() *

*
CreateServiceAccountKey

CreateServiceAccountKey

Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].

*

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

*
    - *
  • createServiceAccountKey(CreateServiceAccountKeyRequest request) + *
  • createServiceAccountKey(CreateServiceAccountKeyRequest request) *

*

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

*
    - *
  • createServiceAccountKey(ServiceAccountName name, ServiceAccountPrivateKeyType privateKeyType, ServiceAccountKeyAlgorithm keyAlgorithm) - *
  • createServiceAccountKey(String name, ServiceAccountPrivateKeyType privateKeyType, ServiceAccountKeyAlgorithm keyAlgorithm) + *
  • createServiceAccountKey(ServiceAccountName name, ServiceAccountPrivateKeyType privateKeyType, ServiceAccountKeyAlgorithm keyAlgorithm) + *

  • createServiceAccountKey(String name, ServiceAccountPrivateKeyType privateKeyType, ServiceAccountKeyAlgorithm keyAlgorithm) *

*

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

*
    - *
  • createServiceAccountKeyCallable() + *
  • createServiceAccountKeyCallable() *

*
UploadServiceAccountKey

UploadServiceAccountKey

Uploads the public key portion of a key pair that you manage, and associates the public key with a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. *

After you upload the public key, you can use the private key from the key pair as a service account key.

*

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

*
    - *
  • uploadServiceAccountKey(UploadServiceAccountKeyRequest request) + *
  • uploadServiceAccountKey(UploadServiceAccountKeyRequest request) *

*

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

*
    - *
  • uploadServiceAccountKeyCallable() + *
  • uploadServiceAccountKeyCallable() *

*
DeleteServiceAccountKey

DeleteServiceAccountKey

Deletes a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. Deleting a service account key does not revoke short-lived credentials that have been issued based on the service account key.

*

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

*
    - *
  • deleteServiceAccountKey(DeleteServiceAccountKeyRequest request) + *
  • deleteServiceAccountKey(DeleteServiceAccountKeyRequest request) *

*

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

*
    - *
  • deleteServiceAccountKey(KeyName name) - *
  • deleteServiceAccountKey(String name) + *
  • deleteServiceAccountKey(KeyName name) + *

  • deleteServiceAccountKey(String name) *

*

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

*
    - *
  • deleteServiceAccountKeyCallable() + *
  • deleteServiceAccountKeyCallable() *

*
DisableServiceAccountKey

DisableServiceAccountKey

Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service account key can be re-enabled with [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey].

*

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

*
    - *
  • disableServiceAccountKey(DisableServiceAccountKeyRequest request) + *
  • disableServiceAccountKey(DisableServiceAccountKeyRequest request) *

*

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

*
    - *
  • disableServiceAccountKey(KeyName name) - *
  • disableServiceAccountKey(String name) + *
  • disableServiceAccountKey(KeyName name) + *

  • disableServiceAccountKey(String name) *

*

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

*
    - *
  • disableServiceAccountKeyCallable() + *
  • disableServiceAccountKeyCallable() *

*
EnableServiceAccountKey

EnableServiceAccountKey

Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].

*

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

*
    - *
  • enableServiceAccountKey(EnableServiceAccountKeyRequest request) + *
  • enableServiceAccountKey(EnableServiceAccountKeyRequest request) *

*

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

*
    - *
  • enableServiceAccountKey(KeyName name) - *
  • enableServiceAccountKey(String name) + *
  • enableServiceAccountKey(KeyName name) + *

  • enableServiceAccountKey(String name) *

*

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

*
    - *
  • enableServiceAccountKeyCallable() + *
  • enableServiceAccountKeyCallable() *

*
SignBlob

SignBlob

**Note:** This method is deprecated. Use the [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signBlob) method in the IAM Service Account Credentials API instead. If you currently use this method, see the [migration guide](https://cloud.google.com/iam/help/credentials/migrate-api) for instructions. *

Signs a blob using the system-managed private key for a [ServiceAccount][google.iam.admin.v1.ServiceAccount].

*

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

*
    - *
  • signBlob(SignBlobRequest request) + *
  • signBlob(SignBlobRequest request) *

*

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

*
    - *
  • signBlob(ServiceAccountName name, ByteString bytesToSign) - *
  • signBlob(String name, ByteString bytesToSign) + *
  • signBlob(ServiceAccountName name, ByteString bytesToSign) + *

  • signBlob(String name, ByteString bytesToSign) *

*

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

*
    - *
  • signBlobCallable() + *
  • signBlobCallable() *

*
SignJwt

SignJwt

**Note:** This method is deprecated. Use the [`signJwt`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signJwt) method in the IAM Service Account Credentials API instead. If you currently use this method, see the [migration guide](https://cloud.google.com/iam/help/credentials/migrate-api) for instructions. *

Signs a JSON Web Token (JWT) using the system-managed private key for a [ServiceAccount][google.iam.admin.v1.ServiceAccount].

*

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

*
    - *
  • signJwt(SignJwtRequest request) + *
  • signJwt(SignJwtRequest request) *

*

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

*
    - *
  • signJwt(ServiceAccountName name, String payload) - *
  • signJwt(String name, String payload) + *
  • signJwt(ServiceAccountName name, String payload) + *

  • signJwt(String name, String payload) *

*

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

*
    - *
  • signJwtCallable() + *
  • signJwtCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. This IAM policy specifies which principals have access to the service account. *

This method does not tell you whether the service account has been granted any roles on other resources. To check whether a service account has role grants on a resource, use the `getIamPolicy` method for that resource. For example, to view the role grants for a project, call the Resource Manager API's [`projects.getIamPolicy`](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getIamPolicy) method.

*

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

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

*

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

*
    - *
  • getIamPolicy(ResourceName resource) - *
  • getIamPolicy(String resource) + *
  • getIamPolicy(ResourceName resource) + *

  • getIamPolicy(String resource) *

*

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() *

*
SetIamPolicy

SetIamPolicy

Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. *

Use this method to grant or revoke access to the service account. For example, you could grant a principal the ability to impersonate the service account. *

This method does not enable the service account to access other resources. To grant roles to a service account on a resource, follow these steps: @@ -501,116 +503,116 @@ *

*

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

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

*

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

*
    - *
  • setIamPolicy(ResourceName resource, Policy policy) - *
  • setIamPolicy(String resource, Policy policy) + *
  • setIamPolicy(ResourceName resource, Policy policy) + *

  • setIamPolicy(String resource, Policy policy) *

*

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() *

*
TestIamPermissions

TestIamPermissions

Tests whether the caller has the specified permissions on a [ServiceAccount][google.iam.admin.v1.ServiceAccount].

*

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

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

*

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

*
    - *
  • testIamPermissions(ResourceName resource, List permissions) - *
  • testIamPermissions(String resource, List permissions) + *
  • testIamPermissions(ResourceName resource, List<String> permissions) + *

  • testIamPermissions(String resource, List<String> permissions) *

*

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() *

*
QueryGrantableRoles

QueryGrantableRoles

Lists roles that can be granted on a Google Cloud resource. A role is grantable if the IAM policy for the resource can contain bindings to the role.

*

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

*
    - *
  • queryGrantableRoles(QueryGrantableRolesRequest request) + *
  • queryGrantableRoles(QueryGrantableRolesRequest request) *

*

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

*
    - *
  • queryGrantableRoles(String fullResourceName) + *
  • queryGrantableRoles(String fullResourceName) *

*

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

*
    - *
  • queryGrantableRolesPagedCallable() - *
  • queryGrantableRolesCallable() + *
  • queryGrantableRolesPagedCallable() + *

  • queryGrantableRolesCallable() *

*
ListRoles

ListRoles

Lists every predefined [Role][google.iam.admin.v1.Role] that IAM supports, or every custom role that is defined for an organization or project.

*

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

*
    - *
  • listRoles(ListRolesRequest request) + *
  • listRoles(ListRolesRequest request) *

*

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

*
    - *
  • listRolesPagedCallable() - *
  • listRolesCallable() + *
  • listRolesPagedCallable() + *

  • listRolesCallable() *

*
GetRole

GetRole

Gets the definition of a [Role][google.iam.admin.v1.Role].

*

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

*
    - *
  • getRole(GetRoleRequest request) + *
  • getRole(GetRoleRequest request) *

*

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

*
    - *
  • getRoleCallable() + *
  • getRoleCallable() *

*
CreateRole

CreateRole

Creates a new custom [Role][google.iam.admin.v1.Role].

*

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

*
    - *
  • createRole(CreateRoleRequest request) + *
  • createRole(CreateRoleRequest request) *

*

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

*
    - *
  • createRoleCallable() + *
  • createRoleCallable() *

*
UpdateRole

UpdateRole

Updates the definition of a custom [Role][google.iam.admin.v1.Role].

*

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

*
    - *
  • updateRole(UpdateRoleRequest request) + *
  • updateRole(UpdateRoleRequest request) *

*

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

*
    - *
  • updateRoleCallable() + *
  • updateRoleCallable() *

*
DeleteRole

DeleteRole

Deletes a custom [Role][google.iam.admin.v1.Role]. *

When you delete a custom role, the following changes occur immediately: *

    @@ -626,74 +628,73 @@ *
*

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

*
    - *
  • deleteRole(DeleteRoleRequest request) + *
  • deleteRole(DeleteRoleRequest request) *

*

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

*
    - *
  • deleteRoleCallable() + *
  • deleteRoleCallable() *

*
UndeleteRole

UndeleteRole

Undeletes a custom [Role][google.iam.admin.v1.Role].

*

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

*
    - *
  • undeleteRole(UndeleteRoleRequest request) + *
  • undeleteRole(UndeleteRoleRequest request) *

*

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

*
    - *
  • undeleteRoleCallable() + *
  • undeleteRoleCallable() *

*
QueryTestablePermissions

QueryTestablePermissions

Lists every permission that you can test on a resource. A permission is testable if you can check whether a principal has that permission on the resource.

*

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

*
    - *
  • queryTestablePermissions(QueryTestablePermissionsRequest request) + *
  • queryTestablePermissions(QueryTestablePermissionsRequest request) *

*

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

*
    - *
  • queryTestablePermissionsPagedCallable() - *
  • queryTestablePermissionsCallable() + *
  • queryTestablePermissionsPagedCallable() + *

  • queryTestablePermissionsCallable() *

*
QueryAuditableServices

QueryAuditableServices

Returns a list of services that allow you to opt into audit logs that are not generated by default. *

To learn more about audit logs, see the [Logging documentation](https://cloud.google.com/logging/docs/audit).

*

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

*
    - *
  • queryAuditableServices(QueryAuditableServicesRequest request) + *
  • queryAuditableServices(QueryAuditableServicesRequest request) *

*

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

*
    - *
  • queryAuditableServicesCallable() + *
  • queryAuditableServicesCallable() *

*
LintPolicy

LintPolicy

Lints, or validates, an IAM policy. Currently checks the [google.iam.v1.Binding.condition][google.iam.v1.Binding.condition] field, which contains a condition expression for a role binding. *

Successful calls to this method always return an HTTP `200 OK` status code, even if the linter detects an issue in the IAM policy.

*

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

*
    - *
  • lintPolicy(LintPolicyRequest request) + *
  • lintPolicy(LintPolicyRequest request) *

*

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

*
    - *
  • lintPolicyCallable() + *
  • lintPolicyCallable() *

*
* *

See the individual methods for example code. diff --git a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java index 62c52d38dc35..161ed6e8f87f 100644 --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java @@ -636,6 +636,15 @@ public IAMStub 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() { @@ -1007,7 +1016,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); @@ -1383,6 +1391,15 @@ public UnaryCallSettings.Builder lintPoli return lintPolicySettings; } + /** 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 IAMStubSettings build() throws IOException { return new IAMStubSettings(this); diff --git a/java-iam/README.md b/java-iam/README.md index cdc33bf1761f..bf3998bdccf0 100644 --- a/java-iam/README.md +++ b/java-iam/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/java-iam/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-iam-policy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/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-iam/google-iam-policy/src/main/java/com/google/iam/v2/PoliciesClient.java b/java-iam/google-iam-policy/src/main/java/com/google/iam/v2/PoliciesClient.java index b79cddafc55d..d5e3dc646d9f 100644 --- a/java-iam/google-iam-policy/src/main/java/com/google/iam/v2/PoliciesClient.java +++ b/java-iam/google-iam-policy/src/main/java/com/google/iam/v2/PoliciesClient.java @@ -60,69 +60,71 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListPolicies

ListPolicies

Retrieves the policies of the specified kind that are attached to a resource. *

The response lists only policy metadata. In particular, policy rules are omitted.

*

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

*
    - *
  • listPolicies(ListPoliciesRequest request) + *
  • listPolicies(ListPoliciesRequest request) *

*

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

*
    - *
  • listPolicies(String parent) + *
  • listPolicies(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.

*
    - *
  • listPoliciesPagedCallable() - *
  • listPoliciesCallable() + *
  • listPoliciesPagedCallable() + *

  • listPoliciesCallable() *

*
GetPolicy

GetPolicy

Gets a policy.

*

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

*
    - *
  • getPolicy(GetPolicyRequest request) + *
  • getPolicy(GetPolicyRequest request) *

*

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

*
    - *
  • getPolicy(String name) + *
  • getPolicy(String name) *

*

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

*
    - *
  • getPolicyCallable() + *
  • getPolicyCallable() *

*
CreatePolicy

CreatePolicy

Creates a policy.

*

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

*
    - *
  • createPolicyAsync(CreatePolicyRequest request) + *
  • createPolicyAsync(CreatePolicyRequest request) *

*

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

*
    - *
  • createPolicyAsync(String parent, Policy policy, String policyId) + *
  • createPolicyAsync(String parent, Policy policy, String policyId) *

*

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

*
    - *
  • createPolicyOperationCallable() - *
  • createPolicyCallable() + *
  • createPolicyOperationCallable() + *

  • createPolicyCallable() *

*
UpdatePolicy

UpdatePolicy

Updates the specified policy. *

You can update only the rules and the display name for the policy. *

To update a policy, you should use a read-modify-write loop: @@ -131,35 +133,34 @@ *

*

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

*
    - *
  • updatePolicyAsync(UpdatePolicyRequest request) + *
  • updatePolicyAsync(UpdatePolicyRequest request) *

*

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

*
    - *
  • updatePolicyOperationCallable() - *
  • updatePolicyCallable() + *
  • updatePolicyOperationCallable() + *

  • updatePolicyCallable() *

*
DeletePolicy

DeletePolicy

Deletes a policy. This action is permanent.

*

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

*
    - *
  • deletePolicyAsync(DeletePolicyRequest request) + *
  • deletePolicyAsync(DeletePolicyRequest request) *

*

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

*
    - *
  • deletePolicyAsync(String name) + *
  • deletePolicyAsync(String name) *

*

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

*
    - *
  • deletePolicyOperationCallable() - *
  • deletePolicyCallable() + *
  • deletePolicyOperationCallable() + *

  • deletePolicyCallable() *

*
* *

See the individual methods for example code. diff --git a/java-iam/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStubSettings.java b/java-iam/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStubSettings.java index d83aea42f103..ac99e06a7c3b 100644 --- a/java-iam/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStubSettings.java +++ b/java-iam/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStubSettings.java @@ -234,6 +234,15 @@ public PoliciesStub 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() { @@ -441,7 +450,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); @@ -454,7 +462,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); @@ -628,6 +635,15 @@ public UnaryCallSettings.Builder deletePolicySet return deletePolicyOperationSettings; } + /** 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 PoliciesStubSettings build() throws IOException { return new PoliciesStubSettings(this); diff --git a/java-iam/google-iam-policy/src/main/java/com/google/iam/v2beta/PoliciesClient.java b/java-iam/google-iam-policy/src/main/java/com/google/iam/v2beta/PoliciesClient.java index f036cfac2260..ae30c33475d0 100644 --- a/java-iam/google-iam-policy/src/main/java/com/google/iam/v2beta/PoliciesClient.java +++ b/java-iam/google-iam-policy/src/main/java/com/google/iam/v2beta/PoliciesClient.java @@ -60,69 +60,71 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListPolicies

ListPolicies

Retrieves the policies of the specified kind that are attached to a resource. *

The response lists only policy metadata. In particular, policy rules are omitted.

*

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

*
    - *
  • listPolicies(ListPoliciesRequest request) + *
  • listPolicies(ListPoliciesRequest request) *

*

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

*
    - *
  • listPolicies(String parent) + *
  • listPolicies(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.

*
    - *
  • listPoliciesPagedCallable() - *
  • listPoliciesCallable() + *
  • listPoliciesPagedCallable() + *

  • listPoliciesCallable() *

*
GetPolicy

GetPolicy

Gets a policy.

*

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

*
    - *
  • getPolicy(GetPolicyRequest request) + *
  • getPolicy(GetPolicyRequest request) *

*

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

*
    - *
  • getPolicy(String name) + *
  • getPolicy(String name) *

*

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

*
    - *
  • getPolicyCallable() + *
  • getPolicyCallable() *

*
CreatePolicy

CreatePolicy

Creates a policy.

*

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

*
    - *
  • createPolicyAsync(CreatePolicyRequest request) + *
  • createPolicyAsync(CreatePolicyRequest request) *

*

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

*
    - *
  • createPolicyAsync(String parent, Policy policy, String policyId) + *
  • createPolicyAsync(String parent, Policy policy, String policyId) *

*

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

*
    - *
  • createPolicyOperationCallable() - *
  • createPolicyCallable() + *
  • createPolicyOperationCallable() + *

  • createPolicyCallable() *

*
UpdatePolicy

UpdatePolicy

Updates the specified policy. *

You can update only the rules and the display name for the policy. *

To update a policy, you should use a read-modify-write loop: @@ -131,35 +133,34 @@ *

*

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

*
    - *
  • updatePolicyAsync(UpdatePolicyRequest request) + *
  • updatePolicyAsync(UpdatePolicyRequest request) *

*

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

*
    - *
  • updatePolicyOperationCallable() - *
  • updatePolicyCallable() + *
  • updatePolicyOperationCallable() + *

  • updatePolicyCallable() *

*
DeletePolicy

DeletePolicy

Deletes a policy. This action is permanent.

*

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

*
    - *
  • deletePolicyAsync(DeletePolicyRequest request) + *
  • deletePolicyAsync(DeletePolicyRequest request) *

*

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

*
    - *
  • deletePolicyAsync(String name) + *
  • deletePolicyAsync(String name) *

*

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

*
    - *
  • deletePolicyOperationCallable() - *
  • deletePolicyCallable() + *
  • deletePolicyOperationCallable() + *

  • deletePolicyCallable() *

*
* *

See the individual methods for example code. diff --git a/java-iam/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStubSettings.java b/java-iam/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStubSettings.java index f24db05b15de..5f2d1904e680 100644 --- a/java-iam/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStubSettings.java +++ b/java-iam/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStubSettings.java @@ -235,6 +235,15 @@ public PoliciesStub 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() { @@ -442,7 +451,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); @@ -455,7 +463,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); @@ -629,6 +636,15 @@ public UnaryCallSettings.Builder deletePolicySet return deletePolicyOperationSettings; } + /** 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 PoliciesStubSettings build() throws IOException { return new PoliciesStubSettings(this); diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index 304337bb1d08..a1570d43326b 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/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-iamcredentials.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/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-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java index 18d7fa2837b1..d08dfc57b81c 100644 --- a/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java +++ b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java @@ -61,87 +61,88 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GenerateAccessToken

GenerateAccessToken

Generates an OAuth 2.0 access token for a service account.

*

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(ServiceAccountName name, List delegates, List scope, Duration lifetime) - *
  • generateAccessToken(String name, List delegates, List scope, Duration lifetime) + *
  • generateAccessToken(ServiceAccountName name, List<String> delegates, List<String> scope, Duration lifetime) + *

  • generateAccessToken(String name, List<String> delegates, List<String> scope, Duration lifetime) *

*

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() *

*
GenerateIdToken

GenerateIdToken

Generates an OpenID Connect ID token for a service account.

*

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

*
    - *
  • generateIdToken(GenerateIdTokenRequest request) + *
  • generateIdToken(GenerateIdTokenRequest request) *

*

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

*
    - *
  • generateIdToken(ServiceAccountName name, List delegates, String audience, boolean includeEmail) - *
  • generateIdToken(String name, List delegates, String audience, boolean includeEmail) + *
  • generateIdToken(ServiceAccountName name, List<String> delegates, String audience, boolean includeEmail) + *

  • generateIdToken(String name, List<String> delegates, String audience, boolean includeEmail) *

*

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

*
    - *
  • generateIdTokenCallable() + *
  • generateIdTokenCallable() *

*
SignBlob

SignBlob

Signs a blob using a service account's system-managed private key.

*

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

*
    - *
  • signBlob(SignBlobRequest request) + *
  • signBlob(SignBlobRequest request) *

*

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

*
    - *
  • signBlob(ServiceAccountName name, List delegates, ByteString payload) - *
  • signBlob(String name, List delegates, ByteString payload) + *
  • signBlob(ServiceAccountName name, List<String> delegates, ByteString payload) + *

  • signBlob(String name, List<String> delegates, ByteString payload) *

*

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

*
    - *
  • signBlobCallable() + *
  • signBlobCallable() *

*
SignJwt

SignJwt

Signs a JWT using a service account's system-managed private key.

*

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

*
    - *
  • signJwt(SignJwtRequest request) + *
  • signJwt(SignJwtRequest request) *

*

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

*
    - *
  • signJwt(ServiceAccountName name, List delegates, String payload) - *
  • signJwt(String name, List delegates, String payload) + *
  • signJwt(ServiceAccountName name, List<String> delegates, String payload) + *

  • signJwt(String name, List<String> delegates, String payload) *

*

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

*
    - *
  • signJwtCallable() + *
  • signJwtCallable() *

*
* *

See the individual methods for example code. diff --git a/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java index 7c01cfd69bce..4fc0a8271ddf 100644 --- a/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java +++ b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java @@ -140,6 +140,15 @@ public IamCredentialsStub 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() { @@ -327,7 +336,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); @@ -340,7 +348,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); @@ -408,6 +415,15 @@ public UnaryCallSettings.Builder signJwtSetting return signJwtSettings; } + /** 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 IamCredentialsStubSettings build() throws IOException { return new IamCredentialsStubSettings(this); diff --git a/java-ids/README.md b/java-ids/README.md index a804d8ff9127..79596ff78321 100644 --- a/java-ids/README.md +++ b/java-ids/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-ids.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.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-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSClient.java b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSClient.java index 7e0886238de1..a5ab2bdb6868 100644 --- a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSClient.java +++ b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSClient.java @@ -61,90 +61,91 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListEndpoints

ListEndpoints

Lists Endpoints in a given project and location.

*

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

*
    - *
  • listEndpoints(ListEndpointsRequest request) + *
  • listEndpoints(ListEndpointsRequest request) *

*

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

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

  • listEndpoints(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.

*
    - *
  • listEndpointsPagedCallable() - *
  • listEndpointsCallable() + *
  • listEndpointsPagedCallable() + *

  • listEndpointsCallable() *

*
GetEndpoint

GetEndpoint

Gets details of a single Endpoint.

*

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

*
    - *
  • getEndpoint(GetEndpointRequest request) + *
  • getEndpoint(GetEndpointRequest request) *

*

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

*
    - *
  • getEndpoint(EndpointName name) - *
  • getEndpoint(String name) + *
  • getEndpoint(EndpointName name) + *

  • getEndpoint(String name) *

*

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

*
    - *
  • getEndpointCallable() + *
  • getEndpointCallable() *

*
CreateEndpoint

CreateEndpoint

Creates a new Endpoint in a given project and location.

*

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

*
    - *
  • createEndpointAsync(CreateEndpointRequest request) + *
  • createEndpointAsync(CreateEndpointRequest request) *

*

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

*
    - *
  • createEndpointAsync(LocationName parent, Endpoint endpoint, String endpointId) - *
  • createEndpointAsync(String parent, Endpoint endpoint, String endpointId) + *
  • createEndpointAsync(LocationName parent, Endpoint endpoint, String endpointId) + *

  • createEndpointAsync(String parent, Endpoint endpoint, String endpointId) *

*

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

*
    - *
  • createEndpointOperationCallable() - *
  • createEndpointCallable() + *
  • createEndpointOperationCallable() + *

  • createEndpointCallable() *

*
DeleteEndpoint

DeleteEndpoint

Deletes a single Endpoint.

*

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

*
    - *
  • deleteEndpointAsync(DeleteEndpointRequest request) + *
  • deleteEndpointAsync(DeleteEndpointRequest request) *

*

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

*
    - *
  • deleteEndpointAsync(EndpointName name) - *
  • deleteEndpointAsync(String name) + *
  • deleteEndpointAsync(EndpointName name) + *

  • deleteEndpointAsync(String name) *

*

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

*
    - *
  • deleteEndpointOperationCallable() - *
  • deleteEndpointCallable() + *
  • deleteEndpointOperationCallable() + *

  • deleteEndpointCallable() *

*
* *

See the individual methods for example code. diff --git a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStubSettings.java b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStubSettings.java index 6f02b871b32c..4494b93138fb 100644 --- a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStubSettings.java +++ b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStubSettings.java @@ -220,6 +220,15 @@ public IDSStub 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); @@ -580,6 +587,15 @@ public UnaryCallSettings.Builder deleteEndpoin return deleteEndpointOperationSettings; } + /** 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 IDSStubSettings build() throws IOException { return new IDSStubSettings(this); diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java index 3190fa63bb4b..3b97cd06070f 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java @@ -72,478 +72,479 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListDeployments

ListDeployments

Lists [Deployment][google.cloud.config.v1.Deployment]s in a given project and location.

*

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(LocationName parent) - *
  • listDeployments(String parent) + *
  • listDeployments(LocationName 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

Gets details about a [Deployment][google.cloud.config.v1.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() *

*
CreateDeployment

CreateDeployment

Creates a [Deployment][google.cloud.config.v1.Deployment].

*

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

*
    - *
  • createDeploymentAsync(CreateDeploymentRequest request) + *
  • createDeploymentAsync(CreateDeploymentRequest request) *

*

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

*
    - *
  • createDeploymentAsync(LocationName parent, Deployment deployment, String deploymentId) - *
  • createDeploymentAsync(String parent, Deployment deployment, String deploymentId) + *
  • createDeploymentAsync(LocationName parent, Deployment deployment, String deploymentId) + *

  • createDeploymentAsync(String parent, Deployment deployment, String deploymentId) *

*

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

*
    - *
  • createDeploymentOperationCallable() - *
  • createDeploymentCallable() + *
  • createDeploymentOperationCallable() + *

  • createDeploymentCallable() *

*
UpdateDeployment

UpdateDeployment

Updates a [Deployment][google.cloud.config.v1.Deployment].

*

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

*
    - *
  • updateDeploymentAsync(UpdateDeploymentRequest request) + *
  • updateDeploymentAsync(UpdateDeploymentRequest request) *

*

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

*
    - *
  • updateDeploymentAsync(Deployment deployment, FieldMask updateMask) + *
  • updateDeploymentAsync(Deployment deployment, 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.

*
    - *
  • updateDeploymentOperationCallable() - *
  • updateDeploymentCallable() + *
  • updateDeploymentOperationCallable() + *

  • updateDeploymentCallable() *

*
DeleteDeployment

DeleteDeployment

Deletes a [Deployment][google.cloud.config.v1.Deployment].

*

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

*
    - *
  • deleteDeploymentAsync(DeleteDeploymentRequest request) + *
  • deleteDeploymentAsync(DeleteDeploymentRequest request) *

*

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

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

  • deleteDeploymentAsync(String name) *

*

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

*
    - *
  • deleteDeploymentOperationCallable() - *
  • deleteDeploymentCallable() + *
  • deleteDeploymentOperationCallable() + *

  • deleteDeploymentCallable() *

*
ListRevisions

ListRevisions

Lists [Revision][google.cloud.config.v1.Revision]s of a deployment.

*

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

*
    - *
  • listRevisions(ListRevisionsRequest request) + *
  • listRevisions(ListRevisionsRequest request) *

*

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

*
    - *
  • listRevisions(DeploymentName parent) - *
  • listRevisions(String parent) + *
  • listRevisions(DeploymentName parent) + *

  • listRevisions(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.

*
    - *
  • listRevisionsPagedCallable() - *
  • listRevisionsCallable() + *
  • listRevisionsPagedCallable() + *

  • listRevisionsCallable() *

*
GetRevision

GetRevision

Gets details about a [Revision][google.cloud.config.v1.Revision].

*

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

*
    - *
  • getRevision(GetRevisionRequest request) + *
  • getRevision(GetRevisionRequest request) *

*

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

*
    - *
  • getRevision(RevisionName name) - *
  • getRevision(String name) + *
  • getRevision(RevisionName name) + *

  • getRevision(String name) *

*

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

*
    - *
  • getRevisionCallable() + *
  • getRevisionCallable() *

*
GetResource

GetResource

Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.

*

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

*
    - *
  • getResource(GetResourceRequest request) + *
  • getResource(GetResourceRequest request) *

*

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

*
    - *
  • getResource(ResourceName name) - *
  • getResource(String name) + *
  • getResource(ResourceName name) + *

  • getResource(String name) *

*

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() *

*
ListResources

ListResources

Lists [Resource][google.cloud.config.v1.Resource]s in a given revision.

*

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

*
    - *
  • listResources(ListResourcesRequest request) + *
  • listResources(ListResourcesRequest request) *

*

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

*
    - *
  • listResources(RevisionName parent) - *
  • listResources(String parent) + *
  • listResources(RevisionName parent) + *

  • listResources(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.

*
    - *
  • listResourcesPagedCallable() - *
  • listResourcesCallable() + *
  • listResourcesPagedCallable() + *

  • listResourcesCallable() *

*
ExportDeploymentStatefile

ExportDeploymentStatefile

Exports Terraform state file from a given deployment.

*

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

*
    - *
  • exportDeploymentStatefile(ExportDeploymentStatefileRequest request) + *
  • exportDeploymentStatefile(ExportDeploymentStatefileRequest request) *

*

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

*
    - *
  • exportDeploymentStatefileCallable() + *
  • exportDeploymentStatefileCallable() *

*
ExportRevisionStatefile

ExportRevisionStatefile

Exports Terraform state file from a given revision.

*

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

*
    - *
  • exportRevisionStatefile(ExportRevisionStatefileRequest request) + *
  • exportRevisionStatefile(ExportRevisionStatefileRequest request) *

*

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

*
    - *
  • exportRevisionStatefileCallable() + *
  • exportRevisionStatefileCallable() *

*
ImportStatefile

ImportStatefile

Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.

*

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

*
    - *
  • importStatefile(ImportStatefileRequest request) + *
  • importStatefile(ImportStatefileRequest request) *

*

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

*
    - *
  • importStatefile(DeploymentName parent, long lockId) - *
  • importStatefile(String parent, long lockId) + *
  • importStatefile(DeploymentName parent, long lockId) + *

  • importStatefile(String parent, long lockId) *

*

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

*
    - *
  • importStatefileCallable() + *
  • importStatefileCallable() *

*
DeleteStatefile

DeleteStatefile

Deletes Terraform state file in a given deployment.

*

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

*
    - *
  • deleteStatefile(DeleteStatefileRequest request) + *
  • deleteStatefile(DeleteStatefileRequest request) *

*

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

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

  • deleteStatefile(String name) *

*

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

*
    - *
  • deleteStatefileCallable() + *
  • deleteStatefileCallable() *

*
LockDeployment

LockDeployment

Locks a deployment.

*

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

*
    - *
  • lockDeploymentAsync(LockDeploymentRequest request) + *
  • lockDeploymentAsync(LockDeploymentRequest request) *

*

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

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

  • lockDeploymentAsync(String name) *

*

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

*
    - *
  • lockDeploymentOperationCallable() - *
  • lockDeploymentCallable() + *
  • lockDeploymentOperationCallable() + *

  • lockDeploymentCallable() *

*
UnlockDeployment

UnlockDeployment

Unlocks a locked deployment.

*

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

*
    - *
  • unlockDeploymentAsync(UnlockDeploymentRequest request) + *
  • unlockDeploymentAsync(UnlockDeploymentRequest request) *

*

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

*
    - *
  • unlockDeploymentAsync(DeploymentName name, long lockId) - *
  • unlockDeploymentAsync(String name, long lockId) + *
  • unlockDeploymentAsync(DeploymentName name, long lockId) + *

  • unlockDeploymentAsync(String name, long lockId) *

*

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

*
    - *
  • unlockDeploymentOperationCallable() - *
  • unlockDeploymentCallable() + *
  • unlockDeploymentOperationCallable() + *

  • unlockDeploymentCallable() *

*
ExportLockInfo

ExportLockInfo

Exports the lock info on a locked deployment.

*

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

*
    - *
  • exportLockInfo(ExportLockInfoRequest request) + *
  • exportLockInfo(ExportLockInfoRequest request) *

*

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

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

  • exportLockInfo(String name) *

*

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

*
    - *
  • exportLockInfoCallable() + *
  • exportLockInfoCallable() *

*
CreatePreview

CreatePreview

Creates a [Preview][google.cloud.config.v1.Preview].

*

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

*
    - *
  • createPreviewAsync(CreatePreviewRequest request) + *
  • createPreviewAsync(CreatePreviewRequest request) *

*

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

*
    - *
  • createPreviewAsync(LocationName parent, Preview preview) - *
  • createPreviewAsync(String parent, Preview preview) + *
  • createPreviewAsync(LocationName parent, Preview preview) + *

  • createPreviewAsync(String parent, Preview preview) *

*

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

*
    - *
  • createPreviewOperationCallable() - *
  • createPreviewCallable() + *
  • createPreviewOperationCallable() + *

  • createPreviewCallable() *

*
GetPreview

GetPreview

Gets details about a [Preview][google.cloud.config.v1.Preview].

*

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

*
    - *
  • getPreview(GetPreviewRequest request) + *
  • getPreview(GetPreviewRequest request) *

*

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

*
    - *
  • getPreview(PreviewName name) - *
  • getPreview(String name) + *
  • getPreview(PreviewName name) + *

  • getPreview(String name) *

*

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

*
    - *
  • getPreviewCallable() + *
  • getPreviewCallable() *

*
ListPreviews

ListPreviews

Lists [Preview][google.cloud.config.v1.Preview]s in a given project and location.

*

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

*
    - *
  • listPreviews(ListPreviewsRequest request) + *
  • listPreviews(ListPreviewsRequest request) *

*

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

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

  • listPreviews(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.

*
    - *
  • listPreviewsPagedCallable() - *
  • listPreviewsCallable() + *
  • listPreviewsPagedCallable() + *

  • listPreviewsCallable() *

*
DeletePreview

DeletePreview

Deletes a [Preview][google.cloud.config.v1.Preview].

*

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

*
    - *
  • deletePreviewAsync(DeletePreviewRequest request) + *
  • deletePreviewAsync(DeletePreviewRequest request) *

*

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

*
    - *
  • deletePreviewAsync(PreviewName name) - *
  • deletePreviewAsync(String name) + *
  • deletePreviewAsync(PreviewName name) + *

  • deletePreviewAsync(String name) *

*

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

*
    - *
  • deletePreviewOperationCallable() - *
  • deletePreviewCallable() + *
  • deletePreviewOperationCallable() + *

  • deletePreviewCallable() *

*
ExportPreviewResult

ExportPreviewResult

Export [Preview][google.cloud.config.v1.Preview] results.

*

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

*
    - *
  • exportPreviewResult(ExportPreviewResultRequest request) + *
  • exportPreviewResult(ExportPreviewResultRequest request) *

*

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

*
    - *
  • exportPreviewResultCallable() + *
  • exportPreviewResultCallable() *

*
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-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java index cd939217f468..645183bcb582 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java @@ -667,6 +667,15 @@ public ConfigStub 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() { @@ -1029,7 +1038,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); @@ -1042,7 +1050,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); @@ -1570,6 +1577,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 ConfigStubSettings build() throws IOException { return new ConfigStubSettings(this); diff --git a/java-iot/README.md b/java-iot/README.md index 95fd7a6d9122..f3713c557967 100644 --- a/java-iot/README.md +++ b/java-iot/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-iot.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/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-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java index 9bb0d0556463..81f77695284a 100644 --- a/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java +++ b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java @@ -65,374 +65,375 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateDeviceRegistry

CreateDeviceRegistry

Creates a device registry that contains devices.

*

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

*
    - *
  • createDeviceRegistry(CreateDeviceRegistryRequest request) + *
  • createDeviceRegistry(CreateDeviceRegistryRequest request) *

*

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

*
    - *
  • createDeviceRegistry(LocationName parent, DeviceRegistry deviceRegistry) - *
  • createDeviceRegistry(String parent, DeviceRegistry deviceRegistry) + *
  • createDeviceRegistry(LocationName parent, DeviceRegistry deviceRegistry) + *

  • createDeviceRegistry(String parent, DeviceRegistry deviceRegistry) *

*

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

*
    - *
  • createDeviceRegistryCallable() + *
  • createDeviceRegistryCallable() *

*
GetDeviceRegistry

GetDeviceRegistry

Gets a device registry configuration.

*

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

*
    - *
  • getDeviceRegistry(GetDeviceRegistryRequest request) + *
  • getDeviceRegistry(GetDeviceRegistryRequest request) *

*

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

*
    - *
  • getDeviceRegistry(RegistryName name) - *
  • getDeviceRegistry(String name) + *
  • getDeviceRegistry(RegistryName name) + *

  • getDeviceRegistry(String name) *

*

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

*
    - *
  • getDeviceRegistryCallable() + *
  • getDeviceRegistryCallable() *

*
UpdateDeviceRegistry

UpdateDeviceRegistry

Updates a device registry configuration.

*

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

*
    - *
  • updateDeviceRegistry(UpdateDeviceRegistryRequest request) + *
  • updateDeviceRegistry(UpdateDeviceRegistryRequest request) *

*

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

*
    - *
  • updateDeviceRegistry(DeviceRegistry deviceRegistry, FieldMask updateMask) + *
  • updateDeviceRegistry(DeviceRegistry deviceRegistry, 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.

*
    - *
  • updateDeviceRegistryCallable() + *
  • updateDeviceRegistryCallable() *

*
DeleteDeviceRegistry

DeleteDeviceRegistry

Deletes a device registry configuration.

*

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

*
    - *
  • deleteDeviceRegistry(DeleteDeviceRegistryRequest request) + *
  • deleteDeviceRegistry(DeleteDeviceRegistryRequest request) *

*

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

*
    - *
  • deleteDeviceRegistry(RegistryName name) - *
  • deleteDeviceRegistry(String name) + *
  • deleteDeviceRegistry(RegistryName name) + *

  • deleteDeviceRegistry(String name) *

*

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

*
    - *
  • deleteDeviceRegistryCallable() + *
  • deleteDeviceRegistryCallable() *

*
ListDeviceRegistries

ListDeviceRegistries

Lists device registries.

*

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

*
    - *
  • listDeviceRegistries(ListDeviceRegistriesRequest request) + *
  • listDeviceRegistries(ListDeviceRegistriesRequest request) *

*

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

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

  • listDeviceRegistries(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.

*
    - *
  • listDeviceRegistriesPagedCallable() - *
  • listDeviceRegistriesCallable() + *
  • listDeviceRegistriesPagedCallable() + *

  • listDeviceRegistriesCallable() *

*
CreateDevice

CreateDevice

Creates a device in a device registry.

*

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

*
    - *
  • createDevice(CreateDeviceRequest request) + *
  • createDevice(CreateDeviceRequest request) *

*

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

*
    - *
  • createDevice(RegistryName parent, Device device) - *
  • createDevice(String parent, Device device) + *
  • createDevice(RegistryName parent, Device device) + *

  • createDevice(String parent, Device device) *

*

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

*
    - *
  • createDeviceCallable() + *
  • createDeviceCallable() *

*
GetDevice

GetDevice

Gets details about a device.

*

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

*
    - *
  • getDevice(GetDeviceRequest request) + *
  • getDevice(GetDeviceRequest request) *

*

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

*
    - *
  • getDevice(DeviceName name) - *
  • getDevice(String name) + *
  • getDevice(DeviceName name) + *

  • getDevice(String name) *

*

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

*
    - *
  • getDeviceCallable() + *
  • getDeviceCallable() *

*
UpdateDevice

UpdateDevice

Updates a device.

*

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

*
    - *
  • updateDevice(UpdateDeviceRequest request) + *
  • updateDevice(UpdateDeviceRequest request) *

*

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

*
    - *
  • updateDevice(Device device, FieldMask updateMask) + *
  • updateDevice(Device device, 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.

*
    - *
  • updateDeviceCallable() + *
  • updateDeviceCallable() *

*
DeleteDevice

DeleteDevice

Deletes a device.

*

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

*
    - *
  • deleteDevice(DeleteDeviceRequest request) + *
  • deleteDevice(DeleteDeviceRequest request) *

*

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

*
    - *
  • deleteDevice(DeviceName name) - *
  • deleteDevice(String name) + *
  • deleteDevice(DeviceName name) + *

  • deleteDevice(String name) *

*

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

*
    - *
  • deleteDeviceCallable() + *
  • deleteDeviceCallable() *

*
ListDevices

ListDevices

List devices in a device registry.

*

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

*
    - *
  • listDevices(ListDevicesRequest request) + *
  • listDevices(ListDevicesRequest request) *

*

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

*
    - *
  • listDevices(RegistryName parent) - *
  • listDevices(String parent) + *
  • listDevices(RegistryName parent) + *

  • listDevices(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.

*
    - *
  • listDevicesPagedCallable() - *
  • listDevicesCallable() + *
  • listDevicesPagedCallable() + *

  • listDevicesCallable() *

*
ModifyCloudToDeviceConfig

ModifyCloudToDeviceConfig

Modifies the configuration for the device, which is eventually sent from the Cloud IoT Core servers. Returns the modified configuration version and its metadata.

*

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

*
    - *
  • modifyCloudToDeviceConfig(ModifyCloudToDeviceConfigRequest request) + *
  • modifyCloudToDeviceConfig(ModifyCloudToDeviceConfigRequest request) *

*

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

*
    - *
  • modifyCloudToDeviceConfig(DeviceName name, ByteString binaryData) - *
  • modifyCloudToDeviceConfig(String name, ByteString binaryData) + *
  • modifyCloudToDeviceConfig(DeviceName name, ByteString binaryData) + *

  • modifyCloudToDeviceConfig(String name, ByteString binaryData) *

*

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

*
    - *
  • modifyCloudToDeviceConfigCallable() + *
  • modifyCloudToDeviceConfigCallable() *

*
ListDeviceConfigVersions

ListDeviceConfigVersions

Lists the last few versions of the device configuration in descending order (i.e.: newest first).

*

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

*
    - *
  • listDeviceConfigVersions(ListDeviceConfigVersionsRequest request) + *
  • listDeviceConfigVersions(ListDeviceConfigVersionsRequest request) *

*

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

*
    - *
  • listDeviceConfigVersions(DeviceName name) - *
  • listDeviceConfigVersions(String name) + *
  • listDeviceConfigVersions(DeviceName name) + *

  • listDeviceConfigVersions(String name) *

*

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

*
    - *
  • listDeviceConfigVersionsCallable() + *
  • listDeviceConfigVersionsCallable() *

*
ListDeviceStates

ListDeviceStates

Lists the last few versions of the device state in descending order (i.e.: newest first).

*

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

*
    - *
  • listDeviceStates(ListDeviceStatesRequest request) + *
  • listDeviceStates(ListDeviceStatesRequest request) *

*

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

*
    - *
  • listDeviceStates(DeviceName name) - *
  • listDeviceStates(String name) + *
  • listDeviceStates(DeviceName name) + *

  • listDeviceStates(String name) *

*

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

*
    - *
  • listDeviceStatesCallable() + *
  • listDeviceStatesCallable() *

*
SetIamPolicy

SetIamPolicy

Sets the access control policy on the specified resource. 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) *

*

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

*
    - *
  • setIamPolicy(ResourceName resource, Policy policy) - *
  • setIamPolicy(String resource, Policy policy) + *
  • setIamPolicy(ResourceName resource, Policy policy) + *

  • setIamPolicy(String resource, Policy policy) *

*

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 policy if 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) *

*

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

*
    - *
  • getIamPolicy(ResourceName resource) - *
  • getIamPolicy(String resource) + *
  • getIamPolicy(ResourceName resource) + *

  • getIamPolicy(String resource) *

*

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 the resource does not exist, this will return 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) *

*

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

*
    - *
  • testIamPermissions(ResourceName resource, List permissions) - *
  • testIamPermissions(String resource, List permissions) + *
  • testIamPermissions(ResourceName resource, List<String> permissions) + *

  • testIamPermissions(String resource, List<String> permissions) *

*

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() *

*
SendCommandToDevice

SendCommandToDevice

Sends a command to the specified device. In order for a device to be able to receive commands, it must: 1) be connected to Cloud IoT Core using the MQTT protocol, and 2) be subscribed to the group of MQTT topics specified by /devices/{device-id}/commands/#. This subscription will receive commands at the top-level topic /devices/{device-id}/commands as well as commands for subfolders, like /devices/{device-id}/commands/subfolder. Note that subscribing to specific subfolders is not supported. If the command could not be delivered to the device, this method will return an error; in particular, if the device is not subscribed, this method will return FAILED_PRECONDITION. Otherwise, this method will return OK. If the subscription is QoS 1, at least once delivery will be guaranteed; for QoS 0, no acknowledgment will be expected from the device.

*

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

*
    - *
  • sendCommandToDevice(SendCommandToDeviceRequest request) + *
  • sendCommandToDevice(SendCommandToDeviceRequest request) *

*

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

*
    - *
  • sendCommandToDevice(DeviceName name, ByteString binaryData) - *
  • sendCommandToDevice(String name, ByteString binaryData) - *
  • sendCommandToDevice(DeviceName name, ByteString binaryData, String subfolder) - *
  • sendCommandToDevice(String name, ByteString binaryData, String subfolder) + *
  • sendCommandToDevice(DeviceName name, ByteString binaryData) + *

  • sendCommandToDevice(String name, ByteString binaryData) + *

  • sendCommandToDevice(DeviceName name, ByteString binaryData, String subfolder) + *

  • sendCommandToDevice(String name, ByteString binaryData, String subfolder) *

*

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

*
    - *
  • sendCommandToDeviceCallable() + *
  • sendCommandToDeviceCallable() *

*
BindDeviceToGateway

BindDeviceToGateway

Associates the device with the gateway.

*

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

*
    - *
  • bindDeviceToGateway(BindDeviceToGatewayRequest request) + *
  • bindDeviceToGateway(BindDeviceToGatewayRequest request) *

*

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

*
    - *
  • bindDeviceToGateway(RegistryName parent, String gatewayId, String deviceId) - *
  • bindDeviceToGateway(String parent, String gatewayId, String deviceId) + *
  • bindDeviceToGateway(RegistryName parent, String gatewayId, String deviceId) + *

  • bindDeviceToGateway(String parent, String gatewayId, String deviceId) *

*

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

*
    - *
  • bindDeviceToGatewayCallable() + *
  • bindDeviceToGatewayCallable() *

*
UnbindDeviceFromGateway

UnbindDeviceFromGateway

Deletes the association between the device and the gateway.

*

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

*
    - *
  • unbindDeviceFromGateway(UnbindDeviceFromGatewayRequest request) + *
  • unbindDeviceFromGateway(UnbindDeviceFromGatewayRequest request) *

*

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

*
    - *
  • unbindDeviceFromGateway(RegistryName parent, String gatewayId, String deviceId) - *
  • unbindDeviceFromGateway(String parent, String gatewayId, String deviceId) + *
  • unbindDeviceFromGateway(RegistryName parent, String gatewayId, String deviceId) + *

  • unbindDeviceFromGateway(String parent, String gatewayId, String deviceId) *

*

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

*
    - *
  • unbindDeviceFromGatewayCallable() + *
  • unbindDeviceFromGatewayCallable() *

*
* *

See the individual methods for example code. diff --git a/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java index 4394414af2f4..b1b77869bc87 100644 --- a/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java +++ b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java @@ -407,6 +407,15 @@ public DeviceManagerStub 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() { @@ -730,7 +739,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); @@ -743,7 +751,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); @@ -978,6 +985,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return unbindDeviceFromGatewaySettings; } + /** 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 DeviceManagerStubSettings build() throws IOException { return new DeviceManagerStubSettings(this); diff --git a/java-kms/README.md b/java-kms/README.md index 37b5b74d7633..e02cf314e17b 100644 --- a/java-kms/README.md +++ b/java-kms/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-kms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.36.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-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java index 072174e90fbc..78c29e7ea2d9 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java @@ -72,216 +72,217 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListEkmConnections

ListEkmConnections

Lists [EkmConnections][google.cloud.kms.v1.EkmConnection].

*

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

*
    - *
  • listEkmConnections(ListEkmConnectionsRequest request) + *
  • listEkmConnections(ListEkmConnectionsRequest request) *

*

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

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

  • listEkmConnections(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.

*
    - *
  • listEkmConnectionsPagedCallable() - *
  • listEkmConnectionsCallable() + *
  • listEkmConnectionsPagedCallable() + *

  • listEkmConnectionsCallable() *

*
GetEkmConnection

GetEkmConnection

Returns metadata for a given [EkmConnection][google.cloud.kms.v1.EkmConnection].

*

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

*
    - *
  • getEkmConnection(GetEkmConnectionRequest request) + *
  • getEkmConnection(GetEkmConnectionRequest request) *

*

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

*
    - *
  • getEkmConnection(EkmConnectionName name) - *
  • getEkmConnection(String name) + *
  • getEkmConnection(EkmConnectionName name) + *

  • getEkmConnection(String name) *

*

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

*
    - *
  • getEkmConnectionCallable() + *
  • getEkmConnectionCallable() *

*
CreateEkmConnection

CreateEkmConnection

Creates a new [EkmConnection][google.cloud.kms.v1.EkmConnection] in a given Project and Location.

*

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

*
    - *
  • createEkmConnection(CreateEkmConnectionRequest request) + *
  • createEkmConnection(CreateEkmConnectionRequest request) *

*

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

*
    - *
  • createEkmConnection(LocationName parent, String ekmConnectionId, EkmConnection ekmConnection) - *
  • createEkmConnection(String parent, String ekmConnectionId, EkmConnection ekmConnection) + *
  • createEkmConnection(LocationName parent, String ekmConnectionId, EkmConnection ekmConnection) + *

  • createEkmConnection(String parent, String ekmConnectionId, EkmConnection ekmConnection) *

*

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

*
    - *
  • createEkmConnectionCallable() + *
  • createEkmConnectionCallable() *

*
UpdateEkmConnection

UpdateEkmConnection

Updates an [EkmConnection][google.cloud.kms.v1.EkmConnection]'s metadata.

*

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

*
    - *
  • updateEkmConnection(UpdateEkmConnectionRequest request) + *
  • updateEkmConnection(UpdateEkmConnectionRequest request) *

*

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

*
    - *
  • updateEkmConnection(EkmConnection ekmConnection, FieldMask updateMask) + *
  • updateEkmConnection(EkmConnection ekmConnection, 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.

*
    - *
  • updateEkmConnectionCallable() + *
  • updateEkmConnectionCallable() *

*
GetEkmConfig

GetEkmConfig

Returns the [EkmConfig][google.cloud.kms.v1.EkmConfig] singleton resource for a given project and location.

*

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

*
    - *
  • getEkmConfig(GetEkmConfigRequest request) + *
  • getEkmConfig(GetEkmConfigRequest request) *

*

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

*
    - *
  • getEkmConfig(EkmConfigName name) - *
  • getEkmConfig(String name) + *
  • getEkmConfig(EkmConfigName name) + *

  • getEkmConfig(String name) *

*

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

*
    - *
  • getEkmConfigCallable() + *
  • getEkmConfigCallable() *

*
UpdateEkmConfig

UpdateEkmConfig

Updates the [EkmConfig][google.cloud.kms.v1.EkmConfig] singleton resource for a given project and location.

*

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

*
    - *
  • updateEkmConfig(UpdateEkmConfigRequest request) + *
  • updateEkmConfig(UpdateEkmConfigRequest request) *

*

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

*
    - *
  • updateEkmConfig(EkmConfig ekmConfig, FieldMask updateMask) + *
  • updateEkmConfig(EkmConfig ekmConfig, 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.

*
    - *
  • updateEkmConfigCallable() + *
  • updateEkmConfigCallable() *

*
VerifyConnectivity

VerifyConnectivity

Verifies that Cloud KMS can successfully connect to the external key manager specified by an [EkmConnection][google.cloud.kms.v1.EkmConnection]. If there is an error connecting to the EKM, this method returns a FAILED_PRECONDITION status containing structured information as described at https://cloud.google.com/kms/docs/reference/ekm_errors.

*

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

*
    - *
  • verifyConnectivity(VerifyConnectivityRequest request) + *
  • verifyConnectivity(VerifyConnectivityRequest request) *

*

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

*
    - *
  • verifyConnectivity(EkmConnectionName name) - *
  • verifyConnectivity(String name) + *
  • verifyConnectivity(EkmConnectionName name) + *

  • verifyConnectivity(String name) *

*

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

*
    - *
  • verifyConnectivityCallable() + *
  • verifyConnectivityCallable() *

*
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-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java index 6477b4bcb3c3..625d44026fb8 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java @@ -82,611 +82,612 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListKeyRings

ListKeyRings

Lists [KeyRings][google.cloud.kms.v1.KeyRing].

*

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

*
    - *
  • listKeyRings(ListKeyRingsRequest request) + *
  • listKeyRings(ListKeyRingsRequest request) *

*

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

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

  • listKeyRings(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.

*
    - *
  • listKeyRingsPagedCallable() - *
  • listKeyRingsCallable() + *
  • listKeyRingsPagedCallable() + *

  • listKeyRingsCallable() *

*
ListCryptoKeys

ListCryptoKeys

Lists [CryptoKeys][google.cloud.kms.v1.CryptoKey].

*

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

*
    - *
  • listCryptoKeys(ListCryptoKeysRequest request) + *
  • listCryptoKeys(ListCryptoKeysRequest request) *

*

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

*
    - *
  • listCryptoKeys(KeyRingName parent) - *
  • listCryptoKeys(String parent) + *
  • listCryptoKeys(KeyRingName parent) + *

  • listCryptoKeys(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.

*
    - *
  • listCryptoKeysPagedCallable() - *
  • listCryptoKeysCallable() + *
  • listCryptoKeysPagedCallable() + *

  • listCryptoKeysCallable() *

*
ListCryptoKeyVersions

ListCryptoKeyVersions

Lists [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].

*

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

*
    - *
  • listCryptoKeyVersions(ListCryptoKeyVersionsRequest request) + *
  • listCryptoKeyVersions(ListCryptoKeyVersionsRequest request) *

*

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

*
    - *
  • listCryptoKeyVersions(CryptoKeyName parent) - *
  • listCryptoKeyVersions(String parent) + *
  • listCryptoKeyVersions(CryptoKeyName parent) + *

  • listCryptoKeyVersions(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.

*
    - *
  • listCryptoKeyVersionsPagedCallable() - *
  • listCryptoKeyVersionsCallable() + *
  • listCryptoKeyVersionsPagedCallable() + *

  • listCryptoKeyVersionsCallable() *

*
ListImportJobs

ListImportJobs

Lists [ImportJobs][google.cloud.kms.v1.ImportJob].

*

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

*
    - *
  • listImportJobs(ListImportJobsRequest request) + *
  • listImportJobs(ListImportJobsRequest request) *

*

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

*
    - *
  • listImportJobs(KeyRingName parent) - *
  • listImportJobs(String parent) + *
  • listImportJobs(KeyRingName parent) + *

  • listImportJobs(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.

*
    - *
  • listImportJobsPagedCallable() - *
  • listImportJobsCallable() + *
  • listImportJobsPagedCallable() + *

  • listImportJobsCallable() *

*
GetKeyRing

GetKeyRing

Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing].

*

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

*
    - *
  • getKeyRing(GetKeyRingRequest request) + *
  • getKeyRing(GetKeyRingRequest request) *

*

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

*
    - *
  • getKeyRing(KeyRingName name) - *
  • getKeyRing(String name) + *
  • getKeyRing(KeyRingName name) + *

  • getKeyRing(String name) *

*

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

*
    - *
  • getKeyRingCallable() + *
  • getKeyRingCallable() *

*
GetCryptoKey

GetCryptoKey

Returns metadata for a given [CryptoKey][google.cloud.kms.v1.CryptoKey], as well as its [primary][google.cloud.kms.v1.CryptoKey.primary] [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].

*

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

*
    - *
  • getCryptoKey(GetCryptoKeyRequest request) + *
  • getCryptoKey(GetCryptoKeyRequest request) *

*

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

*
    - *
  • getCryptoKey(CryptoKeyName name) - *
  • getCryptoKey(String name) + *
  • getCryptoKey(CryptoKeyName name) + *

  • getCryptoKey(String name) *

*

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

*
    - *
  • getCryptoKeyCallable() + *
  • getCryptoKeyCallable() *

*
GetCryptoKeyVersion

GetCryptoKeyVersion

Returns metadata for a given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].

*

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

*
    - *
  • getCryptoKeyVersion(GetCryptoKeyVersionRequest request) + *
  • getCryptoKeyVersion(GetCryptoKeyVersionRequest request) *

*

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

*
    - *
  • getCryptoKeyVersion(CryptoKeyVersionName name) - *
  • getCryptoKeyVersion(String name) + *
  • getCryptoKeyVersion(CryptoKeyVersionName name) + *

  • getCryptoKeyVersion(String name) *

*

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

*
    - *
  • getCryptoKeyVersionCallable() + *
  • getCryptoKeyVersionCallable() *

*
GetPublicKey

GetPublicKey

Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].

*

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

*
    - *
  • getPublicKey(GetPublicKeyRequest request) + *
  • getPublicKey(GetPublicKeyRequest request) *

*

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

*
    - *
  • getPublicKey(CryptoKeyVersionName name) - *
  • getPublicKey(String name) + *
  • getPublicKey(CryptoKeyVersionName name) + *

  • getPublicKey(String name) *

*

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

*
    - *
  • getPublicKeyCallable() + *
  • getPublicKeyCallable() *

*
GetImportJob

GetImportJob

Returns metadata for a given [ImportJob][google.cloud.kms.v1.ImportJob].

*

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

*
    - *
  • getImportJob(GetImportJobRequest request) + *
  • getImportJob(GetImportJobRequest request) *

*

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

*
    - *
  • getImportJob(ImportJobName name) - *
  • getImportJob(String name) + *
  • getImportJob(ImportJobName name) + *

  • getImportJob(String name) *

*

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

*
    - *
  • getImportJobCallable() + *
  • getImportJobCallable() *

*
CreateKeyRing

CreateKeyRing

Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location.

*

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

*
    - *
  • createKeyRing(CreateKeyRingRequest request) + *
  • createKeyRing(CreateKeyRingRequest request) *

*

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

*
    - *
  • createKeyRing(LocationName parent, String keyRingId, KeyRing keyRing) - *
  • createKeyRing(String parent, String keyRingId, KeyRing keyRing) + *
  • createKeyRing(LocationName parent, String keyRingId, KeyRing keyRing) + *

  • createKeyRing(String parent, String keyRingId, KeyRing keyRing) *

*

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

*
    - *
  • createKeyRingCallable() + *
  • createKeyRingCallable() *

*
CreateCryptoKey

CreateCryptoKey

Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a [KeyRing][google.cloud.kms.v1.KeyRing]. *

[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] are required.

*

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

*
    - *
  • createCryptoKey(CreateCryptoKeyRequest request) + *
  • createCryptoKey(CreateCryptoKeyRequest request) *

*

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

*
    - *
  • createCryptoKey(KeyRingName parent, String cryptoKeyId, CryptoKey cryptoKey) - *
  • createCryptoKey(String parent, String cryptoKeyId, CryptoKey cryptoKey) + *
  • createCryptoKey(KeyRingName parent, String cryptoKeyId, CryptoKey cryptoKey) + *

  • createCryptoKey(String parent, String cryptoKeyId, CryptoKey cryptoKey) *

*

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

*
    - *
  • createCryptoKeyCallable() + *
  • createCryptoKeyCallable() *

*
CreateCryptoKeyVersion

CreateCryptoKeyVersion

Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a [CryptoKey][google.cloud.kms.v1.CryptoKey]. *

The server will assign the next sequential id. If unset, [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED].

*

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

*
    - *
  • createCryptoKeyVersion(CreateCryptoKeyVersionRequest request) + *
  • createCryptoKeyVersion(CreateCryptoKeyVersionRequest request) *

*

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

*
    - *
  • createCryptoKeyVersion(CryptoKeyName parent, CryptoKeyVersion cryptoKeyVersion) - *
  • createCryptoKeyVersion(String parent, CryptoKeyVersion cryptoKeyVersion) + *
  • createCryptoKeyVersion(CryptoKeyName parent, CryptoKeyVersion cryptoKeyVersion) + *

  • createCryptoKeyVersion(String parent, CryptoKeyVersion cryptoKeyVersion) *

*

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

*
    - *
  • createCryptoKeyVersionCallable() + *
  • createCryptoKeyVersionCallable() *

*
ImportCryptoKeyVersion

ImportCryptoKeyVersion

Import wrapped key material into a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. *

All requests must specify a [CryptoKey][google.cloud.kms.v1.CryptoKey]. If a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] is additionally specified in the request, key material will be reimported into that version. Otherwise, a new version will be created, and will be assigned the next sequential id within the [CryptoKey][google.cloud.kms.v1.CryptoKey].

*

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

*
    - *
  • importCryptoKeyVersion(ImportCryptoKeyVersionRequest request) + *
  • importCryptoKeyVersion(ImportCryptoKeyVersionRequest request) *

*

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

*
    - *
  • importCryptoKeyVersionCallable() + *
  • importCryptoKeyVersionCallable() *

*
CreateImportJob

CreateImportJob

Create a new [ImportJob][google.cloud.kms.v1.ImportJob] within a [KeyRing][google.cloud.kms.v1.KeyRing]. *

[ImportJob.import_method][google.cloud.kms.v1.ImportJob.import_method] is required.

*

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

*
    - *
  • createImportJob(CreateImportJobRequest request) + *
  • createImportJob(CreateImportJobRequest request) *

*

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

*
    - *
  • createImportJob(KeyRingName parent, String importJobId, ImportJob importJob) - *
  • createImportJob(String parent, String importJobId, ImportJob importJob) + *
  • createImportJob(KeyRingName parent, String importJobId, ImportJob importJob) + *

  • createImportJob(String parent, String importJobId, ImportJob importJob) *

*

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

*
    - *
  • createImportJobCallable() + *
  • createImportJobCallable() *

*
UpdateCryptoKey

UpdateCryptoKey

Update a [CryptoKey][google.cloud.kms.v1.CryptoKey].

*

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

*
    - *
  • updateCryptoKey(UpdateCryptoKeyRequest request) + *
  • updateCryptoKey(UpdateCryptoKeyRequest request) *

*

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

*
    - *
  • updateCryptoKey(CryptoKey cryptoKey, FieldMask updateMask) + *
  • updateCryptoKey(CryptoKey cryptoKey, 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.

*
    - *
  • updateCryptoKeyCallable() + *
  • updateCryptoKeyCallable() *

*
UpdateCryptoKeyVersion

UpdateCryptoKeyVersion

Update a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s metadata. *

[state][google.cloud.kms.v1.CryptoKeyVersion.state] may be changed between [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] and [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED] using this method. See [DestroyCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion] and [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] to move between other states.

*

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

*
    - *
  • updateCryptoKeyVersion(UpdateCryptoKeyVersionRequest request) + *
  • updateCryptoKeyVersion(UpdateCryptoKeyVersionRequest request) *

*

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

*
    - *
  • updateCryptoKeyVersion(CryptoKeyVersion cryptoKeyVersion, FieldMask updateMask) + *
  • updateCryptoKeyVersion(CryptoKeyVersion cryptoKeyVersion, 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.

*
    - *
  • updateCryptoKeyVersionCallable() + *
  • updateCryptoKeyVersionCallable() *

*
UpdateCryptoKeyPrimaryVersion

UpdateCryptoKeyPrimaryVersion

Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. *

Returns an error if called on a key whose purpose is not [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].

*

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

*
    - *
  • updateCryptoKeyPrimaryVersion(UpdateCryptoKeyPrimaryVersionRequest request) + *
  • updateCryptoKeyPrimaryVersion(UpdateCryptoKeyPrimaryVersionRequest request) *

*

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

*
    - *
  • updateCryptoKeyPrimaryVersion(CryptoKeyName name, String cryptoKeyVersionId) - *
  • updateCryptoKeyPrimaryVersion(String name, String cryptoKeyVersionId) + *
  • updateCryptoKeyPrimaryVersion(CryptoKeyName name, String cryptoKeyVersionId) + *

  • updateCryptoKeyPrimaryVersion(String name, String cryptoKeyVersionId) *

*

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

*
    - *
  • updateCryptoKeyPrimaryVersionCallable() + *
  • updateCryptoKeyPrimaryVersionCallable() *

*
DestroyCryptoKeyVersion

DestroyCryptoKeyVersion

Schedule a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] for destruction. *

Upon calling this method, [CryptoKeyVersion.state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED], and [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] will be set to the time [destroy_scheduled_duration][google.cloud.kms.v1.CryptoKey.destroy_scheduled_duration] in the future. At that time, the [state][google.cloud.kms.v1.CryptoKeyVersion.state] will automatically change to [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED], and the key material will be irrevocably destroyed. *

Before the [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] is reached, [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] may be called to reverse the process.

*

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

*
    - *
  • destroyCryptoKeyVersion(DestroyCryptoKeyVersionRequest request) + *
  • destroyCryptoKeyVersion(DestroyCryptoKeyVersionRequest request) *

*

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

*
    - *
  • destroyCryptoKeyVersion(CryptoKeyVersionName name) - *
  • destroyCryptoKeyVersion(String name) + *
  • destroyCryptoKeyVersion(CryptoKeyVersionName name) + *

  • destroyCryptoKeyVersion(String name) *

*

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

*
    - *
  • destroyCryptoKeyVersionCallable() + *
  • destroyCryptoKeyVersionCallable() *

*
RestoreCryptoKeyVersion

RestoreCryptoKeyVersion

Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED] state. *

Upon restoration of the CryptoKeyVersion, [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED], and [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] will be cleared.

*

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

*
    - *
  • restoreCryptoKeyVersion(RestoreCryptoKeyVersionRequest request) + *
  • restoreCryptoKeyVersion(RestoreCryptoKeyVersionRequest request) *

*

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

*
    - *
  • restoreCryptoKeyVersion(CryptoKeyVersionName name) - *
  • restoreCryptoKeyVersion(String name) + *
  • restoreCryptoKeyVersion(CryptoKeyVersionName name) + *

  • restoreCryptoKeyVersion(String name) *

*

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

*
    - *
  • restoreCryptoKeyVersionCallable() + *
  • restoreCryptoKeyVersionCallable() *

*
Encrypt

Encrypt

Encrypts data, so that it can only be recovered by a call to [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].

*

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

*
    - *
  • encrypt(EncryptRequest request) + *
  • encrypt(EncryptRequest request) *

*

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

*
    - *
  • encrypt(ResourceName name, ByteString plaintext) - *
  • encrypt(String name, ByteString plaintext) + *
  • encrypt(ResourceName name, ByteString plaintext) + *

  • encrypt(String name, ByteString plaintext) *

*

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

*
    - *
  • encryptCallable() + *
  • encryptCallable() *

*
Decrypt

Decrypt

Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].

*

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

*
    - *
  • decrypt(DecryptRequest request) + *
  • decrypt(DecryptRequest request) *

*

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

*
    - *
  • decrypt(CryptoKeyName name, ByteString ciphertext) - *
  • decrypt(String name, ByteString ciphertext) + *
  • decrypt(CryptoKeyName name, ByteString ciphertext) + *

  • decrypt(String name, ByteString ciphertext) *

*

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

*
    - *
  • decryptCallable() + *
  • decryptCallable() *

*
RawEncrypt

RawEncrypt

Encrypts data using portable cryptographic primitives. Most users should choose [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] and [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt] rather than their raw counterparts. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be [RAW_ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.RAW_ENCRYPT_DECRYPT].

*

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

*
    - *
  • rawEncrypt(RawEncryptRequest request) + *
  • rawEncrypt(RawEncryptRequest request) *

*

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

*
    - *
  • rawEncryptCallable() + *
  • rawEncryptCallable() *

*
RawDecrypt

RawDecrypt

Decrypts data that was originally encrypted using a raw cryptographic mechanism. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be [RAW_ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.RAW_ENCRYPT_DECRYPT].

*

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

*
    - *
  • rawDecrypt(RawDecryptRequest request) + *
  • rawDecrypt(RawDecryptRequest request) *

*

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

*
    - *
  • rawDecryptCallable() + *
  • rawDecryptCallable() *

*
AsymmetricSign

AsymmetricSign

Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_SIGN, producing a signature that can be verified with the public key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].

*

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

*
    - *
  • asymmetricSign(AsymmetricSignRequest request) + *
  • asymmetricSign(AsymmetricSignRequest request) *

*

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

*
    - *
  • asymmetricSign(CryptoKeyVersionName name, Digest digest) - *
  • asymmetricSign(String name, Digest digest) + *
  • asymmetricSign(CryptoKeyVersionName name, Digest digest) + *

  • asymmetricSign(String name, Digest digest) *

*

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

*
    - *
  • asymmetricSignCallable() + *
  • asymmetricSignCallable() *

*
AsymmetricDecrypt

AsymmetricDecrypt

Decrypts data that was encrypted with a public key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT.

*

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

*
    - *
  • asymmetricDecrypt(AsymmetricDecryptRequest request) + *
  • asymmetricDecrypt(AsymmetricDecryptRequest request) *

*

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

*
    - *
  • asymmetricDecrypt(CryptoKeyVersionName name, ByteString ciphertext) - *
  • asymmetricDecrypt(String name, ByteString ciphertext) + *
  • asymmetricDecrypt(CryptoKeyVersionName name, ByteString ciphertext) + *

  • asymmetricDecrypt(String name, ByteString ciphertext) *

*

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

*
    - *
  • asymmetricDecryptCallable() + *
  • asymmetricDecryptCallable() *

*
MacSign

MacSign

Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] MAC, producing a tag that can be verified by another source with the same key.

*

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

*
    - *
  • macSign(MacSignRequest request) + *
  • macSign(MacSignRequest request) *

*

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

*
    - *
  • macSign(CryptoKeyVersionName name, ByteString data) - *
  • macSign(String name, ByteString data) + *
  • macSign(CryptoKeyVersionName name, ByteString data) + *

  • macSign(String name, ByteString data) *

*

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

*
    - *
  • macSignCallable() + *
  • macSignCallable() *

*
MacVerify

MacVerify

Verifies MAC tag using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] MAC, and returns a response that indicates whether or not the verification was successful.

*

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

*
    - *
  • macVerify(MacVerifyRequest request) + *
  • macVerify(MacVerifyRequest request) *

*

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

*
    - *
  • macVerify(CryptoKeyVersionName name, ByteString data, ByteString mac) - *
  • macVerify(String name, ByteString data, ByteString mac) + *
  • macVerify(CryptoKeyVersionName name, ByteString data, ByteString mac) + *

  • macVerify(String name, ByteString data, ByteString mac) *

*

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

*
    - *
  • macVerifyCallable() + *
  • macVerifyCallable() *

*
GenerateRandomBytes

GenerateRandomBytes

Generate random bytes using the Cloud KMS randomness source in the provided location.

*

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

*
    - *
  • generateRandomBytes(GenerateRandomBytesRequest request) + *
  • generateRandomBytes(GenerateRandomBytesRequest request) *

*

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

*
    - *
  • generateRandomBytes(String location, int lengthBytes, ProtectionLevel protectionLevel) + *
  • generateRandomBytes(String location, int lengthBytes, ProtectionLevel protectionLevel) *

*

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

*
    - *
  • generateRandomBytesCallable() + *
  • generateRandomBytesCallable() *

*
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-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java index f966d87f55d3..2caf10e0ca1e 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java @@ -336,6 +336,15 @@ public EkmServiceStub 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); @@ -750,6 +757,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 EkmServiceStubSettings build() throws IOException { return new EkmServiceStubSettings(this); diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java index 6fa9e76924dd..bdaa91c16ff5 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java @@ -696,6 +696,15 @@ public KeyManagementServiceStub 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() { @@ -1100,7 +1109,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); @@ -1113,7 +1121,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); @@ -1492,6 +1499,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 KeyManagementServiceStubSettings build() throws IOException { return new KeyManagementServiceStubSettings(this); diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index 13835a5faaf5..3bba37e2ff79 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/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-kmsinventory/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-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.22.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-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java index 83670315c03f..1673471b8b37 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java @@ -59,31 +59,32 @@ * close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListCryptoKeys

ListCryptoKeys

Returns cryptographic keys managed by Cloud KMS in a given Cloud project. Note that this data is sourced from snapshots, meaning it may not completely reflect the actual state of key metadata at call time.

*

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

*
    - *
  • listCryptoKeys(ListCryptoKeysRequest request) + *
  • listCryptoKeys(ListCryptoKeysRequest request) *

*

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

*
    - *
  • listCryptoKeys(ProjectName parent) - *
  • listCryptoKeys(String parent) + *
  • listCryptoKeys(ProjectName parent) + *

  • listCryptoKeys(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.

*
    - *
  • listCryptoKeysPagedCallable() - *
  • listCryptoKeysCallable() + *
  • listCryptoKeysPagedCallable() + *

  • listCryptoKeysCallable() *

*
* *

See the individual methods for example code. diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java index c41923eb6e0b..c61f5b35bb4b 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java @@ -61,52 +61,53 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetProtectedResourcesSummary

GetProtectedResourcesSummary

Returns aggregate information about the resources protected by the given Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. Only resources within the same Cloud organization as the key will be returned. The project that holds the key must be part of an organization in order for this call to succeed.

*

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

*
    - *
  • getProtectedResourcesSummary(GetProtectedResourcesSummaryRequest request) + *
  • getProtectedResourcesSummary(GetProtectedResourcesSummaryRequest request) *

*

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

*
    - *
  • getProtectedResourcesSummary(ProtectedResourcesSummaryName name) - *
  • getProtectedResourcesSummary(String name) + *
  • getProtectedResourcesSummary(ProtectedResourcesSummaryName name) + *

  • getProtectedResourcesSummary(String name) *

*

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

*
    - *
  • getProtectedResourcesSummaryCallable() + *
  • getProtectedResourcesSummaryCallable() *

*
SearchProtectedResources

SearchProtectedResources

Returns metadata about the resources protected by the given Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization.

*

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

*
    - *
  • searchProtectedResources(SearchProtectedResourcesRequest request) + *
  • searchProtectedResources(SearchProtectedResourcesRequest request) *

*

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

*
    - *
  • searchProtectedResources(OrganizationName scope, ResourceName cryptoKey) - *
  • searchProtectedResources(OrganizationName scope, String cryptoKey) - *
  • searchProtectedResources(String scope, ResourceName cryptoKey) - *
  • searchProtectedResources(String scope, String cryptoKey) + *
  • searchProtectedResources(OrganizationName scope, ResourceName cryptoKey) + *

  • searchProtectedResources(OrganizationName scope, String cryptoKey) + *

  • searchProtectedResources(String scope, ResourceName cryptoKey) + *

  • searchProtectedResources(String scope, String cryptoKey) *

*

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

*
    - *
  • searchProtectedResourcesPagedCallable() - *
  • searchProtectedResourcesCallable() + *
  • searchProtectedResourcesPagedCallable() + *

  • searchProtectedResourcesCallable() *

*
* *

See the individual methods for example code. diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java index 30a5dfffd539..80920a45b988 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java @@ -180,6 +180,15 @@ public KeyDashboardServiceStub 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() { @@ -342,7 +351,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,7 +363,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); @@ -393,6 +400,15 @@ public Builder applyToAllUnaryMethods( return listCryptoKeysSettings; } + /** 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 KeyDashboardServiceStubSettings build() throws IOException { return new KeyDashboardServiceStubSettings(this); diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java index edfd6e64fc2a..e7a6e0121696 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java @@ -214,6 +214,15 @@ public KeyTrackingServiceStub 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); @@ -453,6 +460,15 @@ public Builder applyToAllUnaryMethods( return searchProtectedResourcesSettings; } + /** 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 KeyTrackingServiceStubSettings build() throws IOException { return new KeyTrackingServiceStubSettings(this); diff --git a/java-language/README.md b/java-language/README.md index 0d9b02d5b780..a7a740bc83f3 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -227,7 +227,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-language.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.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-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java index d8ee15c5287f..afd8f154cdf3 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java @@ -49,142 +49,143 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
AnalyzeSentiment

AnalyzeSentiment

Analyzes the sentiment of the provided text.

*

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

*
    - *
  • analyzeSentiment(AnalyzeSentimentRequest request) + *
  • analyzeSentiment(AnalyzeSentimentRequest request) *

*

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

*
    - *
  • analyzeSentiment(Document document) - *
  • analyzeSentiment(Document document, EncodingType encodingType) + *
  • analyzeSentiment(Document document) + *

  • analyzeSentiment(Document document, EncodingType encodingType) *

*

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

*
    - *
  • analyzeSentimentCallable() + *
  • analyzeSentimentCallable() *

*
AnalyzeEntities

AnalyzeEntities

Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.

*

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

*
    - *
  • analyzeEntities(AnalyzeEntitiesRequest request) + *
  • analyzeEntities(AnalyzeEntitiesRequest request) *

*

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

*
    - *
  • analyzeEntities(Document document) - *
  • analyzeEntities(Document document, EncodingType encodingType) + *
  • analyzeEntities(Document document) + *

  • analyzeEntities(Document document, EncodingType encodingType) *

*

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

*
    - *
  • analyzeEntitiesCallable() + *
  • analyzeEntitiesCallable() *

*
AnalyzeEntitySentiment

AnalyzeEntitySentiment

Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.

*

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

*
    - *
  • analyzeEntitySentiment(AnalyzeEntitySentimentRequest request) + *
  • analyzeEntitySentiment(AnalyzeEntitySentimentRequest request) *

*

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

*
    - *
  • analyzeEntitySentiment(Document document) - *
  • analyzeEntitySentiment(Document document, EncodingType encodingType) + *
  • analyzeEntitySentiment(Document document) + *

  • analyzeEntitySentiment(Document document, EncodingType encodingType) *

*

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

*
    - *
  • analyzeEntitySentimentCallable() + *
  • analyzeEntitySentimentCallable() *

*
AnalyzeSyntax

AnalyzeSyntax

Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.

*

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

*
    - *
  • analyzeSyntax(AnalyzeSyntaxRequest request) + *
  • analyzeSyntax(AnalyzeSyntaxRequest request) *

*

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

*
    - *
  • analyzeSyntax(Document document) - *
  • analyzeSyntax(Document document, EncodingType encodingType) + *
  • analyzeSyntax(Document document) + *

  • analyzeSyntax(Document document, EncodingType encodingType) *

*

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

*
    - *
  • analyzeSyntaxCallable() + *
  • analyzeSyntaxCallable() *

*
ClassifyText

ClassifyText

Classifies a document into categories.

*

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

*
    - *
  • classifyText(ClassifyTextRequest request) + *
  • classifyText(ClassifyTextRequest request) *

*

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

*
    - *
  • classifyText(Document document) + *
  • classifyText(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.

*
    - *
  • classifyTextCallable() + *
  • classifyTextCallable() *

*
ModerateText

ModerateText

Moderates a document for harmful and sensitive categories.

*

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

*
    - *
  • moderateText(ModerateTextRequest request) + *
  • moderateText(ModerateTextRequest request) *

*

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

*
    - *
  • moderateText(Document document) + *
  • moderateText(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.

*
    - *
  • moderateTextCallable() + *
  • moderateTextCallable() *

*
AnnotateText

AnnotateText

A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.

*

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

*
    - *
  • annotateText(AnnotateTextRequest request) + *
  • annotateText(AnnotateTextRequest request) *

*

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

*
    - *
  • annotateText(Document document, AnnotateTextRequest.Features features) - *
  • annotateText(Document document, AnnotateTextRequest.Features features, EncodingType encodingType) + *
  • annotateText(Document document, AnnotateTextRequest.Features features) + *

  • annotateText(Document document, AnnotateTextRequest.Features features, EncodingType encodingType) *

*

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

*
    - *
  • annotateTextCallable() + *
  • annotateTextCallable() *

*
* *

See the individual methods for example code. diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java index d86ef283b9b9..2b2281f2bfc8 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java @@ -169,6 +169,15 @@ public LanguageServiceStub 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() { @@ -383,7 +392,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); @@ -396,7 +404,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); @@ -499,6 +506,15 @@ public Builder applyToAllUnaryMethods( return annotateTextSettings; } + /** 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 LanguageServiceStubSettings build() throws IOException { return new LanguageServiceStubSettings(this); diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceClient.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceClient.java index a76fcbf827c7..6803a702bd17 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceClient.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceClient.java @@ -50,142 +50,143 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
AnalyzeSentiment

AnalyzeSentiment

Analyzes the sentiment of the provided text.

*

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

*
    - *
  • analyzeSentiment(AnalyzeSentimentRequest request) + *
  • analyzeSentiment(AnalyzeSentimentRequest request) *

*

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

*
    - *
  • analyzeSentiment(Document document) - *
  • analyzeSentiment(Document document, EncodingType encodingType) + *
  • analyzeSentiment(Document document) + *

  • analyzeSentiment(Document document, EncodingType encodingType) *

*

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

*
    - *
  • analyzeSentimentCallable() + *
  • analyzeSentimentCallable() *

*
AnalyzeEntities

AnalyzeEntities

Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.

*

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

*
    - *
  • analyzeEntities(AnalyzeEntitiesRequest request) + *
  • analyzeEntities(AnalyzeEntitiesRequest request) *

*

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

*
    - *
  • analyzeEntities(Document document) - *
  • analyzeEntities(Document document, EncodingType encodingType) + *
  • analyzeEntities(Document document) + *

  • analyzeEntities(Document document, EncodingType encodingType) *

*

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

*
    - *
  • analyzeEntitiesCallable() + *
  • analyzeEntitiesCallable() *

*
AnalyzeEntitySentiment

AnalyzeEntitySentiment

Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1beta2.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.

*

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

*
    - *
  • analyzeEntitySentiment(AnalyzeEntitySentimentRequest request) + *
  • analyzeEntitySentiment(AnalyzeEntitySentimentRequest request) *

*

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

*
    - *
  • analyzeEntitySentiment(Document document) - *
  • analyzeEntitySentiment(Document document, EncodingType encodingType) + *
  • analyzeEntitySentiment(Document document) + *

  • analyzeEntitySentiment(Document document, EncodingType encodingType) *

*

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

*
    - *
  • analyzeEntitySentimentCallable() + *
  • analyzeEntitySentimentCallable() *

*
AnalyzeSyntax

AnalyzeSyntax

Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.

*

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

*
    - *
  • analyzeSyntax(AnalyzeSyntaxRequest request) + *
  • analyzeSyntax(AnalyzeSyntaxRequest request) *

*

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

*
    - *
  • analyzeSyntax(Document document) - *
  • analyzeSyntax(Document document, EncodingType encodingType) + *
  • analyzeSyntax(Document document) + *

  • analyzeSyntax(Document document, EncodingType encodingType) *

*

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

*
    - *
  • analyzeSyntaxCallable() + *
  • analyzeSyntaxCallable() *

*
ClassifyText

ClassifyText

Classifies a document into categories.

*

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

*
    - *
  • classifyText(ClassifyTextRequest request) + *
  • classifyText(ClassifyTextRequest request) *

*

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

*
    - *
  • classifyText(Document document) + *
  • classifyText(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.

*
    - *
  • classifyTextCallable() + *
  • classifyTextCallable() *

*
ModerateText

ModerateText

Moderates a document for harmful and sensitive categories.

*

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

*
    - *
  • moderateText(ModerateTextRequest request) + *
  • moderateText(ModerateTextRequest request) *

*

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

*
    - *
  • moderateText(Document document) + *
  • moderateText(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.

*
    - *
  • moderateTextCallable() + *
  • moderateTextCallable() *

*
AnnotateText

AnnotateText

A convenience method that provides all syntax, sentiment, entity, and classification features in one call.

*

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

*
    - *
  • annotateText(AnnotateTextRequest request) + *
  • annotateText(AnnotateTextRequest request) *

*

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

*
    - *
  • annotateText(Document document, AnnotateTextRequest.Features features) - *
  • annotateText(Document document, AnnotateTextRequest.Features features, EncodingType encodingType) + *
  • annotateText(Document document, AnnotateTextRequest.Features features) + *

  • annotateText(Document document, AnnotateTextRequest.Features features, EncodingType encodingType) *

*

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

*
    - *
  • annotateTextCallable() + *
  • annotateTextCallable() *

*
* *

See the individual methods for example code. diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java index 8c45b1965c15..e5cd930d3c07 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java @@ -170,6 +170,15 @@ public LanguageServiceStub 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() { @@ -384,7 +393,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); @@ -397,7 +405,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); @@ -500,6 +507,15 @@ public Builder applyToAllUnaryMethods( return annotateTextSettings; } + /** 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 LanguageServiceStubSettings build() throws IOException { return new LanguageServiceStubSettings(this); diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/LanguageServiceClient.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/LanguageServiceClient.java index e79e2ca22881..41642938ea52 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/LanguageServiceClient.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/LanguageServiceClient.java @@ -49,104 +49,105 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
AnalyzeSentiment

AnalyzeSentiment

Analyzes the sentiment of the provided text.

*

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

*
    - *
  • analyzeSentiment(AnalyzeSentimentRequest request) + *
  • analyzeSentiment(AnalyzeSentimentRequest request) *

*

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

*
    - *
  • analyzeSentiment(Document document) - *
  • analyzeSentiment(Document document, EncodingType encodingType) + *
  • analyzeSentiment(Document document) + *

  • analyzeSentiment(Document document, EncodingType encodingType) *

*

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

*
    - *
  • analyzeSentimentCallable() + *
  • analyzeSentimentCallable() *

*
AnalyzeEntities

AnalyzeEntities

Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties.

*

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

*
    - *
  • analyzeEntities(AnalyzeEntitiesRequest request) + *
  • analyzeEntities(AnalyzeEntitiesRequest request) *

*

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

*
    - *
  • analyzeEntities(Document document) - *
  • analyzeEntities(Document document, EncodingType encodingType) + *
  • analyzeEntities(Document document) + *

  • analyzeEntities(Document document, EncodingType encodingType) *

*

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

*
    - *
  • analyzeEntitiesCallable() + *
  • analyzeEntitiesCallable() *

*
ClassifyText

ClassifyText

Classifies a document into categories.

*

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

*
    - *
  • classifyText(ClassifyTextRequest request) + *
  • classifyText(ClassifyTextRequest request) *

*

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

*
    - *
  • classifyText(Document document) + *
  • classifyText(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.

*
    - *
  • classifyTextCallable() + *
  • classifyTextCallable() *

*
ModerateText

ModerateText

Moderates a document for harmful and sensitive categories.

*

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

*
    - *
  • moderateText(ModerateTextRequest request) + *
  • moderateText(ModerateTextRequest request) *

*

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

*
    - *
  • moderateText(Document document) + *
  • moderateText(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.

*
    - *
  • moderateTextCallable() + *
  • moderateTextCallable() *

*
AnnotateText

AnnotateText

A convenience method that provides all features in one call.

*

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

*
    - *
  • annotateText(AnnotateTextRequest request) + *
  • annotateText(AnnotateTextRequest request) *

*

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

*
    - *
  • annotateText(Document document, AnnotateTextRequest.Features features) - *
  • annotateText(Document document, AnnotateTextRequest.Features features, EncodingType encodingType) + *
  • annotateText(Document document, AnnotateTextRequest.Features features) + *

  • annotateText(Document document, AnnotateTextRequest.Features features, EncodingType encodingType) *

*

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

*
    - *
  • annotateTextCallable() + *
  • annotateTextCallable() *

*
* *

See the individual methods for example code. diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/LanguageServiceStubSettings.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/LanguageServiceStubSettings.java index 8c717b1b84d9..5cf5f411ef70 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/LanguageServiceStubSettings.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/LanguageServiceStubSettings.java @@ -150,6 +150,15 @@ public LanguageServiceStub 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() { @@ -346,7 +355,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); @@ -359,7 +367,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); @@ -440,6 +447,15 @@ public Builder applyToAllUnaryMethods( return annotateTextSettings; } + /** 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 LanguageServiceStubSettings build() throws IOException { return new LanguageServiceStubSettings(this); diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index 510d8a52b6b0..cb6d002e1748 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/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-life-sciences.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.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-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaClient.java b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaClient.java index 2d3a99c31d84..0ac7d7279ca6 100644 --- a/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaClient.java +++ b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaClient.java @@ -67,12 +67,14 @@ * calls close(). * * + * * * * * + * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
RunPipeline

RunPipeline

Runs a pipeline. The returned Operation's [metadata] [google.longrunning.Operation.metadata] field will contain a [google.cloud.lifesciences.v2beta.Metadata][google.cloud.lifesciences.v2beta.Metadata] object describing the status of the pipeline execution. The [response][google.longrunning.Operation.response] field will contain a [google.cloud.lifesciences.v2beta.RunPipelineResponse][google.cloud.lifesciences.v2beta.RunPipelineResponse] object if the pipeline completes successfully. *

**Note:** Before you can use this method, the *Life Sciences Service Agent* must have access to your project. This is done automatically when the Cloud Life Sciences API is first enabled, but if you delete this permission you must disable and re-enable the API to grant the Life Sciences Service Agent the required permissions. Authorization requires the following [Google IAM](https://cloud.google.com/iam/) permission: *

    @@ -81,45 +83,44 @@ *
*

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

*
    - *
  • runPipelineAsync(RunPipelineRequest request) + *
  • runPipelineAsync(RunPipelineRequest request) *

*

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

*
    - *
  • runPipelineOperationCallable() - *
  • runPipelineCallable() + *
  • runPipelineOperationCallable() + *

  • runPipelineCallable() *

*
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-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStubSettings.java b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStubSettings.java index d96af8e668a4..0933821eb95d 100644 --- a/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStubSettings.java +++ b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStubSettings.java @@ -209,6 +209,15 @@ public WorkflowsServiceV2BetaStub 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() { @@ -386,7 +395,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); @@ -399,7 +407,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 WorkflowsServiceV2BetaStubSettings build() throws IOException { return new WorkflowsServiceV2BetaStubSettings(this); diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index 58a8877b45ec..8aa60a6c38a8 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/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-managed-identities.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/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-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceClient.java b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceClient.java index fff5668b545c..12d4c41d483c 100644 --- a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceClient.java +++ b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceClient.java @@ -91,208 +91,209 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateMicrosoftAdDomain

CreateMicrosoftAdDomain

Creates a Microsoft AD domain.

*

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

*
    - *
  • createMicrosoftAdDomainAsync(CreateMicrosoftAdDomainRequest request) + *
  • createMicrosoftAdDomainAsync(CreateMicrosoftAdDomainRequest request) *

*

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

*
    - *
  • createMicrosoftAdDomainAsync(LocationName parent, String domainName, Domain domain) - *
  • createMicrosoftAdDomainAsync(String parent, String domainName, Domain domain) + *
  • createMicrosoftAdDomainAsync(LocationName parent, String domainName, Domain domain) + *

  • createMicrosoftAdDomainAsync(String parent, String domainName, Domain domain) *

*

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

*
    - *
  • createMicrosoftAdDomainOperationCallable() - *
  • createMicrosoftAdDomainCallable() + *
  • createMicrosoftAdDomainOperationCallable() + *

  • createMicrosoftAdDomainCallable() *

*
ResetAdminPassword

ResetAdminPassword

Resets a domain's administrator password.

*

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

*
    - *
  • resetAdminPassword(ResetAdminPasswordRequest request) + *
  • resetAdminPassword(ResetAdminPasswordRequest request) *

*

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

*
    - *
  • resetAdminPassword(DomainName name) - *
  • resetAdminPassword(String name) + *
  • resetAdminPassword(DomainName name) + *

  • resetAdminPassword(String name) *

*

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

*
    - *
  • resetAdminPasswordCallable() + *
  • resetAdminPasswordCallable() *

*
ListDomains

ListDomains

Lists domains in a project.

*

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

*
    - *
  • listDomains(ListDomainsRequest request) + *
  • listDomains(ListDomainsRequest request) *

*

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

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

  • listDomains(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.

*
    - *
  • listDomainsPagedCallable() - *
  • listDomainsCallable() + *
  • listDomainsPagedCallable() + *

  • listDomainsCallable() *

*
GetDomain

GetDomain

Gets information about a domain.

*

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

*
    - *
  • getDomain(GetDomainRequest request) + *
  • getDomain(GetDomainRequest request) *

*

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

*
    - *
  • getDomain(DomainName name) - *
  • getDomain(String name) + *
  • getDomain(DomainName name) + *

  • getDomain(String name) *

*

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

*
    - *
  • getDomainCallable() + *
  • getDomainCallable() *

*
UpdateDomain

UpdateDomain

Updates the metadata and configuration of a domain.

*

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

*
    - *
  • updateDomainAsync(UpdateDomainRequest request) + *
  • updateDomainAsync(UpdateDomainRequest request) *

*

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

*
    - *
  • updateDomainAsync(Domain domain, FieldMask updateMask) + *
  • updateDomainAsync(Domain domain, 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.

*
    - *
  • updateDomainOperationCallable() - *
  • updateDomainCallable() + *
  • updateDomainOperationCallable() + *

  • updateDomainCallable() *

*
DeleteDomain

DeleteDomain

Deletes a domain.

*

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

*
    - *
  • deleteDomainAsync(DeleteDomainRequest request) + *
  • deleteDomainAsync(DeleteDomainRequest request) *

*

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

*
    - *
  • deleteDomainAsync(DomainName name) - *
  • deleteDomainAsync(String name) + *
  • deleteDomainAsync(DomainName name) + *

  • deleteDomainAsync(String name) *

*

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

*
    - *
  • deleteDomainOperationCallable() - *
  • deleteDomainCallable() + *
  • deleteDomainOperationCallable() + *

  • deleteDomainCallable() *

*
AttachTrust

AttachTrust

Adds an AD trust to a domain.

*

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

*
    - *
  • attachTrustAsync(AttachTrustRequest request) + *
  • attachTrustAsync(AttachTrustRequest request) *

*

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

*
    - *
  • attachTrustAsync(DomainName name, Trust trust) - *
  • attachTrustAsync(String name, Trust trust) + *
  • attachTrustAsync(DomainName name, Trust trust) + *

  • attachTrustAsync(String name, Trust trust) *

*

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

*
    - *
  • attachTrustOperationCallable() - *
  • attachTrustCallable() + *
  • attachTrustOperationCallable() + *

  • attachTrustCallable() *

*
ReconfigureTrust

ReconfigureTrust

Updates the DNS conditional forwarder.

*

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

*
    - *
  • reconfigureTrustAsync(ReconfigureTrustRequest request) + *
  • reconfigureTrustAsync(ReconfigureTrustRequest request) *

*

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

*
    - *
  • reconfigureTrustAsync(DomainName name, String targetDomainName, List targetDnsIpAddresses) - *
  • reconfigureTrustAsync(String name, String targetDomainName, List targetDnsIpAddresses) + *
  • reconfigureTrustAsync(DomainName name, String targetDomainName, List<String> targetDnsIpAddresses) + *

  • reconfigureTrustAsync(String name, String targetDomainName, List<String> targetDnsIpAddresses) *

*

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

*
    - *
  • reconfigureTrustOperationCallable() - *
  • reconfigureTrustCallable() + *
  • reconfigureTrustOperationCallable() + *

  • reconfigureTrustCallable() *

*
DetachTrust

DetachTrust

Removes an AD trust.

*

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

*
    - *
  • detachTrustAsync(DetachTrustRequest request) + *
  • detachTrustAsync(DetachTrustRequest request) *

*

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

*
    - *
  • detachTrustAsync(DomainName name, Trust trust) - *
  • detachTrustAsync(String name, Trust trust) + *
  • detachTrustAsync(DomainName name, Trust trust) + *

  • detachTrustAsync(String name, Trust trust) *

*

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

*
    - *
  • detachTrustOperationCallable() - *
  • detachTrustCallable() + *
  • detachTrustOperationCallable() + *

  • detachTrustCallable() *

*
ValidateTrust

ValidateTrust

Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.

*

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

*
    - *
  • validateTrustAsync(ValidateTrustRequest request) + *
  • validateTrustAsync(ValidateTrustRequest request) *

*

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

*
    - *
  • validateTrustAsync(DomainName name, Trust trust) - *
  • validateTrustAsync(String name, Trust trust) + *
  • validateTrustAsync(DomainName name, Trust trust) + *

  • validateTrustAsync(String name, Trust trust) *

*

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

*
    - *
  • validateTrustOperationCallable() - *
  • validateTrustCallable() + *
  • validateTrustOperationCallable() + *

  • validateTrustCallable() *

*
* *

See the individual methods for example code. diff --git a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStubSettings.java b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStubSettings.java index 8ad4ca5a5226..dff0eda33a8b 100644 --- a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStubSettings.java +++ b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStubSettings.java @@ -302,6 +302,15 @@ public ManagedIdentitiesServiceStub 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() { @@ -534,7 +543,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); @@ -887,6 +895,15 @@ public UnaryCallSettings.Builder validateTrustS return validateTrustOperationSettings; } + /** 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 ManagedIdentitiesServiceStubSettings build() throws IOException { return new ManagedIdentitiesServiceStubSettings(this); diff --git a/java-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index b8f164de5710..d4a12628c9c9 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/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-maps-addressvalidation/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-addressvalidation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.27.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-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationClient.java b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationClient.java index 6a5be010ac0e..8cd1b05ad56e 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationClient.java +++ b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationClient.java @@ -53,39 +53,40 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ValidateAddress

ValidateAddress

Validates an address.

*

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

*
    - *
  • validateAddress(ValidateAddressRequest request) + *
  • validateAddress(ValidateAddressRequest request) *

*

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

*
    - *
  • validateAddressCallable() + *
  • validateAddressCallable() *

*
ProvideValidationFeedback

ProvideValidationFeedback

Feedback about the outcome of the sequence of validation attempts. This should be the last call made after a sequence of validation calls for the same address, and should be called once the transaction is concluded. This should only be sent once for the sequence of `ValidateAddress` requests needed to validate an address fully.

*

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

*
    - *
  • provideValidationFeedback(ProvideValidationFeedbackRequest request) + *
  • provideValidationFeedback(ProvideValidationFeedbackRequest request) *

*

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

*
    - *
  • provideValidationFeedbackCallable() + *
  • provideValidationFeedbackCallable() *

*
* *

See the individual methods for example code. diff --git a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/AddressValidationStubSettings.java b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/AddressValidationStubSettings.java index 19ee920f9996..dd682ad970e4 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/AddressValidationStubSettings.java +++ b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/AddressValidationStubSettings.java @@ -126,6 +126,15 @@ public AddressValidationStub 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() { @@ -298,7 +307,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); @@ -311,7 +319,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); @@ -360,6 +367,15 @@ public Builder applyToAllUnaryMethods( return provideValidationFeedbackSettings; } + /** 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 AddressValidationStubSettings build() throws IOException { return new AddressValidationStubSettings(this); diff --git a/java-maps-places/README.md b/java-maps-places/README.md index 92ad5114e529..dbbb1dc7652c 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/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-maps-places/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-places.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.4.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-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesClient.java b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesClient.java index 156241d8f30a..e790fa29d939 100644 --- a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesClient.java +++ b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesClient.java @@ -60,77 +60,78 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
SearchNearby

SearchNearby

Search for places near locations.

*

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

*
    - *
  • searchNearby(SearchNearbyRequest request) + *
  • searchNearby(SearchNearbyRequest request) *

*

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

*
    - *
  • searchNearbyCallable() + *
  • searchNearbyCallable() *

*
SearchText

SearchText

Text query based place search.

*

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

*
    - *
  • searchText(SearchTextRequest request) + *
  • searchText(SearchTextRequest request) *

*

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

*
    - *
  • searchTextCallable() + *
  • searchTextCallable() *

*
GetPhotoMedia

GetPhotoMedia

Get a photo media with a photo reference string.

*

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

*
    - *
  • getPhotoMedia(GetPhotoMediaRequest request) + *
  • getPhotoMedia(GetPhotoMediaRequest request) *

*

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

*
    - *
  • getPhotoMedia(PhotoMediaName name) - *
  • getPhotoMedia(String name) + *
  • getPhotoMedia(PhotoMediaName name) + *

  • getPhotoMedia(String name) *

*

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

*
    - *
  • getPhotoMediaCallable() + *
  • getPhotoMediaCallable() *

*
GetPlace

GetPlace

Get place details with a place id (in a name) string.

*

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

*
    - *
  • getPlace(GetPlaceRequest request) + *
  • getPlace(GetPlaceRequest request) *

*

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

*
    - *
  • getPlace(PlaceName name) - *
  • getPlace(String name) + *
  • getPlace(PlaceName name) + *

  • getPlace(String name) *

*

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

*
    - *
  • getPlaceCallable() + *
  • getPlaceCallable() *

*
* *

See the individual methods for example code. diff --git a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/PlacesStubSettings.java b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/PlacesStubSettings.java index 84f49f93be0b..5f2fabfffc11 100644 --- a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/PlacesStubSettings.java +++ b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/PlacesStubSettings.java @@ -133,6 +133,15 @@ public PlacesStub 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() { @@ -299,7 +308,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); @@ -312,7 +320,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); @@ -379,6 +386,15 @@ public UnaryCallSettings.Builder getPlaceSettings() { return getPlaceSettings; } + /** 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 PlacesStubSettings build() throws IOException { return new PlacesStubSettings(this); diff --git a/java-maps-routing/README.md b/java-maps-routing/README.md index 3ecf8cd06e09..2d2880aa9d6b 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/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/java-maps-routing/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.18.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-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java index 47995a5a6e34..4604d693d83c 100644 --- a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java +++ b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java @@ -69,12 +69,14 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * - * + * * * - * *
Methods
MethodDescriptionMethod Variants
ComputeRoutes

ComputeRoutes

Returns the primary route along with optional alternate routes, given a set of terminal and intermediate waypoints. *

**NOTE:** This method requires that you specify a response field mask in the input. You can provide the response field mask by using URL parameter `$fields` or `fields`, or by using an HTTP/gRPC header `X-Goog-FieldMask` (see the [available URL parameters and headers](https://cloud.google.com/apis/docs/system-parameters). The value is a comma separated list of field paths. See detailed documentation about [how to construct the field paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto). *

For example, in this method: @@ -91,16 +93,16 @@ *

*

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

*
    - *
  • computeRoutes(ComputeRoutesRequest request) + *
  • computeRoutes(ComputeRoutesRequest request) *

*

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

*
    - *
  • computeRoutesCallable() + *
  • computeRoutesCallable() *

*
ComputeRouteMatrix

ComputeRouteMatrix

Takes in a list of origins and destinations and returns a stream containing route information for each combination of origin and destination. *

**NOTE:** This method requires that you specify a response field mask in the input. You can provide the response field mask by using the URL parameter `$fields` or `fields`, or by using the HTTP/gRPC header `X-Goog-FieldMask` (see the [available URL parameters and headers](https://cloud.google.com/apis/docs/system-parameters). The value is a comma separated list of field paths. See this detailed documentation about [how to construct the field paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto). *

For example, in this method: @@ -117,11 +119,10 @@ *

*

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

*
    - *
  • computeRouteMatrixCallable() + *
  • computeRouteMatrixCallable() *

*
* *

See the individual methods for example code. diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java index ec387d0949b8..dd639425340f 100644 --- a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java +++ b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java @@ -121,6 +121,15 @@ public RoutesStub 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); @@ -338,6 +345,15 @@ public Builder applyToAllUnaryMethods( return computeRouteMatrixSettings; } + /** 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 RoutesStubSettings build() throws IOException { return new RoutesStubSettings(this); diff --git a/java-mediatranslation/README.md b/java-mediatranslation/README.md index 01b3cb497d72..df1e842acded 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/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-mediatranslation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.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-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java index 72f8c2d4a73d..c0d83ab1c55d 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java +++ b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java @@ -56,21 +56,22 @@ * calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
StreamingTranslateSpeech

StreamingTranslateSpeech

Performs bidirectional streaming speech translation: receive results while sending audio. This method is only available via the gRPC API (not REST).

*

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

*
    - *
  • streamingTranslateSpeechCallable() + *
  • streamingTranslateSpeechCallable() *

*
* *

See the individual methods for example code. diff --git a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java index c380f7da0953..2551ffd20d54 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java +++ b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java @@ -111,6 +111,15 @@ public SpeechTranslationServiceStub 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() { @@ -245,7 +254,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); @@ -278,6 +286,15 @@ public Builder applyToAllUnaryMethods( return streamingTranslateSpeechSettings; } + /** 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 SpeechTranslationServiceStubSettings build() throws IOException { return new SpeechTranslationServiceStubSettings(this); diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceClient.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceClient.java index 0190b1eae53f..d164614d2da4 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceClient.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceClient.java @@ -58,242 +58,243 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetConferenceRecord

GetConferenceRecord

[Developer Preview](https://developers.google.com/workspace/preview). Gets a conference record by conference ID.

*

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

*
    - *
  • getConferenceRecord(GetConferenceRecordRequest request) + *
  • getConferenceRecord(GetConferenceRecordRequest request) *

*

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

*
    - *
  • getConferenceRecord(ConferenceRecordName name) - *
  • getConferenceRecord(String name) + *
  • getConferenceRecord(ConferenceRecordName name) + *

  • getConferenceRecord(String name) *

*

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

*
    - *
  • getConferenceRecordCallable() + *
  • getConferenceRecordCallable() *

*
ListConferenceRecords

ListConferenceRecords

[Developer Preview](https://developers.google.com/workspace/preview). Lists the conference records by start time and in descending order.

*

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

*
    - *
  • listConferenceRecords(ListConferenceRecordsRequest request) + *
  • listConferenceRecords(ListConferenceRecordsRequest request) *

*

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

*
    - *
  • listConferenceRecordsPagedCallable() - *
  • listConferenceRecordsCallable() + *
  • listConferenceRecordsPagedCallable() + *

  • listConferenceRecordsCallable() *

*
GetParticipant

GetParticipant

[Developer Preview](https://developers.google.com/workspace/preview). Gets a participant by participant ID.

*

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

[Developer Preview](https://developers.google.com/workspace/preview). Lists the participants in a conference record, by default ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted, this API defaults to `'participants/*, next_page_token'`.

*

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(ConferenceRecordName parent) - *
  • listParticipants(String parent) + *
  • listParticipants(ConferenceRecordName 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() *

*
GetParticipantSession

GetParticipantSession

[Developer Preview](https://developers.google.com/workspace/preview). Gets a participant session by participant session ID.

*

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

*
    - *
  • getParticipantSession(GetParticipantSessionRequest request) + *
  • getParticipantSession(GetParticipantSessionRequest request) *

*

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

*
    - *
  • getParticipantSession(ParticipantSessionName name) - *
  • getParticipantSession(String name) + *
  • getParticipantSession(ParticipantSessionName name) + *

  • getParticipantSession(String name) *

*

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

*
    - *
  • getParticipantSessionCallable() + *
  • getParticipantSessionCallable() *

*
ListParticipantSessions

ListParticipantSessions

[Developer Preview](https://developers.google.com/workspace/preview). Lists the participant sessions of a participant in a conference record, by default ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted this API defaults to `'participantsessions/*, next_page_token'`.

*

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

*
    - *
  • listParticipantSessions(ListParticipantSessionsRequest request) + *
  • listParticipantSessions(ListParticipantSessionsRequest request) *

*

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

*
    - *
  • listParticipantSessions(ParticipantName parent) - *
  • listParticipantSessions(String parent) + *
  • listParticipantSessions(ParticipantName parent) + *

  • listParticipantSessions(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.

*
    - *
  • listParticipantSessionsPagedCallable() - *
  • listParticipantSessionsCallable() + *
  • listParticipantSessionsPagedCallable() + *

  • listParticipantSessionsCallable() *

*
GetRecording

GetRecording

[Developer Preview](https://developers.google.com/workspace/preview). Gets a recording by recording ID.

*

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

*
    - *
  • getRecording(GetRecordingRequest request) + *
  • getRecording(GetRecordingRequest request) *

*

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

*
    - *
  • getRecording(RecordingName name) - *
  • getRecording(String name) + *
  • getRecording(RecordingName name) + *

  • getRecording(String name) *

*

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

*
    - *
  • getRecordingCallable() + *
  • getRecordingCallable() *

*
ListRecordings

ListRecordings

[Developer Preview](https://developers.google.com/workspace/preview). Lists the recording resources from the conference record.

*

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

*
    - *
  • listRecordings(ListRecordingsRequest request) + *
  • listRecordings(ListRecordingsRequest request) *

*

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

*
    - *
  • listRecordings(ConferenceRecordName parent) - *
  • listRecordings(String parent) + *
  • listRecordings(ConferenceRecordName parent) + *

  • listRecordings(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.

*
    - *
  • listRecordingsPagedCallable() - *
  • listRecordingsCallable() + *
  • listRecordingsPagedCallable() + *

  • listRecordingsCallable() *

*
GetTranscript

GetTranscript

[Developer Preview](https://developers.google.com/workspace/preview). Gets a transcript by transcript ID.

*

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

*
    - *
  • getTranscript(GetTranscriptRequest request) + *
  • getTranscript(GetTranscriptRequest request) *

*

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

*
    - *
  • getTranscript(TranscriptName name) - *
  • getTranscript(String name) + *
  • getTranscript(TranscriptName name) + *

  • getTranscript(String name) *

*

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

*
    - *
  • getTranscriptCallable() + *
  • getTranscriptCallable() *

*
ListTranscripts

ListTranscripts

[Developer Preview](https://developers.google.com/workspace/preview). Lists the set of transcripts from the conference record.

*

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

*
    - *
  • listTranscripts(ListTranscriptsRequest request) + *
  • listTranscripts(ListTranscriptsRequest request) *

*

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

*
    - *
  • listTranscripts(ConferenceRecordName parent) - *
  • listTranscripts(String parent) + *
  • listTranscripts(ConferenceRecordName parent) + *

  • listTranscripts(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.

*
    - *
  • listTranscriptsPagedCallable() - *
  • listTranscriptsCallable() + *
  • listTranscriptsPagedCallable() + *

  • listTranscriptsCallable() *

*
GetTranscriptEntry

GetTranscriptEntry

[Developer Preview](https://developers.google.com/workspace/preview). Gets a `TranscriptEntry` resource by entry ID. *

Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation.

*

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

*
    - *
  • getTranscriptEntry(GetTranscriptEntryRequest request) + *
  • getTranscriptEntry(GetTranscriptEntryRequest request) *

*

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

*
    - *
  • getTranscriptEntry(TranscriptEntryName name) - *
  • getTranscriptEntry(String name) + *
  • getTranscriptEntry(TranscriptEntryName name) + *

  • getTranscriptEntry(String name) *

*

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

*
    - *
  • getTranscriptEntryCallable() + *
  • getTranscriptEntryCallable() *

*
ListTranscriptEntries

ListTranscriptEntries

[Developer Preview](https://developers.google.com/workspace/preview). Lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order. *

Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation.

*

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

*
    - *
  • listTranscriptEntries(ListTranscriptEntriesRequest request) + *
  • listTranscriptEntries(ListTranscriptEntriesRequest request) *

*

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

*
    - *
  • listTranscriptEntries(TranscriptName parent) - *
  • listTranscriptEntries(String parent) + *
  • listTranscriptEntries(TranscriptName parent) + *

  • listTranscriptEntries(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.

*
    - *
  • listTranscriptEntriesPagedCallable() - *
  • listTranscriptEntriesCallable() + *
  • listTranscriptEntriesPagedCallable() + *

  • listTranscriptEntriesCallable() *

*
* *

See the individual methods for example code. diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceClient.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceClient.java index 96a88ceeb854..d33b6879bfdd 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceClient.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceClient.java @@ -50,85 +50,86 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateSpace

CreateSpace

[Developer Preview](https://developers.google.com/workspace/preview). Creates a space.

*

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

*
    - *
  • createSpace(CreateSpaceRequest request) + *
  • createSpace(CreateSpaceRequest request) *

*

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

*
    - *
  • createSpace(Space space) + *
  • createSpace(Space space) *

*

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

*
    - *
  • createSpaceCallable() + *
  • createSpaceCallable() *

*
GetSpace

GetSpace

[Developer Preview](https://developers.google.com/workspace/preview). Gets a space by `space_id` or `meeting_code`.

*

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

*
    - *
  • getSpace(GetSpaceRequest request) + *
  • getSpace(GetSpaceRequest request) *

*

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

*
    - *
  • getSpace(SpaceName name) - *
  • getSpace(String name) + *
  • getSpace(SpaceName name) + *

  • getSpace(String name) *

*

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

*
    - *
  • getSpaceCallable() + *
  • getSpaceCallable() *

*
UpdateSpace

UpdateSpace

[Developer Preview](https://developers.google.com/workspace/preview). Updates a space.

*

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

*
    - *
  • updateSpace(UpdateSpaceRequest request) + *
  • updateSpace(UpdateSpaceRequest request) *

*

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

*
    - *
  • updateSpace(Space space, FieldMask updateMask) + *
  • updateSpace(Space space, 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.

*
    - *
  • updateSpaceCallable() + *
  • updateSpaceCallable() *

*
EndActiveConference

EndActiveConference

[Developer Preview](https://developers.google.com/workspace/preview). Ends an active conference (if there is one).

*

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

*
    - *
  • endActiveConference(EndActiveConferenceRequest request) + *
  • endActiveConference(EndActiveConferenceRequest request) *

*

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

*
    - *
  • endActiveConference(SpaceName name) - *
  • endActiveConference(String name) + *
  • endActiveConference(SpaceName name) + *

  • endActiveConference(String name) *

*

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

*
    - *
  • endActiveConferenceCallable() + *
  • endActiveConferenceCallable() *

*
* *

See the individual methods for example code. diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java index 083c4579b623..18a00babe8c5 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java @@ -629,6 +629,15 @@ public ConferenceRecordsServiceStub 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() { @@ -886,7 +895,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); @@ -899,7 +907,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); @@ -1066,6 +1073,15 @@ public UnaryCallSettings.Builder getTranscript return listTranscriptEntriesSettings; } + /** 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 ConferenceRecordsServiceStubSettings build() throws IOException { return new ConferenceRecordsServiceStubSettings(this); diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java index f26401417a4e..92ddad067a89 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java @@ -134,6 +134,15 @@ public SpacesServiceStub 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() { @@ -328,7 +337,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); @@ -341,7 +349,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); @@ -408,6 +415,15 @@ public UnaryCallSettings.Builder updateSpaceSettings( return endActiveConferenceSettings; } + /** 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 SpacesServiceStubSettings build() throws IOException { return new SpacesServiceStubSettings(this);