diff --git a/java-service-usage/README.md b/java-service-usage/README.md index f8e37299d18d..28b849b5eeac 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/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-service-usage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/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-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/ServiceUsageClient.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/ServiceUsageClient.java index 070b3f2a7408..b4cec1bf150e 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/ServiceUsageClient.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/ServiceUsageClient.java @@ -64,101 +64,102 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
EnableService

EnableService

Enable a service so that it can be used with a project.

*

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

*
    - *
  • enableServiceAsync(EnableServiceRequest request) + *
  • enableServiceAsync(EnableServiceRequest request) *

*

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

*
    - *
  • enableServiceOperationCallable() - *
  • enableServiceCallable() + *
  • enableServiceOperationCallable() + *

  • enableServiceCallable() *

*
DisableService

DisableService

Disable a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. *

It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled.

*

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

*
    - *
  • disableServiceAsync(DisableServiceRequest request) + *
  • disableServiceAsync(DisableServiceRequest request) *

*

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

*
    - *
  • disableServiceOperationCallable() - *
  • disableServiceCallable() + *
  • disableServiceOperationCallable() + *

  • disableServiceCallable() *

*
GetService

GetService

Returns the service configuration and enabled state for a given service.

*

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

*
    - *
  • getService(GetServiceRequest request) + *
  • getService(GetServiceRequest request) *

*

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

*
    - *
  • getServiceCallable() + *
  • getServiceCallable() *

*
ListServices

ListServices

List all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the `servicemanagement.services.bind` permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project. *

WARNING: If you need to query enabled services frequently or across an organization, you should use [Cloud Asset Inventory API](https://cloud.google.com/asset-inventory/docs/apis), which provides higher throughput and richer filtering capability.

*

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

*
    - *
  • listServices(ListServicesRequest request) + *
  • listServices(ListServicesRequest request) *

*

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

*
    - *
  • listServicesPagedCallable() - *
  • listServicesCallable() + *
  • listServicesPagedCallable() + *

  • listServicesCallable() *

*
BatchEnableServices

BatchEnableServices

Enable multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. To enable a single service, use the `EnableService` method instead.

*

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

*
    - *
  • batchEnableServicesAsync(BatchEnableServicesRequest request) + *
  • batchEnableServicesAsync(BatchEnableServicesRequest request) *

*

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

*
    - *
  • batchEnableServicesOperationCallable() - *
  • batchEnableServicesCallable() + *
  • batchEnableServicesOperationCallable() + *

  • batchEnableServicesCallable() *

*
BatchGetServices

BatchGetServices

Returns the service configurations and enabled states for a given list of services.

*

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

*
    - *
  • batchGetServices(BatchGetServicesRequest request) + *
  • batchGetServices(BatchGetServicesRequest request) *

*

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

*
    - *
  • batchGetServicesCallable() + *
  • batchGetServicesCallable() *

*
* *

See the individual methods for example code. diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStubSettings.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStubSettings.java index 9165aa7860ea..e68b3274a9ab 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStubSettings.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStubSettings.java @@ -257,6 +257,15 @@ public ServiceUsageStub 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() { @@ -473,7 +482,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); @@ -486,7 +494,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -676,6 +683,15 @@ public UnaryCallSettings.Builder getServiceSettings( return batchGetServicesSettings; } + /** Returns the endpoint 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 ServiceUsageStubSettings build() throws IOException { return new ServiceUsageStubSettings(this); diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageClient.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageClient.java index 2a5841d1ec4b..84a8178814bb 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageClient.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageClient.java @@ -61,297 +61,298 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
EnableService

EnableService

Enables a service so that it can be used with a project. *

Operation response type: `google.protobuf.Empty`

*

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

*
    - *
  • enableServiceAsync(EnableServiceRequest request) + *
  • enableServiceAsync(EnableServiceRequest request) *

*

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

*
    - *
  • enableServiceOperationCallable() - *
  • enableServiceCallable() + *
  • enableServiceOperationCallable() + *

  • enableServiceCallable() *

*
DisableService

DisableService

Disables a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. *

It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled. *

Operation response type: `google.protobuf.Empty`

*

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

*
    - *
  • disableServiceAsync(DisableServiceRequest request) + *
  • disableServiceAsync(DisableServiceRequest request) *

*

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

*
    - *
  • disableServiceOperationCallable() - *
  • disableServiceCallable() + *
  • disableServiceOperationCallable() + *

  • disableServiceCallable() *

*
GetService

GetService

Returns the service configuration and enabled state for a given service.

*

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

*
    - *
  • getService(GetServiceRequest request) + *
  • getService(GetServiceRequest request) *

*

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

*
    - *
  • getServiceCallable() + *
  • getServiceCallable() *

*
ListServices

ListServices

Lists all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the `servicemanagement.services.bind` permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project.

*

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

*
    - *
  • listServices(ListServicesRequest request) + *
  • listServices(ListServicesRequest request) *

*

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

*
    - *
  • listServicesPagedCallable() - *
  • listServicesCallable() + *
  • listServicesPagedCallable() + *

  • listServicesCallable() *

*
BatchEnableServices

BatchEnableServices

Enables multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. *

Operation response type: `google.protobuf.Empty`

*

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

*
    - *
  • batchEnableServicesAsync(BatchEnableServicesRequest request) + *
  • batchEnableServicesAsync(BatchEnableServicesRequest request) *

*

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

*
    - *
  • batchEnableServicesOperationCallable() - *
  • batchEnableServicesCallable() + *
  • batchEnableServicesOperationCallable() + *

  • batchEnableServicesCallable() *

*
ListConsumerQuotaMetrics

ListConsumerQuotaMetrics

Retrieves a summary of all quota information visible to the service consumer, organized by service metric. Each metric includes information about all of its defined limits. Each limit includes the limit configuration (quota unit, preciseness, default value), the current effective limit value, and all of the overrides applied to the limit.

*

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

*
    - *
  • listConsumerQuotaMetrics(ListConsumerQuotaMetricsRequest request) + *
  • listConsumerQuotaMetrics(ListConsumerQuotaMetricsRequest request) *

*

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

*
    - *
  • listConsumerQuotaMetricsPagedCallable() - *
  • listConsumerQuotaMetricsCallable() + *
  • listConsumerQuotaMetricsPagedCallable() + *

  • listConsumerQuotaMetricsCallable() *

*
GetConsumerQuotaMetric

GetConsumerQuotaMetric

Retrieves a summary of quota information for a specific quota metric

*

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

*
    - *
  • getConsumerQuotaMetric(GetConsumerQuotaMetricRequest request) + *
  • getConsumerQuotaMetric(GetConsumerQuotaMetricRequest request) *

*

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

*
    - *
  • getConsumerQuotaMetricCallable() + *
  • getConsumerQuotaMetricCallable() *

*
GetConsumerQuotaLimit

GetConsumerQuotaLimit

Retrieves a summary of quota information for a specific quota limit.

*

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

*
    - *
  • getConsumerQuotaLimit(GetConsumerQuotaLimitRequest request) + *
  • getConsumerQuotaLimit(GetConsumerQuotaLimitRequest request) *

*

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

*
    - *
  • getConsumerQuotaLimitCallable() + *
  • getConsumerQuotaLimitCallable() *

*
CreateAdminOverride

CreateAdminOverride

Creates an admin override. An admin override is applied by an administrator of a parent folder or parent organization of the consumer receiving the override. An admin override is intended to limit the amount of quota the consumer can use out of the total quota pool allocated to all children of the folder or organization.

*

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

*
    - *
  • createAdminOverrideAsync(CreateAdminOverrideRequest request) + *
  • createAdminOverrideAsync(CreateAdminOverrideRequest request) *

*

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

*
    - *
  • createAdminOverrideOperationCallable() - *
  • createAdminOverrideCallable() + *
  • createAdminOverrideOperationCallable() + *

  • createAdminOverrideCallable() *

*
UpdateAdminOverride

UpdateAdminOverride

Updates an admin override.

*

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

*
    - *
  • updateAdminOverrideAsync(UpdateAdminOverrideRequest request) + *
  • updateAdminOverrideAsync(UpdateAdminOverrideRequest request) *

*

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

*
    - *
  • updateAdminOverrideOperationCallable() - *
  • updateAdminOverrideCallable() + *
  • updateAdminOverrideOperationCallable() + *

  • updateAdminOverrideCallable() *

*
DeleteAdminOverride

DeleteAdminOverride

Deletes an admin override.

*

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

*
    - *
  • deleteAdminOverrideAsync(DeleteAdminOverrideRequest request) + *
  • deleteAdminOverrideAsync(DeleteAdminOverrideRequest request) *

*

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

*
    - *
  • deleteAdminOverrideOperationCallable() - *
  • deleteAdminOverrideCallable() + *
  • deleteAdminOverrideOperationCallable() + *

  • deleteAdminOverrideCallable() *

*
ListAdminOverrides

ListAdminOverrides

Lists all admin overrides on this limit.

*

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

*
    - *
  • listAdminOverrides(ListAdminOverridesRequest request) + *
  • listAdminOverrides(ListAdminOverridesRequest request) *

*

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

*
    - *
  • listAdminOverridesPagedCallable() - *
  • listAdminOverridesCallable() + *
  • listAdminOverridesPagedCallable() + *

  • listAdminOverridesCallable() *

*
ImportAdminOverrides

ImportAdminOverrides

Creates or updates multiple admin overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.

*

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

*
    - *
  • importAdminOverridesAsync(ImportAdminOverridesRequest request) + *
  • importAdminOverridesAsync(ImportAdminOverridesRequest request) *

*

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

*
    - *
  • importAdminOverridesOperationCallable() - *
  • importAdminOverridesCallable() + *
  • importAdminOverridesOperationCallable() + *

  • importAdminOverridesCallable() *

*
CreateConsumerOverride

CreateConsumerOverride

Creates a consumer override. A consumer override is applied to the consumer on its own authority to limit its own quota usage. Consumer overrides cannot be used to grant more quota than would be allowed by admin overrides, producer overrides, or the default limit of the service.

*

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

*
    - *
  • createConsumerOverrideAsync(CreateConsumerOverrideRequest request) + *
  • createConsumerOverrideAsync(CreateConsumerOverrideRequest request) *

*

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

*
    - *
  • createConsumerOverrideOperationCallable() - *
  • createConsumerOverrideCallable() + *
  • createConsumerOverrideOperationCallable() + *

  • createConsumerOverrideCallable() *

*
UpdateConsumerOverride

UpdateConsumerOverride

Updates a consumer override.

*

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

*
    - *
  • updateConsumerOverrideAsync(UpdateConsumerOverrideRequest request) + *
  • updateConsumerOverrideAsync(UpdateConsumerOverrideRequest request) *

*

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

*
    - *
  • updateConsumerOverrideOperationCallable() - *
  • updateConsumerOverrideCallable() + *
  • updateConsumerOverrideOperationCallable() + *

  • updateConsumerOverrideCallable() *

*
DeleteConsumerOverride

DeleteConsumerOverride

Deletes a consumer override.

*

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

*
    - *
  • deleteConsumerOverrideAsync(DeleteConsumerOverrideRequest request) + *
  • deleteConsumerOverrideAsync(DeleteConsumerOverrideRequest request) *

*

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

*
    - *
  • deleteConsumerOverrideOperationCallable() - *
  • deleteConsumerOverrideCallable() + *
  • deleteConsumerOverrideOperationCallable() + *

  • deleteConsumerOverrideCallable() *

*
ListConsumerOverrides

ListConsumerOverrides

Lists all consumer overrides on this limit.

*

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

*
    - *
  • listConsumerOverrides(ListConsumerOverridesRequest request) + *
  • listConsumerOverrides(ListConsumerOverridesRequest request) *

*

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

*
    - *
  • listConsumerOverridesPagedCallable() - *
  • listConsumerOverridesCallable() + *
  • listConsumerOverridesPagedCallable() + *

  • listConsumerOverridesCallable() *

*
ImportConsumerOverrides

ImportConsumerOverrides

Creates or updates multiple consumer overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.

*

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

*
    - *
  • importConsumerOverridesAsync(ImportConsumerOverridesRequest request) + *
  • importConsumerOverridesAsync(ImportConsumerOverridesRequest request) *

*

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

*
    - *
  • importConsumerOverridesOperationCallable() - *
  • importConsumerOverridesCallable() + *
  • importConsumerOverridesOperationCallable() + *

  • importConsumerOverridesCallable() *

*
GenerateServiceIdentity

GenerateServiceIdentity

Generates service identity for service.

*

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

*
    - *
  • generateServiceIdentityAsync(GenerateServiceIdentityRequest request) + *
  • generateServiceIdentityAsync(GenerateServiceIdentityRequest request) *

*

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

*
    - *
  • generateServiceIdentityOperationCallable() - *
  • generateServiceIdentityCallable() + *
  • generateServiceIdentityOperationCallable() + *

  • generateServiceIdentityCallable() *

*
* *

See the individual methods for example code. diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStubSettings.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStubSettings.java index 010876d91d9b..9a4804cafe01 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStubSettings.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStubSettings.java @@ -698,6 +698,15 @@ public ServiceUsageStub 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() { @@ -1086,7 +1095,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); @@ -1099,7 +1107,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); @@ -1760,6 +1767,15 @@ public UnaryCallSettings.Builder getServiceSettings( return generateServiceIdentityOperationSettings; } + /** Returns the endpoint 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 ServiceUsageStubSettings build() throws IOException { return new ServiceUsageStubSettings(this); diff --git a/java-servicedirectory/README.md b/java-servicedirectory/README.md index 8af6f393bf48..e1b490fc12cf 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/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-servicedirectory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/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-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceClient.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceClient.java index 509c1c737a7d..8fe8d16bb282 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceClient.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceClient.java @@ -65,54 +65,55 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ResolveService

ResolveService

Returns a [service][google.cloud.servicedirectory.v1.Service] and its associated endpoints. Resolving a service is not considered an active developer method.

*

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

*
    - *
  • resolveService(ResolveServiceRequest request) + *
  • resolveService(ResolveServiceRequest request) *

*

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

*
    - *
  • resolveServiceCallable() + *
  • resolveServiceCallable() *

*
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-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java index 86b567b04674..814e7c5ef150 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java @@ -81,367 +81,368 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateNamespace

CreateNamespace

Creates a namespace, and returns the new namespace.

*

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

*
    - *
  • createNamespace(CreateNamespaceRequest request) + *
  • createNamespace(CreateNamespaceRequest request) *

*

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

*
    - *
  • createNamespace(LocationName parent, Namespace namespace, String namespaceId) - *
  • createNamespace(String parent, Namespace namespace, String namespaceId) + *
  • createNamespace(LocationName parent, Namespace namespace, String namespaceId) + *

  • createNamespace(String parent, Namespace namespace, String namespaceId) *

*

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

*
    - *
  • createNamespaceCallable() + *
  • createNamespaceCallable() *

*
ListNamespaces

ListNamespaces

Lists all namespaces.

*

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

*
    - *
  • listNamespaces(ListNamespacesRequest request) + *
  • listNamespaces(ListNamespacesRequest request) *

*

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

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

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

*
    - *
  • listNamespacesPagedCallable() - *
  • listNamespacesCallable() + *
  • listNamespacesPagedCallable() + *

  • listNamespacesCallable() *

*
GetNamespace

GetNamespace

Gets a namespace.

*

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

*
    - *
  • getNamespace(GetNamespaceRequest request) + *
  • getNamespace(GetNamespaceRequest request) *

*

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

*
    - *
  • getNamespace(NamespaceName name) - *
  • getNamespace(String name) + *
  • getNamespace(NamespaceName name) + *

  • getNamespace(String name) *

*

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

*
    - *
  • getNamespaceCallable() + *
  • getNamespaceCallable() *

*
UpdateNamespace

UpdateNamespace

Updates a namespace.

*

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

*
    - *
  • updateNamespace(UpdateNamespaceRequest request) + *
  • updateNamespace(UpdateNamespaceRequest request) *

*

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

*
    - *
  • updateNamespace(Namespace namespace, FieldMask updateMask) + *
  • updateNamespace(Namespace namespace, 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.

*
    - *
  • updateNamespaceCallable() + *
  • updateNamespaceCallable() *

*
DeleteNamespace

DeleteNamespace

Deletes a namespace. This also deletes all services and endpoints in the namespace.

*

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

*
    - *
  • deleteNamespace(DeleteNamespaceRequest request) + *
  • deleteNamespace(DeleteNamespaceRequest request) *

*

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

*
    - *
  • deleteNamespace(NamespaceName name) - *
  • deleteNamespace(String name) + *
  • deleteNamespace(NamespaceName name) + *

  • deleteNamespace(String name) *

*

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

*
    - *
  • deleteNamespaceCallable() + *
  • deleteNamespaceCallable() *

*
CreateService

CreateService

Creates a service, and returns the new service.

*

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

*
    - *
  • createService(CreateServiceRequest request) + *
  • createService(CreateServiceRequest request) *

*

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

*
    - *
  • createService(NamespaceName parent, Service service, String serviceId) - *
  • createService(String parent, Service service, String serviceId) + *
  • createService(NamespaceName parent, Service service, String serviceId) + *

  • createService(String parent, Service service, String serviceId) *

*

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

*
    - *
  • createServiceCallable() + *
  • createServiceCallable() *

*
ListServices

ListServices

Lists all services belonging to a namespace.

*

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

*
    - *
  • listServices(ListServicesRequest request) + *
  • listServices(ListServicesRequest request) *

*

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

*
    - *
  • listServices(NamespaceName parent) - *
  • listServices(String parent) + *
  • listServices(NamespaceName parent) + *

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

*
    - *
  • listServicesPagedCallable() - *
  • listServicesCallable() + *
  • listServicesPagedCallable() + *

  • listServicesCallable() *

*
GetService

GetService

Gets a service.

*

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

*
    - *
  • getService(GetServiceRequest request) + *
  • getService(GetServiceRequest request) *

*

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

*
    - *
  • getService(ServiceName name) - *
  • getService(String name) + *
  • getService(ServiceName name) + *

  • getService(String name) *

*

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

*
    - *
  • getServiceCallable() + *
  • getServiceCallable() *

*
UpdateService

UpdateService

Updates a service.

*

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

*
    - *
  • updateService(UpdateServiceRequest request) + *
  • updateService(UpdateServiceRequest request) *

*

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

*
    - *
  • updateService(Service service, FieldMask updateMask) + *
  • updateService(Service service, 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.

*
    - *
  • updateServiceCallable() + *
  • updateServiceCallable() *

*
DeleteService

DeleteService

Deletes a service. This also deletes all endpoints associated with the service.

*

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

*
    - *
  • deleteService(DeleteServiceRequest request) + *
  • deleteService(DeleteServiceRequest request) *

*

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

*
    - *
  • deleteService(ServiceName name) - *
  • deleteService(String name) + *
  • deleteService(ServiceName name) + *

  • deleteService(String name) *

*

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

*
    - *
  • deleteServiceCallable() + *
  • deleteServiceCallable() *

*
CreateEndpoint

CreateEndpoint

Creates an endpoint, and returns the new endpoint.

*

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

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

*

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

*
    - *
  • createEndpoint(ServiceName parent, Endpoint endpoint, String endpointId) - *
  • createEndpoint(String parent, Endpoint endpoint, String endpointId) + *
  • createEndpoint(ServiceName parent, Endpoint endpoint, String endpointId) + *

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

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

*
ListEndpoints

ListEndpoints

Lists all endpoints.

*

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(ServiceName parent) - *
  • listEndpoints(String parent) + *
  • listEndpoints(ServiceName 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 an 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() *

*
UpdateEndpoint

UpdateEndpoint

Updates an endpoint.

*

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

*
    - *
  • updateEndpoint(UpdateEndpointRequest request) + *
  • updateEndpoint(UpdateEndpointRequest request) *

*

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

*
    - *
  • updateEndpoint(Endpoint endpoint, FieldMask updateMask) + *
  • updateEndpoint(Endpoint endpoint, 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.

*
    - *
  • updateEndpointCallable() + *
  • updateEndpointCallable() *

*
DeleteEndpoint

DeleteEndpoint

Deletes an endpoint.

*

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

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

*

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

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

  • deleteEndpoint(String name) *

*

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

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

*
GetIamPolicy

GetIamPolicy

Gets the IAM Policy for a resource (namespace or service only).

*

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

*
SetIamPolicy

SetIamPolicy

Sets the IAM Policy for a resource (namespace or service only).

*

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

*
TestIamPermissions

TestIamPermissions

Tests IAM permissions for a resource (namespace or service only).

*

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

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

*

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

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

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

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

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

*

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

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

  • listLocationsCallable() *

*
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-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java index 5152ea4e323d..eb754ddec41a 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java @@ -194,6 +194,15 @@ public LookupServiceStub 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() { @@ -372,7 +381,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); @@ -385,7 +393,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -444,6 +451,15 @@ public UnaryCallSettings.Builder 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 LookupServiceStubSettings build() throws IOException { return new LookupServiceStubSettings(this); diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java index db3650332324..f63cdc41feb1 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java @@ -496,6 +496,15 @@ public RegistrationServiceStub 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() { @@ -789,7 +798,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); @@ -802,7 +810,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); @@ -1037,6 +1044,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 RegistrationServiceStubSettings build() throws IOException { return new RegistrationServiceStubSettings(this); diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceClient.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceClient.java index 3fe172d3c806..9fb2ead8b640 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceClient.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceClient.java @@ -66,54 +66,55 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ResolveService

ResolveService

Returns a [service][google.cloud.servicedirectory.v1beta1.Service] and its associated endpoints. Resolving a service is not considered an active developer method.

*

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

*
    - *
  • resolveService(ResolveServiceRequest request) + *
  • resolveService(ResolveServiceRequest request) *

*

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

*
    - *
  • resolveServiceCallable() + *
  • resolveServiceCallable() *

*
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-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java index 0eb84af33ba0..73b6ab740e15 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java @@ -82,367 +82,368 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateNamespace

CreateNamespace

Creates a namespace, and returns the new namespace.

*

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

*
    - *
  • createNamespace(CreateNamespaceRequest request) + *
  • createNamespace(CreateNamespaceRequest request) *

*

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

*
    - *
  • createNamespace(LocationName parent, Namespace namespace, String namespaceId) - *
  • createNamespace(String parent, Namespace namespace, String namespaceId) + *
  • createNamespace(LocationName parent, Namespace namespace, String namespaceId) + *

  • createNamespace(String parent, Namespace namespace, String namespaceId) *

*

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

*
    - *
  • createNamespaceCallable() + *
  • createNamespaceCallable() *

*
ListNamespaces

ListNamespaces

Lists all namespaces.

*

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

*
    - *
  • listNamespaces(ListNamespacesRequest request) + *
  • listNamespaces(ListNamespacesRequest request) *

*

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

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

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

*
    - *
  • listNamespacesPagedCallable() - *
  • listNamespacesCallable() + *
  • listNamespacesPagedCallable() + *

  • listNamespacesCallable() *

*
GetNamespace

GetNamespace

Gets a namespace.

*

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

*
    - *
  • getNamespace(GetNamespaceRequest request) + *
  • getNamespace(GetNamespaceRequest request) *

*

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

*
    - *
  • getNamespace(NamespaceName name) - *
  • getNamespace(String name) + *
  • getNamespace(NamespaceName name) + *

  • getNamespace(String name) *

*

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

*
    - *
  • getNamespaceCallable() + *
  • getNamespaceCallable() *

*
UpdateNamespace

UpdateNamespace

Updates a namespace.

*

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

*
    - *
  • updateNamespace(UpdateNamespaceRequest request) + *
  • updateNamespace(UpdateNamespaceRequest request) *

*

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

*
    - *
  • updateNamespace(Namespace namespace, FieldMask updateMask) + *
  • updateNamespace(Namespace namespace, 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.

*
    - *
  • updateNamespaceCallable() + *
  • updateNamespaceCallable() *

*
DeleteNamespace

DeleteNamespace

Deletes a namespace. This also deletes all services and endpoints in the namespace.

*

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

*
    - *
  • deleteNamespace(DeleteNamespaceRequest request) + *
  • deleteNamespace(DeleteNamespaceRequest request) *

*

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

*
    - *
  • deleteNamespace(NamespaceName name) - *
  • deleteNamespace(String name) + *
  • deleteNamespace(NamespaceName name) + *

  • deleteNamespace(String name) *

*

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

*
    - *
  • deleteNamespaceCallable() + *
  • deleteNamespaceCallable() *

*
CreateService

CreateService

Creates a service, and returns the new service.

*

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

*
    - *
  • createService(CreateServiceRequest request) + *
  • createService(CreateServiceRequest request) *

*

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

*
    - *
  • createService(NamespaceName parent, Service service, String serviceId) - *
  • createService(String parent, Service service, String serviceId) + *
  • createService(NamespaceName parent, Service service, String serviceId) + *

  • createService(String parent, Service service, String serviceId) *

*

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

*
    - *
  • createServiceCallable() + *
  • createServiceCallable() *

*
ListServices

ListServices

Lists all services belonging to a namespace.

*

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

*
    - *
  • listServices(ListServicesRequest request) + *
  • listServices(ListServicesRequest request) *

*

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

*
    - *
  • listServices(NamespaceName parent) - *
  • listServices(String parent) + *
  • listServices(NamespaceName parent) + *

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

*
    - *
  • listServicesPagedCallable() - *
  • listServicesCallable() + *
  • listServicesPagedCallable() + *

  • listServicesCallable() *

*
GetService

GetService

Gets a service.

*

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

*
    - *
  • getService(GetServiceRequest request) + *
  • getService(GetServiceRequest request) *

*

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

*
    - *
  • getService(ServiceName name) - *
  • getService(String name) + *
  • getService(ServiceName name) + *

  • getService(String name) *

*

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

*
    - *
  • getServiceCallable() + *
  • getServiceCallable() *

*
UpdateService

UpdateService

Updates a service.

*

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

*
    - *
  • updateService(UpdateServiceRequest request) + *
  • updateService(UpdateServiceRequest request) *

*

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

*
    - *
  • updateService(Service service, FieldMask updateMask) + *
  • updateService(Service service, 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.

*
    - *
  • updateServiceCallable() + *
  • updateServiceCallable() *

*
DeleteService

DeleteService

Deletes a service. This also deletes all endpoints associated with the service.

*

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

*
    - *
  • deleteService(DeleteServiceRequest request) + *
  • deleteService(DeleteServiceRequest request) *

*

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

*
    - *
  • deleteService(ServiceName name) - *
  • deleteService(String name) + *
  • deleteService(ServiceName name) + *

  • deleteService(String name) *

*

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

*
    - *
  • deleteServiceCallable() + *
  • deleteServiceCallable() *

*
CreateEndpoint

CreateEndpoint

Creates an endpoint, and returns the new endpoint.

*

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

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

*

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

*
    - *
  • createEndpoint(ServiceName parent, Endpoint endpoint, String endpointId) - *
  • createEndpoint(String parent, Endpoint endpoint, String endpointId) + *
  • createEndpoint(ServiceName parent, Endpoint endpoint, String endpointId) + *

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

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

*
ListEndpoints

ListEndpoints

Lists all endpoints.

*

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(ServiceName parent) - *
  • listEndpoints(String parent) + *
  • listEndpoints(ServiceName 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 an 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() *

*
UpdateEndpoint

UpdateEndpoint

Updates an endpoint.

*

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

*
    - *
  • updateEndpoint(UpdateEndpointRequest request) + *
  • updateEndpoint(UpdateEndpointRequest request) *

*

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

*
    - *
  • updateEndpoint(Endpoint endpoint, FieldMask updateMask) + *
  • updateEndpoint(Endpoint endpoint, 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.

*
    - *
  • updateEndpointCallable() + *
  • updateEndpointCallable() *

*
DeleteEndpoint

DeleteEndpoint

Deletes an endpoint.

*

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

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

*

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

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

  • deleteEndpoint(String name) *

*

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

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

*
GetIamPolicy

GetIamPolicy

Gets the IAM Policy for a resource

*

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

*
SetIamPolicy

SetIamPolicy

Sets the IAM Policy for a resource

*

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

*
TestIamPermissions

TestIamPermissions

Tests IAM permissions for a resource (namespace, service or service workload only).

*

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

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

*

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

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

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

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

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

*

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

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

  • listLocationsCallable() *

*
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-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java index cab9cd385f74..2c2c46695fac 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java @@ -195,6 +195,15 @@ public LookupServiceStub 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() { @@ -373,7 +382,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); @@ -386,7 +394,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); @@ -445,6 +452,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 LookupServiceStubSettings build() throws IOException { return new LookupServiceStubSettings(this); diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java index 8007cf8ab06b..40ccb88e0a5e 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java @@ -497,6 +497,15 @@ public RegistrationServiceStub 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() { @@ -790,7 +799,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); @@ -803,7 +811,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); @@ -1038,6 +1045,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 RegistrationServiceStubSettings build() throws IOException { return new RegistrationServiceStubSettings(this); diff --git a/java-shell/README.md b/java-shell/README.md index bad1e928119b..ebcf9ee97cf2 100644 --- a/java-shell/README.md +++ b/java-shell/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-shell.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.32.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceClient.java b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceClient.java index f159d181e1d6..1017f898b576 100644 --- a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceClient.java +++ b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceClient.java @@ -57,90 +57,91 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetEnvironment

GetEnvironment

Gets an environment. Returns NOT_FOUND if the environment does not exist.

*

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

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

*

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

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

  • getEnvironment(String name) *

*

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

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

*
StartEnvironment

StartEnvironment

Starts an existing environment, allowing clients to connect to it. The returned operation will contain an instance of StartEnvironmentMetadata in its metadata field. Users can wait for the environment to start by polling this operation via GetOperation. Once the environment has finished starting and is ready to accept connections, the operation will contain a StartEnvironmentResponse in its response field.

*

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

*
    - *
  • startEnvironmentAsync(StartEnvironmentRequest request) + *
  • startEnvironmentAsync(StartEnvironmentRequest request) *

*

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

*
    - *
  • startEnvironmentOperationCallable() - *
  • startEnvironmentCallable() + *
  • startEnvironmentOperationCallable() + *

  • startEnvironmentCallable() *

*
AuthorizeEnvironment

AuthorizeEnvironment

Sends OAuth credentials to a running environment on behalf of a user. When this completes, the environment will be authorized to run various Google Cloud command line tools without requiring the user to manually authenticate.

*

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

*
    - *
  • authorizeEnvironmentAsync(AuthorizeEnvironmentRequest request) + *
  • authorizeEnvironmentAsync(AuthorizeEnvironmentRequest request) *

*

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

*
    - *
  • authorizeEnvironmentOperationCallable() - *
  • authorizeEnvironmentCallable() + *
  • authorizeEnvironmentOperationCallable() + *

  • authorizeEnvironmentCallable() *

*
AddPublicKey

AddPublicKey

Adds a public SSH key to an environment, allowing clients with the corresponding private key to connect to that environment via SSH. If a key with the same content already exists, this will error with ALREADY_EXISTS.

*

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

*
    - *
  • addPublicKeyAsync(AddPublicKeyRequest request) + *
  • addPublicKeyAsync(AddPublicKeyRequest request) *

*

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

*
    - *
  • addPublicKeyOperationCallable() - *
  • addPublicKeyCallable() + *
  • addPublicKeyOperationCallable() + *

  • addPublicKeyCallable() *

*
RemovePublicKey

RemovePublicKey

Removes a public SSH key from an environment. Clients will no longer be able to connect to the environment using the corresponding private key. If a key with the same content is not present, this will error with NOT_FOUND.

*

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

*
    - *
  • removePublicKeyAsync(RemovePublicKeyRequest request) + *
  • removePublicKeyAsync(RemovePublicKeyRequest request) *

*

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

*
    - *
  • removePublicKeyOperationCallable() - *
  • removePublicKeyCallable() + *
  • removePublicKeyOperationCallable() + *

  • removePublicKeyCallable() *

*
* *

See the individual methods for example code. diff --git a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java index 22a2b8fb060a..8e38c73e689c 100644 --- a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java +++ b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java @@ -193,6 +193,15 @@ public CloudShellServiceStub 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() { @@ -424,7 +433,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); @@ -437,7 +445,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); @@ -649,6 +656,15 @@ public UnaryCallSettings.Builder removePublic return removePublicKeyOperationSettings; } + /** Returns the endpoint 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 CloudShellServiceStubSettings build() throws IOException { return new CloudShellServiceStubSettings(this); diff --git a/java-shopping-css/README.md b/java-shopping-css/README.md index 05a08b4dbf07..1fabea373314 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/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-shopping-css/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-css.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceClient.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceClient.java index f4eafc2b5159..e292a1f99b91 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceClient.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceClient.java @@ -59,87 +59,88 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListAccountLabels

ListAccountLabels

Lists the labels assigned to an account.

*

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

*
    - *
  • listAccountLabels(ListAccountLabelsRequest request) + *
  • listAccountLabels(ListAccountLabelsRequest request) *

*

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

*
    - *
  • listAccountLabels(AccountName parent) - *
  • listAccountLabels(String parent) + *
  • listAccountLabels(AccountName parent) + *

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

*
    - *
  • listAccountLabelsPagedCallable() - *
  • listAccountLabelsCallable() + *
  • listAccountLabelsPagedCallable() + *

  • listAccountLabelsCallable() *

*
CreateAccountLabel

CreateAccountLabel

Creates a new label, not assigned to any account.

*

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

*
    - *
  • createAccountLabel(CreateAccountLabelRequest request) + *
  • createAccountLabel(CreateAccountLabelRequest request) *

*

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

*
    - *
  • createAccountLabel(AccountName parent, AccountLabel accountLabel) - *
  • createAccountLabel(String parent, AccountLabel accountLabel) + *
  • createAccountLabel(AccountName parent, AccountLabel accountLabel) + *

  • createAccountLabel(String parent, AccountLabel accountLabel) *

*

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

*
    - *
  • createAccountLabelCallable() + *
  • createAccountLabelCallable() *

*
UpdateAccountLabel

UpdateAccountLabel

Updates a label.

*

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

*
    - *
  • updateAccountLabel(UpdateAccountLabelRequest request) + *
  • updateAccountLabel(UpdateAccountLabelRequest request) *

*

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

*
    - *
  • updateAccountLabel(AccountLabel accountLabel) + *
  • updateAccountLabel(AccountLabel accountLabel) *

*

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

*
    - *
  • updateAccountLabelCallable() + *
  • updateAccountLabelCallable() *

*
DeleteAccountLabel

DeleteAccountLabel

Deletes a label and removes it from all accounts to which it was assigned.

*

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

*
    - *
  • deleteAccountLabel(DeleteAccountLabelRequest request) + *
  • deleteAccountLabel(DeleteAccountLabelRequest request) *

*

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

*
    - *
  • deleteAccountLabel(AccountLabelName name) - *
  • deleteAccountLabel(String name) + *
  • deleteAccountLabel(AccountLabelName name) + *

  • deleteAccountLabel(String name) *

*

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

*
    - *
  • deleteAccountLabelCallable() + *
  • deleteAccountLabelCallable() *

*
* *

See the individual methods for example code. diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountsServiceClient.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountsServiceClient.java index da3a78457367..b607ad4d6e56 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountsServiceClient.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountsServiceClient.java @@ -56,69 +56,70 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListChildAccounts

ListChildAccounts

Lists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name.

*

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

*
    - *
  • listChildAccounts(ListChildAccountsRequest request) + *
  • listChildAccounts(ListChildAccountsRequest request) *

*

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

*
    - *
  • listChildAccounts(AccountName parent) - *
  • listChildAccounts(String parent) + *
  • listChildAccounts(AccountName parent) + *

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

*
    - *
  • listChildAccountsPagedCallable() - *
  • listChildAccountsCallable() + *
  • listChildAccountsPagedCallable() + *

  • listChildAccountsCallable() *

*
GetAccount

GetAccount

Retrieves a single CSS/MC account by ID.

*

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

*
    - *
  • getAccount(GetAccountRequest request) + *
  • getAccount(GetAccountRequest request) *

*

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

*
    - *
  • getAccount(AccountName name) - *
  • getAccount(String name) + *
  • getAccount(AccountName name) + *

  • getAccount(String name) *

*

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

*
    - *
  • getAccountCallable() + *
  • getAccountCallable() *

*
UpdateLabels

UpdateLabels

Updates labels assigned to CSS/MC accounts by a CSS domain.

*

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

*
    - *
  • updateLabels(UpdateAccountLabelsRequest request) + *
  • updateLabels(UpdateAccountLabelsRequest request) *

*

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

*
    - *
  • updateLabels(AccountName name) - *
  • updateLabels(String name) + *
  • updateLabels(AccountName name) + *

  • updateLabels(String name) *

*

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

*
    - *
  • updateLabelsCallable() + *
  • updateLabelsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceClient.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceClient.java index ac85b7b5b518..0030970ae1ec 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceClient.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceClient.java @@ -56,46 +56,47 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
InsertCssProductInput

InsertCssProductInput

Uploads a CssProductInput to your CSS Center account. If an input with the same contentLanguage, identity, feedLabel and feedId already exists, this method replaces that entry. *

After inserting, updating, or deleting a CSS Product input, it may take several minutes before the processed CSS Product can be retrieved.

*

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

*
    - *
  • insertCssProductInput(InsertCssProductInputRequest request) + *
  • insertCssProductInput(InsertCssProductInputRequest request) *

*

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

*
    - *
  • insertCssProductInputCallable() + *
  • insertCssProductInputCallable() *

*
DeleteCssProductInput

DeleteCssProductInput

Deletes a CSS Product input from your CSS Center account. *

After a delete it may take several minutes until the input is no longer available.

*

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

*
    - *
  • deleteCssProductInput(DeleteCssProductInputRequest request) + *
  • deleteCssProductInput(DeleteCssProductInputRequest request) *

*

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

*
    - *
  • deleteCssProductInput(CssProductInputName name) - *
  • deleteCssProductInput(String name) + *
  • deleteCssProductInput(CssProductInputName name) + *

  • deleteCssProductInput(String name) *

*

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

*
    - *
  • deleteCssProductInputCallable() + *
  • deleteCssProductInputCallable() *

*
* *

See the individual methods for example code. diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductsServiceClient.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductsServiceClient.java index 96dde34110a1..f16be216d9cf 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductsServiceClient.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductsServiceClient.java @@ -57,51 +57,52 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetCssProduct

GetCssProduct

Retrieves the processed CSS Product from your CSS Center account. After inserting, updating, or deleting a product input, it may take several minutes before the updated final product can be retrieved.

*

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

*
    - *
  • getCssProduct(GetCssProductRequest request) + *
  • getCssProduct(GetCssProductRequest request) *

*

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

*
    - *
  • getCssProduct(CssProductName name) - *
  • getCssProduct(String name) + *
  • getCssProduct(CssProductName name) + *

  • getCssProduct(String name) *

*

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

*
    - *
  • getCssProductCallable() + *
  • getCssProductCallable() *

*
ListCssProducts

ListCssProducts

Lists the processed CSS Products in your CSS Center account. The response might contain fewer items than specified by pageSize. Rely on pageToken to determine if there are more items to be requested. *

After inserting, updating, or deleting a CSS product input, it may take several minutes before the updated processed CSS product can be retrieved.

*

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

*
    - *
  • listCssProducts(ListCssProductsRequest request) + *
  • listCssProducts(ListCssProductsRequest request) *

*

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

*
    - *
  • listCssProducts(AccountName parent) - *
  • listCssProducts(String parent) + *
  • listCssProducts(AccountName parent) + *

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

*
    - *
  • listCssProductsPagedCallable() - *
  • listCssProductsCallable() + *
  • listCssProductsPagedCallable() + *

  • listCssProductsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountLabelsServiceStubSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountLabelsServiceStubSettings.java index e376c209509d..beea40df87fd 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountLabelsServiceStubSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountLabelsServiceStubSettings.java @@ -212,6 +212,15 @@ public AccountLabelsServiceStub 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() { @@ -411,7 +420,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); @@ -424,7 +432,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); @@ -495,6 +502,15 @@ public Builder applyToAllUnaryMethods( return deleteAccountLabelSettings; } + /** Returns the endpoint 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 AccountLabelsServiceStubSettings build() throws IOException { return new AccountLabelsServiceStubSettings(this); diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountsServiceStubSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountsServiceStubSettings.java index 3da7cbf7cf6d..bfddbe234c07 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountsServiceStubSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountsServiceStubSettings.java @@ -199,6 +199,15 @@ public AccountsServiceStub 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() { @@ -385,7 +394,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); @@ -398,7 +406,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); @@ -456,6 +463,15 @@ public UnaryCallSettings.Builder updateLabe return updateLabelsSettings; } + /** Returns the endpoint 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 AccountsServiceStubSettings build() throws IOException { return new AccountsServiceStubSettings(this); diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductInputsServiceStubSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductInputsServiceStubSettings.java index 491918e696a7..244671ee5dbb 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductInputsServiceStubSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductInputsServiceStubSettings.java @@ -124,6 +124,15 @@ public CssProductInputsServiceStub 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() { @@ -292,7 +301,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); @@ -305,7 +313,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); @@ -353,6 +360,15 @@ public Builder applyToAllUnaryMethods( return deleteCssProductInputSettings; } + /** Returns the endpoint 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 CssProductInputsServiceStubSettings build() throws IOException { return new CssProductInputsServiceStubSettings(this); diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductsServiceStubSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductsServiceStubSettings.java index 7e1e7e57b91e..ff4aa52f57f7 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductsServiceStubSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductsServiceStubSettings.java @@ -189,6 +189,15 @@ public CssProductsServiceStub 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() { @@ -361,7 +370,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); @@ -374,7 +382,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); @@ -422,6 +429,15 @@ public UnaryCallSettings.Builder getCssProduct return listCssProductsSettings; } + /** Returns the endpoint 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 CssProductsServiceStubSettings build() throws IOException { return new CssProductsServiceStubSettings(this); diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index 07d9669565b2..291de81a11a1 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/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-shopping-merchant-inventories/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-inventories.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.9.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-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClient.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClient.java index 6237dcbd8219..ff8057eb89b2 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClient.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClient.java @@ -63,66 +63,67 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListLocalInventories

ListLocalInventories

Lists the `LocalInventory` resources for the given product in your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results. *

`LocalInventory` resources are listed per product for a given account.

*

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

*
    - *
  • listLocalInventories(ListLocalInventoriesRequest request) + *
  • listLocalInventories(ListLocalInventoriesRequest request) *

*

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

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

*
    - *
  • listLocalInventoriesPagedCallable() - *
  • listLocalInventoriesCallable() + *
  • listLocalInventoriesPagedCallable() + *

  • listLocalInventoriesCallable() *

*
InsertLocalInventory

InsertLocalInventory

Inserts a `LocalInventory` resource to a product in your merchant account. *

Replaces the full `LocalInventory` resource if an entry with the same [`storeCode`][google.shopping.merchant.inventories.v1beta.LocalInventory.store_code] already exists for the product. *

It might take up to 30 minutes for the new or updated `LocalInventory` resource to appear in products.

*

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

*
    - *
  • insertLocalInventory(InsertLocalInventoryRequest request) + *
  • insertLocalInventory(InsertLocalInventoryRequest request) *

*

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

*
    - *
  • insertLocalInventoryCallable() + *
  • insertLocalInventoryCallable() *

*
DeleteLocalInventory

DeleteLocalInventory

Deletes the specified `LocalInventory` from the given product in your merchant account. It might take a up to an hour for the `LocalInventory` to be deleted from the specific product. Once you have received a successful delete response, wait for that period before attempting a delete again.

*

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

*
    - *
  • deleteLocalInventory(DeleteLocalInventoryRequest request) + *
  • deleteLocalInventory(DeleteLocalInventoryRequest request) *

*

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

*
    - *
  • deleteLocalInventory(LocalInventoryName name) - *
  • deleteLocalInventory(String name) + *
  • deleteLocalInventory(LocalInventoryName name) + *

  • deleteLocalInventory(String name) *

*

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

*
    - *
  • deleteLocalInventoryCallable() + *
  • deleteLocalInventoryCallable() *

*
* *

See the individual methods for example code. diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClient.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClient.java index 241a49096c12..c834dd96b0b9 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClient.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClient.java @@ -64,66 +64,67 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListRegionalInventories

ListRegionalInventories

Lists the `RegionalInventory` resources for the given product in your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results. *

`RegionalInventory` resources are listed per product for a given account.

*

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

*
    - *
  • listRegionalInventories(ListRegionalInventoriesRequest request) + *
  • listRegionalInventories(ListRegionalInventoriesRequest request) *

*

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

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

*
    - *
  • listRegionalInventoriesPagedCallable() - *
  • listRegionalInventoriesCallable() + *
  • listRegionalInventoriesPagedCallable() + *

  • listRegionalInventoriesCallable() *

*
InsertRegionalInventory

InsertRegionalInventory

Inserts a `RegionalInventory` to a given product in your merchant account. *

Replaces the full `RegionalInventory` resource if an entry with the same [`region`][google.shopping.merchant.inventories.v1beta.RegionalInventory.region] already exists for the product. *

It might take up to 30 minutes for the new or updated `RegionalInventory` resource to appear in products.

*

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

*
    - *
  • insertRegionalInventory(InsertRegionalInventoryRequest request) + *
  • insertRegionalInventory(InsertRegionalInventoryRequest request) *

*

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

*
    - *
  • insertRegionalInventoryCallable() + *
  • insertRegionalInventoryCallable() *

*
DeleteRegionalInventory

DeleteRegionalInventory

Deletes the specified `RegionalInventory` resource from the given product in your merchant account. It might take up to an hour for the `RegionalInventory` to be deleted from the specific product. Once you have received a successful delete response, wait for that period before attempting a delete again.

*

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

*
    - *
  • deleteRegionalInventory(DeleteRegionalInventoryRequest request) + *
  • deleteRegionalInventory(DeleteRegionalInventoryRequest request) *

*

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

*
    - *
  • deleteRegionalInventory(RegionalInventoryName name) - *
  • deleteRegionalInventory(String name) + *
  • deleteRegionalInventory(RegionalInventoryName name) + *

  • deleteRegionalInventory(String name) *

*

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

*
    - *
  • deleteRegionalInventoryCallable() + *
  • deleteRegionalInventoryCallable() *

*
* *

See the individual methods for example code. diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java index 205db4093f49..ef3dea6d371b 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java @@ -212,6 +212,15 @@ public LocalInventoryServiceStub 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() { @@ -397,7 +406,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); @@ -410,7 +418,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -472,6 +479,15 @@ public Builder applyToAllUnaryMethods( return deleteLocalInventorySettings; } + /** Returns the endpoint 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 LocalInventoryServiceStubSettings build() throws IOException { return new LocalInventoryServiceStubSettings(this); diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java index 76e81ee512e1..7a9f7bf32d67 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java @@ -223,6 +223,15 @@ public RegionalInventoryServiceStub 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() { @@ -408,7 +417,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); @@ -421,7 +429,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); @@ -483,6 +490,15 @@ public Builder applyToAllUnaryMethods( return deleteRegionalInventorySettings; } + /** Returns the endpoint 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 RegionalInventoryServiceStubSettings build() throws IOException { return new RegionalInventoryServiceStubSettings(this); diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index dbe83cc0a691..89a45427c060 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/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-shopping-merchant-reports/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reports.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.9.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-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceClient.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceClient.java index 72f6ee8e63a2..8600146c3085 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceClient.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceClient.java @@ -59,30 +59,31 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
Search

Search

Retrieves a report defined by a search query. The response might contain fewer rows than specified by `page_size`. Rely on `next_page_token` to determine if there are more rows to be requested.

*

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

*
    - *
  • search(SearchRequest request) + *
  • search(SearchRequest request) *

*

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

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

*
    - *
  • searchPagedCallable() - *
  • searchCallable() + *
  • searchPagedCallable() + *

  • searchCallable() *

*
* *

See the individual methods for example code. diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/ReportServiceStubSettings.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/ReportServiceStubSettings.java index 72a947e0e463..beb3b0301fc2 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/ReportServiceStubSettings.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/ReportServiceStubSettings.java @@ -174,6 +174,15 @@ public ReportServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -338,7 +347,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -351,7 +359,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -388,6 +395,15 @@ public Builder applyToAllUnaryMethods( return searchSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public ReportServiceStubSettings build() throws IOException { return new ReportServiceStubSettings(this); diff --git a/java-speech/README.md b/java-speech/README.md index ab93e02705a1..c7492d3a61f6 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -231,7 +231,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-speech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.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-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java index b08f68569a1d..b6bb8401f576 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java @@ -59,201 +59,202 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreatePhraseSet

CreatePhraseSet

Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.

*

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

*
    - *
  • createPhraseSet(CreatePhraseSetRequest request) + *
  • createPhraseSet(CreatePhraseSetRequest request) *

*

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

*
    - *
  • createPhraseSet(LocationName parent, PhraseSet phraseSet, String phraseSetId) - *
  • createPhraseSet(String parent, PhraseSet phraseSet, String phraseSetId) + *
  • createPhraseSet(LocationName parent, PhraseSet phraseSet, String phraseSetId) + *

  • createPhraseSet(String parent, PhraseSet phraseSet, String phraseSetId) *

*

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

*
    - *
  • createPhraseSetCallable() + *
  • createPhraseSetCallable() *

*
GetPhraseSet

GetPhraseSet

Get a phrase set.

*

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

*
    - *
  • getPhraseSet(GetPhraseSetRequest request) + *
  • getPhraseSet(GetPhraseSetRequest request) *

*

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

*
    - *
  • getPhraseSet(PhraseSetName name) - *
  • getPhraseSet(String name) + *
  • getPhraseSet(PhraseSetName name) + *

  • getPhraseSet(String name) *

*

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

*
    - *
  • getPhraseSetCallable() + *
  • getPhraseSetCallable() *

*
ListPhraseSet

ListPhraseSet

List phrase sets.

*

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

*
    - *
  • listPhraseSet(ListPhraseSetRequest request) + *
  • listPhraseSet(ListPhraseSetRequest request) *

*

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

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

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

*
    - *
  • listPhraseSetPagedCallable() - *
  • listPhraseSetCallable() + *
  • listPhraseSetPagedCallable() + *

  • listPhraseSetCallable() *

*
UpdatePhraseSet

UpdatePhraseSet

Update a phrase set.

*

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

*
    - *
  • updatePhraseSet(UpdatePhraseSetRequest request) + *
  • updatePhraseSet(UpdatePhraseSetRequest request) *

*

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

*
    - *
  • updatePhraseSet(PhraseSet phraseSet, FieldMask updateMask) + *
  • updatePhraseSet(PhraseSet phraseSet, 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.

*
    - *
  • updatePhraseSetCallable() + *
  • updatePhraseSetCallable() *

*
DeletePhraseSet

DeletePhraseSet

Delete a phrase set.

*

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

*
    - *
  • deletePhraseSet(DeletePhraseSetRequest request) + *
  • deletePhraseSet(DeletePhraseSetRequest request) *

*

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

*
    - *
  • deletePhraseSet(PhraseSetName name) - *
  • deletePhraseSet(String name) + *
  • deletePhraseSet(PhraseSetName name) + *

  • deletePhraseSet(String name) *

*

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

*
    - *
  • deletePhraseSetCallable() + *
  • deletePhraseSetCallable() *

*
CreateCustomClass

CreateCustomClass

Create a custom class.

*

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

*
    - *
  • createCustomClass(CreateCustomClassRequest request) + *
  • createCustomClass(CreateCustomClassRequest request) *

*

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

*
    - *
  • createCustomClass(LocationName parent, CustomClass customClass, String customClassId) - *
  • createCustomClass(String parent, CustomClass customClass, String customClassId) + *
  • createCustomClass(LocationName parent, CustomClass customClass, String customClassId) + *

  • createCustomClass(String parent, CustomClass customClass, String customClassId) *

*

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

*
    - *
  • createCustomClassCallable() + *
  • createCustomClassCallable() *

*
GetCustomClass

GetCustomClass

Get a custom class.

*

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

*
    - *
  • getCustomClass(GetCustomClassRequest request) + *
  • getCustomClass(GetCustomClassRequest request) *

*

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

*
    - *
  • getCustomClass(CustomClassName name) - *
  • getCustomClass(String name) + *
  • getCustomClass(CustomClassName name) + *

  • getCustomClass(String name) *

*

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

*
    - *
  • getCustomClassCallable() + *
  • getCustomClassCallable() *

*
ListCustomClasses

ListCustomClasses

List custom classes.

*

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

*
    - *
  • listCustomClasses(ListCustomClassesRequest request) + *
  • listCustomClasses(ListCustomClassesRequest request) *

*

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

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

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

*
    - *
  • listCustomClassesPagedCallable() - *
  • listCustomClassesCallable() + *
  • listCustomClassesPagedCallable() + *

  • listCustomClassesCallable() *

*
UpdateCustomClass

UpdateCustomClass

Update a custom class.

*

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

*
    - *
  • updateCustomClass(UpdateCustomClassRequest request) + *
  • updateCustomClass(UpdateCustomClassRequest request) *

*

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

*
    - *
  • updateCustomClass(CustomClass customClass, FieldMask updateMask) + *
  • updateCustomClass(CustomClass customClass, 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.

*
    - *
  • updateCustomClassCallable() + *
  • updateCustomClassCallable() *

*
DeleteCustomClass

DeleteCustomClass

Delete a custom class.

*

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

*
    - *
  • deleteCustomClass(DeleteCustomClassRequest request) + *
  • deleteCustomClass(DeleteCustomClassRequest request) *

*

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

*
    - *
  • deleteCustomClass(CustomClassName name) - *
  • deleteCustomClass(String name) + *
  • deleteCustomClass(CustomClassName name) + *

  • deleteCustomClass(String name) *

*

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

*
    - *
  • deleteCustomClassCallable() + *
  • deleteCustomClassCallable() *

*
* *

See the individual methods for example code. diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java index 8b67b4758cb7..03e80779bc57 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java @@ -54,58 +54,59 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
Recognize

Recognize

Performs synchronous speech recognition: receive results after all audio has been sent and processed.

*

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

*
    - *
  • recognize(RecognizeRequest request) + *
  • recognize(RecognizeRequest request) *

*

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

*
    - *
  • recognize(RecognitionConfig config, RecognitionAudio audio) + *
  • recognize(RecognitionConfig config, RecognitionAudio audio) *

*

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

*
    - *
  • recognizeCallable() + *
  • recognizeCallable() *

*
LongRunningRecognize

LongRunningRecognize

Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).

*

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

*
    - *
  • longRunningRecognizeAsync(LongRunningRecognizeRequest request) + *
  • longRunningRecognizeAsync(LongRunningRecognizeRequest request) *

*

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

*
    - *
  • longRunningRecognizeAsync(RecognitionConfig config, RecognitionAudio audio) + *
  • longRunningRecognizeAsync(RecognitionConfig config, RecognitionAudio audio) *

*

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

*
    - *
  • longRunningRecognizeOperationCallable() - *
  • longRunningRecognizeCallable() + *
  • longRunningRecognizeOperationCallable() + *

  • longRunningRecognizeCallable() *

*
StreamingRecognize

StreamingRecognize

Performs bidirectional streaming speech recognition: 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.

*
    - *
  • streamingRecognizeCallable() + *
  • streamingRecognizeCallable() *

*
* *

See the individual methods for example code. diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java index 42f7e15e8ad1..93b75fbe1513 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java @@ -307,6 +307,15 @@ public AdaptationStub 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() { @@ -525,7 +534,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); @@ -538,7 +546,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); @@ -670,6 +677,15 @@ public UnaryCallSettings.Builder deleteCustomCl return deleteCustomClassSettings; } + /** Returns the endpoint 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 AdaptationStubSettings build() throws IOException { return new AdaptationStubSettings(this); diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java index 413eb494d2e5..fb0838f67c68 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java @@ -146,6 +146,15 @@ public SpeechStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -340,7 +349,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -353,7 +361,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -441,6 +448,15 @@ public UnaryCallSettings.Builder recognizeS return streamingRecognizeSettings; } + /** Returns the endpoint 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 SpeechStubSettings build() throws IOException { return new SpeechStubSettings(this); diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java index 60a2f761c1ca..564c9f85a199 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java @@ -60,201 +60,202 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreatePhraseSet

CreatePhraseSet

Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.

*

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

*
    - *
  • createPhraseSet(CreatePhraseSetRequest request) + *
  • createPhraseSet(CreatePhraseSetRequest request) *

*

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

*
    - *
  • createPhraseSet(LocationName parent, PhraseSet phraseSet, String phraseSetId) - *
  • createPhraseSet(String parent, PhraseSet phraseSet, String phraseSetId) + *
  • createPhraseSet(LocationName parent, PhraseSet phraseSet, String phraseSetId) + *

  • createPhraseSet(String parent, PhraseSet phraseSet, String phraseSetId) *

*

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

*
    - *
  • createPhraseSetCallable() + *
  • createPhraseSetCallable() *

*
GetPhraseSet

GetPhraseSet

Get a phrase set.

*

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

*
    - *
  • getPhraseSet(GetPhraseSetRequest request) + *
  • getPhraseSet(GetPhraseSetRequest request) *

*

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

*
    - *
  • getPhraseSet(PhraseSetName name) - *
  • getPhraseSet(String name) + *
  • getPhraseSet(PhraseSetName name) + *

  • getPhraseSet(String name) *

*

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

*
    - *
  • getPhraseSetCallable() + *
  • getPhraseSetCallable() *

*
ListPhraseSet

ListPhraseSet

List phrase sets.

*

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

*
    - *
  • listPhraseSet(ListPhraseSetRequest request) + *
  • listPhraseSet(ListPhraseSetRequest request) *

*

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

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

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

*
    - *
  • listPhraseSetPagedCallable() - *
  • listPhraseSetCallable() + *
  • listPhraseSetPagedCallable() + *

  • listPhraseSetCallable() *

*
UpdatePhraseSet

UpdatePhraseSet

Update a phrase set.

*

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

*
    - *
  • updatePhraseSet(UpdatePhraseSetRequest request) + *
  • updatePhraseSet(UpdatePhraseSetRequest request) *

*

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

*
    - *
  • updatePhraseSet(PhraseSet phraseSet, FieldMask updateMask) + *
  • updatePhraseSet(PhraseSet phraseSet, 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.

*
    - *
  • updatePhraseSetCallable() + *
  • updatePhraseSetCallable() *

*
DeletePhraseSet

DeletePhraseSet

Delete a phrase set.

*

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

*
    - *
  • deletePhraseSet(DeletePhraseSetRequest request) + *
  • deletePhraseSet(DeletePhraseSetRequest request) *

*

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

*
    - *
  • deletePhraseSet(PhraseSetName name) - *
  • deletePhraseSet(String name) + *
  • deletePhraseSet(PhraseSetName name) + *

  • deletePhraseSet(String name) *

*

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

*
    - *
  • deletePhraseSetCallable() + *
  • deletePhraseSetCallable() *

*
CreateCustomClass

CreateCustomClass

Create a custom class.

*

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

*
    - *
  • createCustomClass(CreateCustomClassRequest request) + *
  • createCustomClass(CreateCustomClassRequest request) *

*

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

*
    - *
  • createCustomClass(LocationName parent, CustomClass customClass, String customClassId) - *
  • createCustomClass(String parent, CustomClass customClass, String customClassId) + *
  • createCustomClass(LocationName parent, CustomClass customClass, String customClassId) + *

  • createCustomClass(String parent, CustomClass customClass, String customClassId) *

*

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

*
    - *
  • createCustomClassCallable() + *
  • createCustomClassCallable() *

*
GetCustomClass

GetCustomClass

Get a custom class.

*

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

*
    - *
  • getCustomClass(GetCustomClassRequest request) + *
  • getCustomClass(GetCustomClassRequest request) *

*

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

*
    - *
  • getCustomClass(CustomClassName name) - *
  • getCustomClass(String name) + *
  • getCustomClass(CustomClassName name) + *

  • getCustomClass(String name) *

*

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

*
    - *
  • getCustomClassCallable() + *
  • getCustomClassCallable() *

*
ListCustomClasses

ListCustomClasses

List custom classes.

*

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

*
    - *
  • listCustomClasses(ListCustomClassesRequest request) + *
  • listCustomClasses(ListCustomClassesRequest request) *

*

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

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

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

*
    - *
  • listCustomClassesPagedCallable() - *
  • listCustomClassesCallable() + *
  • listCustomClassesPagedCallable() + *

  • listCustomClassesCallable() *

*
UpdateCustomClass

UpdateCustomClass

Update a custom class.

*

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

*
    - *
  • updateCustomClass(UpdateCustomClassRequest request) + *
  • updateCustomClass(UpdateCustomClassRequest request) *

*

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

*
    - *
  • updateCustomClass(CustomClass customClass, FieldMask updateMask) + *
  • updateCustomClass(CustomClass customClass, 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.

*
    - *
  • updateCustomClassCallable() + *
  • updateCustomClassCallable() *

*
DeleteCustomClass

DeleteCustomClass

Delete a custom class.

*

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

*
    - *
  • deleteCustomClass(DeleteCustomClassRequest request) + *
  • deleteCustomClass(DeleteCustomClassRequest request) *

*

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

*
    - *
  • deleteCustomClass(CustomClassName name) - *
  • deleteCustomClass(String name) + *
  • deleteCustomClass(CustomClassName name) + *

  • deleteCustomClass(String name) *

*

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

*
    - *
  • deleteCustomClassCallable() + *
  • deleteCustomClassCallable() *

*
* *

See the individual methods for example code. diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java index 1c4a8ffb3c1a..5fa3ea2ee350 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java @@ -54,58 +54,59 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
Recognize

Recognize

Performs synchronous speech recognition: receive results after all audio has been sent and processed.

*

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

*
    - *
  • recognize(RecognizeRequest request) + *
  • recognize(RecognizeRequest request) *

*

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

*
    - *
  • recognize(RecognitionConfig config, RecognitionAudio audio) + *
  • recognize(RecognitionConfig config, RecognitionAudio audio) *

*

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

*
    - *
  • recognizeCallable() + *
  • recognizeCallable() *

*
LongRunningRecognize

LongRunningRecognize

Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).

*

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

*
    - *
  • longRunningRecognizeAsync(LongRunningRecognizeRequest request) + *
  • longRunningRecognizeAsync(LongRunningRecognizeRequest request) *

*

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

*
    - *
  • longRunningRecognizeAsync(RecognitionConfig config, RecognitionAudio audio) + *
  • longRunningRecognizeAsync(RecognitionConfig config, RecognitionAudio audio) *

*

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

*
    - *
  • longRunningRecognizeOperationCallable() - *
  • longRunningRecognizeCallable() + *
  • longRunningRecognizeOperationCallable() + *

  • longRunningRecognizeCallable() *

*
StreamingRecognize

StreamingRecognize

Performs bidirectional streaming speech recognition: 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.

*
    - *
  • streamingRecognizeCallable() + *
  • streamingRecognizeCallable() *

*
* *

See the individual methods for example code. diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java index 58f49db18e7d..cc0b40483e8c 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java @@ -308,6 +308,15 @@ public AdaptationStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -526,7 +535,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -539,7 +547,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -671,6 +678,15 @@ public UnaryCallSettings.Builder deleteCustomCl return deleteCustomClassSettings; } + /** Returns the endpoint 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 AdaptationStubSettings build() throws IOException { return new AdaptationStubSettings(this); diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java index b9124a3779c4..690613611963 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java @@ -147,6 +147,15 @@ public SpeechStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -341,7 +350,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -354,7 +362,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -442,6 +449,15 @@ public UnaryCallSettings.Builder recognizeS return streamingRecognizeSettings; } + /** Returns the endpoint 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 SpeechStubSettings build() throws IOException { return new SpeechStubSettings(this); diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java index eea57852ef23..9a3e71686963 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java @@ -67,482 +67,483 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateRecognizer

CreateRecognizer

Creates a [Recognizer][google.cloud.speech.v2.Recognizer].

*

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

*
    - *
  • createRecognizerAsync(CreateRecognizerRequest request) + *
  • createRecognizerAsync(CreateRecognizerRequest request) *

*

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

*
    - *
  • createRecognizerAsync(LocationName parent, Recognizer recognizer, String recognizerId) - *
  • createRecognizerAsync(String parent, Recognizer recognizer, String recognizerId) + *
  • createRecognizerAsync(LocationName parent, Recognizer recognizer, String recognizerId) + *

  • createRecognizerAsync(String parent, Recognizer recognizer, String recognizerId) *

*

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

*
    - *
  • createRecognizerOperationCallable() - *
  • createRecognizerCallable() + *
  • createRecognizerOperationCallable() + *

  • createRecognizerCallable() *

*
ListRecognizers

ListRecognizers

Lists Recognizers.

*

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

*
    - *
  • listRecognizers(ListRecognizersRequest request) + *
  • listRecognizers(ListRecognizersRequest request) *

*

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

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

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

*
    - *
  • listRecognizersPagedCallable() - *
  • listRecognizersCallable() + *
  • listRecognizersPagedCallable() + *

  • listRecognizersCallable() *

*
GetRecognizer

GetRecognizer

Returns the requested [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested Recognizer doesn't exist.

*

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

*
    - *
  • getRecognizer(GetRecognizerRequest request) + *
  • getRecognizer(GetRecognizerRequest request) *

*

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

*
    - *
  • getRecognizer(RecognizerName name) - *
  • getRecognizer(String name) + *
  • getRecognizer(RecognizerName name) + *

  • getRecognizer(String name) *

*

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

*
    - *
  • getRecognizerCallable() + *
  • getRecognizerCallable() *

*
UpdateRecognizer

UpdateRecognizer

Updates the [Recognizer][google.cloud.speech.v2.Recognizer].

*

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

*
    - *
  • updateRecognizerAsync(UpdateRecognizerRequest request) + *
  • updateRecognizerAsync(UpdateRecognizerRequest request) *

*

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

*
    - *
  • updateRecognizerAsync(Recognizer recognizer, FieldMask updateMask) + *
  • updateRecognizerAsync(Recognizer recognizer, 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.

*
    - *
  • updateRecognizerOperationCallable() - *
  • updateRecognizerCallable() + *
  • updateRecognizerOperationCallable() + *

  • updateRecognizerCallable() *

*
DeleteRecognizer

DeleteRecognizer

Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].

*

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

*
    - *
  • deleteRecognizerAsync(DeleteRecognizerRequest request) + *
  • deleteRecognizerAsync(DeleteRecognizerRequest request) *

*

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

*
    - *
  • deleteRecognizerAsync(RecognizerName name) - *
  • deleteRecognizerAsync(String name) + *
  • deleteRecognizerAsync(RecognizerName name) + *

  • deleteRecognizerAsync(String name) *

*

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

*
    - *
  • deleteRecognizerOperationCallable() - *
  • deleteRecognizerCallable() + *
  • deleteRecognizerOperationCallable() + *

  • deleteRecognizerCallable() *

*
UndeleteRecognizer

UndeleteRecognizer

Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].

*

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

*
    - *
  • undeleteRecognizerAsync(UndeleteRecognizerRequest request) + *
  • undeleteRecognizerAsync(UndeleteRecognizerRequest request) *

*

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

*
    - *
  • undeleteRecognizerAsync(RecognizerName name) - *
  • undeleteRecognizerAsync(String name) + *
  • undeleteRecognizerAsync(RecognizerName name) + *

  • undeleteRecognizerAsync(String name) *

*

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

*
    - *
  • undeleteRecognizerOperationCallable() - *
  • undeleteRecognizerCallable() + *
  • undeleteRecognizerOperationCallable() + *

  • undeleteRecognizerCallable() *

*
Recognize

Recognize

Performs synchronous Speech recognition: receive results after all audio has been sent and processed.

*

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

*
    - *
  • recognize(RecognizeRequest request) + *
  • recognize(RecognizeRequest request) *

*

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

*
    - *
  • recognize(RecognizerName recognizer, RecognitionConfig config, FieldMask configMask, ByteString content) - *
  • recognize(RecognizerName recognizer, RecognitionConfig config, FieldMask configMask, String uri) - *
  • recognize(String recognizer, RecognitionConfig config, FieldMask configMask, ByteString content) - *
  • recognize(String recognizer, RecognitionConfig config, FieldMask configMask, String uri) + *
  • recognize(RecognizerName recognizer, RecognitionConfig config, FieldMask configMask, ByteString content) + *

  • recognize(RecognizerName recognizer, RecognitionConfig config, FieldMask configMask, String uri) + *

  • recognize(String recognizer, RecognitionConfig config, FieldMask configMask, ByteString content) + *

  • recognize(String recognizer, RecognitionConfig config, FieldMask configMask, String uri) *

*

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

*
    - *
  • recognizeCallable() + *
  • recognizeCallable() *

*
StreamingRecognize

StreamingRecognize

Performs bidirectional streaming speech recognition: 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.

*
    - *
  • streamingRecognizeCallable() + *
  • streamingRecognizeCallable() *

*
BatchRecognize

BatchRecognize

Performs batch asynchronous speech recognition: send a request with N audio files and receive a long running operation that can be polled to see when the transcriptions are finished.

*

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

*
    - *
  • batchRecognizeAsync(BatchRecognizeRequest request) + *
  • batchRecognizeAsync(BatchRecognizeRequest request) *

*

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

*
    - *
  • batchRecognizeAsync(RecognizerName recognizer, RecognitionConfig config, FieldMask configMask, List files) - *
  • batchRecognizeAsync(String recognizer, RecognitionConfig config, FieldMask configMask, List files) + *
  • batchRecognizeAsync(RecognizerName recognizer, RecognitionConfig config, FieldMask configMask, List<BatchRecognizeFileMetadata> files) + *

  • batchRecognizeAsync(String recognizer, RecognitionConfig config, FieldMask configMask, List<BatchRecognizeFileMetadata> files) *

*

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

*
    - *
  • batchRecognizeOperationCallable() - *
  • batchRecognizeCallable() + *
  • batchRecognizeOperationCallable() + *

  • batchRecognizeCallable() *

*
GetConfig

GetConfig

Returns the requested [Config][google.cloud.speech.v2.Config].

*

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

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

*

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

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

  • getConfig(String name) *

*

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

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

*
UpdateConfig

UpdateConfig

Updates the [Config][google.cloud.speech.v2.Config].

*

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

*
    - *
  • updateConfig(UpdateConfigRequest request) + *
  • updateConfig(UpdateConfigRequest request) *

*

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

*
    - *
  • updateConfig(Config config, FieldMask updateMask) + *
  • updateConfig(Config config, FieldMask updateMask) *

*

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

*
    - *
  • updateConfigCallable() + *
  • updateConfigCallable() *

*
CreateCustomClass

CreateCustomClass

Creates a [CustomClass][google.cloud.speech.v2.CustomClass].

*

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

*
    - *
  • createCustomClassAsync(CreateCustomClassRequest request) + *
  • createCustomClassAsync(CreateCustomClassRequest request) *

*

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

*
    - *
  • createCustomClassAsync(LocationName parent, CustomClass customClass, String customClassId) - *
  • createCustomClassAsync(String parent, CustomClass customClass, String customClassId) + *
  • createCustomClassAsync(LocationName parent, CustomClass customClass, String customClassId) + *

  • createCustomClassAsync(String parent, CustomClass customClass, String customClassId) *

*

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

*
    - *
  • createCustomClassOperationCallable() - *
  • createCustomClassCallable() + *
  • createCustomClassOperationCallable() + *

  • createCustomClassCallable() *

*
ListCustomClasses

ListCustomClasses

Lists CustomClasses.

*

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

*
    - *
  • listCustomClasses(ListCustomClassesRequest request) + *
  • listCustomClasses(ListCustomClassesRequest request) *

*

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

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

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

*
    - *
  • listCustomClassesPagedCallable() - *
  • listCustomClassesCallable() + *
  • listCustomClassesPagedCallable() + *

  • listCustomClassesCallable() *

*
GetCustomClass

GetCustomClass

Returns the requested [CustomClass][google.cloud.speech.v2.CustomClass].

*

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

*
    - *
  • getCustomClass(GetCustomClassRequest request) + *
  • getCustomClass(GetCustomClassRequest request) *

*

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

*
    - *
  • getCustomClass(CustomClassName name) - *
  • getCustomClass(String name) + *
  • getCustomClass(CustomClassName name) + *

  • getCustomClass(String name) *

*

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

*
    - *
  • getCustomClassCallable() + *
  • getCustomClassCallable() *

*
UpdateCustomClass

UpdateCustomClass

Updates the [CustomClass][google.cloud.speech.v2.CustomClass].

*

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

*
    - *
  • updateCustomClassAsync(UpdateCustomClassRequest request) + *
  • updateCustomClassAsync(UpdateCustomClassRequest request) *

*

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

*
    - *
  • updateCustomClassAsync(CustomClass customClass, FieldMask updateMask) + *
  • updateCustomClassAsync(CustomClass customClass, 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.

*
    - *
  • updateCustomClassOperationCallable() - *
  • updateCustomClassCallable() + *
  • updateCustomClassOperationCallable() + *

  • updateCustomClassCallable() *

*
DeleteCustomClass

DeleteCustomClass

Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].

*

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

*
    - *
  • deleteCustomClassAsync(DeleteCustomClassRequest request) + *
  • deleteCustomClassAsync(DeleteCustomClassRequest request) *

*

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

*
    - *
  • deleteCustomClassAsync(CustomClassName name) - *
  • deleteCustomClassAsync(String name) + *
  • deleteCustomClassAsync(CustomClassName name) + *

  • deleteCustomClassAsync(String name) *

*

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

*
    - *
  • deleteCustomClassOperationCallable() - *
  • deleteCustomClassCallable() + *
  • deleteCustomClassOperationCallable() + *

  • deleteCustomClassCallable() *

*
UndeleteCustomClass

UndeleteCustomClass

Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].

*

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

*
    - *
  • undeleteCustomClassAsync(UndeleteCustomClassRequest request) + *
  • undeleteCustomClassAsync(UndeleteCustomClassRequest request) *

*

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

*
    - *
  • undeleteCustomClassAsync(CustomClassName name) - *
  • undeleteCustomClassAsync(String name) + *
  • undeleteCustomClassAsync(CustomClassName name) + *

  • undeleteCustomClassAsync(String name) *

*

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

*
    - *
  • undeleteCustomClassOperationCallable() - *
  • undeleteCustomClassCallable() + *
  • undeleteCustomClassOperationCallable() + *

  • undeleteCustomClassCallable() *

*
CreatePhraseSet

CreatePhraseSet

Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].

*

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

*
    - *
  • createPhraseSetAsync(CreatePhraseSetRequest request) + *
  • createPhraseSetAsync(CreatePhraseSetRequest request) *

*

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

*
    - *
  • createPhraseSetAsync(LocationName parent, PhraseSet phraseSet, String phraseSetId) - *
  • createPhraseSetAsync(String parent, PhraseSet phraseSet, String phraseSetId) + *
  • createPhraseSetAsync(LocationName parent, PhraseSet phraseSet, String phraseSetId) + *

  • createPhraseSetAsync(String parent, PhraseSet phraseSet, String phraseSetId) *

*

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

*
    - *
  • createPhraseSetOperationCallable() - *
  • createPhraseSetCallable() + *
  • createPhraseSetOperationCallable() + *

  • createPhraseSetCallable() *

*
ListPhraseSets

ListPhraseSets

Lists PhraseSets.

*

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

*
    - *
  • listPhraseSets(ListPhraseSetsRequest request) + *
  • listPhraseSets(ListPhraseSetsRequest request) *

*

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

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

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

*
    - *
  • listPhraseSetsPagedCallable() - *
  • listPhraseSetsCallable() + *
  • listPhraseSetsPagedCallable() + *

  • listPhraseSetsCallable() *

*
GetPhraseSet

GetPhraseSet

Returns the requested [PhraseSet][google.cloud.speech.v2.PhraseSet].

*

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

*
    - *
  • getPhraseSet(GetPhraseSetRequest request) + *
  • getPhraseSet(GetPhraseSetRequest request) *

*

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

*
    - *
  • getPhraseSet(PhraseSetName name) - *
  • getPhraseSet(String name) + *
  • getPhraseSet(PhraseSetName name) + *

  • getPhraseSet(String name) *

*

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

*
    - *
  • getPhraseSetCallable() + *
  • getPhraseSetCallable() *

*
UpdatePhraseSet

UpdatePhraseSet

Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].

*

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

*
    - *
  • updatePhraseSetAsync(UpdatePhraseSetRequest request) + *
  • updatePhraseSetAsync(UpdatePhraseSetRequest request) *

*

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

*
    - *
  • updatePhraseSetAsync(PhraseSet phraseSet, FieldMask updateMask) + *
  • updatePhraseSetAsync(PhraseSet phraseSet, 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.

*
    - *
  • updatePhraseSetOperationCallable() - *
  • updatePhraseSetCallable() + *
  • updatePhraseSetOperationCallable() + *

  • updatePhraseSetCallable() *

*
DeletePhraseSet

DeletePhraseSet

Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].

*

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

*
    - *
  • deletePhraseSetAsync(DeletePhraseSetRequest request) + *
  • deletePhraseSetAsync(DeletePhraseSetRequest request) *

*

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

*
    - *
  • deletePhraseSetAsync(PhraseSetName name) - *
  • deletePhraseSetAsync(String name) + *
  • deletePhraseSetAsync(PhraseSetName name) + *

  • deletePhraseSetAsync(String name) *

*

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

*
    - *
  • deletePhraseSetOperationCallable() - *
  • deletePhraseSetCallable() + *
  • deletePhraseSetOperationCallable() + *

  • deletePhraseSetCallable() *

*
UndeletePhraseSet

UndeletePhraseSet

Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].

*

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

*
    - *
  • undeletePhraseSetAsync(UndeletePhraseSetRequest request) + *
  • undeletePhraseSetAsync(UndeletePhraseSetRequest request) *

*

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

*
    - *
  • undeletePhraseSetAsync(PhraseSetName name) - *
  • undeletePhraseSetAsync(String name) + *
  • undeletePhraseSetAsync(PhraseSetName name) + *

  • undeletePhraseSetAsync(String name) *

*

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

*
    - *
  • undeletePhraseSetOperationCallable() - *
  • undeletePhraseSetCallable() + *
  • undeletePhraseSetOperationCallable() + *

  • undeletePhraseSetCallable() *

*
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-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java index 4879de96033e..d5286b9d3dd3 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java @@ -655,6 +655,15 @@ public SpeechStub 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() { @@ -1072,7 +1081,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); @@ -1085,7 +1093,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); @@ -1791,6 +1798,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 SpeechStubSettings build() throws IOException { return new SpeechStubSettings(this); diff --git a/java-storage-transfer/README.md b/java-storage-transfer/README.md index 336f003b2548..e496824cb406 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/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-storage-transfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/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-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceClient.java b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceClient.java index 9a9a6c776133..cf219718ee72 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceClient.java +++ b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceClient.java @@ -69,231 +69,232 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
GetGoogleServiceAccount

GetGoogleServiceAccount

Returns the Google service account that is used by Storage Transfer Service to access buckets in the project where transfers run or in other projects. Each Google service account is associated with one Google Cloud project. Users should add this service account to the Google Cloud Storage bucket ACLs to grant access to Storage Transfer Service. This service account is created and owned by Storage Transfer Service and can only be used by Storage Transfer Service.

*

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

*
    - *
  • getGoogleServiceAccount(TransferProto.GetGoogleServiceAccountRequest request) + *
  • getGoogleServiceAccount(TransferProto.GetGoogleServiceAccountRequest request) *

*

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

*
    - *
  • getGoogleServiceAccountCallable() + *
  • getGoogleServiceAccountCallable() *

*
CreateTransferJob

CreateTransferJob

Creates a transfer job that runs periodically.

*

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

*
    - *
  • createTransferJob(TransferProto.CreateTransferJobRequest request) + *
  • createTransferJob(TransferProto.CreateTransferJobRequest request) *

*

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

*
    - *
  • createTransferJobCallable() + *
  • createTransferJobCallable() *

*
UpdateTransferJob

UpdateTransferJob

Updates a transfer job. Updating a job's transfer spec does not affect transfer operations that are running already. *

**Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified using this RPC (for example, to set a job's status to [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED], [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).

*

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

*
    - *
  • updateTransferJob(TransferProto.UpdateTransferJobRequest request) + *
  • updateTransferJob(TransferProto.UpdateTransferJobRequest request) *

*

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

*
    - *
  • updateTransferJobCallable() + *
  • updateTransferJobCallable() *

*
GetTransferJob

GetTransferJob

Gets a transfer job.

*

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

*
    - *
  • getTransferJob(TransferProto.GetTransferJobRequest request) + *
  • getTransferJob(TransferProto.GetTransferJobRequest request) *

*

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

*
    - *
  • getTransferJobCallable() + *
  • getTransferJobCallable() *

*
ListTransferJobs

ListTransferJobs

Lists transfer jobs.

*

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

*
    - *
  • listTransferJobs(TransferProto.ListTransferJobsRequest request) + *
  • listTransferJobs(TransferProto.ListTransferJobsRequest request) *

*

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

*
    - *
  • listTransferJobsPagedCallable() - *
  • listTransferJobsCallable() + *
  • listTransferJobsPagedCallable() + *

  • listTransferJobsCallable() *

*
PauseTransferOperation

PauseTransferOperation

Pauses a transfer operation.

*

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

*
    - *
  • pauseTransferOperation(TransferProto.PauseTransferOperationRequest request) + *
  • pauseTransferOperation(TransferProto.PauseTransferOperationRequest request) *

*

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

*
    - *
  • pauseTransferOperationCallable() + *
  • pauseTransferOperationCallable() *

*
ResumeTransferOperation

ResumeTransferOperation

Resumes a transfer operation that is paused.

*

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

*
    - *
  • resumeTransferOperation(TransferProto.ResumeTransferOperationRequest request) + *
  • resumeTransferOperation(TransferProto.ResumeTransferOperationRequest request) *

*

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

*
    - *
  • resumeTransferOperationCallable() + *
  • resumeTransferOperationCallable() *

*
RunTransferJob

RunTransferJob

Starts a new operation for the specified transfer job. A `TransferJob` has a maximum of one active `TransferOperation`. If this method is called while a `TransferOperation` is active, an error is returned.

*

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

*
    - *
  • runTransferJobAsync(TransferProto.RunTransferJobRequest request) + *
  • runTransferJobAsync(TransferProto.RunTransferJobRequest request) *

*

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

*
    - *
  • runTransferJobOperationCallable() - *
  • runTransferJobCallable() + *
  • runTransferJobOperationCallable() + *

  • runTransferJobCallable() *

*
DeleteTransferJob

DeleteTransferJob

Deletes a transfer job. Deleting a transfer job sets its status to [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED].

*

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

*
    - *
  • deleteTransferJob(TransferProto.DeleteTransferJobRequest request) + *
  • deleteTransferJob(TransferProto.DeleteTransferJobRequest request) *

*

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

*
    - *
  • deleteTransferJobCallable() + *
  • deleteTransferJobCallable() *

*
CreateAgentPool

CreateAgentPool

Creates an agent pool resource.

*

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

*
    - *
  • createAgentPool(TransferProto.CreateAgentPoolRequest request) + *
  • createAgentPool(TransferProto.CreateAgentPoolRequest request) *

*

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

*
    - *
  • createAgentPool(String projectId, TransferTypes.AgentPool agentPool, String agentPoolId) + *
  • createAgentPool(String projectId, TransferTypes.AgentPool agentPool, String agentPoolId) *

*

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

*
    - *
  • createAgentPoolCallable() + *
  • createAgentPoolCallable() *

*
UpdateAgentPool

UpdateAgentPool

Updates an existing agent pool resource.

*

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

*
    - *
  • updateAgentPool(TransferProto.UpdateAgentPoolRequest request) + *
  • updateAgentPool(TransferProto.UpdateAgentPoolRequest request) *

*

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

*
    - *
  • updateAgentPool(TransferTypes.AgentPool agentPool, FieldMask updateMask) + *
  • updateAgentPool(TransferTypes.AgentPool agentPool, 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.

*
    - *
  • updateAgentPoolCallable() + *
  • updateAgentPoolCallable() *

*
GetAgentPool

GetAgentPool

Gets an agent pool.

*

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

*
    - *
  • getAgentPool(TransferProto.GetAgentPoolRequest request) + *
  • getAgentPool(TransferProto.GetAgentPoolRequest request) *

*

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

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

*

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

*
    - *
  • getAgentPoolCallable() + *
  • getAgentPoolCallable() *

*
ListAgentPools

ListAgentPools

Lists agent pools.

*

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

*
    - *
  • listAgentPools(TransferProto.ListAgentPoolsRequest request) + *
  • listAgentPools(TransferProto.ListAgentPoolsRequest request) *

*

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

*
    - *
  • listAgentPools(String projectId) + *
  • listAgentPools(String projectId) *

*

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

*
    - *
  • listAgentPoolsPagedCallable() - *
  • listAgentPoolsCallable() + *
  • listAgentPoolsPagedCallable() + *

  • listAgentPoolsCallable() *

*
DeleteAgentPool

DeleteAgentPool

Deletes an agent pool.

*

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

*
    - *
  • deleteAgentPool(TransferProto.DeleteAgentPoolRequest request) + *
  • deleteAgentPool(TransferProto.DeleteAgentPoolRequest request) *

*

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

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

*

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

*
    - *
  • deleteAgentPoolCallable() + *
  • deleteAgentPoolCallable() *

*
* *

See the individual methods for example code. diff --git a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStubSettings.java b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStubSettings.java index 108cdcd05616..a39faff91889 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStubSettings.java +++ b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStubSettings.java @@ -414,6 +414,15 @@ public StorageTransferServiceStub 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() { @@ -701,7 +710,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); @@ -714,7 +722,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); @@ -938,6 +945,15 @@ public Builder applyToAllUnaryMethods( return deleteAgentPoolSettings; } + /** Returns the endpoint 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 StorageTransferServiceStubSettings build() throws IOException { return new StorageTransferServiceStubSettings(this); diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index 979132f03ad1..45cadbffded7 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/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-storageinsights/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-storageinsights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.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-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsClient.java b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsClient.java index aeec2002b538..7abb486bf7f8 100644 --- a/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsClient.java +++ b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsClient.java @@ -62,174 +62,175 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListReportConfigs

ListReportConfigs

Lists ReportConfigs in a given project and location.

*

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

*
    - *
  • listReportConfigs(ListReportConfigsRequest request) + *
  • listReportConfigs(ListReportConfigsRequest request) *

*

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

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

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

*
    - *
  • listReportConfigsPagedCallable() - *
  • listReportConfigsCallable() + *
  • listReportConfigsPagedCallable() + *

  • listReportConfigsCallable() *

*
GetReportConfig

GetReportConfig

Gets details of a single ReportConfig.

*

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

*
    - *
  • getReportConfig(GetReportConfigRequest request) + *
  • getReportConfig(GetReportConfigRequest request) *

*

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

*
    - *
  • getReportConfig(ReportConfigName name) - *
  • getReportConfig(String name) + *
  • getReportConfig(ReportConfigName name) + *

  • getReportConfig(String name) *

*

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

*
    - *
  • getReportConfigCallable() + *
  • getReportConfigCallable() *

*
CreateReportConfig

CreateReportConfig

Creates a new ReportConfig in a given project and location.

*

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

*
    - *
  • createReportConfig(CreateReportConfigRequest request) + *
  • createReportConfig(CreateReportConfigRequest request) *

*

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

*
    - *
  • createReportConfig(LocationName parent, ReportConfig reportConfig) - *
  • createReportConfig(String parent, ReportConfig reportConfig) + *
  • createReportConfig(LocationName parent, ReportConfig reportConfig) + *

  • createReportConfig(String parent, ReportConfig reportConfig) *

*

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

*
    - *
  • createReportConfigCallable() + *
  • createReportConfigCallable() *

*
UpdateReportConfig

UpdateReportConfig

Updates the parameters of a single ReportConfig.

*

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

*
    - *
  • updateReportConfig(UpdateReportConfigRequest request) + *
  • updateReportConfig(UpdateReportConfigRequest request) *

*

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

*
    - *
  • updateReportConfig(ReportConfig reportConfig, FieldMask updateMask) + *
  • updateReportConfig(ReportConfig reportConfig, 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.

*
    - *
  • updateReportConfigCallable() + *
  • updateReportConfigCallable() *

*
DeleteReportConfig

DeleteReportConfig

Deletes a single ReportConfig.

*

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

*
    - *
  • deleteReportConfig(DeleteReportConfigRequest request) + *
  • deleteReportConfig(DeleteReportConfigRequest request) *

*

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

*
    - *
  • deleteReportConfig(ReportConfigName name) - *
  • deleteReportConfig(String name) + *
  • deleteReportConfig(ReportConfigName name) + *

  • deleteReportConfig(String name) *

*

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

*
    - *
  • deleteReportConfigCallable() + *
  • deleteReportConfigCallable() *

*
ListReportDetails

ListReportDetails

Lists ReportDetails in a given project and location.

*

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

*
    - *
  • listReportDetails(ListReportDetailsRequest request) + *
  • listReportDetails(ListReportDetailsRequest request) *

*

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

*
    - *
  • listReportDetails(ReportConfigName parent) - *
  • listReportDetails(String parent) + *
  • listReportDetails(ReportConfigName parent) + *

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

*
    - *
  • listReportDetailsPagedCallable() - *
  • listReportDetailsCallable() + *
  • listReportDetailsPagedCallable() + *

  • listReportDetailsCallable() *

*
GetReportDetail

GetReportDetail

Gets details of a single ReportDetail.

*

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

*
    - *
  • getReportDetail(GetReportDetailRequest request) + *
  • getReportDetail(GetReportDetailRequest request) *

*

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

*
    - *
  • getReportDetail(ReportDetailName name) - *
  • getReportDetail(String name) + *
  • getReportDetail(ReportDetailName name) + *

  • getReportDetail(String name) *

*

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

*
    - *
  • getReportDetailCallable() + *
  • getReportDetailCallable() *

*
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-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStubSettings.java b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStubSettings.java index 3b57f5694bc5..bf81c89a6d07 100644 --- a/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStubSettings.java +++ b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStubSettings.java @@ -373,6 +373,15 @@ public StorageInsightsStub 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() { @@ -607,7 +616,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); @@ -620,7 +628,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -747,6 +754,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public StorageInsightsStubSettings build() throws IOException { return new StorageInsightsStubSettings(this); diff --git a/java-talent/README.md b/java-talent/README.md index 6b76a069c73c..7585dcb3c012 100644 --- a/java-talent/README.md +++ b/java-talent/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-talent.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/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-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java index f805f8a5bd22..963cab23c577 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java @@ -58,106 +58,107 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateCompany

CreateCompany

Creates a new company entity.

*

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

*
    - *
  • createCompany(CreateCompanyRequest request) + *
  • createCompany(CreateCompanyRequest request) *

*

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

*
    - *
  • createCompany(TenantName parent, Company company) - *
  • createCompany(String parent, Company company) + *
  • createCompany(TenantName parent, Company company) + *

  • createCompany(String parent, Company company) *

*

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

*
    - *
  • createCompanyCallable() + *
  • createCompanyCallable() *

*
GetCompany

GetCompany

Retrieves specified company.

*

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

*
    - *
  • getCompany(GetCompanyRequest request) + *
  • getCompany(GetCompanyRequest request) *

*

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

*
    - *
  • getCompany(CompanyName name) - *
  • getCompany(String name) + *
  • getCompany(CompanyName name) + *

  • getCompany(String name) *

*

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

*
    - *
  • getCompanyCallable() + *
  • getCompanyCallable() *

*
UpdateCompany

UpdateCompany

Updates specified company.

*

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

*
    - *
  • updateCompany(UpdateCompanyRequest request) + *
  • updateCompany(UpdateCompanyRequest request) *

*

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

*
    - *
  • updateCompany(Company company, FieldMask updateMask) + *
  • updateCompany(Company company, 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.

*
    - *
  • updateCompanyCallable() + *
  • updateCompanyCallable() *

*
DeleteCompany

DeleteCompany

Deletes specified company. Prerequisite: The company has no jobs associated with it.

*

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

*
    - *
  • deleteCompany(DeleteCompanyRequest request) + *
  • deleteCompany(DeleteCompanyRequest request) *

*

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

*
    - *
  • deleteCompany(CompanyName name) - *
  • deleteCompany(String name) + *
  • deleteCompany(CompanyName name) + *

  • deleteCompany(String name) *

*

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

*
    - *
  • deleteCompanyCallable() + *
  • deleteCompanyCallable() *

*
ListCompanies

ListCompanies

Lists all companies associated with the project.

*

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

*
    - *
  • listCompanies(ListCompaniesRequest request) + *
  • listCompanies(ListCompaniesRequest request) *

*

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

*
    - *
  • listCompanies(TenantName parent) - *
  • listCompanies(String parent) + *
  • listCompanies(TenantName parent) + *

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

*
    - *
  • listCompaniesPagedCallable() - *
  • listCompaniesCallable() + *
  • listCompaniesPagedCallable() + *

  • listCompaniesCallable() *

*
* *

See the individual methods for example code. diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java index 33e90d876306..4020b31c0119 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java @@ -54,25 +54,26 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CompleteQuery

CompleteQuery

Completes the specified prefix with keyword suggestions. Intended for use by a job search auto-complete search box.

*

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

*
    - *
  • completeQuery(CompleteQueryRequest request) + *
  • completeQuery(CompleteQueryRequest request) *

*

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

*
    - *
  • completeQueryCallable() + *
  • completeQueryCallable() *

*
* *

See the individual methods for example code. diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java index 8fb9bdabb460..e60ff26945cb 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java @@ -48,30 +48,31 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateClientEvent

CreateClientEvent

Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in [self service tools](https://console.cloud.google.com/talent-solution/overview). [Learn more](https://cloud.google.com/talent-solution/docs/management-tools) about self service tools.

*

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

*
    - *
  • createClientEvent(CreateClientEventRequest request) + *
  • createClientEvent(CreateClientEventRequest request) *

*

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

*
    - *
  • createClientEvent(TenantName parent, ClientEvent clientEvent) - *
  • createClientEvent(String parent, ClientEvent clientEvent) + *
  • createClientEvent(TenantName parent, ClientEvent clientEvent) + *

  • createClientEvent(String parent, ClientEvent clientEvent) *

*

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

*
    - *
  • createClientEventCallable() + *
  • createClientEventCallable() *

*
* *

See the individual methods for example code. diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java index 37429edf65ad..de65c661724d 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java @@ -64,200 +64,201 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateJob

CreateJob

Creates a new job. *

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.

*

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

*
    - *
  • createJob(CreateJobRequest request) + *
  • createJob(CreateJobRequest request) *

*

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

*
    - *
  • createJob(TenantName parent, Job job) - *
  • createJob(String parent, Job job) + *
  • createJob(TenantName parent, Job job) + *

  • createJob(String parent, Job job) *

*

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

*
    - *
  • createJobCallable() + *
  • createJobCallable() *

*
BatchCreateJobs

BatchCreateJobs

Begins executing a batch create jobs operation.

*

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

*
    - *
  • batchCreateJobsAsync(BatchCreateJobsRequest request) + *
  • batchCreateJobsAsync(BatchCreateJobsRequest request) *

*

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

*
    - *
  • batchCreateJobsAsync(TenantName parent, List jobs) - *
  • batchCreateJobsAsync(String parent, List jobs) + *
  • batchCreateJobsAsync(TenantName parent, List<Job> jobs) + *

  • batchCreateJobsAsync(String parent, List<Job> jobs) *

*

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

*
    - *
  • batchCreateJobsOperationCallable() - *
  • batchCreateJobsCallable() + *
  • batchCreateJobsOperationCallable() + *

  • batchCreateJobsCallable() *

*
GetJob

GetJob

Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.

*

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

*
    - *
  • getJob(GetJobRequest request) + *
  • getJob(GetJobRequest request) *

*

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

*
    - *
  • getJob(JobName name) - *
  • getJob(String name) + *
  • getJob(JobName name) + *

  • getJob(String name) *

*

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

*
    - *
  • getJobCallable() + *
  • getJobCallable() *

*
UpdateJob

UpdateJob

Updates specified job. *

Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.

*

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

*
    - *
  • updateJob(UpdateJobRequest request) + *
  • updateJob(UpdateJobRequest request) *

*

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

*
    - *
  • updateJob(Job job, FieldMask updateMask) + *
  • updateJob(Job job, 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.

*
    - *
  • updateJobCallable() + *
  • updateJobCallable() *

*
BatchUpdateJobs

BatchUpdateJobs

Begins executing a batch update jobs operation.

*

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

*
    - *
  • batchUpdateJobsAsync(BatchUpdateJobsRequest request) + *
  • batchUpdateJobsAsync(BatchUpdateJobsRequest request) *

*

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

*
    - *
  • batchUpdateJobsAsync(TenantName parent, List jobs) - *
  • batchUpdateJobsAsync(String parent, List jobs) + *
  • batchUpdateJobsAsync(TenantName parent, List<Job> jobs) + *

  • batchUpdateJobsAsync(String parent, List<Job> jobs) *

*

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

*
    - *
  • batchUpdateJobsOperationCallable() - *
  • batchUpdateJobsCallable() + *
  • batchUpdateJobsOperationCallable() + *

  • batchUpdateJobsCallable() *

*
DeleteJob

DeleteJob

Deletes the specified job. *

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.

*

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

*
    - *
  • deleteJob(DeleteJobRequest request) + *
  • deleteJob(DeleteJobRequest request) *

*

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

*
    - *
  • deleteJob(JobName name) - *
  • deleteJob(String name) + *
  • deleteJob(JobName name) + *

  • deleteJob(String name) *

*

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

*
    - *
  • deleteJobCallable() + *
  • deleteJobCallable() *

*
BatchDeleteJobs

BatchDeleteJobs

Begins executing a batch delete jobs operation.

*

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

*
    - *
  • batchDeleteJobsAsync(BatchDeleteJobsRequest request) + *
  • batchDeleteJobsAsync(BatchDeleteJobsRequest request) *

*

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

*
    - *
  • batchDeleteJobsAsync(TenantName parent, List names) - *
  • batchDeleteJobsAsync(String parent, List names) + *
  • batchDeleteJobsAsync(TenantName parent, List<String> names) + *

  • batchDeleteJobsAsync(String parent, List<String> names) *

*

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

*
    - *
  • batchDeleteJobsOperationCallable() - *
  • batchDeleteJobsCallable() + *
  • batchDeleteJobsOperationCallable() + *

  • batchDeleteJobsCallable() *

*
ListJobs

ListJobs

Lists jobs by filter.

*

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

*
    - *
  • listJobs(ListJobsRequest request) + *
  • listJobs(ListJobsRequest request) *

*

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

*
    - *
  • listJobs(TenantName parent, String filter) - *
  • listJobs(String parent, String filter) + *
  • listJobs(TenantName parent, String filter) + *

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

*
    - *
  • listJobsPagedCallable() - *
  • listJobsCallable() + *
  • listJobsPagedCallable() + *

  • listJobsCallable() *

*
SearchJobs

SearchJobs

Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest]. *

This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs that the caller has permission to search against.

*

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

*
    - *
  • searchJobs(SearchJobsRequest request) + *
  • searchJobs(SearchJobsRequest request) *

*

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

*
    - *
  • searchJobsCallable() + *
  • searchJobsCallable() *

*
SearchJobsForAlert

SearchJobsForAlert

Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest]. *

This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), it has different algorithmic adjustments that are designed to specifically target passive job seekers. *

This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs the caller has permission to search against.

*

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

*
    - *
  • searchJobsForAlert(SearchJobsRequest request) + *
  • searchJobsForAlert(SearchJobsRequest request) *

*

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

*
    - *
  • searchJobsForAlertCallable() + *
  • searchJobsForAlertCallable() *

*
* *

See the individual methods for example code. diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java index bcdb715e8ba7..6968319c6322 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java @@ -58,106 +58,107 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateTenant

CreateTenant

Creates a new tenant entity.

*

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

*
    - *
  • createTenant(CreateTenantRequest request) + *
  • createTenant(CreateTenantRequest request) *

*

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

*
    - *
  • createTenant(ProjectName parent, Tenant tenant) - *
  • createTenant(String parent, Tenant tenant) + *
  • createTenant(ProjectName parent, Tenant tenant) + *

  • createTenant(String parent, Tenant tenant) *

*

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

*
    - *
  • createTenantCallable() + *
  • createTenantCallable() *

*
GetTenant

GetTenant

Retrieves specified tenant.

*

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

*
    - *
  • getTenant(GetTenantRequest request) + *
  • getTenant(GetTenantRequest request) *

*

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

*
    - *
  • getTenant(TenantName name) - *
  • getTenant(String name) + *
  • getTenant(TenantName name) + *

  • getTenant(String name) *

*

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

*
    - *
  • getTenantCallable() + *
  • getTenantCallable() *

*
UpdateTenant

UpdateTenant

Updates specified tenant.

*

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

*
    - *
  • updateTenant(UpdateTenantRequest request) + *
  • updateTenant(UpdateTenantRequest request) *

*

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

*
    - *
  • updateTenant(Tenant tenant, FieldMask updateMask) + *
  • updateTenant(Tenant tenant, 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.

*
    - *
  • updateTenantCallable() + *
  • updateTenantCallable() *

*
DeleteTenant

DeleteTenant

Deletes specified tenant.

*

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

*
    - *
  • deleteTenant(DeleteTenantRequest request) + *
  • deleteTenant(DeleteTenantRequest request) *

*

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

*
    - *
  • deleteTenant(TenantName name) - *
  • deleteTenant(String name) + *
  • deleteTenant(TenantName name) + *

  • deleteTenant(String name) *

*

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

*
    - *
  • deleteTenantCallable() + *
  • deleteTenantCallable() *

*
ListTenants

ListTenants

Lists all tenants associated with the project.

*

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

*
    - *
  • listTenants(ListTenantsRequest request) + *
  • listTenants(ListTenantsRequest request) *

*

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

*
    - *
  • listTenants(ProjectName parent) - *
  • listTenants(String parent) + *
  • listTenants(ProjectName parent) + *

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

*
    - *
  • listTenantsPagedCallable() - *
  • listTenantsCallable() + *
  • listTenantsPagedCallable() + *

  • listTenantsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java index 05b21dea87b1..2087bb6bd5b3 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java @@ -209,6 +209,15 @@ public CompanyServiceStub 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() { @@ -412,7 +421,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); @@ -425,7 +433,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); @@ -503,6 +510,15 @@ public UnaryCallSettings.Builder deleteCompanySetti return listCompaniesSettings; } + /** Returns the endpoint 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 CompanyServiceStubSettings build() throws IOException { return new CompanyServiceStubSettings(this); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java index 14e4e3e83ff6..d9859fbc96c8 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java @@ -114,6 +114,15 @@ public CompletionStub 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() { @@ -280,7 +289,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); @@ -293,7 +301,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); @@ -330,6 +337,15 @@ public Builder applyToAllUnaryMethods( return completeQuerySettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public CompletionStubSettings build() throws IOException { return new CompletionStubSettings(this); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java index 1babfdea63ec..89f0f63758fe 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java @@ -114,6 +114,15 @@ public EventServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -274,7 +283,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -287,7 +295,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); @@ -324,6 +331,15 @@ public Builder applyToAllUnaryMethods( return createClientEventSettings; } + /** Returns the endpoint 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 EventServiceStubSettings build() throws IOException { return new EventServiceStubSettings(this); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java index e31be0dd0c5e..be5a5e867b36 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java @@ -280,6 +280,15 @@ public JobServiceStub 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() { @@ -539,7 +548,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); @@ -552,7 +560,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); @@ -779,6 +786,15 @@ public UnaryCallSettings.Builder searchJo return searchJobsForAlertSettings; } + /** Returns the endpoint 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 JobServiceStubSettings build() throws IOException { return new JobServiceStubSettings(this); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java index 248f017c6a51..b85953ec1f84 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java @@ -208,6 +208,15 @@ public TenantServiceStub 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() { @@ -411,7 +420,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); @@ -424,7 +432,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); @@ -502,6 +509,15 @@ public UnaryCallSettings.Builder deleteTenantSetting return listTenantsSettings; } + /** Returns the endpoint 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 TenantServiceStubSettings build() throws IOException { return new TenantServiceStubSettings(this); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java index 5a4bf1d5f634..2026f1a42a16 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java @@ -58,108 +58,109 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateCompany

CreateCompany

Creates a new company entity.

*

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

*
    - *
  • createCompany(CreateCompanyRequest request) + *
  • createCompany(CreateCompanyRequest request) *

*

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

*
    - *
  • createCompany(ProjectName parent, Company company) - *
  • createCompany(TenantName parent, Company company) - *
  • createCompany(String parent, Company company) + *
  • createCompany(ProjectName parent, Company company) + *

  • createCompany(TenantName parent, Company company) + *

  • createCompany(String parent, Company company) *

*

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

*
    - *
  • createCompanyCallable() + *
  • createCompanyCallable() *

*
GetCompany

GetCompany

Retrieves specified company.

*

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

*
    - *
  • getCompany(GetCompanyRequest request) + *
  • getCompany(GetCompanyRequest request) *

*

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

*
    - *
  • getCompany(CompanyName name) - *
  • getCompany(String name) + *
  • getCompany(CompanyName name) + *

  • getCompany(String name) *

*

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

*
    - *
  • getCompanyCallable() + *
  • getCompanyCallable() *

*
UpdateCompany

UpdateCompany

Updates specified company.

*

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

*
    - *
  • updateCompany(UpdateCompanyRequest request) + *
  • updateCompany(UpdateCompanyRequest request) *

*

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

*
    - *
  • updateCompany(Company company) + *
  • updateCompany(Company company) *

*

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

*
    - *
  • updateCompanyCallable() + *
  • updateCompanyCallable() *

*
DeleteCompany

DeleteCompany

Deletes specified company. Prerequisite: The company has no jobs associated with it.

*

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

*
    - *
  • deleteCompany(DeleteCompanyRequest request) + *
  • deleteCompany(DeleteCompanyRequest request) *

*

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

*
    - *
  • deleteCompany(CompanyName name) - *
  • deleteCompany(String name) + *
  • deleteCompany(CompanyName name) + *

  • deleteCompany(String name) *

*

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

*
    - *
  • deleteCompanyCallable() + *
  • deleteCompanyCallable() *

*
ListCompanies

ListCompanies

Lists all companies associated with the project.

*

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

*
    - *
  • listCompanies(ListCompaniesRequest request) + *
  • listCompanies(ListCompaniesRequest request) *

*

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

*
    - *
  • listCompanies(ProjectName parent) - *
  • listCompanies(TenantName parent) - *
  • listCompanies(String parent) + *
  • listCompanies(ProjectName parent) + *

  • listCompanies(TenantName parent) + *

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

*
    - *
  • listCompaniesPagedCallable() - *
  • listCompaniesCallable() + *
  • listCompaniesPagedCallable() + *

  • listCompaniesCallable() *

*
* *

See the individual methods for example code. diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java index 7c85dc28a9f5..b1eea7814627 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java @@ -57,25 +57,26 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CompleteQuery

CompleteQuery

Completes the specified prefix with keyword suggestions. Intended for use by a job search auto-complete search box.

*

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

*
    - *
  • completeQuery(CompleteQueryRequest request) + *
  • completeQuery(CompleteQueryRequest request) *

*

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

*
    - *
  • completeQueryCallable() + *
  • completeQueryCallable() *

*
* *

See the individual methods for example code. diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java index 5e20ec376608..d0a987ad4df9 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java @@ -49,31 +49,32 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateClientEvent

CreateClientEvent

Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in [self service tools](https://console.cloud.google.com/talent-solution/overview). [Learn more](https://cloud.google.com/talent-solution/docs/management-tools) about self service tools.

*

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

*
    - *
  • createClientEvent(CreateClientEventRequest request) + *
  • createClientEvent(CreateClientEventRequest request) *

*

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

*
    - *
  • createClientEvent(ProjectName parent, ClientEvent clientEvent) - *
  • createClientEvent(TenantName parent, ClientEvent clientEvent) - *
  • createClientEvent(String parent, ClientEvent clientEvent) + *
  • createClientEvent(ProjectName parent, ClientEvent clientEvent) + *

  • createClientEvent(TenantName parent, ClientEvent clientEvent) + *

  • createClientEvent(String parent, ClientEvent clientEvent) *

*

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

*
    - *
  • createClientEventCallable() + *
  • createClientEventCallable() *

*
* *

See the individual methods for example code. diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java index 3f0712ee6db4..aedf2c949d28 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java @@ -63,206 +63,207 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateJob

CreateJob

Creates a new job. *

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.

*

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

*
    - *
  • createJob(CreateJobRequest request) + *
  • createJob(CreateJobRequest request) *

*

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

*
    - *
  • createJob(ProjectName parent, Job job) - *
  • createJob(TenantName parent, Job job) - *
  • createJob(String parent, Job job) + *
  • createJob(ProjectName parent, Job job) + *

  • createJob(TenantName parent, Job job) + *

  • createJob(String parent, Job job) *

*

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

*
    - *
  • createJobCallable() + *
  • createJobCallable() *

*
BatchCreateJobs

BatchCreateJobs

Begins executing a batch create jobs operation.

*

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

*
    - *
  • batchCreateJobsAsync(BatchCreateJobsRequest request) + *
  • batchCreateJobsAsync(BatchCreateJobsRequest request) *

*

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

*
    - *
  • batchCreateJobsAsync(ProjectName parent, List jobs) - *
  • batchCreateJobsAsync(TenantName parent, List jobs) - *
  • batchCreateJobsAsync(String parent, List jobs) + *
  • batchCreateJobsAsync(ProjectName parent, List<Job> jobs) + *

  • batchCreateJobsAsync(TenantName parent, List<Job> jobs) + *

  • batchCreateJobsAsync(String parent, List<Job> jobs) *

*

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

*
    - *
  • batchCreateJobsOperationCallable() - *
  • batchCreateJobsCallable() + *
  • batchCreateJobsOperationCallable() + *

  • batchCreateJobsCallable() *

*
GetJob

GetJob

Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.

*

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

*
    - *
  • getJob(GetJobRequest request) + *
  • getJob(GetJobRequest request) *

*

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

*
    - *
  • getJob(JobName name) - *
  • getJob(String name) + *
  • getJob(JobName name) + *

  • getJob(String name) *

*

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

*
    - *
  • getJobCallable() + *
  • getJobCallable() *

*
UpdateJob

UpdateJob

Updates specified job. *

Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.

*

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

*
    - *
  • updateJob(UpdateJobRequest request) + *
  • updateJob(UpdateJobRequest request) *

*

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

*
    - *
  • updateJob(Job job) + *
  • updateJob(Job job) *

*

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

*
    - *
  • updateJobCallable() + *
  • updateJobCallable() *

*
BatchUpdateJobs

BatchUpdateJobs

Begins executing a batch update jobs operation.

*

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

*
    - *
  • batchUpdateJobsAsync(BatchUpdateJobsRequest request) + *
  • batchUpdateJobsAsync(BatchUpdateJobsRequest request) *

*

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

*
    - *
  • batchUpdateJobsAsync(ProjectName parent, List jobs) - *
  • batchUpdateJobsAsync(TenantName parent, List jobs) - *
  • batchUpdateJobsAsync(String parent, List jobs) + *
  • batchUpdateJobsAsync(ProjectName parent, List<Job> jobs) + *

  • batchUpdateJobsAsync(TenantName parent, List<Job> jobs) + *

  • batchUpdateJobsAsync(String parent, List<Job> jobs) *

*

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

*
    - *
  • batchUpdateJobsOperationCallable() - *
  • batchUpdateJobsCallable() + *
  • batchUpdateJobsOperationCallable() + *

  • batchUpdateJobsCallable() *

*
DeleteJob

DeleteJob

Deletes the specified job. *

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.

*

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

*
    - *
  • deleteJob(DeleteJobRequest request) + *
  • deleteJob(DeleteJobRequest request) *

*

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

*
    - *
  • deleteJob(JobName name) - *
  • deleteJob(String name) + *
  • deleteJob(JobName name) + *

  • deleteJob(String name) *

*

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

*
    - *
  • deleteJobCallable() + *
  • deleteJobCallable() *

*
BatchDeleteJobs

BatchDeleteJobs

Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.

*

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

*
    - *
  • batchDeleteJobs(BatchDeleteJobsRequest request) + *
  • batchDeleteJobs(BatchDeleteJobsRequest request) *

*

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

*
    - *
  • batchDeleteJobs(ProjectName parent, String filter) - *
  • batchDeleteJobs(TenantName parent, String filter) - *
  • batchDeleteJobs(String parent, String filter) + *
  • batchDeleteJobs(ProjectName parent, String filter) + *

  • batchDeleteJobs(TenantName parent, String filter) + *

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

*
    - *
  • batchDeleteJobsCallable() + *
  • batchDeleteJobsCallable() *

*
ListJobs

ListJobs

Lists jobs by filter.

*

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

*
    - *
  • listJobs(ListJobsRequest request) + *
  • listJobs(ListJobsRequest request) *

*

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

*
    - *
  • listJobs(ProjectName parent, String filter) - *
  • listJobs(TenantName parent, String filter) - *
  • listJobs(String parent, String filter) + *
  • listJobs(ProjectName parent, String filter) + *

  • listJobs(TenantName parent, String filter) + *

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

*
    - *
  • listJobsPagedCallable() - *
  • listJobsCallable() + *
  • listJobsPagedCallable() + *

  • listJobsCallable() *

*
SearchJobs

SearchJobs

Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in the database, and only returns jobs that the caller has permission to search against.

*

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

*
    - *
  • searchJobs(SearchJobsRequest request) + *
  • searchJobs(SearchJobsRequest request) *

*

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

*
    - *
  • searchJobsPagedCallable() - *
  • searchJobsCallable() + *
  • searchJobsPagedCallable() + *

  • searchJobsCallable() *

*
SearchJobsForAlert

SearchJobsForAlert

Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. *

This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), and has different algorithmic adjustments that are targeted to passive job seekers. *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in the database, and only returns jobs the caller has permission to search against.

*

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

*
    - *
  • searchJobsForAlert(SearchJobsRequest request) + *
  • searchJobsForAlert(SearchJobsRequest request) *

*

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

*
    - *
  • searchJobsForAlertPagedCallable() - *
  • searchJobsForAlertCallable() + *
  • searchJobsForAlertPagedCallable() + *

  • searchJobsForAlertCallable() *

*
* *

See the individual methods for example code. diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java index 74cd58f88285..83a350b7931e 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java @@ -58,106 +58,107 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateTenant

CreateTenant

Creates a new tenant entity.

*

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

*
    - *
  • createTenant(CreateTenantRequest request) + *
  • createTenant(CreateTenantRequest request) *

*

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

*
    - *
  • createTenant(ProjectName parent, Tenant tenant) - *
  • createTenant(String parent, Tenant tenant) + *
  • createTenant(ProjectName parent, Tenant tenant) + *

  • createTenant(String parent, Tenant tenant) *

*

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

*
    - *
  • createTenantCallable() + *
  • createTenantCallable() *

*
GetTenant

GetTenant

Retrieves specified tenant.

*

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

*
    - *
  • getTenant(GetTenantRequest request) + *
  • getTenant(GetTenantRequest request) *

*

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

*
    - *
  • getTenant(TenantName name) - *
  • getTenant(String name) + *
  • getTenant(TenantName name) + *

  • getTenant(String name) *

*

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

*
    - *
  • getTenantCallable() + *
  • getTenantCallable() *

*
UpdateTenant

UpdateTenant

Updates specified tenant.

*

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

*
    - *
  • updateTenant(UpdateTenantRequest request) + *
  • updateTenant(UpdateTenantRequest request) *

*

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

*
    - *
  • updateTenant(Tenant tenant) + *
  • updateTenant(Tenant tenant) *

*

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

*
    - *
  • updateTenantCallable() + *
  • updateTenantCallable() *

*
DeleteTenant

DeleteTenant

Deletes specified tenant.

*

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

*
    - *
  • deleteTenant(DeleteTenantRequest request) + *
  • deleteTenant(DeleteTenantRequest request) *

*

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

*
    - *
  • deleteTenant(TenantName name) - *
  • deleteTenant(String name) + *
  • deleteTenant(TenantName name) + *

  • deleteTenant(String name) *

*

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

*
    - *
  • deleteTenantCallable() + *
  • deleteTenantCallable() *

*
ListTenants

ListTenants

Lists all tenants associated with the project.

*

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

*
    - *
  • listTenants(ListTenantsRequest request) + *
  • listTenants(ListTenantsRequest request) *

*

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

*
    - *
  • listTenants(ProjectName parent) - *
  • listTenants(String parent) + *
  • listTenants(ProjectName parent) + *

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

*
    - *
  • listTenantsPagedCallable() - *
  • listTenantsCallable() + *
  • listTenantsPagedCallable() + *

  • listTenantsCallable() *

*
* *

See the individual methods for example code. diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java index 79bbfc287530..b6d4d5afdfe7 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java @@ -210,6 +210,15 @@ public CompanyServiceStub 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() { @@ -413,7 +422,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); @@ -426,7 +434,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); @@ -504,6 +511,15 @@ public UnaryCallSettings.Builder deleteCompanySetti return listCompaniesSettings; } + /** Returns the endpoint 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 CompanyServiceStubSettings build() throws IOException { return new CompanyServiceStubSettings(this); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java index 5b0e134060b1..98e343989801 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java @@ -115,6 +115,15 @@ public CompletionStub 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() { @@ -281,7 +290,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); @@ -294,7 +302,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); @@ -331,6 +338,15 @@ public Builder applyToAllUnaryMethods( return completeQuerySettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public CompletionStubSettings build() throws IOException { return new CompletionStubSettings(this); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java index 2ff3714bae28..ce49b6aeafd4 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java @@ -115,6 +115,15 @@ public EventServiceStub 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() { @@ -275,7 +284,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); @@ -288,7 +296,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); @@ -325,6 +332,15 @@ public Builder applyToAllUnaryMethods( return createClientEventSettings; } + /** Returns the endpoint 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 EventServiceStubSettings build() throws IOException { return new EventServiceStubSettings(this); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java index d524f1735b18..8200abae860c 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java @@ -389,6 +389,15 @@ public JobServiceStub 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() { @@ -641,7 +650,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); @@ -654,7 +662,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); @@ -850,6 +857,15 @@ public UnaryCallSettings.Builder batchDeleteJobsS return searchJobsForAlertSettings; } + /** Returns the endpoint 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 JobServiceStubSettings build() throws IOException { return new JobServiceStubSettings(this); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java index 638f3e71aa6f..9906ecc0d9ba 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java @@ -209,6 +209,15 @@ public TenantServiceStub 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() { @@ -412,7 +421,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); @@ -425,7 +433,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); @@ -503,6 +510,15 @@ public UnaryCallSettings.Builder deleteTenantSetting return listTenantsSettings; } + /** Returns the endpoint 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 TenantServiceStubSettings build() throws IOException { return new TenantServiceStubSettings(this); diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java index c1c9b9cd47eb..4393163641f6 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java @@ -68,73 +68,75 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListQueues

ListQueues

Lists queues. *

Queues are returned in lexicographical order.

*

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

*
    - *
  • listQueues(ListQueuesRequest request) + *
  • listQueues(ListQueuesRequest request) *

*

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

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

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

*
    - *
  • listQueuesPagedCallable() - *
  • listQueuesCallable() + *
  • listQueuesPagedCallable() + *

  • listQueuesCallable() *

*
GetQueue

GetQueue

Gets a queue.

*

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

*
    - *
  • getQueue(GetQueueRequest request) + *
  • getQueue(GetQueueRequest request) *

*

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

*
    - *
  • getQueue(QueueName name) - *
  • getQueue(String name) + *
  • getQueue(QueueName name) + *

  • getQueue(String name) *

*

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

*
    - *
  • getQueueCallable() + *
  • getQueueCallable() *

*
CreateQueue

CreateQueue

Creates a queue. *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. *

WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.

*

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

*
    - *
  • createQueue(CreateQueueRequest request) + *
  • createQueue(CreateQueueRequest request) *

*

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

*
    - *
  • createQueue(LocationName parent, Queue queue) - *
  • createQueue(String parent, Queue queue) + *
  • createQueue(LocationName parent, Queue queue) + *

  • createQueue(String parent, Queue queue) *

*

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

*
    - *
  • createQueueCallable() + *
  • createQueueCallable() *

*
UpdateQueue

UpdateQueue

Updates a queue. *

This method creates the queue if it does not exist and updates the queue if it does exist. *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. @@ -142,20 +144,20 @@ *

*

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

*
    - *
  • updateQueue(UpdateQueueRequest request) + *
  • updateQueue(UpdateQueueRequest request) *

*

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

*
    - *
  • updateQueue(Queue queue, FieldMask updateMask) + *
  • updateQueue(Queue queue, 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.

*
    - *
  • updateQueueCallable() + *
  • updateQueueCallable() *

*
DeleteQueue

DeleteQueue

Deletes a queue. *

This command will delete the queue even if it has tasks in it. *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. @@ -163,83 +165,83 @@ *

*

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

*
    - *
  • deleteQueue(DeleteQueueRequest request) + *
  • deleteQueue(DeleteQueueRequest request) *

*

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

*
    - *
  • deleteQueue(QueueName name) - *
  • deleteQueue(String name) + *
  • deleteQueue(QueueName name) + *

  • deleteQueue(String name) *

*

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

*
    - *
  • deleteQueueCallable() + *
  • deleteQueueCallable() *

*
PurgeQueue

PurgeQueue

Purges a queue by deleting all of its tasks. *

All tasks created before this method is called are permanently deleted. *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible.

*

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

*
    - *
  • purgeQueue(PurgeQueueRequest request) + *
  • purgeQueue(PurgeQueueRequest request) *

*

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

*
    - *
  • purgeQueue(QueueName name) - *
  • purgeQueue(String name) + *
  • purgeQueue(QueueName name) + *

  • purgeQueue(String name) *

*

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

*
    - *
  • purgeQueueCallable() + *
  • purgeQueueCallable() *

*
PauseQueue

PauseQueue

Pauses the queue. *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed via [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added when the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2.Queue.state] is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED].

*

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

*
    - *
  • pauseQueue(PauseQueueRequest request) + *
  • pauseQueue(PauseQueueRequest request) *

*

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

*
    - *
  • pauseQueue(QueueName name) - *
  • pauseQueue(String name) + *
  • pauseQueue(QueueName name) + *

  • pauseQueue(String name) *

*

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

*
    - *
  • pauseQueueCallable() + *
  • pauseQueueCallable() *

*
ResumeQueue

ResumeQueue

Resume a queue. *

This method resumes a queue after it has been [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored in the queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it will be set to [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING]. *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).

*

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

*
    - *
  • resumeQueue(ResumeQueueRequest request) + *
  • resumeQueue(ResumeQueueRequest request) *

*

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

*
    - *
  • resumeQueue(QueueName name) - *
  • resumeQueue(String name) + *
  • resumeQueue(QueueName name) + *

  • resumeQueue(String name) *

*

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

*
    - *
  • resumeQueueCallable() + *
  • resumeQueueCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Returns an empty policy if the resource exists and does not have a policy set. *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: *

    @@ -248,21 +250,21 @@ *
*

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 access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any existing policy. *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level permissions are required to use the Cloud Console. *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: @@ -272,82 +274,82 @@ *

*

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

Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. If the resource does not exist, this will return an empty set of permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. *

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. 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) *

*

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

*
ListTasks

ListTasks

Lists the tasks in a queue. *

By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved due to performance considerations; [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the subset of information which is returned. *

The tasks may be returned in any order. The ordering may change at any time.

*

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

*
    - *
  • listTasks(ListTasksRequest request) + *
  • listTasks(ListTasksRequest request) *

*

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

*
    - *
  • listTasks(QueueName parent) - *
  • listTasks(String parent) + *
  • listTasks(QueueName parent) + *

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

*
    - *
  • listTasksPagedCallable() - *
  • listTasksCallable() + *
  • listTasksPagedCallable() + *

  • listTasksCallable() *

*
GetTask

GetTask

Gets a task.

*

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

*
    - *
  • getTask(GetTaskRequest request) + *
  • getTask(GetTaskRequest request) *

*

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

*
    - *
  • getTask(TaskName name) - *
  • getTask(String name) + *
  • getTask(TaskName name) + *

  • getTask(String name) *

*

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

*
    - *
  • getTaskCallable() + *
  • getTaskCallable() *

*
CreateTask

CreateTask

Creates a task and adds it to a queue. *

Tasks cannot be updated after creation; there is no UpdateTask command. *

    @@ -356,41 +358,41 @@ *
*

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

*
    - *
  • createTask(CreateTaskRequest request) + *
  • createTask(CreateTaskRequest request) *

*

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

*
    - *
  • createTask(QueueName parent, Task task) - *
  • createTask(String parent, Task task) + *
  • createTask(QueueName parent, Task task) + *

  • createTask(String parent, Task task) *

*

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

*
    - *
  • createTaskCallable() + *
  • createTaskCallable() *

*
DeleteTask

DeleteTask

Deletes a task. *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has executed successfully or permanently failed.

*

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

*
    - *
  • deleteTask(DeleteTaskRequest request) + *
  • deleteTask(DeleteTaskRequest request) *

*

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

*
    - *
  • deleteTask(TaskName name) - *
  • deleteTask(String name) + *
  • deleteTask(TaskName name) + *

  • deleteTask(String name) *

*

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

*
    - *
  • deleteTaskCallable() + *
  • deleteTaskCallable() *

*
RunTask

RunTask

Forces a task to run now. *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. *

This command is meant to be used for manual debugging. For example, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. @@ -400,49 +402,48 @@ *

*

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

*
    - *
  • runTask(RunTaskRequest request) + *
  • runTask(RunTaskRequest request) *

*

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

*
    - *
  • runTask(TaskName name) - *
  • runTask(String name) + *
  • runTask(TaskName name) + *

  • runTask(String name) *

*

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

*
    - *
  • runTaskCallable() + *
  • runTaskCallable() *

*
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-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java index b0e31a4526e2..78aa561ae2ac 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java @@ -416,6 +416,15 @@ public CloudTasksStub 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() { @@ -705,7 +714,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); @@ -718,7 +726,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); @@ -929,6 +936,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 CloudTasksStubSettings build() throws IOException { return new CloudTasksStubSettings(this); diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java index 166bd99af9f1..831f006814a7 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java @@ -71,73 +71,75 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListQueues

ListQueues

Lists queues. *

Queues are returned in lexicographical order.

*

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

*
    - *
  • listQueues(ListQueuesRequest request) + *
  • listQueues(ListQueuesRequest request) *

*

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

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

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

*
    - *
  • listQueuesPagedCallable() - *
  • listQueuesCallable() + *
  • listQueuesPagedCallable() + *

  • listQueuesCallable() *

*
GetQueue

GetQueue

Gets a queue.

*

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

*
    - *
  • getQueue(GetQueueRequest request) + *
  • getQueue(GetQueueRequest request) *

*

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

*
    - *
  • getQueue(QueueName name) - *
  • getQueue(String name) + *
  • getQueue(QueueName name) + *

  • getQueue(String name) *

*

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

*
    - *
  • getQueueCallable() + *
  • getQueueCallable() *

*
CreateQueue

CreateQueue

Creates a queue. *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. *

WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.

*

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

*
    - *
  • createQueue(CreateQueueRequest request) + *
  • createQueue(CreateQueueRequest request) *

*

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

*
    - *
  • createQueue(LocationName parent, Queue queue) - *
  • createQueue(String parent, Queue queue) + *
  • createQueue(LocationName parent, Queue queue) + *

  • createQueue(String parent, Queue queue) *

*

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

*
    - *
  • createQueueCallable() + *
  • createQueueCallable() *

*
UpdateQueue

UpdateQueue

Updates a queue. *

This method creates the queue if it does not exist and updates the queue if it does exist. *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. @@ -145,20 +147,20 @@ *

*

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

*
    - *
  • updateQueue(UpdateQueueRequest request) + *
  • updateQueue(UpdateQueueRequest request) *

*

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

*
    - *
  • updateQueue(Queue queue, FieldMask updateMask) + *
  • updateQueue(Queue queue, 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.

*
    - *
  • updateQueueCallable() + *
  • updateQueueCallable() *

*
DeleteQueue

DeleteQueue

Deletes a queue. *

This command will delete the queue even if it has tasks in it. *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. @@ -166,98 +168,98 @@ *

*

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

*
    - *
  • deleteQueue(DeleteQueueRequest request) + *
  • deleteQueue(DeleteQueueRequest request) *

*

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

*
    - *
  • deleteQueue(QueueName name) - *
  • deleteQueue(String name) + *
  • deleteQueue(QueueName name) + *

  • deleteQueue(String name) *

*

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

*
    - *
  • deleteQueueCallable() + *
  • deleteQueueCallable() *

*
PurgeQueue

PurgeQueue

Purges a queue by deleting all of its tasks. *

All tasks created before this method is called are permanently deleted. *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible.

*

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

*
    - *
  • purgeQueue(PurgeQueueRequest request) + *
  • purgeQueue(PurgeQueueRequest request) *

*

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

*
    - *
  • purgeQueue(QueueName name) - *
  • purgeQueue(String name) + *
  • purgeQueue(QueueName name) + *

  • purgeQueue(String name) *

*

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

*
    - *
  • purgeQueueCallable() + *
  • purgeQueueCallable() *

*
PauseQueue

PauseQueue

Pauses the queue. *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed via [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added when the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2beta2.Queue.state] is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].

*

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

*
    - *
  • pauseQueue(PauseQueueRequest request) + *
  • pauseQueue(PauseQueueRequest request) *

*

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

*
    - *
  • pauseQueue(QueueName name) - *
  • pauseQueue(String name) + *
  • pauseQueue(QueueName name) + *

  • pauseQueue(String name) *

*

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

*
    - *
  • pauseQueueCallable() + *
  • pauseQueueCallable() *

*
ResumeQueue

ResumeQueue

Resume a queue. *

This method resumes a queue after it has been [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored in the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it will be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING]. *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).

*

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

*
    - *
  • resumeQueue(ResumeQueueRequest request) + *
  • resumeQueue(ResumeQueueRequest request) *

*

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

*
    - *
  • resumeQueue(QueueName name) - *
  • resumeQueue(String name) + *
  • resumeQueue(QueueName name) + *

  • resumeQueue(String name) *

*

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

*
    - *
  • resumeQueueCallable() + *
  • resumeQueueCallable() *

*
UploadQueueYaml

UploadQueueYaml

Update queue list by uploading a queue.yaml file. *

The queue.yaml file is supplied in the request body as a YAML encoded string. This method was added to support gcloud clients versions before 322.0.0. New clients should use CreateQueue instead of this method.

*

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

*
    - *
  • uploadQueueYaml(UploadQueueYamlRequest request) + *
  • uploadQueueYaml(UploadQueueYamlRequest request) *

*

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

*
    - *
  • uploadQueueYamlCallable() + *
  • uploadQueueYamlCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Returns an empty policy if the resource exists and does not have a policy set. *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: *

    @@ -266,21 +268,21 @@ *
*

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 access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing policy. *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level permissions are required to use the Cloud Console. *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: @@ -290,82 +292,82 @@ *

*

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

Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue]. If the resource does not exist, this will return an empty set of permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. *

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. 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) *

*

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

*
ListTasks

ListTasks

Lists the tasks in a queue. *

By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved due to performance considerations; [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the subset of information which is returned. *

The tasks may be returned in any order. The ordering may change at any time.

*

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

*
    - *
  • listTasks(ListTasksRequest request) + *
  • listTasks(ListTasksRequest request) *

*

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

*
    - *
  • listTasks(QueueName parent) - *
  • listTasks(String parent) + *
  • listTasks(QueueName parent) + *

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

*
    - *
  • listTasksPagedCallable() - *
  • listTasksCallable() + *
  • listTasksPagedCallable() + *

  • listTasksCallable() *

*
GetTask

GetTask

Gets a task.

*

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

*
    - *
  • getTask(GetTaskRequest request) + *
  • getTask(GetTaskRequest request) *

*

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

*
    - *
  • getTask(TaskName name) - *
  • getTask(String name) + *
  • getTask(TaskName name) + *

  • getTask(String name) *

*

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

*
    - *
  • getTaskCallable() + *
  • getTaskCallable() *

*
CreateTask

CreateTask

Creates a task and adds it to a queue. *

Tasks cannot be updated after creation; there is no UpdateTask command. *

    @@ -375,41 +377,41 @@ *
*

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

*
    - *
  • createTask(CreateTaskRequest request) + *
  • createTask(CreateTaskRequest request) *

*

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

*
    - *
  • createTask(QueueName parent, Task task) - *
  • createTask(String parent, Task task) + *
  • createTask(QueueName parent, Task task) + *

  • createTask(String parent, Task task) *

*

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

*
    - *
  • createTaskCallable() + *
  • createTaskCallable() *

*
DeleteTask

DeleteTask

Deletes a task. *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has completed successfully or permanently failed.

*

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

*
    - *
  • deleteTask(DeleteTaskRequest request) + *
  • deleteTask(DeleteTaskRequest request) *

*

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

*
    - *
  • deleteTask(TaskName name) - *
  • deleteTask(String name) + *
  • deleteTask(TaskName name) + *

  • deleteTask(String name) *

*

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

*
    - *
  • deleteTaskCallable() + *
  • deleteTaskCallable() *

*
LeaseTasks

LeaseTasks

Leases tasks from a pull queue for [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]. *

This method is invoked by the worker to obtain a lease. The worker must acknowledge the task via [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have performed the work associated with the task. *

The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that the worker needs to perform the work associated with the task. To return the payloads in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]. @@ -417,82 +419,82 @@ *

*

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

*
    - *
  • leaseTasks(LeaseTasksRequest request) + *
  • leaseTasks(LeaseTasksRequest request) *

*

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

*
    - *
  • leaseTasks(QueueName parent, Duration leaseDuration) - *
  • leaseTasks(String parent, Duration leaseDuration) + *
  • leaseTasks(QueueName parent, Duration leaseDuration) + *

  • leaseTasks(String parent, Duration leaseDuration) *

*

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

*
    - *
  • leaseTasksCallable() + *
  • leaseTasksCallable() *

*
AcknowledgeTask

AcknowledgeTask

Acknowledges a pull task. *

The worker, that is, the entity that [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method to indicate that the work associated with the task has finished. *

The worker must acknowledge a task within the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease will expire and the task will become available to be leased again. After the task is acknowledged, it will not be returned by a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks], [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].

*

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

*
    - *
  • acknowledgeTask(AcknowledgeTaskRequest request) + *
  • acknowledgeTask(AcknowledgeTaskRequest request) *

*

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

*
    - *
  • acknowledgeTask(TaskName name, Timestamp scheduleTime) - *
  • acknowledgeTask(String name, Timestamp scheduleTime) + *
  • acknowledgeTask(TaskName name, Timestamp scheduleTime) + *

  • acknowledgeTask(String name, Timestamp scheduleTime) *

*

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

*
    - *
  • acknowledgeTaskCallable() + *
  • acknowledgeTaskCallable() *

*
RenewLease

RenewLease

Renew the current lease of a pull task. *

The worker can use this method to extend the lease by a new duration, starting from now. The new task lease will be returned in the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].

*

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

*
    - *
  • renewLease(RenewLeaseRequest request) + *
  • renewLease(RenewLeaseRequest request) *

*

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

*
    - *
  • renewLease(TaskName name, Timestamp scheduleTime, Duration leaseDuration) - *
  • renewLease(String name, Timestamp scheduleTime, Duration leaseDuration) + *
  • renewLease(TaskName name, Timestamp scheduleTime, Duration leaseDuration) + *

  • renewLease(String name, Timestamp scheduleTime, Duration leaseDuration) *

*

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

*
    - *
  • renewLeaseCallable() + *
  • renewLeaseCallable() *

*
CancelLease

CancelLease

Cancel a pull task's lease. *

The worker can use this method to cancel a task's lease by setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will make the task available to be leased to the next caller of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].

*

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

*
    - *
  • cancelLease(CancelLeaseRequest request) + *
  • cancelLease(CancelLeaseRequest request) *

*

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

*
    - *
  • cancelLease(TaskName name, Timestamp scheduleTime) - *
  • cancelLease(String name, Timestamp scheduleTime) + *
  • cancelLease(TaskName name, Timestamp scheduleTime) + *

  • cancelLease(String name, Timestamp scheduleTime) *

*

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

*
    - *
  • cancelLeaseCallable() + *
  • cancelLeaseCallable() *

*
RunTask

RunTask

Forces a task to run now. *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. *

This command is meant to be used for manual debugging. For example, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. @@ -503,49 +505,48 @@ *

*

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

*
    - *
  • runTask(RunTaskRequest request) + *
  • runTask(RunTaskRequest request) *

*

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

*
    - *
  • runTask(TaskName name) - *
  • runTask(String name) + *
  • runTask(TaskName name) + *

  • runTask(String name) *

*

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

*
    - *
  • runTaskCallable() + *
  • runTaskCallable() *

*
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-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java index 461441c010a5..30cfd57fab79 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java @@ -453,6 +453,15 @@ public CloudTasksStub 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() { @@ -773,7 +782,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); @@ -786,7 +794,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); @@ -1047,6 +1054,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 CloudTasksStubSettings build() throws IOException { return new CloudTasksStubSettings(this); diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java index dfdb563c5e8f..343b3b85f58c 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java @@ -69,73 +69,75 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListQueues

ListQueues

Lists queues. *

Queues are returned in lexicographical order.

*

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

*
    - *
  • listQueues(ListQueuesRequest request) + *
  • listQueues(ListQueuesRequest request) *

*

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

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

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

*
    - *
  • listQueuesPagedCallable() - *
  • listQueuesCallable() + *
  • listQueuesPagedCallable() + *

  • listQueuesCallable() *

*
GetQueue

GetQueue

Gets a queue.

*

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

*
    - *
  • getQueue(GetQueueRequest request) + *
  • getQueue(GetQueueRequest request) *

*

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

*
    - *
  • getQueue(QueueName name) - *
  • getQueue(String name) + *
  • getQueue(QueueName name) + *

  • getQueue(String name) *

*

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

*
    - *
  • getQueueCallable() + *
  • getQueueCallable() *

*
CreateQueue

CreateQueue

Creates a queue. *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. *

WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.

*

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

*
    - *
  • createQueue(CreateQueueRequest request) + *
  • createQueue(CreateQueueRequest request) *

*

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

*
    - *
  • createQueue(LocationName parent, Queue queue) - *
  • createQueue(String parent, Queue queue) + *
  • createQueue(LocationName parent, Queue queue) + *

  • createQueue(String parent, Queue queue) *

*

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

*
    - *
  • createQueueCallable() + *
  • createQueueCallable() *

*
UpdateQueue

UpdateQueue

Updates a queue. *

This method creates the queue if it does not exist and updates the queue if it does exist. *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. @@ -143,20 +145,20 @@ *

*

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

*
    - *
  • updateQueue(UpdateQueueRequest request) + *
  • updateQueue(UpdateQueueRequest request) *

*

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

*
    - *
  • updateQueue(Queue queue, FieldMask updateMask) + *
  • updateQueue(Queue queue, 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.

*
    - *
  • updateQueueCallable() + *
  • updateQueueCallable() *

*
DeleteQueue

DeleteQueue

Deletes a queue. *

This command will delete the queue even if it has tasks in it. *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. @@ -164,83 +166,83 @@ *

*

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

*
    - *
  • deleteQueue(DeleteQueueRequest request) + *
  • deleteQueue(DeleteQueueRequest request) *

*

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

*
    - *
  • deleteQueue(QueueName name) - *
  • deleteQueue(String name) + *
  • deleteQueue(QueueName name) + *

  • deleteQueue(String name) *

*

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

*
    - *
  • deleteQueueCallable() + *
  • deleteQueueCallable() *

*
PurgeQueue

PurgeQueue

Purges a queue by deleting all of its tasks. *

All tasks created before this method is called are permanently deleted. *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible.

*

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

*
    - *
  • purgeQueue(PurgeQueueRequest request) + *
  • purgeQueue(PurgeQueueRequest request) *

*

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

*
    - *
  • purgeQueue(QueueName name) - *
  • purgeQueue(String name) + *
  • purgeQueue(QueueName name) + *

  • purgeQueue(String name) *

*

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

*
    - *
  • purgeQueueCallable() + *
  • purgeQueueCallable() *

*
PauseQueue

PauseQueue

Pauses the queue. *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed via [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added when the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2beta3.Queue.state] is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].

*

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

*
    - *
  • pauseQueue(PauseQueueRequest request) + *
  • pauseQueue(PauseQueueRequest request) *

*

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

*
    - *
  • pauseQueue(QueueName name) - *
  • pauseQueue(String name) + *
  • pauseQueue(QueueName name) + *

  • pauseQueue(String name) *

*

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

*
    - *
  • pauseQueueCallable() + *
  • pauseQueueCallable() *

*
ResumeQueue

ResumeQueue

Resume a queue. *

This method resumes a queue after it has been [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored in the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it will be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING]. *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).

*

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

*
    - *
  • resumeQueue(ResumeQueueRequest request) + *
  • resumeQueue(ResumeQueueRequest request) *

*

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

*
    - *
  • resumeQueue(QueueName name) - *
  • resumeQueue(String name) + *
  • resumeQueue(QueueName name) + *

  • resumeQueue(String name) *

*

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

*
    - *
  • resumeQueueCallable() + *
  • resumeQueueCallable() *

*
GetIamPolicy

GetIamPolicy

Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Returns an empty policy if the resource exists and does not have a policy set. *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: *

    @@ -249,21 +251,21 @@ *
*

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 access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing policy. *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level permissions are required to use the Cloud Console. *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: @@ -273,82 +275,82 @@ *

*

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

Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue]. If the resource does not exist, this will return an empty set of permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. *

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. 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) *

*

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

*
ListTasks

ListTasks

Lists the tasks in a queue. *

By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved due to performance considerations; [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the subset of information which is returned. *

The tasks may be returned in any order. The ordering may change at any time.

*

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

*
    - *
  • listTasks(ListTasksRequest request) + *
  • listTasks(ListTasksRequest request) *

*

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

*
    - *
  • listTasks(QueueName parent) - *
  • listTasks(String parent) + *
  • listTasks(QueueName parent) + *

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

*
    - *
  • listTasksPagedCallable() - *
  • listTasksCallable() + *
  • listTasksPagedCallable() + *

  • listTasksCallable() *

*
GetTask

GetTask

Gets a task.

*

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

*
    - *
  • getTask(GetTaskRequest request) + *
  • getTask(GetTaskRequest request) *

*

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

*
    - *
  • getTask(TaskName name) - *
  • getTask(String name) + *
  • getTask(TaskName name) + *

  • getTask(String name) *

*

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

*
    - *
  • getTaskCallable() + *
  • getTaskCallable() *

*
CreateTask

CreateTask

Creates a task and adds it to a queue. *

Tasks cannot be updated after creation; there is no UpdateTask command. *

    @@ -357,41 +359,41 @@ *
*

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

*
    - *
  • createTask(CreateTaskRequest request) + *
  • createTask(CreateTaskRequest request) *

*

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

*
    - *
  • createTask(QueueName parent, Task task) - *
  • createTask(String parent, Task task) + *
  • createTask(QueueName parent, Task task) + *

  • createTask(String parent, Task task) *

*

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

*
    - *
  • createTaskCallable() + *
  • createTaskCallable() *

*
DeleteTask

DeleteTask

Deletes a task. *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has executed successfully or permanently failed.

*

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

*
    - *
  • deleteTask(DeleteTaskRequest request) + *
  • deleteTask(DeleteTaskRequest request) *

*

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

*
    - *
  • deleteTask(TaskName name) - *
  • deleteTask(String name) + *
  • deleteTask(TaskName name) + *

  • deleteTask(String name) *

*

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

*
    - *
  • deleteTaskCallable() + *
  • deleteTaskCallable() *

*
RunTask

RunTask

Forces a task to run now. *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. *

This command is meant to be used for manual debugging. For example, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. @@ -401,49 +403,48 @@ *

*

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

*
    - *
  • runTask(RunTaskRequest request) + *
  • runTask(RunTaskRequest request) *

*

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

*
    - *
  • runTask(TaskName name) - *
  • runTask(String name) + *
  • runTask(TaskName name) + *

  • runTask(String name) *

*

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

*
    - *
  • runTaskCallable() + *
  • runTaskCallable() *

*
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-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java index ac18526f8e92..3d1def50951c 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java @@ -417,6 +417,15 @@ public CloudTasksStub 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() { @@ -706,7 +715,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); @@ -719,7 +727,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); @@ -930,6 +937,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 CloudTasksStubSettings build() throws IOException { return new CloudTasksStubSettings(this); diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md index a290d06b73cf..e83b18e63359 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/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-telcoautomation/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-telcoautomation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.3.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-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClient.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClient.java index 446dec4484da..d0c6a2ef9467 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClient.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClient.java @@ -71,735 +71,736 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListOrchestrationClusters

ListOrchestrationClusters

Lists OrchestrationClusters in a given project and location.

*

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

*
    - *
  • listOrchestrationClusters(ListOrchestrationClustersRequest request) + *
  • listOrchestrationClusters(ListOrchestrationClustersRequest request) *

*

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

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

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

*
    - *
  • listOrchestrationClustersPagedCallable() - *
  • listOrchestrationClustersCallable() + *
  • listOrchestrationClustersPagedCallable() + *

  • listOrchestrationClustersCallable() *

*
GetOrchestrationCluster

GetOrchestrationCluster

Gets details of a single OrchestrationCluster.

*

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

*
    - *
  • getOrchestrationCluster(GetOrchestrationClusterRequest request) + *
  • getOrchestrationCluster(GetOrchestrationClusterRequest request) *

*

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

*
    - *
  • getOrchestrationCluster(OrchestrationClusterName name) - *
  • getOrchestrationCluster(String name) + *
  • getOrchestrationCluster(OrchestrationClusterName name) + *

  • getOrchestrationCluster(String name) *

*

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

*
    - *
  • getOrchestrationClusterCallable() + *
  • getOrchestrationClusterCallable() *

*
CreateOrchestrationCluster

CreateOrchestrationCluster

Creates a new OrchestrationCluster in a given project and location.

*

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

*
    - *
  • createOrchestrationClusterAsync(CreateOrchestrationClusterRequest request) + *
  • createOrchestrationClusterAsync(CreateOrchestrationClusterRequest request) *

*

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

*
    - *
  • createOrchestrationClusterAsync(LocationName parent, OrchestrationCluster orchestrationCluster, String orchestrationClusterId) - *
  • createOrchestrationClusterAsync(String parent, OrchestrationCluster orchestrationCluster, String orchestrationClusterId) + *
  • createOrchestrationClusterAsync(LocationName parent, OrchestrationCluster orchestrationCluster, String orchestrationClusterId) + *

  • createOrchestrationClusterAsync(String parent, OrchestrationCluster orchestrationCluster, String orchestrationClusterId) *

*

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

*
    - *
  • createOrchestrationClusterOperationCallable() - *
  • createOrchestrationClusterCallable() + *
  • createOrchestrationClusterOperationCallable() + *

  • createOrchestrationClusterCallable() *

*
DeleteOrchestrationCluster

DeleteOrchestrationCluster

Deletes a single OrchestrationCluster.

*

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

*
    - *
  • deleteOrchestrationClusterAsync(DeleteOrchestrationClusterRequest request) + *
  • deleteOrchestrationClusterAsync(DeleteOrchestrationClusterRequest request) *

*

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

*
    - *
  • deleteOrchestrationClusterAsync(OrchestrationClusterName name) - *
  • deleteOrchestrationClusterAsync(String name) + *
  • deleteOrchestrationClusterAsync(OrchestrationClusterName name) + *

  • deleteOrchestrationClusterAsync(String name) *

*

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

*
    - *
  • deleteOrchestrationClusterOperationCallable() - *
  • deleteOrchestrationClusterCallable() + *
  • deleteOrchestrationClusterOperationCallable() + *

  • deleteOrchestrationClusterCallable() *

*
ListEdgeSlms

ListEdgeSlms

Lists EdgeSlms in a given project and location.

*

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

*
    - *
  • listEdgeSlms(ListEdgeSlmsRequest request) + *
  • listEdgeSlms(ListEdgeSlmsRequest request) *

*

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

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

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

*
    - *
  • listEdgeSlmsPagedCallable() - *
  • listEdgeSlmsCallable() + *
  • listEdgeSlmsPagedCallable() + *

  • listEdgeSlmsCallable() *

*
GetEdgeSlm

GetEdgeSlm

Gets details of a single EdgeSlm.

*

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

*
    - *
  • getEdgeSlm(GetEdgeSlmRequest request) + *
  • getEdgeSlm(GetEdgeSlmRequest request) *

*

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

*
    - *
  • getEdgeSlm(EdgeSlmName name) - *
  • getEdgeSlm(String name) + *
  • getEdgeSlm(EdgeSlmName name) + *

  • getEdgeSlm(String name) *

*

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

*
    - *
  • getEdgeSlmCallable() + *
  • getEdgeSlmCallable() *

*
CreateEdgeSlm

CreateEdgeSlm

Creates a new EdgeSlm in a given project and location.

*

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

*
    - *
  • createEdgeSlmAsync(CreateEdgeSlmRequest request) + *
  • createEdgeSlmAsync(CreateEdgeSlmRequest request) *

*

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

*
    - *
  • createEdgeSlmAsync(LocationName parent, EdgeSlm edgeSlm, String edgeSlmId) - *
  • createEdgeSlmAsync(String parent, EdgeSlm edgeSlm, String edgeSlmId) + *
  • createEdgeSlmAsync(LocationName parent, EdgeSlm edgeSlm, String edgeSlmId) + *

  • createEdgeSlmAsync(String parent, EdgeSlm edgeSlm, String edgeSlmId) *

*

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

*
    - *
  • createEdgeSlmOperationCallable() - *
  • createEdgeSlmCallable() + *
  • createEdgeSlmOperationCallable() + *

  • createEdgeSlmCallable() *

*
DeleteEdgeSlm

DeleteEdgeSlm

Deletes a single EdgeSlm.

*

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

*
    - *
  • deleteEdgeSlmAsync(DeleteEdgeSlmRequest request) + *
  • deleteEdgeSlmAsync(DeleteEdgeSlmRequest request) *

*

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

*
    - *
  • deleteEdgeSlmAsync(EdgeSlmName name) - *
  • deleteEdgeSlmAsync(String name) + *
  • deleteEdgeSlmAsync(EdgeSlmName name) + *

  • deleteEdgeSlmAsync(String name) *

*

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

*
    - *
  • deleteEdgeSlmOperationCallable() - *
  • deleteEdgeSlmCallable() + *
  • deleteEdgeSlmOperationCallable() + *

  • deleteEdgeSlmCallable() *

*
CreateBlueprint

CreateBlueprint

Creates a blueprint.

*

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

*
    - *
  • createBlueprint(CreateBlueprintRequest request) + *
  • createBlueprint(CreateBlueprintRequest request) *

*

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

*
    - *
  • createBlueprint(OrchestrationClusterName parent, Blueprint blueprint, String blueprintId) - *
  • createBlueprint(String parent, Blueprint blueprint, String blueprintId) + *
  • createBlueprint(OrchestrationClusterName parent, Blueprint blueprint, String blueprintId) + *

  • createBlueprint(String parent, Blueprint blueprint, String blueprintId) *

*

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

*
    - *
  • createBlueprintCallable() + *
  • createBlueprintCallable() *

*
UpdateBlueprint

UpdateBlueprint

Updates a blueprint.

*

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

*
    - *
  • updateBlueprint(UpdateBlueprintRequest request) + *
  • updateBlueprint(UpdateBlueprintRequest request) *

*

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

*
    - *
  • updateBlueprint(Blueprint blueprint, FieldMask updateMask) + *
  • updateBlueprint(Blueprint blueprint, 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.

*
    - *
  • updateBlueprintCallable() + *
  • updateBlueprintCallable() *

*
GetBlueprint

GetBlueprint

Returns the requested blueprint.

*

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

*
    - *
  • getBlueprint(GetBlueprintRequest request) + *
  • getBlueprint(GetBlueprintRequest request) *

*

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

*
    - *
  • getBlueprint(BlueprintName name) - *
  • getBlueprint(String name) + *
  • getBlueprint(BlueprintName name) + *

  • getBlueprint(String name) *

*

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

*
    - *
  • getBlueprintCallable() + *
  • getBlueprintCallable() *

*
DeleteBlueprint

DeleteBlueprint

Deletes a blueprint and all its revisions.

*

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

*
    - *
  • deleteBlueprint(DeleteBlueprintRequest request) + *
  • deleteBlueprint(DeleteBlueprintRequest request) *

*

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

*
    - *
  • deleteBlueprint(BlueprintName name) - *
  • deleteBlueprint(String name) + *
  • deleteBlueprint(BlueprintName name) + *

  • deleteBlueprint(String name) *

*

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

*
    - *
  • deleteBlueprintCallable() + *
  • deleteBlueprintCallable() *

*
ListBlueprints

ListBlueprints

List all blueprints.

*

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

*
    - *
  • listBlueprints(ListBlueprintsRequest request) + *
  • listBlueprints(ListBlueprintsRequest request) *

*

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

*
    - *
  • listBlueprints(OrchestrationClusterName parent) - *
  • listBlueprints(String parent) + *
  • listBlueprints(OrchestrationClusterName parent) + *

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

*
    - *
  • listBlueprintsPagedCallable() - *
  • listBlueprintsCallable() + *
  • listBlueprintsPagedCallable() + *

  • listBlueprintsCallable() *

*
ApproveBlueprint

ApproveBlueprint

Approves a blueprint and commits a new revision.

*

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

*
    - *
  • approveBlueprint(ApproveBlueprintRequest request) + *
  • approveBlueprint(ApproveBlueprintRequest request) *

*

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

*
    - *
  • approveBlueprint(BlueprintName name) - *
  • approveBlueprint(String name) + *
  • approveBlueprint(BlueprintName name) + *

  • approveBlueprint(String name) *

*

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

*
    - *
  • approveBlueprintCallable() + *
  • approveBlueprintCallable() *

*
ProposeBlueprint

ProposeBlueprint

Proposes a blueprint for approval of changes.

*

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

*
    - *
  • proposeBlueprint(ProposeBlueprintRequest request) + *
  • proposeBlueprint(ProposeBlueprintRequest request) *

*

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

*
    - *
  • proposeBlueprint(BlueprintName name) - *
  • proposeBlueprint(String name) + *
  • proposeBlueprint(BlueprintName name) + *

  • proposeBlueprint(String name) *

*

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

*
    - *
  • proposeBlueprintCallable() + *
  • proposeBlueprintCallable() *

*
RejectBlueprint

RejectBlueprint

Rejects a blueprint revision proposal and flips it back to Draft state.

*

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

*
    - *
  • rejectBlueprint(RejectBlueprintRequest request) + *
  • rejectBlueprint(RejectBlueprintRequest request) *

*

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

*
    - *
  • rejectBlueprint(BlueprintName name) - *
  • rejectBlueprint(String name) + *
  • rejectBlueprint(BlueprintName name) + *

  • rejectBlueprint(String name) *

*

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

*
    - *
  • rejectBlueprintCallable() + *
  • rejectBlueprintCallable() *

*
ListBlueprintRevisions

ListBlueprintRevisions

List blueprint revisions of a given blueprint.

*

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

*
    - *
  • listBlueprintRevisions(ListBlueprintRevisionsRequest request) + *
  • listBlueprintRevisions(ListBlueprintRevisionsRequest request) *

*

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

*
    - *
  • listBlueprintRevisions(BlueprintName name) - *
  • listBlueprintRevisions(String name) + *
  • listBlueprintRevisions(BlueprintName name) + *

  • listBlueprintRevisions(String name) *

*

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

*
    - *
  • listBlueprintRevisionsPagedCallable() - *
  • listBlueprintRevisionsCallable() + *
  • listBlueprintRevisionsPagedCallable() + *

  • listBlueprintRevisionsCallable() *

*
SearchBlueprintRevisions

SearchBlueprintRevisions

Searches across blueprint revisions.

*

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

*
    - *
  • searchBlueprintRevisions(SearchBlueprintRevisionsRequest request) + *
  • searchBlueprintRevisions(SearchBlueprintRevisionsRequest request) *

*

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

*
    - *
  • searchBlueprintRevisions(OrchestrationClusterName parent, String query) - *
  • searchBlueprintRevisions(String parent, String query) + *
  • searchBlueprintRevisions(OrchestrationClusterName parent, String query) + *

  • searchBlueprintRevisions(String parent, String query) *

*

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

*
    - *
  • searchBlueprintRevisionsPagedCallable() - *
  • searchBlueprintRevisionsCallable() + *
  • searchBlueprintRevisionsPagedCallable() + *

  • searchBlueprintRevisionsCallable() *

*
SearchDeploymentRevisions

SearchDeploymentRevisions

Searches across deployment revisions.

*

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

*
    - *
  • searchDeploymentRevisions(SearchDeploymentRevisionsRequest request) + *
  • searchDeploymentRevisions(SearchDeploymentRevisionsRequest request) *

*

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

*
    - *
  • searchDeploymentRevisions(OrchestrationClusterName parent, String query) - *
  • searchDeploymentRevisions(String parent, String query) + *
  • searchDeploymentRevisions(OrchestrationClusterName parent, String query) + *

  • searchDeploymentRevisions(String parent, String query) *

*

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

*
    - *
  • searchDeploymentRevisionsPagedCallable() - *
  • searchDeploymentRevisionsCallable() + *
  • searchDeploymentRevisionsPagedCallable() + *

  • searchDeploymentRevisionsCallable() *

*
DiscardBlueprintChanges

DiscardBlueprintChanges

Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint revision. No changes take place if a blueprint does not have revisions.

*

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

*
    - *
  • discardBlueprintChanges(DiscardBlueprintChangesRequest request) + *
  • discardBlueprintChanges(DiscardBlueprintChangesRequest request) *

*

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

*
    - *
  • discardBlueprintChanges(BlueprintName name) - *
  • discardBlueprintChanges(String name) + *
  • discardBlueprintChanges(BlueprintName name) + *

  • discardBlueprintChanges(String name) *

*

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

*
    - *
  • discardBlueprintChangesCallable() + *
  • discardBlueprintChangesCallable() *

*
ListPublicBlueprints

ListPublicBlueprints

Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100.

*

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

*
    - *
  • listPublicBlueprints(ListPublicBlueprintsRequest request) + *
  • listPublicBlueprints(ListPublicBlueprintsRequest request) *

*

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

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

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

*
    - *
  • listPublicBlueprintsPagedCallable() - *
  • listPublicBlueprintsCallable() + *
  • listPublicBlueprintsPagedCallable() + *

  • listPublicBlueprintsCallable() *

*
GetPublicBlueprint

GetPublicBlueprint

Returns the requested public blueprint.

*

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

*
    - *
  • getPublicBlueprint(GetPublicBlueprintRequest request) + *
  • getPublicBlueprint(GetPublicBlueprintRequest request) *

*

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

*
    - *
  • getPublicBlueprint(PublicBlueprintName name) - *
  • getPublicBlueprint(String name) + *
  • getPublicBlueprint(PublicBlueprintName name) + *

  • getPublicBlueprint(String name) *

*

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

*
    - *
  • getPublicBlueprintCallable() + *
  • getPublicBlueprintCallable() *

*
CreateDeployment

CreateDeployment

Creates a deployment.

*

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(OrchestrationClusterName parent, Deployment deployment, String deploymentId) - *
  • createDeployment(String parent, Deployment deployment, String deploymentId) + *
  • createDeployment(OrchestrationClusterName 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() *

*
UpdateDeployment

UpdateDeployment

Updates a deployment.

*

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

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

*

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

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

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

*
GetDeployment

GetDeployment

Returns the requested 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() *

*
RemoveDeployment

RemoveDeployment

Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets deleted.

*

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

*
    - *
  • removeDeployment(RemoveDeploymentRequest request) + *
  • removeDeployment(RemoveDeploymentRequest request) *

*

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

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

  • removeDeployment(String name) *

*

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

*
    - *
  • removeDeploymentCallable() + *
  • removeDeploymentCallable() *

*
ListDeployments

ListDeployments

List all deployments.

*

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

*
ListDeploymentRevisions

ListDeploymentRevisions

List deployment revisions of a given deployment.

*

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

*
    - *
  • listDeploymentRevisions(ListDeploymentRevisionsRequest request) + *
  • listDeploymentRevisions(ListDeploymentRevisionsRequest request) *

*

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

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

  • listDeploymentRevisions(String name) *

*

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

*
    - *
  • listDeploymentRevisionsPagedCallable() - *
  • listDeploymentRevisionsCallable() + *
  • listDeploymentRevisionsPagedCallable() + *

  • listDeploymentRevisionsCallable() *

*
DiscardDeploymentChanges

DiscardDeploymentChanges

Discards the changes in a deployment and reverts the deployment to the last approved deployment revision. No changes take place if a deployment does not have revisions.

*

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

*
    - *
  • discardDeploymentChanges(DiscardDeploymentChangesRequest request) + *
  • discardDeploymentChanges(DiscardDeploymentChangesRequest request) *

*

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

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

  • discardDeploymentChanges(String name) *

*

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

*
    - *
  • discardDeploymentChangesCallable() + *
  • discardDeploymentChangesCallable() *

*
ApplyDeployment

ApplyDeployment

Applies the deployment's YAML files to the parent orchestration cluster.

*

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

*
    - *
  • applyDeployment(ApplyDeploymentRequest request) + *
  • applyDeployment(ApplyDeploymentRequest request) *

*

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

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

  • applyDeployment(String name) *

*

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

*
    - *
  • applyDeploymentCallable() + *
  • applyDeploymentCallable() *

*
ComputeDeploymentStatus

ComputeDeploymentStatus

Returns the requested deployment status.

*

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

*
    - *
  • computeDeploymentStatus(ComputeDeploymentStatusRequest request) + *
  • computeDeploymentStatus(ComputeDeploymentStatusRequest request) *

*

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

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

  • computeDeploymentStatus(String name) *

*

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

*
    - *
  • computeDeploymentStatusCallable() + *
  • computeDeploymentStatusCallable() *

*
RollbackDeployment

RollbackDeployment

Rollback the active deployment to the given past approved deployment revision.

*

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

*
    - *
  • rollbackDeployment(RollbackDeploymentRequest request) + *
  • rollbackDeployment(RollbackDeploymentRequest request) *

*

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

*
    - *
  • rollbackDeployment(DeploymentName name, String revisionId) - *
  • rollbackDeployment(String name, String revisionId) + *
  • rollbackDeployment(DeploymentName name, String revisionId) + *

  • rollbackDeployment(String name, String revisionId) *

*

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

*
    - *
  • rollbackDeploymentCallable() + *
  • rollbackDeploymentCallable() *

*
GetHydratedDeployment

GetHydratedDeployment

Returns the requested hydrated deployment.

*

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

*
    - *
  • getHydratedDeployment(GetHydratedDeploymentRequest request) + *
  • getHydratedDeployment(GetHydratedDeploymentRequest request) *

*

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

*
    - *
  • getHydratedDeployment(HydratedDeploymentName name) - *
  • getHydratedDeployment(String name) + *
  • getHydratedDeployment(HydratedDeploymentName name) + *

  • getHydratedDeployment(String name) *

*

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

*
    - *
  • getHydratedDeploymentCallable() + *
  • getHydratedDeploymentCallable() *

*
ListHydratedDeployments

ListHydratedDeployments

List all hydrated deployments present under a deployment.

*

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

*
    - *
  • listHydratedDeployments(ListHydratedDeploymentsRequest request) + *
  • listHydratedDeployments(ListHydratedDeploymentsRequest request) *

*

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

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

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

*
    - *
  • listHydratedDeploymentsPagedCallable() - *
  • listHydratedDeploymentsCallable() + *
  • listHydratedDeploymentsPagedCallable() + *

  • listHydratedDeploymentsCallable() *

*
UpdateHydratedDeployment

UpdateHydratedDeployment

Updates a hydrated deployment.

*

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

*
    - *
  • updateHydratedDeployment(UpdateHydratedDeploymentRequest request) + *
  • updateHydratedDeployment(UpdateHydratedDeploymentRequest request) *

*

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

*
    - *
  • updateHydratedDeployment(HydratedDeployment hydratedDeployment, FieldMask updateMask) + *
  • updateHydratedDeployment(HydratedDeployment hydratedDeployment, 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.

*
    - *
  • updateHydratedDeploymentCallable() + *
  • updateHydratedDeploymentCallable() *

*
ApplyHydratedDeployment

ApplyHydratedDeployment

Applies a hydrated deployment to a workload cluster.

*

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

*
    - *
  • applyHydratedDeployment(ApplyHydratedDeploymentRequest request) + *
  • applyHydratedDeployment(ApplyHydratedDeploymentRequest request) *

*

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

*
    - *
  • applyHydratedDeployment(HydratedDeploymentName name) - *
  • applyHydratedDeployment(String name) + *
  • applyHydratedDeployment(HydratedDeploymentName name) + *

  • applyHydratedDeployment(String name) *

*

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

*
    - *
  • applyHydratedDeploymentCallable() + *
  • applyHydratedDeploymentCallable() *

*
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-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java index 3544155a7596..6b6f85cfc92c 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java @@ -1244,6 +1244,15 @@ public TelcoAutomationStub 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() { @@ -1714,7 +1723,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); @@ -1727,7 +1735,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); @@ -2319,6 +2326,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 TelcoAutomationStubSettings build() throws IOException { return new TelcoAutomationStubSettings(this); diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClient.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClient.java index 56c05faf5b44..3e091f80db25 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClient.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClient.java @@ -71,782 +71,783 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListOrchestrationClusters

ListOrchestrationClusters

Lists OrchestrationClusters in a given project and location.

*

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

*
    - *
  • listOrchestrationClusters(ListOrchestrationClustersRequest request) + *
  • listOrchestrationClusters(ListOrchestrationClustersRequest request) *

*

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

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

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

*
    - *
  • listOrchestrationClustersPagedCallable() - *
  • listOrchestrationClustersCallable() + *
  • listOrchestrationClustersPagedCallable() + *

  • listOrchestrationClustersCallable() *

*
GetOrchestrationCluster

GetOrchestrationCluster

Gets details of a single OrchestrationCluster.

*

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

*
    - *
  • getOrchestrationCluster(GetOrchestrationClusterRequest request) + *
  • getOrchestrationCluster(GetOrchestrationClusterRequest request) *

*

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

*
    - *
  • getOrchestrationCluster(OrchestrationClusterName name) - *
  • getOrchestrationCluster(String name) + *
  • getOrchestrationCluster(OrchestrationClusterName name) + *

  • getOrchestrationCluster(String name) *

*

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

*
    - *
  • getOrchestrationClusterCallable() + *
  • getOrchestrationClusterCallable() *

*
CreateOrchestrationCluster

CreateOrchestrationCluster

Creates a new OrchestrationCluster in a given project and location.

*

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

*
    - *
  • createOrchestrationClusterAsync(CreateOrchestrationClusterRequest request) + *
  • createOrchestrationClusterAsync(CreateOrchestrationClusterRequest request) *

*

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

*
    - *
  • createOrchestrationClusterAsync(LocationName parent, OrchestrationCluster orchestrationCluster, String orchestrationClusterId) - *
  • createOrchestrationClusterAsync(String parent, OrchestrationCluster orchestrationCluster, String orchestrationClusterId) + *
  • createOrchestrationClusterAsync(LocationName parent, OrchestrationCluster orchestrationCluster, String orchestrationClusterId) + *

  • createOrchestrationClusterAsync(String parent, OrchestrationCluster orchestrationCluster, String orchestrationClusterId) *

*

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

*
    - *
  • createOrchestrationClusterOperationCallable() - *
  • createOrchestrationClusterCallable() + *
  • createOrchestrationClusterOperationCallable() + *

  • createOrchestrationClusterCallable() *

*
DeleteOrchestrationCluster

DeleteOrchestrationCluster

Deletes a single OrchestrationCluster.

*

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

*
    - *
  • deleteOrchestrationClusterAsync(DeleteOrchestrationClusterRequest request) + *
  • deleteOrchestrationClusterAsync(DeleteOrchestrationClusterRequest request) *

*

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

*
    - *
  • deleteOrchestrationClusterAsync(OrchestrationClusterName name) - *
  • deleteOrchestrationClusterAsync(String name) + *
  • deleteOrchestrationClusterAsync(OrchestrationClusterName name) + *

  • deleteOrchestrationClusterAsync(String name) *

*

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

*
    - *
  • deleteOrchestrationClusterOperationCallable() - *
  • deleteOrchestrationClusterCallable() + *
  • deleteOrchestrationClusterOperationCallable() + *

  • deleteOrchestrationClusterCallable() *

*
ListEdgeSlms

ListEdgeSlms

Lists EdgeSlms in a given project and location.

*

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

*
    - *
  • listEdgeSlms(ListEdgeSlmsRequest request) + *
  • listEdgeSlms(ListEdgeSlmsRequest request) *

*

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

*
    - *
  • listEdgeSlms(LocationName parent) - *
  • listEdgeSlms(String parent) + *
  • listEdgeSlms(LocationName parent) + *

  • listEdgeSlms(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.

*
    - *
  • listEdgeSlmsPagedCallable() - *
  • listEdgeSlmsCallable() + *
  • listEdgeSlmsPagedCallable() + *

  • listEdgeSlmsCallable() *

*
GetEdgeSlm

GetEdgeSlm

Gets details of a single EdgeSlm.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEdgeSlm(GetEdgeSlmRequest request) + *
  • getEdgeSlm(GetEdgeSlmRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getEdgeSlm(EdgeSlmName name) - *
  • getEdgeSlm(String name) + *
  • getEdgeSlm(EdgeSlmName name) + *

  • getEdgeSlm(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEdgeSlmCallable() + *
  • getEdgeSlmCallable() *

*
CreateEdgeSlm

CreateEdgeSlm

Creates a new EdgeSlm in a given project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createEdgeSlmAsync(CreateEdgeSlmRequest request) + *
  • createEdgeSlmAsync(CreateEdgeSlmRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createEdgeSlmAsync(LocationName parent, EdgeSlm edgeSlm, String edgeSlmId) - *
  • createEdgeSlmAsync(String parent, EdgeSlm edgeSlm, String edgeSlmId) + *
  • createEdgeSlmAsync(LocationName parent, EdgeSlm edgeSlm, String edgeSlmId) + *

  • createEdgeSlmAsync(String parent, EdgeSlm edgeSlm, String edgeSlmId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createEdgeSlmOperationCallable() - *
  • createEdgeSlmCallable() + *
  • createEdgeSlmOperationCallable() + *

  • createEdgeSlmCallable() *

*
DeleteEdgeSlm

DeleteEdgeSlm

Deletes a single EdgeSlm.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteEdgeSlmAsync(DeleteEdgeSlmRequest request) + *
  • deleteEdgeSlmAsync(DeleteEdgeSlmRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteEdgeSlmAsync(EdgeSlmName name) - *
  • deleteEdgeSlmAsync(String name) + *
  • deleteEdgeSlmAsync(EdgeSlmName name) + *

  • deleteEdgeSlmAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteEdgeSlmOperationCallable() - *
  • deleteEdgeSlmCallable() + *
  • deleteEdgeSlmOperationCallable() + *

  • deleteEdgeSlmCallable() *

*
CreateBlueprint

CreateBlueprint

Creates a blueprint.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createBlueprint(CreateBlueprintRequest request) + *
  • createBlueprint(CreateBlueprintRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createBlueprint(OrchestrationClusterName parent, Blueprint blueprint, String blueprintId) - *
  • createBlueprint(String parent, Blueprint blueprint, String blueprintId) + *
  • createBlueprint(OrchestrationClusterName parent, Blueprint blueprint, String blueprintId) + *

  • createBlueprint(String parent, Blueprint blueprint, String blueprintId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createBlueprintCallable() + *
  • createBlueprintCallable() *

*
UpdateBlueprint

UpdateBlueprint

Updates a blueprint.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateBlueprint(UpdateBlueprintRequest request) + *
  • updateBlueprint(UpdateBlueprintRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateBlueprint(Blueprint blueprint, FieldMask updateMask) + *
  • updateBlueprint(Blueprint blueprint, 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.

*
    - *
  • updateBlueprintCallable() + *
  • updateBlueprintCallable() *

*
GetBlueprint

GetBlueprint

Returns the requested blueprint.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getBlueprint(GetBlueprintRequest request) + *
  • getBlueprint(GetBlueprintRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getBlueprint(BlueprintName name) - *
  • getBlueprint(String name) + *
  • getBlueprint(BlueprintName name) + *

  • getBlueprint(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getBlueprintCallable() + *
  • getBlueprintCallable() *

*
DeleteBlueprint

DeleteBlueprint

Deletes a blueprint and all its revisions.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteBlueprint(DeleteBlueprintRequest request) + *
  • deleteBlueprint(DeleteBlueprintRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteBlueprint(BlueprintName name) - *
  • deleteBlueprint(String name) + *
  • deleteBlueprint(BlueprintName name) + *

  • deleteBlueprint(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteBlueprintCallable() + *
  • deleteBlueprintCallable() *

*
DeleteBlueprintRevision

DeleteBlueprintRevision

Deletes the specified revision of the blueprint.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteBlueprintRevision(DeleteBlueprintRevisionRequest request) + *
  • deleteBlueprintRevision(DeleteBlueprintRevisionRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteBlueprintRevisionCallable() + *
  • deleteBlueprintRevisionCallable() *

*
ListBlueprints

ListBlueprints

List all blueprints.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listBlueprints(ListBlueprintsRequest request) + *
  • listBlueprints(ListBlueprintsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listBlueprints(OrchestrationClusterName parent) - *
  • listBlueprints(String parent) + *
  • listBlueprints(OrchestrationClusterName parent) + *

  • listBlueprints(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.

*
    - *
  • listBlueprintsPagedCallable() - *
  • listBlueprintsCallable() + *
  • listBlueprintsPagedCallable() + *

  • listBlueprintsCallable() *

*
ApproveBlueprint

ApproveBlueprint

Approves a blueprint and commits a new revision.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • approveBlueprint(ApproveBlueprintRequest request) + *
  • approveBlueprint(ApproveBlueprintRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • approveBlueprint(BlueprintName name) - *
  • approveBlueprint(String name) + *
  • approveBlueprint(BlueprintName name) + *

  • approveBlueprint(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • approveBlueprintCallable() + *
  • approveBlueprintCallable() *

*
ProposeBlueprint

ProposeBlueprint

Proposes a blueprint for approval of changes.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • proposeBlueprint(ProposeBlueprintRequest request) + *
  • proposeBlueprint(ProposeBlueprintRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • proposeBlueprint(BlueprintName name) - *
  • proposeBlueprint(String name) + *
  • proposeBlueprint(BlueprintName name) + *

  • proposeBlueprint(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • proposeBlueprintCallable() + *
  • proposeBlueprintCallable() *

*
RejectBlueprint

RejectBlueprint

Rejects a blueprint revision proposal and flips it back to Draft state.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • rejectBlueprint(RejectBlueprintRequest request) + *
  • rejectBlueprint(RejectBlueprintRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • rejectBlueprint(BlueprintName name) - *
  • rejectBlueprint(String name) + *
  • rejectBlueprint(BlueprintName name) + *

  • rejectBlueprint(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • rejectBlueprintCallable() + *
  • rejectBlueprintCallable() *

*
ListBlueprintRevisions

ListBlueprintRevisions

List blueprint revisions of a given blueprint.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listBlueprintRevisions(ListBlueprintRevisionsRequest request) + *
  • listBlueprintRevisions(ListBlueprintRevisionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listBlueprintRevisions(BlueprintName name) - *
  • listBlueprintRevisions(String name) + *
  • listBlueprintRevisions(BlueprintName name) + *

  • listBlueprintRevisions(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listBlueprintRevisionsPagedCallable() - *
  • listBlueprintRevisionsCallable() + *
  • listBlueprintRevisionsPagedCallable() + *

  • listBlueprintRevisionsCallable() *

*
SearchBlueprintRevisions

SearchBlueprintRevisions

Searches across blueprint revisions.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • searchBlueprintRevisions(SearchBlueprintRevisionsRequest request) + *
  • searchBlueprintRevisions(SearchBlueprintRevisionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • searchBlueprintRevisions(OrchestrationClusterName parent, String query) - *
  • searchBlueprintRevisions(String parent, String query) + *
  • searchBlueprintRevisions(OrchestrationClusterName parent, String query) + *

  • searchBlueprintRevisions(String parent, String query) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchBlueprintRevisionsPagedCallable() - *
  • searchBlueprintRevisionsCallable() + *
  • searchBlueprintRevisionsPagedCallable() + *

  • searchBlueprintRevisionsCallable() *

*
SearchDeploymentRevisions

SearchDeploymentRevisions

Searches across deployment revisions.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • searchDeploymentRevisions(SearchDeploymentRevisionsRequest request) + *
  • searchDeploymentRevisions(SearchDeploymentRevisionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • searchDeploymentRevisions(OrchestrationClusterName parent, String query) - *
  • searchDeploymentRevisions(String parent, String query) + *
  • searchDeploymentRevisions(OrchestrationClusterName parent, String query) + *

  • searchDeploymentRevisions(String parent, String query) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • searchDeploymentRevisionsPagedCallable() - *
  • searchDeploymentRevisionsCallable() + *
  • searchDeploymentRevisionsPagedCallable() + *

  • searchDeploymentRevisionsCallable() *

*
DiscardBlueprintChanges

DiscardBlueprintChanges

Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint revision. No changes take place if a blueprint does not have revisions.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • discardBlueprintChanges(DiscardBlueprintChangesRequest request) + *
  • discardBlueprintChanges(DiscardBlueprintChangesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • discardBlueprintChanges(BlueprintName name) - *
  • discardBlueprintChanges(String name) + *
  • discardBlueprintChanges(BlueprintName name) + *

  • discardBlueprintChanges(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • discardBlueprintChangesCallable() + *
  • discardBlueprintChangesCallable() *

*
ListPublicBlueprints

ListPublicBlueprints

Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listPublicBlueprints(ListPublicBlueprintsRequest request) + *
  • listPublicBlueprints(ListPublicBlueprintsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listPublicBlueprints(LocationName parent) - *
  • listPublicBlueprints(String parent) + *
  • listPublicBlueprints(LocationName parent) + *

  • listPublicBlueprints(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.

*
    - *
  • listPublicBlueprintsPagedCallable() - *
  • listPublicBlueprintsCallable() + *
  • listPublicBlueprintsPagedCallable() + *

  • listPublicBlueprintsCallable() *

*
GetPublicBlueprint

GetPublicBlueprint

Returns the requested public blueprint.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getPublicBlueprint(GetPublicBlueprintRequest request) + *
  • getPublicBlueprint(GetPublicBlueprintRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getPublicBlueprint(PublicBlueprintName name) - *
  • getPublicBlueprint(String name) + *
  • getPublicBlueprint(PublicBlueprintName name) + *

  • getPublicBlueprint(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getPublicBlueprintCallable() + *
  • getPublicBlueprintCallable() *

*
CreateDeployment

CreateDeployment

Creates a deployment.

*

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(OrchestrationClusterName parent, Deployment deployment, String deploymentId) - *
  • createDeployment(String parent, Deployment deployment, String deploymentId) + *
  • createDeployment(OrchestrationClusterName 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() *

*
UpdateDeployment

UpdateDeployment

Updates a deployment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateDeployment(UpdateDeploymentRequest request) + *
  • updateDeployment(UpdateDeploymentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateDeployment(Deployment deployment, FieldMask updateMask) + *
  • updateDeployment(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.

*
    - *
  • updateDeploymentCallable() + *
  • updateDeploymentCallable() *

*
GetDeployment

GetDeployment

Returns the requested 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() *

*
DeleteDeployment

DeleteDeployment

Deletes a deployment and all its revisions.

*

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() *

*
RemoveDeployment

RemoveDeployment

Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets deleted.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • removeDeployment(RemoveDeploymentRequest request) + *
  • removeDeployment(RemoveDeploymentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • removeDeployment(DeploymentName name) - *
  • removeDeployment(String name) + *
  • removeDeployment(DeploymentName name) + *

  • removeDeployment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • removeDeploymentCallable() + *
  • removeDeploymentCallable() *

*
DeleteDeploymentRevision

DeleteDeploymentRevision

Deletes the specified revision of the deployment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteDeploymentRevision(DeleteDeploymentRevisionRequest request) + *
  • deleteDeploymentRevision(DeleteDeploymentRevisionRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteDeploymentRevisionCallable() + *
  • deleteDeploymentRevisionCallable() *

*
ListDeployments

ListDeployments

List all deployments.

*

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(OrchestrationClusterName parent) - *
  • listDeployments(String parent) + *
  • listDeployments(OrchestrationClusterName 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() *

*
ListDeploymentRevisions

ListDeploymentRevisions

List deployment revisions of a given deployment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listDeploymentRevisions(ListDeploymentRevisionsRequest request) + *
  • listDeploymentRevisions(ListDeploymentRevisionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listDeploymentRevisions(DeploymentName name) - *
  • listDeploymentRevisions(String name) + *
  • listDeploymentRevisions(DeploymentName name) + *

  • listDeploymentRevisions(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listDeploymentRevisionsPagedCallable() - *
  • listDeploymentRevisionsCallable() + *
  • listDeploymentRevisionsPagedCallable() + *

  • listDeploymentRevisionsCallable() *

*
DiscardDeploymentChanges

DiscardDeploymentChanges

Discards the changes in a deployment and reverts the deployment to the last approved deployment revision. No changes take place if a deployment does not have revisions.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • discardDeploymentChanges(DiscardDeploymentChangesRequest request) + *
  • discardDeploymentChanges(DiscardDeploymentChangesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • discardDeploymentChanges(DeploymentName name) - *
  • discardDeploymentChanges(String name) + *
  • discardDeploymentChanges(DeploymentName name) + *

  • discardDeploymentChanges(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • discardDeploymentChangesCallable() + *
  • discardDeploymentChangesCallable() *

*
ApplyDeployment

ApplyDeployment

Applies the deployment's YAML files to the parent orchestration cluster.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • applyDeployment(ApplyDeploymentRequest request) + *
  • applyDeployment(ApplyDeploymentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • applyDeployment(DeploymentName name) - *
  • applyDeployment(String name) + *
  • applyDeployment(DeploymentName name) + *

  • applyDeployment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • applyDeploymentCallable() + *
  • applyDeploymentCallable() *

*
ComputeDeploymentStatus

ComputeDeploymentStatus

Returns the requested deployment status.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • computeDeploymentStatus(ComputeDeploymentStatusRequest request) + *
  • computeDeploymentStatus(ComputeDeploymentStatusRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • computeDeploymentStatus(DeploymentName name) - *
  • computeDeploymentStatus(String name) + *
  • computeDeploymentStatus(DeploymentName name) + *

  • computeDeploymentStatus(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • computeDeploymentStatusCallable() + *
  • computeDeploymentStatusCallable() *

*
RollbackDeployment

RollbackDeployment

Rollback the active deployment to the given past approved deployment revision.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • rollbackDeployment(RollbackDeploymentRequest request) + *
  • rollbackDeployment(RollbackDeploymentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • rollbackDeployment(DeploymentName name, String revisionId) - *
  • rollbackDeployment(String name, String revisionId) + *
  • rollbackDeployment(DeploymentName name, String revisionId) + *

  • rollbackDeployment(String name, String revisionId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • rollbackDeploymentCallable() + *
  • rollbackDeploymentCallable() *

*
GetHydratedDeployment

GetHydratedDeployment

Returns the requested hydrated deployment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getHydratedDeployment(GetHydratedDeploymentRequest request) + *
  • getHydratedDeployment(GetHydratedDeploymentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getHydratedDeployment(HydratedDeploymentName name) - *
  • getHydratedDeployment(String name) + *
  • getHydratedDeployment(HydratedDeploymentName name) + *

  • getHydratedDeployment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getHydratedDeploymentCallable() + *
  • getHydratedDeploymentCallable() *

*
ListHydratedDeployments

ListHydratedDeployments

List all hydrated deployments present under a deployment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listHydratedDeployments(ListHydratedDeploymentsRequest request) + *
  • listHydratedDeployments(ListHydratedDeploymentsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listHydratedDeployments(DeploymentName parent) - *
  • listHydratedDeployments(String parent) + *
  • listHydratedDeployments(DeploymentName parent) + *

  • listHydratedDeployments(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.

*
    - *
  • listHydratedDeploymentsPagedCallable() - *
  • listHydratedDeploymentsCallable() + *
  • listHydratedDeploymentsPagedCallable() + *

  • listHydratedDeploymentsCallable() *

*
UpdateHydratedDeployment

UpdateHydratedDeployment

Updates a hydrated deployment.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateHydratedDeployment(UpdateHydratedDeploymentRequest request) + *
  • updateHydratedDeployment(UpdateHydratedDeploymentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • updateHydratedDeployment(HydratedDeployment hydratedDeployment, FieldMask updateMask) + *
  • updateHydratedDeployment(HydratedDeployment hydratedDeployment, 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.

*
    - *
  • updateHydratedDeploymentCallable() + *
  • updateHydratedDeploymentCallable() *

*
ApplyHydratedDeployment

ApplyHydratedDeployment

Applies a hydrated deployment to a workload cluster.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • applyHydratedDeployment(ApplyHydratedDeploymentRequest request) + *
  • applyHydratedDeployment(ApplyHydratedDeploymentRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • applyHydratedDeployment(HydratedDeploymentName name) - *
  • applyHydratedDeployment(String name) + *
  • applyHydratedDeployment(HydratedDeploymentName name) + *

  • applyHydratedDeployment(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • applyHydratedDeploymentCallable() + *
  • applyHydratedDeploymentCallable() *

*
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-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java index ab57f685b400..9d6295169cd2 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java @@ -1270,6 +1270,15 @@ public TelcoAutomationStub 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() { @@ -1785,7 +1794,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); @@ -1798,7 +1806,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); @@ -2422,6 +2429,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 TelcoAutomationStubSettings build() throws IOException { return new TelcoAutomationStubSettings(this); diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index c02a5e042c0b..832bdc154ab5 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/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-texttospeech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/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-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java index cbe429eabe5b..a0da9f698d0f 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java @@ -47,47 +47,48 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListVoices

ListVoices

Returns a list of Voice supported for synthesis.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listVoices(ListVoicesRequest request) + *
  • listVoices(ListVoicesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listVoices(String languageCode) + *
  • listVoices(String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listVoicesCallable() + *
  • listVoicesCallable() *

*
SynthesizeSpeech

SynthesizeSpeech

Synthesizes speech synchronously: receive results after all text input has been processed.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • synthesizeSpeech(SynthesizeSpeechRequest request) + *
  • synthesizeSpeech(SynthesizeSpeechRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • synthesizeSpeech(SynthesisInput input, VoiceSelectionParams voice, AudioConfig audioConfig) + *
  • synthesizeSpeech(SynthesisInput input, VoiceSelectionParams voice, AudioConfig audioConfig) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • synthesizeSpeechCallable() + *
  • synthesizeSpeechCallable() *

*
* *

See the individual methods for example code. diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeClient.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeClient.java index a8433422d250..b5f85f0cdb35 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeClient.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeClient.java @@ -62,26 +62,27 @@ * automatically calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
SynthesizeLongAudio

SynthesizeLongAudio

Synthesizes long form text asynchronously.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • synthesizeLongAudioAsync(SynthesizeLongAudioRequest request) + *
  • synthesizeLongAudioAsync(SynthesizeLongAudioRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • synthesizeLongAudioOperationCallable() - *
  • synthesizeLongAudioCallable() + *
  • synthesizeLongAudioOperationCallable() + *

  • synthesizeLongAudioCallable() *

*
* *

See the individual methods for example code. diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java index 7f8602d10113..c78f4f8d6c9e 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java @@ -131,6 +131,15 @@ public TextToSpeechLongAudioSynthesizeStub 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() { @@ -303,7 +312,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); @@ -316,7 +324,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -388,6 +395,15 @@ public Builder applyToAllUnaryMethods( return synthesizeLongAudioOperationSettings; } + /** Returns the endpoint 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 TextToSpeechLongAudioSynthesizeStubSettings build() throws IOException { return new TextToSpeechLongAudioSynthesizeStubSettings(this); diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java index 351a297a6aeb..b939d82b1231 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java @@ -121,6 +121,15 @@ public TextToSpeechStub 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() { @@ -294,7 +303,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); @@ -307,7 +315,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); @@ -354,6 +361,15 @@ public UnaryCallSettings.Builder listVoic return synthesizeSpeechSettings; } + /** Returns the endpoint 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 TextToSpeechStubSettings build() throws IOException { return new TextToSpeechStubSettings(this); diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java index bae934ef3aac..f854ebdac0d3 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java @@ -48,47 +48,48 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListVoices

ListVoices

Returns a list of Voice supported for synthesis.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listVoices(ListVoicesRequest request) + *
  • listVoices(ListVoicesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listVoices(String languageCode) + *
  • listVoices(String languageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listVoicesCallable() + *
  • listVoicesCallable() *

*
SynthesizeSpeech

SynthesizeSpeech

Synthesizes speech synchronously: receive results after all text input has been processed.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • synthesizeSpeech(SynthesizeSpeechRequest request) + *
  • synthesizeSpeech(SynthesizeSpeechRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • synthesizeSpeech(SynthesisInput input, VoiceSelectionParams voice, AudioConfig audioConfig) + *
  • synthesizeSpeech(SynthesisInput input, VoiceSelectionParams voice, AudioConfig audioConfig) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • synthesizeSpeechCallable() + *
  • synthesizeSpeechCallable() *

*
* *

See the individual methods for example code. diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeClient.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeClient.java index 6aa4ed698e81..8a0ec8e887c1 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeClient.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeClient.java @@ -62,26 +62,27 @@ * automatically calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
SynthesizeLongAudio

SynthesizeLongAudio

Synthesizes long form text asynchronously.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • synthesizeLongAudioAsync(SynthesizeLongAudioRequest request) + *
  • synthesizeLongAudioAsync(SynthesizeLongAudioRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • synthesizeLongAudioOperationCallable() - *
  • synthesizeLongAudioCallable() + *
  • synthesizeLongAudioOperationCallable() + *

  • synthesizeLongAudioCallable() *

*
* *

See the individual methods for example code. diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java index d4077803d4e2..6f564412627d 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java @@ -132,6 +132,15 @@ public TextToSpeechLongAudioSynthesizeStub 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() { @@ -304,7 +313,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); @@ -317,7 +325,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -389,6 +396,15 @@ public Builder applyToAllUnaryMethods( return synthesizeLongAudioOperationSettings; } + /** Returns the endpoint 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 TextToSpeechLongAudioSynthesizeStubSettings build() throws IOException { return new TextToSpeechLongAudioSynthesizeStubSettings(this); diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java index 48482161508b..86ab1b01fcd7 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java @@ -122,6 +122,15 @@ public TextToSpeechStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -295,7 +304,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -308,7 +316,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -355,6 +362,15 @@ public UnaryCallSettings.Builder listVoic return synthesizeSpeechSettings; } + /** Returns the endpoint 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 TextToSpeechStubSettings build() throws IOException { return new TextToSpeechStubSettings(this); diff --git a/java-tpu/README.md b/java-tpu/README.md index dfb20adb8b70..d23983f419e7 100644 --- a/java-tpu/README.md +++ b/java-tpu/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-tpu.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/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-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuClient.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuClient.java index b0290433ebc4..33018a2f1cf7 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuClient.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuClient.java @@ -65,242 +65,243 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListNodes

ListNodes

Lists nodes.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listNodes(ListNodesRequest request) + *
  • listNodes(ListNodesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listNodes(LocationName parent) - *
  • listNodes(String parent) + *
  • listNodes(LocationName parent) + *

  • listNodes(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.

*
    - *
  • listNodesPagedCallable() - *
  • listNodesCallable() + *
  • listNodesPagedCallable() + *

  • listNodesCallable() *

*
GetNode

GetNode

Gets the details of a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getNode(GetNodeRequest request) + *
  • getNode(GetNodeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getNode(NodeName name) - *
  • getNode(String name) + *
  • getNode(NodeName name) + *

  • getNode(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getNodeCallable() + *
  • getNodeCallable() *

*
CreateNode

CreateNode

Creates a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createNodeAsync(CreateNodeRequest request) + *
  • createNodeAsync(CreateNodeRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createNodeAsync(LocationName parent, Node node, String nodeId) - *
  • createNodeAsync(String parent, Node node, String nodeId) + *
  • createNodeAsync(LocationName parent, Node node, String nodeId) + *

  • createNodeAsync(String parent, Node node, String nodeId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createNodeOperationCallable() - *
  • createNodeCallable() + *
  • createNodeOperationCallable() + *

  • createNodeCallable() *

*
DeleteNode

DeleteNode

Deletes a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteNodeAsync(DeleteNodeRequest request) + *
  • deleteNodeAsync(DeleteNodeRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteNodeAsync(NodeName name) - *
  • deleteNodeAsync(String name) + *
  • deleteNodeAsync(NodeName name) + *

  • deleteNodeAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteNodeOperationCallable() - *
  • deleteNodeCallable() + *
  • deleteNodeOperationCallable() + *

  • deleteNodeCallable() *

*
ReimageNode

ReimageNode

Reimages a node's OS.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • reimageNodeAsync(ReimageNodeRequest request) + *
  • reimageNodeAsync(ReimageNodeRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • reimageNodeOperationCallable() - *
  • reimageNodeCallable() + *
  • reimageNodeOperationCallable() + *

  • reimageNodeCallable() *

*
StopNode

StopNode

Stops a node, this operation is only available with single TPU nodes.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • stopNodeAsync(StopNodeRequest request) + *
  • stopNodeAsync(StopNodeRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • stopNodeOperationCallable() - *
  • stopNodeCallable() + *
  • stopNodeOperationCallable() + *

  • stopNodeCallable() *

*
StartNode

StartNode

Starts a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • startNodeAsync(StartNodeRequest request) + *
  • startNodeAsync(StartNodeRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • startNodeOperationCallable() - *
  • startNodeCallable() + *
  • startNodeOperationCallable() + *

  • startNodeCallable() *

*
ListTensorFlowVersions

ListTensorFlowVersions

List TensorFlow versions supported by this API.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTensorFlowVersions(ListTensorFlowVersionsRequest request) + *
  • listTensorFlowVersions(ListTensorFlowVersionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTensorFlowVersions(TensorFlowVersionName parent) - *
  • listTensorFlowVersions(String parent) + *
  • listTensorFlowVersions(TensorFlowVersionName parent) + *

  • listTensorFlowVersions(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.

*
    - *
  • listTensorFlowVersionsPagedCallable() - *
  • listTensorFlowVersionsCallable() + *
  • listTensorFlowVersionsPagedCallable() + *

  • listTensorFlowVersionsCallable() *

*
GetTensorFlowVersion

GetTensorFlowVersion

Gets TensorFlow Version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTensorFlowVersion(GetTensorFlowVersionRequest request) + *
  • getTensorFlowVersion(GetTensorFlowVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTensorFlowVersion(TensorFlowVersionName name) - *
  • getTensorFlowVersion(String name) + *
  • getTensorFlowVersion(TensorFlowVersionName name) + *

  • getTensorFlowVersion(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTensorFlowVersionCallable() + *
  • getTensorFlowVersionCallable() *

*
ListAcceleratorTypes

ListAcceleratorTypes

Lists accelerator types supported by this API.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAcceleratorTypes(ListAcceleratorTypesRequest request) + *
  • listAcceleratorTypes(ListAcceleratorTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAcceleratorTypes(AcceleratorTypeName parent) - *
  • listAcceleratorTypes(String parent) + *
  • listAcceleratorTypes(AcceleratorTypeName parent) + *

  • listAcceleratorTypes(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.

*
    - *
  • listAcceleratorTypesPagedCallable() - *
  • listAcceleratorTypesCallable() + *
  • listAcceleratorTypesPagedCallable() + *

  • listAcceleratorTypesCallable() *

*
GetAcceleratorType

GetAcceleratorType

Gets AcceleratorType.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAcceleratorType(GetAcceleratorTypeRequest request) + *
  • getAcceleratorType(GetAcceleratorTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAcceleratorType(AcceleratorTypeName name) - *
  • getAcceleratorType(String name) + *
  • getAcceleratorType(AcceleratorTypeName name) + *

  • getAcceleratorType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAcceleratorTypeCallable() + *
  • getAcceleratorTypeCallable() *

*
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-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java index 3e1649bb164a..a8502fca25b8 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java @@ -517,6 +517,15 @@ public TpuStub 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() { @@ -764,7 +773,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); @@ -1083,6 +1091,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 TpuStubSettings build() throws IOException { return new TpuStubSettings(this); diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java index 7bab6baaa0f5..2bc19b05a740 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java @@ -68,274 +68,275 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListNodes

ListNodes

Lists nodes.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listNodes(ListNodesRequest request) + *
  • listNodes(ListNodesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listNodes(LocationName parent) - *
  • listNodes(String parent) + *
  • listNodes(LocationName parent) + *

  • listNodes(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.

*
    - *
  • listNodesPagedCallable() - *
  • listNodesCallable() + *
  • listNodesPagedCallable() + *

  • listNodesCallable() *

*
GetNode

GetNode

Gets the details of a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getNode(GetNodeRequest request) + *
  • getNode(GetNodeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getNode(NodeName name) - *
  • getNode(String name) + *
  • getNode(NodeName name) + *

  • getNode(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getNodeCallable() + *
  • getNodeCallable() *

*
CreateNode

CreateNode

Creates a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createNodeAsync(CreateNodeRequest request) + *
  • createNodeAsync(CreateNodeRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createNodeAsync(LocationName parent, Node node, String nodeId) - *
  • createNodeAsync(String parent, Node node, String nodeId) + *
  • createNodeAsync(LocationName parent, Node node, String nodeId) + *

  • createNodeAsync(String parent, Node node, String nodeId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createNodeOperationCallable() - *
  • createNodeCallable() + *
  • createNodeOperationCallable() + *

  • createNodeCallable() *

*
DeleteNode

DeleteNode

Deletes a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteNodeAsync(DeleteNodeRequest request) + *
  • deleteNodeAsync(DeleteNodeRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteNodeAsync(NodeName name) - *
  • deleteNodeAsync(String name) + *
  • deleteNodeAsync(NodeName name) + *

  • deleteNodeAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteNodeOperationCallable() - *
  • deleteNodeCallable() + *
  • deleteNodeOperationCallable() + *

  • deleteNodeCallable() *

*
StopNode

StopNode

Stops a node. This operation is only available with single TPU nodes.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • stopNodeAsync(StopNodeRequest request) + *
  • stopNodeAsync(StopNodeRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • stopNodeOperationCallable() - *
  • stopNodeCallable() + *
  • stopNodeOperationCallable() + *

  • stopNodeCallable() *

*
StartNode

StartNode

Starts a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • startNodeAsync(StartNodeRequest request) + *
  • startNodeAsync(StartNodeRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • startNodeOperationCallable() - *
  • startNodeCallable() + *
  • startNodeOperationCallable() + *

  • startNodeCallable() *

*
UpdateNode

UpdateNode

Updates the configurations of a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateNodeAsync(UpdateNodeRequest request) + *
  • updateNodeAsync(UpdateNodeRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateNodeAsync(Node node, FieldMask updateMask) + *
  • updateNodeAsync(Node node, 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.

*
    - *
  • updateNodeOperationCallable() - *
  • updateNodeCallable() + *
  • updateNodeOperationCallable() + *

  • updateNodeCallable() *

*
GenerateServiceIdentity

GenerateServiceIdentity

Generates the Cloud TPU service identity for the project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateServiceIdentity(GenerateServiceIdentityRequest request) + *
  • generateServiceIdentity(GenerateServiceIdentityRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateServiceIdentityCallable() + *
  • generateServiceIdentityCallable() *

*
ListAcceleratorTypes

ListAcceleratorTypes

Lists accelerator types supported by this API.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAcceleratorTypes(ListAcceleratorTypesRequest request) + *
  • listAcceleratorTypes(ListAcceleratorTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAcceleratorTypes(LocationName parent) - *
  • listAcceleratorTypes(String parent) + *
  • listAcceleratorTypes(LocationName parent) + *

  • listAcceleratorTypes(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.

*
    - *
  • listAcceleratorTypesPagedCallable() - *
  • listAcceleratorTypesCallable() + *
  • listAcceleratorTypesPagedCallable() + *

  • listAcceleratorTypesCallable() *

*
GetAcceleratorType

GetAcceleratorType

Gets AcceleratorType.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAcceleratorType(GetAcceleratorTypeRequest request) + *
  • getAcceleratorType(GetAcceleratorTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAcceleratorType(AcceleratorTypeName name) - *
  • getAcceleratorType(String name) + *
  • getAcceleratorType(AcceleratorTypeName name) + *

  • getAcceleratorType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAcceleratorTypeCallable() + *
  • getAcceleratorTypeCallable() *

*
ListRuntimeVersions

ListRuntimeVersions

Lists runtime versions supported by this API.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listRuntimeVersions(ListRuntimeVersionsRequest request) + *
  • listRuntimeVersions(ListRuntimeVersionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listRuntimeVersions(LocationName parent) - *
  • listRuntimeVersions(String parent) + *
  • listRuntimeVersions(LocationName parent) + *

  • listRuntimeVersions(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.

*
    - *
  • listRuntimeVersionsPagedCallable() - *
  • listRuntimeVersionsCallable() + *
  • listRuntimeVersionsPagedCallable() + *

  • listRuntimeVersionsCallable() *

*
GetRuntimeVersion

GetRuntimeVersion

Gets a runtime version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getRuntimeVersion(GetRuntimeVersionRequest request) + *
  • getRuntimeVersion(GetRuntimeVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getRuntimeVersion(RuntimeVersionName name) - *
  • getRuntimeVersion(String name) + *
  • getRuntimeVersion(RuntimeVersionName name) + *

  • getRuntimeVersion(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getRuntimeVersionCallable() + *
  • getRuntimeVersionCallable() *

*
GetGuestAttributes

GetGuestAttributes

Retrieves the guest attributes for the node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getGuestAttributes(GetGuestAttributesRequest request) + *
  • getGuestAttributes(GetGuestAttributesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getGuestAttributesCallable() + *
  • getGuestAttributesCallable() *

*
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-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java index 77211c84e8c7..9eb0123599a8 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java @@ -532,6 +532,15 @@ public TpuStub 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() { @@ -819,7 +828,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); @@ -832,7 +840,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); @@ -1175,6 +1182,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 TpuStubSettings build() throws IOException { return new TpuStubSettings(this); diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java index ca03c98d4906..b00a24378e58 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java @@ -68,388 +68,389 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListNodes

ListNodes

Lists nodes.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listNodes(ListNodesRequest request) + *
  • listNodes(ListNodesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listNodes(LocationName parent) - *
  • listNodes(String parent) + *
  • listNodes(LocationName parent) + *

  • listNodes(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.

*
    - *
  • listNodesPagedCallable() - *
  • listNodesCallable() + *
  • listNodesPagedCallable() + *

  • listNodesCallable() *

*
GetNode

GetNode

Gets the details of a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getNode(GetNodeRequest request) + *
  • getNode(GetNodeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getNode(NodeName name) - *
  • getNode(String name) + *
  • getNode(NodeName name) + *

  • getNode(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getNodeCallable() + *
  • getNodeCallable() *

*
CreateNode

CreateNode

Creates a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createNodeAsync(CreateNodeRequest request) + *
  • createNodeAsync(CreateNodeRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createNodeAsync(LocationName parent, Node node, String nodeId) - *
  • createNodeAsync(String parent, Node node, String nodeId) + *
  • createNodeAsync(LocationName parent, Node node, String nodeId) + *

  • createNodeAsync(String parent, Node node, String nodeId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createNodeOperationCallable() - *
  • createNodeCallable() + *
  • createNodeOperationCallable() + *

  • createNodeCallable() *

*
DeleteNode

DeleteNode

Deletes a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteNodeAsync(DeleteNodeRequest request) + *
  • deleteNodeAsync(DeleteNodeRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteNodeAsync(NodeName name) - *
  • deleteNodeAsync(String name) + *
  • deleteNodeAsync(NodeName name) + *

  • deleteNodeAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteNodeOperationCallable() - *
  • deleteNodeCallable() + *
  • deleteNodeOperationCallable() + *

  • deleteNodeCallable() *

*
StopNode

StopNode

Stops a node. This operation is only available with single TPU nodes.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • stopNodeAsync(StopNodeRequest request) + *
  • stopNodeAsync(StopNodeRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • stopNodeOperationCallable() - *
  • stopNodeCallable() + *
  • stopNodeOperationCallable() + *

  • stopNodeCallable() *

*
StartNode

StartNode

Starts a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • startNodeAsync(StartNodeRequest request) + *
  • startNodeAsync(StartNodeRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • startNodeOperationCallable() - *
  • startNodeCallable() + *
  • startNodeOperationCallable() + *

  • startNodeCallable() *

*
UpdateNode

UpdateNode

Updates the configurations of a node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateNodeAsync(UpdateNodeRequest request) + *
  • updateNodeAsync(UpdateNodeRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateNodeAsync(Node node, FieldMask updateMask) + *
  • updateNodeAsync(Node node, 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.

*
    - *
  • updateNodeOperationCallable() - *
  • updateNodeCallable() + *
  • updateNodeOperationCallable() + *

  • updateNodeCallable() *

*
ListQueuedResources

ListQueuedResources

Lists queued resources.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listQueuedResources(ListQueuedResourcesRequest request) + *
  • listQueuedResources(ListQueuedResourcesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listQueuedResources(LocationName parent) - *
  • listQueuedResources(String parent) + *
  • listQueuedResources(LocationName parent) + *

  • listQueuedResources(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.

*
    - *
  • listQueuedResourcesPagedCallable() - *
  • listQueuedResourcesCallable() + *
  • listQueuedResourcesPagedCallable() + *

  • listQueuedResourcesCallable() *

*
GetQueuedResource

GetQueuedResource

Gets details of a queued resource.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getQueuedResource(GetQueuedResourceRequest request) + *
  • getQueuedResource(GetQueuedResourceRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getQueuedResource(QueuedResourceName name) - *
  • getQueuedResource(String name) + *
  • getQueuedResource(QueuedResourceName name) + *

  • getQueuedResource(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getQueuedResourceCallable() + *
  • getQueuedResourceCallable() *

*
CreateQueuedResource

CreateQueuedResource

Creates a QueuedResource TPU instance.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createQueuedResourceAsync(CreateQueuedResourceRequest request) + *
  • createQueuedResourceAsync(CreateQueuedResourceRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createQueuedResourceAsync(LocationName parent, QueuedResource queuedResource, String queuedResourceId) - *
  • createQueuedResourceAsync(String parent, QueuedResource queuedResource, String queuedResourceId) + *
  • createQueuedResourceAsync(LocationName parent, QueuedResource queuedResource, String queuedResourceId) + *

  • createQueuedResourceAsync(String parent, QueuedResource queuedResource, String queuedResourceId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createQueuedResourceOperationCallable() - *
  • createQueuedResourceCallable() + *
  • createQueuedResourceOperationCallable() + *

  • createQueuedResourceCallable() *

*
DeleteQueuedResource

DeleteQueuedResource

Deletes a QueuedResource TPU instance.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteQueuedResourceAsync(DeleteQueuedResourceRequest request) + *
  • deleteQueuedResourceAsync(DeleteQueuedResourceRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteQueuedResourceAsync(QueuedResourceName name) - *
  • deleteQueuedResourceAsync(String name) + *
  • deleteQueuedResourceAsync(QueuedResourceName name) + *

  • deleteQueuedResourceAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteQueuedResourceOperationCallable() - *
  • deleteQueuedResourceCallable() + *
  • deleteQueuedResourceOperationCallable() + *

  • deleteQueuedResourceCallable() *

*
ResetQueuedResource

ResetQueuedResource

Resets a QueuedResource TPU instance

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • resetQueuedResourceAsync(ResetQueuedResourceRequest request) + *
  • resetQueuedResourceAsync(ResetQueuedResourceRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • resetQueuedResourceAsync(QueuedResourceName name) - *
  • resetQueuedResourceAsync(String name) + *
  • resetQueuedResourceAsync(QueuedResourceName name) + *

  • resetQueuedResourceAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • resetQueuedResourceOperationCallable() - *
  • resetQueuedResourceCallable() + *
  • resetQueuedResourceOperationCallable() + *

  • resetQueuedResourceCallable() *

*
GenerateServiceIdentity

GenerateServiceIdentity

Generates the Cloud TPU service identity for the project.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • generateServiceIdentity(GenerateServiceIdentityRequest request) + *
  • generateServiceIdentity(GenerateServiceIdentityRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • generateServiceIdentityCallable() + *
  • generateServiceIdentityCallable() *

*
ListAcceleratorTypes

ListAcceleratorTypes

Lists accelerator types supported by this API.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAcceleratorTypes(ListAcceleratorTypesRequest request) + *
  • listAcceleratorTypes(ListAcceleratorTypesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAcceleratorTypes(LocationName parent) - *
  • listAcceleratorTypes(String parent) + *
  • listAcceleratorTypes(LocationName parent) + *

  • listAcceleratorTypes(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.

*
    - *
  • listAcceleratorTypesPagedCallable() - *
  • listAcceleratorTypesCallable() + *
  • listAcceleratorTypesPagedCallable() + *

  • listAcceleratorTypesCallable() *

*
GetAcceleratorType

GetAcceleratorType

Gets AcceleratorType.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAcceleratorType(GetAcceleratorTypeRequest request) + *
  • getAcceleratorType(GetAcceleratorTypeRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAcceleratorType(AcceleratorTypeName name) - *
  • getAcceleratorType(String name) + *
  • getAcceleratorType(AcceleratorTypeName name) + *

  • getAcceleratorType(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAcceleratorTypeCallable() + *
  • getAcceleratorTypeCallable() *

*
ListRuntimeVersions

ListRuntimeVersions

Lists runtime versions supported by this API.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listRuntimeVersions(ListRuntimeVersionsRequest request) + *
  • listRuntimeVersions(ListRuntimeVersionsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listRuntimeVersions(LocationName parent) - *
  • listRuntimeVersions(String parent) + *
  • listRuntimeVersions(LocationName parent) + *

  • listRuntimeVersions(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.

*
    - *
  • listRuntimeVersionsPagedCallable() - *
  • listRuntimeVersionsCallable() + *
  • listRuntimeVersionsPagedCallable() + *

  • listRuntimeVersionsCallable() *

*
GetRuntimeVersion

GetRuntimeVersion

Gets a runtime version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getRuntimeVersion(GetRuntimeVersionRequest request) + *
  • getRuntimeVersion(GetRuntimeVersionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getRuntimeVersion(RuntimeVersionName name) - *
  • getRuntimeVersion(String name) + *
  • getRuntimeVersion(RuntimeVersionName name) + *

  • getRuntimeVersion(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getRuntimeVersionCallable() + *
  • getRuntimeVersionCallable() *

*
GetGuestAttributes

GetGuestAttributes

Retrieves the guest attributes for the node.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getGuestAttributes(GetGuestAttributesRequest request) + *
  • getGuestAttributes(GetGuestAttributesRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getGuestAttributesCallable() + *
  • getGuestAttributesCallable() *

*
SimulateMaintenanceEvent

SimulateMaintenanceEvent

Simulates a maintenance event.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • simulateMaintenanceEventAsync(SimulateMaintenanceEventRequest request) + *
  • simulateMaintenanceEventAsync(SimulateMaintenanceEventRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • simulateMaintenanceEventOperationCallable() - *
  • simulateMaintenanceEventCallable() + *
  • simulateMaintenanceEventOperationCallable() + *

  • simulateMaintenanceEventCallable() *

*
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-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java index 82434d5e514d..973b050fc193 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java @@ -675,6 +675,15 @@ public TpuStub 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() { @@ -1015,7 +1024,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); @@ -1557,6 +1565,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 TpuStubSettings build() throws IOException { return new TpuStubSettings(this); diff --git a/java-trace/README.md b/java-trace/README.md index bc3e8b441f33..fc08939dc298 100644 --- a/java-trace/README.md +++ b/java-trace/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-trace.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/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-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java index 31cdf0d7b8a3..dc0d7e8cf895 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java @@ -66,66 +66,67 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
ListTraces

ListTraces

Returns of a list of traces that match the specified filter conditions.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTraces(ListTracesRequest request) + *
  • listTraces(ListTracesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTraces(String projectId) + *
  • listTraces(String projectId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTracesPagedCallable() - *
  • listTracesCallable() + *
  • listTracesPagedCallable() + *

  • listTracesCallable() *

*
GetTrace

GetTrace

Gets a single trace by its ID.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTrace(GetTraceRequest request) + *
  • getTrace(GetTraceRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTrace(String projectId, String traceId) + *
  • getTrace(String projectId, String traceId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTraceCallable() + *
  • getTraceCallable() *

*
PatchTraces

PatchTraces

Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • patchTraces(PatchTracesRequest request) + *
  • patchTraces(PatchTracesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • patchTraces(String projectId, Traces traces) + *
  • patchTraces(String projectId, Traces traces) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • patchTracesCallable() + *
  • patchTracesCallable() *

*
* *

See the individual methods for example code. diff --git a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/TraceServiceStubSettings.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/TraceServiceStubSettings.java index 734c21d8e23a..f4814b2288c9 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/TraceServiceStubSettings.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/TraceServiceStubSettings.java @@ -195,6 +195,15 @@ public TraceServiceStub 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() { @@ -372,7 +381,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); @@ -385,7 +393,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); @@ -442,6 +449,15 @@ public UnaryCallSettings.Builder patchTracesSettings( return patchTracesSettings; } + /** Returns the endpoint 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 TraceServiceStubSettings build() throws IOException { return new TraceServiceStubSettings(this); diff --git a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceClient.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceClient.java index 6cb0d2cf73cc..d76f0de03099 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceClient.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceClient.java @@ -59,44 +59,45 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
BatchWriteSpans

BatchWriteSpans

Batch writes new spans to new or existing traces. You cannot update existing spans.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchWriteSpans(BatchWriteSpansRequest request) + *
  • batchWriteSpans(BatchWriteSpansRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • batchWriteSpans(ProjectName name, List spans) - *
  • batchWriteSpans(String name, List spans) + *
  • batchWriteSpans(ProjectName name, List<Span> spans) + *

  • batchWriteSpans(String name, List<Span> spans) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchWriteSpansCallable() + *
  • batchWriteSpansCallable() *

*
CreateSpan

CreateSpan

Creates a new span.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSpan(Span request) + *
  • createSpan(Span request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSpanCallable() + *
  • createSpanCallable() *

*
* *

See the individual methods for example code. diff --git a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/TraceServiceStubSettings.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/TraceServiceStubSettings.java index 6b3633033d62..087fe20e7932 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/TraceServiceStubSettings.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/TraceServiceStubSettings.java @@ -121,6 +121,15 @@ public TraceServiceStub 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() { @@ -308,7 +317,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); @@ -321,7 +329,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); @@ -367,6 +374,15 @@ public UnaryCallSettings.Builder createSpanSettings() { return createSpanSettings; } + /** Returns the endpoint 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 TraceServiceStubSettings build() throws IOException { return new TraceServiceStubSettings(this); diff --git a/java-translate/README.md b/java-translate/README.md index db033ae52317..eaad7df869b7 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -272,7 +272,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-translate.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/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-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java index 001c0aa62688..a1644288db0c 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java @@ -65,393 +65,394 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
TranslateText

TranslateText

Translates input text and returns translated text.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • translateText(TranslateTextRequest request) + *
  • translateText(TranslateTextRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • translateText(LocationName parent, String targetLanguageCode, List contents) - *
  • translateText(String parent, String targetLanguageCode, List contents) - *
  • translateText(LocationName parent, String model, String mimeType, String sourceLanguageCode, String targetLanguageCode, List contents) - *
  • translateText(String parent, String model, String mimeType, String sourceLanguageCode, String targetLanguageCode, List contents) + *
  • translateText(LocationName parent, String targetLanguageCode, List<String> contents) + *

  • translateText(String parent, String targetLanguageCode, List<String> contents) + *

  • translateText(LocationName parent, String model, String mimeType, String sourceLanguageCode, String targetLanguageCode, List<String> contents) + *

  • translateText(String parent, String model, String mimeType, String sourceLanguageCode, String targetLanguageCode, List<String> contents) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • translateTextCallable() + *
  • translateTextCallable() *

*
DetectLanguage

DetectLanguage

Detects the language of text within a request.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • detectLanguage(DetectLanguageRequest request) + *
  • detectLanguage(DetectLanguageRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • detectLanguage(LocationName parent, String model, String mimeType, String content) - *
  • detectLanguage(String parent, String model, String mimeType, String content) + *
  • detectLanguage(LocationName parent, String model, String mimeType, String content) + *

  • detectLanguage(String parent, String model, String mimeType, String content) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • detectLanguageCallable() + *
  • detectLanguageCallable() *

*
GetSupportedLanguages

GetSupportedLanguages

Returns a list of supported languages for translation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSupportedLanguages(GetSupportedLanguagesRequest request) + *
  • getSupportedLanguages(GetSupportedLanguagesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSupportedLanguages(LocationName parent, String model, String displayLanguageCode) - *
  • getSupportedLanguages(String parent, String model, String displayLanguageCode) + *
  • getSupportedLanguages(LocationName parent, String model, String displayLanguageCode) + *

  • getSupportedLanguages(String parent, String model, String displayLanguageCode) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSupportedLanguagesCallable() + *
  • getSupportedLanguagesCallable() *

*
TranslateDocument

TranslateDocument

Translates documents in synchronous mode.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • translateDocument(TranslateDocumentRequest request) + *
  • translateDocument(TranslateDocumentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • translateDocumentCallable() + *
  • translateDocumentCallable() *

*
BatchTranslateText

BatchTranslateText

Translates a large volume of text in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. *

This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchTranslateTextAsync(BatchTranslateTextRequest request) + *
  • batchTranslateTextAsync(BatchTranslateTextRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchTranslateTextOperationCallable() - *
  • batchTranslateTextCallable() + *
  • batchTranslateTextOperationCallable() + *

  • batchTranslateTextCallable() *

*
BatchTranslateDocument

BatchTranslateDocument

Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. *

This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) + *
  • batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchTranslateDocumentAsync(LocationName parent, String sourceLanguageCode, List targetLanguageCodes, List inputConfigs, BatchDocumentOutputConfig outputConfig) - *
  • batchTranslateDocumentAsync(String parent, String sourceLanguageCode, List targetLanguageCodes, List inputConfigs, BatchDocumentOutputConfig outputConfig) + *
  • batchTranslateDocumentAsync(LocationName parent, String sourceLanguageCode, List<String> targetLanguageCodes, List<BatchDocumentInputConfig> inputConfigs, BatchDocumentOutputConfig outputConfig) + *

  • batchTranslateDocumentAsync(String parent, String sourceLanguageCode, List<String> targetLanguageCodes, List<BatchDocumentInputConfig> inputConfigs, BatchDocumentOutputConfig outputConfig) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchTranslateDocumentOperationCallable() - *
  • batchTranslateDocumentCallable() + *
  • batchTranslateDocumentOperationCallable() + *

  • batchTranslateDocumentCallable() *

*
CreateGlossary

CreateGlossary

Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createGlossaryAsync(CreateGlossaryRequest request) + *
  • createGlossaryAsync(CreateGlossaryRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createGlossaryAsync(LocationName parent, Glossary glossary) - *
  • createGlossaryAsync(String parent, Glossary glossary) + *
  • createGlossaryAsync(LocationName parent, Glossary glossary) + *

  • createGlossaryAsync(String parent, Glossary glossary) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createGlossaryOperationCallable() - *
  • createGlossaryCallable() + *
  • createGlossaryOperationCallable() + *

  • createGlossaryCallable() *

*
ListGlossaries

ListGlossaries

Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listGlossaries(ListGlossariesRequest request) + *
  • listGlossaries(ListGlossariesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listGlossaries(LocationName parent) - *
  • listGlossaries(String parent) + *
  • listGlossaries(LocationName parent) + *

  • listGlossaries(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.

*
    - *
  • listGlossariesPagedCallable() - *
  • listGlossariesCallable() + *
  • listGlossariesPagedCallable() + *

  • listGlossariesCallable() *

*
GetGlossary

GetGlossary

Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getGlossary(GetGlossaryRequest request) + *
  • getGlossary(GetGlossaryRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getGlossary(GlossaryName name) - *
  • getGlossary(String name) + *
  • getGlossary(GlossaryName name) + *

  • getGlossary(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getGlossaryCallable() + *
  • getGlossaryCallable() *

*
DeleteGlossary

DeleteGlossary

Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns NOT_FOUND, if the glossary doesn't exist.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteGlossaryAsync(DeleteGlossaryRequest request) + *
  • deleteGlossaryAsync(DeleteGlossaryRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteGlossaryAsync(GlossaryName name) - *
  • deleteGlossaryAsync(String name) + *
  • deleteGlossaryAsync(GlossaryName name) + *

  • deleteGlossaryAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteGlossaryOperationCallable() - *
  • deleteGlossaryCallable() + *
  • deleteGlossaryOperationCallable() + *

  • deleteGlossaryCallable() *

*
CreateAdaptiveMtDataset

CreateAdaptiveMtDataset

Creates an Adaptive MT dataset.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createAdaptiveMtDataset(CreateAdaptiveMtDatasetRequest request) + *
  • createAdaptiveMtDataset(CreateAdaptiveMtDatasetRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createAdaptiveMtDataset(LocationName parent, AdaptiveMtDataset adaptiveMtDataset) - *
  • createAdaptiveMtDataset(String parent, AdaptiveMtDataset adaptiveMtDataset) + *
  • createAdaptiveMtDataset(LocationName parent, AdaptiveMtDataset adaptiveMtDataset) + *

  • createAdaptiveMtDataset(String parent, AdaptiveMtDataset adaptiveMtDataset) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createAdaptiveMtDatasetCallable() + *
  • createAdaptiveMtDatasetCallable() *

*
DeleteAdaptiveMtDataset

DeleteAdaptiveMtDataset

Deletes an Adaptive MT dataset, including all its entries and associated metadata.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAdaptiveMtDataset(DeleteAdaptiveMtDatasetRequest request) + *
  • deleteAdaptiveMtDataset(DeleteAdaptiveMtDatasetRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteAdaptiveMtDataset(AdaptiveMtDatasetName name) - *
  • deleteAdaptiveMtDataset(String name) + *
  • deleteAdaptiveMtDataset(AdaptiveMtDatasetName name) + *

  • deleteAdaptiveMtDataset(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAdaptiveMtDatasetCallable() + *
  • deleteAdaptiveMtDatasetCallable() *

*
GetAdaptiveMtDataset

GetAdaptiveMtDataset

Gets the Adaptive MT dataset.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAdaptiveMtDataset(GetAdaptiveMtDatasetRequest request) + *
  • getAdaptiveMtDataset(GetAdaptiveMtDatasetRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAdaptiveMtDataset(AdaptiveMtDatasetName name) - *
  • getAdaptiveMtDataset(String name) + *
  • getAdaptiveMtDataset(AdaptiveMtDatasetName name) + *

  • getAdaptiveMtDataset(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAdaptiveMtDatasetCallable() + *
  • getAdaptiveMtDatasetCallable() *

*
ListAdaptiveMtDatasets

ListAdaptiveMtDatasets

Lists all Adaptive MT datasets for which the caller has read permission.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAdaptiveMtDatasets(ListAdaptiveMtDatasetsRequest request) + *
  • listAdaptiveMtDatasets(ListAdaptiveMtDatasetsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAdaptiveMtDatasets(LocationName parent) - *
  • listAdaptiveMtDatasets(String parent) + *
  • listAdaptiveMtDatasets(LocationName parent) + *

  • listAdaptiveMtDatasets(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.

*
    - *
  • listAdaptiveMtDatasetsPagedCallable() - *
  • listAdaptiveMtDatasetsCallable() + *
  • listAdaptiveMtDatasetsPagedCallable() + *

  • listAdaptiveMtDatasetsCallable() *

*
AdaptiveMtTranslate

AdaptiveMtTranslate

Translate text using Adaptive MT.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • adaptiveMtTranslate(AdaptiveMtTranslateRequest request) + *
  • adaptiveMtTranslate(AdaptiveMtTranslateRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • adaptiveMtTranslate(LocationName parent, List content) - *
  • adaptiveMtTranslate(String parent, List content) + *
  • adaptiveMtTranslate(LocationName parent, List<String> content) + *

  • adaptiveMtTranslate(String parent, List<String> content) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • adaptiveMtTranslateCallable() + *
  • adaptiveMtTranslateCallable() *

*
GetAdaptiveMtFile

GetAdaptiveMtFile

Gets and AdaptiveMtFile

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAdaptiveMtFile(GetAdaptiveMtFileRequest request) + *
  • getAdaptiveMtFile(GetAdaptiveMtFileRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAdaptiveMtFile(AdaptiveMtFileName name) - *
  • getAdaptiveMtFile(String name) + *
  • getAdaptiveMtFile(AdaptiveMtFileName name) + *

  • getAdaptiveMtFile(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAdaptiveMtFileCallable() + *
  • getAdaptiveMtFileCallable() *

*
DeleteAdaptiveMtFile

DeleteAdaptiveMtFile

Deletes an AdaptiveMtFile along with its sentences.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAdaptiveMtFile(DeleteAdaptiveMtFileRequest request) + *
  • deleteAdaptiveMtFile(DeleteAdaptiveMtFileRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteAdaptiveMtFile(AdaptiveMtFileName name) - *
  • deleteAdaptiveMtFile(String name) + *
  • deleteAdaptiveMtFile(AdaptiveMtFileName name) + *

  • deleteAdaptiveMtFile(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAdaptiveMtFileCallable() + *
  • deleteAdaptiveMtFileCallable() *

*
ImportAdaptiveMtFile

ImportAdaptiveMtFile

Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • importAdaptiveMtFile(ImportAdaptiveMtFileRequest request) + *
  • importAdaptiveMtFile(ImportAdaptiveMtFileRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • importAdaptiveMtFile(AdaptiveMtDatasetName parent) - *
  • importAdaptiveMtFile(String parent) + *
  • importAdaptiveMtFile(AdaptiveMtDatasetName parent) + *

  • importAdaptiveMtFile(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.

*
    - *
  • importAdaptiveMtFileCallable() + *
  • importAdaptiveMtFileCallable() *

*
ListAdaptiveMtFiles

ListAdaptiveMtFiles

Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAdaptiveMtFiles(ListAdaptiveMtFilesRequest request) + *
  • listAdaptiveMtFiles(ListAdaptiveMtFilesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAdaptiveMtFiles(AdaptiveMtDatasetName parent) - *
  • listAdaptiveMtFiles(String parent) + *
  • listAdaptiveMtFiles(AdaptiveMtDatasetName parent) + *

  • listAdaptiveMtFiles(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.

*
    - *
  • listAdaptiveMtFilesPagedCallable() - *
  • listAdaptiveMtFilesCallable() + *
  • listAdaptiveMtFilesPagedCallable() + *

  • listAdaptiveMtFilesCallable() *

*
ListAdaptiveMtSentences

ListAdaptiveMtSentences

Lists all AdaptiveMtSentences under a given file/dataset.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAdaptiveMtSentences(ListAdaptiveMtSentencesRequest request) + *
  • listAdaptiveMtSentences(ListAdaptiveMtSentencesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAdaptiveMtSentences(AdaptiveMtFileName parent) - *
  • listAdaptiveMtSentences(String parent) + *
  • listAdaptiveMtSentences(AdaptiveMtFileName parent) + *

  • listAdaptiveMtSentences(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.

*
    - *
  • listAdaptiveMtSentencesPagedCallable() - *
  • listAdaptiveMtSentencesCallable() + *
  • listAdaptiveMtSentencesPagedCallable() + *

  • listAdaptiveMtSentencesCallable() *

*
* *

See the individual methods for example code. diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java index 3f7d8baa6e50..b1204246db5d 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java @@ -628,6 +628,15 @@ public TranslationServiceStub 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() { @@ -986,7 +995,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); @@ -999,7 +1007,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); @@ -1387,6 +1394,15 @@ public UnaryCallSettings.Builder deleteGlossar return listAdaptiveMtSentencesSettings; } + /** Returns the endpoint 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 TranslationServiceStubSettings build() throws IOException { return new TranslationServiceStubSettings(this); diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java index 3a3831fa34e2..af0c9c5b9424 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java @@ -71,193 +71,194 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
TranslateText

TranslateText

Translates input text and returns translated text.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • translateText(TranslateTextRequest request) + *
  • translateText(TranslateTextRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • translateTextCallable() + *
  • translateTextCallable() *

*
DetectLanguage

DetectLanguage

Detects the language of text within a request.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • detectLanguage(DetectLanguageRequest request) + *
  • detectLanguage(DetectLanguageRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • detectLanguage(LocationName parent, String model, String mimeType) - *
  • detectLanguage(String parent, String model, String mimeType) + *
  • detectLanguage(LocationName parent, String model, String mimeType) + *

  • detectLanguage(String parent, String model, String mimeType) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • detectLanguageCallable() + *
  • detectLanguageCallable() *

*
GetSupportedLanguages

GetSupportedLanguages

Returns a list of supported languages for translation.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSupportedLanguages(GetSupportedLanguagesRequest request) + *
  • getSupportedLanguages(GetSupportedLanguagesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSupportedLanguages(LocationName parent, String displayLanguageCode, String model) - *
  • getSupportedLanguages(String parent, String displayLanguageCode, String model) + *
  • getSupportedLanguages(LocationName parent, String displayLanguageCode, String model) + *

  • getSupportedLanguages(String parent, String displayLanguageCode, String model) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSupportedLanguagesCallable() + *
  • getSupportedLanguagesCallable() *

*
TranslateDocument

TranslateDocument

Translates documents in synchronous mode.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • translateDocument(TranslateDocumentRequest request) + *
  • translateDocument(TranslateDocumentRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • translateDocumentCallable() + *
  • translateDocumentCallable() *

*
BatchTranslateText

BatchTranslateText

Translates a large volume of text in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. *

This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchTranslateTextAsync(BatchTranslateTextRequest request) + *
  • batchTranslateTextAsync(BatchTranslateTextRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchTranslateTextOperationCallable() - *
  • batchTranslateTextCallable() + *
  • batchTranslateTextOperationCallable() + *

  • batchTranslateTextCallable() *

*
BatchTranslateDocument

BatchTranslateDocument

Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. *

This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) + *
  • batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • batchTranslateDocumentAsync(LocationName parent, String sourceLanguageCode, List targetLanguageCodes, List inputConfigs, BatchDocumentOutputConfig outputConfig) - *
  • batchTranslateDocumentAsync(String parent, String sourceLanguageCode, List targetLanguageCodes, List inputConfigs, BatchDocumentOutputConfig outputConfig) + *
  • batchTranslateDocumentAsync(LocationName parent, String sourceLanguageCode, List<String> targetLanguageCodes, List<BatchDocumentInputConfig> inputConfigs, BatchDocumentOutputConfig outputConfig) + *

  • batchTranslateDocumentAsync(String parent, String sourceLanguageCode, List<String> targetLanguageCodes, List<BatchDocumentInputConfig> inputConfigs, BatchDocumentOutputConfig outputConfig) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • batchTranslateDocumentOperationCallable() - *
  • batchTranslateDocumentCallable() + *
  • batchTranslateDocumentOperationCallable() + *

  • batchTranslateDocumentCallable() *

*
CreateGlossary

CreateGlossary

Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createGlossaryAsync(CreateGlossaryRequest request) + *
  • createGlossaryAsync(CreateGlossaryRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createGlossaryAsync(LocationName parent, Glossary glossary) - *
  • createGlossaryAsync(String parent, Glossary glossary) + *
  • createGlossaryAsync(LocationName parent, Glossary glossary) + *

  • createGlossaryAsync(String parent, Glossary glossary) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createGlossaryOperationCallable() - *
  • createGlossaryCallable() + *
  • createGlossaryOperationCallable() + *

  • createGlossaryCallable() *

*
ListGlossaries

ListGlossaries

Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listGlossaries(ListGlossariesRequest request) + *
  • listGlossaries(ListGlossariesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listGlossaries(LocationName parent, String filter) - *
  • listGlossaries(String parent, String filter) + *
  • listGlossaries(LocationName parent, String filter) + *

  • listGlossaries(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.

*
    - *
  • listGlossariesPagedCallable() - *
  • listGlossariesCallable() + *
  • listGlossariesPagedCallable() + *

  • listGlossariesCallable() *

*
GetGlossary

GetGlossary

Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getGlossary(GetGlossaryRequest request) + *
  • getGlossary(GetGlossaryRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getGlossary(GlossaryName name) - *
  • getGlossary(String name) + *
  • getGlossary(GlossaryName name) + *

  • getGlossary(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getGlossaryCallable() + *
  • getGlossaryCallable() *

*
DeleteGlossary

DeleteGlossary

Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns NOT_FOUND, if the glossary doesn't exist.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteGlossaryAsync(DeleteGlossaryRequest request) + *
  • deleteGlossaryAsync(DeleteGlossaryRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteGlossaryAsync(GlossaryName name) - *
  • deleteGlossaryAsync(String name) + *
  • deleteGlossaryAsync(GlossaryName name) + *

  • deleteGlossaryAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteGlossaryOperationCallable() - *
  • deleteGlossaryCallable() + *
  • deleteGlossaryOperationCallable() + *

  • deleteGlossaryCallable() *

*
* *

See the individual methods for example code. diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java index 20d1f74f9922..9255ce8e833e 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java @@ -313,6 +313,15 @@ public TranslationServiceStub 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() { @@ -585,7 +594,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); @@ -598,7 +606,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); @@ -867,6 +874,15 @@ public UnaryCallSettings.Builder deleteGlossar return deleteGlossaryOperationSettings; } + /** Returns the endpoint 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 TranslationServiceStubSettings build() throws IOException { return new TranslationServiceStubSettings(this); diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index b7be3c868ad6..c64ddc403d40 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/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-video-intelligence.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.32.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceClient.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceClient.java index a67611cfbf65..905b31c534fc 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceClient.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceClient.java @@ -57,30 +57,31 @@ * calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
AnnotateVideo

AnnotateVideo

Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • annotateVideoAsync(AnnotateVideoRequest request) + *
  • annotateVideoAsync(AnnotateVideoRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • annotateVideoAsync(String inputUri, List features) + *
  • annotateVideoAsync(String inputUri, List<Feature> features) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • annotateVideoOperationCallable() - *
  • annotateVideoCallable() + *
  • annotateVideoOperationCallable() + *

  • annotateVideoCallable() *

*
* *

See the individual methods for example code. diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.java index fa3ee7d1a9b2..a5b4d2ea3f86 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.java @@ -129,6 +129,15 @@ public VideoIntelligenceServiceStub 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() { @@ -301,7 +310,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); @@ -314,7 +322,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); @@ -383,6 +390,15 @@ public UnaryCallSettings.Builder annotateVideoS return annotateVideoOperationSettings; } + /** Returns the endpoint 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 VideoIntelligenceServiceStubSettings build() throws IOException { return new VideoIntelligenceServiceStubSettings(this); diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceClient.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceClient.java index 33ddc61d28d9..1dfb825085d6 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceClient.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceClient.java @@ -57,30 +57,31 @@ * calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
AnnotateVideo

AnnotateVideo

Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • annotateVideoAsync(AnnotateVideoRequest request) + *
  • annotateVideoAsync(AnnotateVideoRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • annotateVideoAsync(String inputUri, List features) + *
  • annotateVideoAsync(String inputUri, List<Feature> features) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • annotateVideoOperationCallable() - *
  • annotateVideoCallable() + *
  • annotateVideoOperationCallable() + *

  • annotateVideoCallable() *

*
* *

See the individual methods for example code. diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStubSettings.java index bdfde6599d18..2039d51d2d10 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStubSettings.java @@ -130,6 +130,15 @@ public VideoIntelligenceServiceStub 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() { @@ -302,7 +311,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); @@ -315,7 +323,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); @@ -384,6 +391,15 @@ public UnaryCallSettings.Builder annotateVideoS return annotateVideoOperationSettings; } + /** Returns the endpoint 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 VideoIntelligenceServiceStubSettings build() throws IOException { return new VideoIntelligenceServiceStubSettings(this); diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceClient.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceClient.java index 5bf6f31eadf2..121c984702a6 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceClient.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceClient.java @@ -57,30 +57,31 @@ * calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
AnnotateVideo

AnnotateVideo

Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • annotateVideoAsync(AnnotateVideoRequest request) + *
  • annotateVideoAsync(AnnotateVideoRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • annotateVideoAsync(String inputUri, List features) + *
  • annotateVideoAsync(String inputUri, List<Feature> features) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • annotateVideoOperationCallable() - *
  • annotateVideoCallable() + *
  • annotateVideoOperationCallable() + *

  • annotateVideoCallable() *

*
* *

See the individual methods for example code. diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStubSettings.java index e18d2562f9a4..fb9e4bb3db37 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStubSettings.java @@ -130,6 +130,15 @@ public VideoIntelligenceServiceStub 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() { @@ -302,7 +311,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); @@ -315,7 +323,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); @@ -384,6 +391,15 @@ public UnaryCallSettings.Builder annotateVideoS return annotateVideoOperationSettings; } + /** Returns the endpoint 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 VideoIntelligenceServiceStubSettings build() throws IOException { return new VideoIntelligenceServiceStubSettings(this); diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClient.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClient.java index bec90d2f25e4..0e1c6070cdd2 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClient.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClient.java @@ -57,30 +57,31 @@ * calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
AnnotateVideo

AnnotateVideo

Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • annotateVideoAsync(AnnotateVideoRequest request) + *
  • annotateVideoAsync(AnnotateVideoRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • annotateVideoAsync(String inputUri, List features) + *
  • annotateVideoAsync(String inputUri, List<Feature> features) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • annotateVideoOperationCallable() - *
  • annotateVideoCallable() + *
  • annotateVideoOperationCallable() + *

  • annotateVideoCallable() *

*
* *

See the individual methods for example code. diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java index 041a3518f529..20c6896632ee 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java @@ -130,6 +130,15 @@ public VideoIntelligenceServiceStub 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() { @@ -302,7 +311,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); @@ -315,7 +323,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); @@ -384,6 +391,15 @@ public UnaryCallSettings.Builder annotateVideoS return annotateVideoOperationSettings; } + /** Returns the endpoint 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 VideoIntelligenceServiceStubSettings build() throws IOException { return new VideoIntelligenceServiceStubSettings(this); diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java index 639ce641d401..1073eda44c90 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java @@ -55,21 +55,22 @@ * automatically calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
StreamingAnnotateVideo

StreamingAnnotateVideo

Performs video annotation with bidirectional streaming: emitting results while sending video/audio bytes. 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.

*
    - *
  • streamingAnnotateVideoCallable() + *
  • streamingAnnotateVideoCallable() *

*
* *

See the individual methods for example code. diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java index b528f20f6d12..cbb0c7fc4a7f 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java @@ -57,30 +57,31 @@ * calls close(). * * + * * * * * + * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
AnnotateVideo

AnnotateVideo

Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results).

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • annotateVideoAsync(AnnotateVideoRequest request) + *
  • annotateVideoAsync(AnnotateVideoRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • annotateVideoAsync(String inputUri, List features) + *
  • annotateVideoAsync(String inputUri, List<Feature> features) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • annotateVideoOperationCallable() - *
  • annotateVideoCallable() + *
  • annotateVideoOperationCallable() + *

  • annotateVideoCallable() *

*
* *

See the individual methods for example code. diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java index 2ae2d3304b07..039057359428 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java @@ -111,6 +111,15 @@ public StreamingVideoIntelligenceServiceStub 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() { @@ -258,7 +267,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -291,6 +299,15 @@ public Builder applyToAllUnaryMethods( return streamingAnnotateVideoSettings; } + /** Returns the endpoint 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 StreamingVideoIntelligenceServiceStubSettings build() throws IOException { return new StreamingVideoIntelligenceServiceStubSettings(this); diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java index 416312e15f6b..83e223980446 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java @@ -130,6 +130,15 @@ public VideoIntelligenceServiceStub 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() { @@ -302,7 +311,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); @@ -315,7 +323,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); @@ -384,6 +391,15 @@ public UnaryCallSettings.Builder annotateVideoS return annotateVideoOperationSettings; } + /** Returns the endpoint 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 VideoIntelligenceServiceStubSettings build() throws IOException { return new VideoIntelligenceServiceStubSettings(this); diff --git a/java-video-live-stream/README.md b/java-video-live-stream/README.md index 97fa03bbab6e..2b880915555c 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/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-live-stream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/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-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java index 2839b532d5e5..0bd9e6243feb 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java @@ -70,470 +70,471 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateChannel

CreateChannel

Creates a channel with the provided unique ID in the specified region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createChannelAsync(CreateChannelRequest request) + *
  • createChannelAsync(CreateChannelRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createChannelAsync(LocationName parent, Channel channel, String channelId) - *
  • createChannelAsync(String parent, Channel channel, String channelId) + *
  • createChannelAsync(LocationName parent, Channel channel, String channelId) + *

  • createChannelAsync(String parent, Channel channel, String channelId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createChannelOperationCallable() - *
  • createChannelCallable() + *
  • createChannelOperationCallable() + *

  • createChannelCallable() *

*
ListChannels

ListChannels

Returns a list of all channels in the specified region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listChannels(ListChannelsRequest request) + *
  • listChannels(ListChannelsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listChannels(LocationName parent) - *
  • listChannels(String parent) + *
  • listChannels(LocationName parent) + *

  • listChannels(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listChannelsPagedCallable() - *
  • listChannelsCallable() + *
  • listChannelsPagedCallable() + *

  • listChannelsCallable() *

*
GetChannel

GetChannel

Returns the specified channel.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getChannel(GetChannelRequest request) + *
  • getChannel(GetChannelRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getChannel(ChannelName name) - *
  • getChannel(String name) + *
  • getChannel(ChannelName name) + *

  • getChannel(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getChannelCallable() + *
  • getChannelCallable() *

*
DeleteChannel

DeleteChannel

Deletes the specified channel.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteChannelAsync(DeleteChannelRequest request) + *
  • deleteChannelAsync(DeleteChannelRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteChannelAsync(ChannelName name) - *
  • deleteChannelAsync(String name) + *
  • deleteChannelAsync(ChannelName name) + *

  • deleteChannelAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteChannelOperationCallable() - *
  • deleteChannelCallable() + *
  • deleteChannelOperationCallable() + *

  • deleteChannelCallable() *

*
UpdateChannel

UpdateChannel

Updates the specified channel.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateChannelAsync(UpdateChannelRequest request) + *
  • updateChannelAsync(UpdateChannelRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateChannelAsync(Channel channel, FieldMask updateMask) + *
  • updateChannelAsync(Channel channel, FieldMask updateMask) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • updateChannelOperationCallable() - *
  • updateChannelCallable() + *
  • updateChannelOperationCallable() + *

  • updateChannelCallable() *

*
StartChannel

StartChannel

Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • startChannelAsync(StartChannelRequest request) + *
  • startChannelAsync(StartChannelRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • startChannelAsync(ChannelName name) - *
  • startChannelAsync(String name) + *
  • startChannelAsync(ChannelName name) + *

  • startChannelAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • startChannelOperationCallable() - *
  • startChannelCallable() + *
  • startChannelOperationCallable() + *

  • startChannelCallable() *

*
StopChannel

StopChannel

Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • stopChannelAsync(StopChannelRequest request) + *
  • stopChannelAsync(StopChannelRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • stopChannelAsync(ChannelName name) - *
  • stopChannelAsync(String name) + *
  • stopChannelAsync(ChannelName name) + *

  • stopChannelAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • stopChannelOperationCallable() - *
  • stopChannelCallable() + *
  • stopChannelOperationCallable() + *

  • stopChannelCallable() *

*
CreateInput

CreateInput

Creates an input with the provided unique ID in the specified region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createInputAsync(CreateInputRequest request) + *
  • createInputAsync(CreateInputRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createInputAsync(LocationName parent, Input input, String inputId) - *
  • createInputAsync(String parent, Input input, String inputId) + *
  • createInputAsync(LocationName parent, Input input, String inputId) + *

  • createInputAsync(String parent, Input input, String inputId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createInputOperationCallable() - *
  • createInputCallable() + *
  • createInputOperationCallable() + *

  • createInputCallable() *

*
ListInputs

ListInputs

Returns a list of all inputs in the specified region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listInputs(ListInputsRequest request) + *
  • listInputs(ListInputsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listInputs(LocationName parent) - *
  • listInputs(String parent) + *
  • listInputs(LocationName parent) + *

  • listInputs(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.

*
    - *
  • listInputsPagedCallable() - *
  • listInputsCallable() + *
  • listInputsPagedCallable() + *

  • listInputsCallable() *

*
GetInput

GetInput

Returns the specified input.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getInput(GetInputRequest request) + *
  • getInput(GetInputRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getInput(InputName name) - *
  • getInput(String name) + *
  • getInput(InputName name) + *

  • getInput(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getInputCallable() + *
  • getInputCallable() *

*
DeleteInput

DeleteInput

Deletes the specified input.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteInputAsync(DeleteInputRequest request) + *
  • deleteInputAsync(DeleteInputRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteInputAsync(InputName name) - *
  • deleteInputAsync(String name) + *
  • deleteInputAsync(InputName name) + *

  • deleteInputAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteInputOperationCallable() - *
  • deleteInputCallable() + *
  • deleteInputOperationCallable() + *

  • deleteInputCallable() *

*
UpdateInput

UpdateInput

Updates the specified input.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateInputAsync(UpdateInputRequest request) + *
  • updateInputAsync(UpdateInputRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateInputAsync(Input input, FieldMask updateMask) + *
  • updateInputAsync(Input input, 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.

*
    - *
  • updateInputOperationCallable() - *
  • updateInputCallable() + *
  • updateInputOperationCallable() + *

  • updateInputCallable() *

*
CreateEvent

CreateEvent

Creates an event with the provided unique ID in the specified channel.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createEvent(CreateEventRequest request) + *
  • createEvent(CreateEventRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createEvent(ChannelName parent, Event event, String eventId) - *
  • createEvent(String parent, Event event, String eventId) + *
  • createEvent(ChannelName parent, Event event, String eventId) + *

  • createEvent(String parent, Event event, String eventId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createEventCallable() + *
  • createEventCallable() *

*
ListEvents

ListEvents

Returns a list of all events in the specified channel.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listEvents(ListEventsRequest request) + *
  • listEvents(ListEventsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listEvents(ChannelName parent) - *
  • listEvents(String parent) + *
  • listEvents(ChannelName parent) + *

  • listEvents(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.

*
    - *
  • listEventsPagedCallable() - *
  • listEventsCallable() + *
  • listEventsPagedCallable() + *

  • listEventsCallable() *

*
GetEvent

GetEvent

Returns the specified event.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getEvent(GetEventRequest request) + *
  • getEvent(GetEventRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getEvent(EventName name) - *
  • getEvent(String name) + *
  • getEvent(EventName name) + *

  • getEvent(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getEventCallable() + *
  • getEventCallable() *

*
DeleteEvent

DeleteEvent

Deletes the specified event.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteEvent(DeleteEventRequest request) + *
  • deleteEvent(DeleteEventRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteEvent(EventName name) - *
  • deleteEvent(String name) + *
  • deleteEvent(EventName name) + *

  • deleteEvent(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteEventCallable() + *
  • deleteEventCallable() *

*
CreateAsset

CreateAsset

Creates a Asset with the provided unique ID in the specified region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createAssetAsync(CreateAssetRequest request) + *
  • createAssetAsync(CreateAssetRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createAssetAsync(LocationName parent, Asset asset, String assetId) - *
  • createAssetAsync(String parent, Asset asset, String assetId) + *
  • createAssetAsync(LocationName parent, Asset asset, String assetId) + *

  • createAssetAsync(String parent, Asset asset, String assetId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createAssetOperationCallable() - *
  • createAssetCallable() + *
  • createAssetOperationCallable() + *

  • createAssetCallable() *

*
DeleteAsset

DeleteAsset

Deletes the specified asset if it is not used.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteAssetAsync(DeleteAssetRequest request) + *
  • deleteAssetAsync(DeleteAssetRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteAssetAsync(AssetName name) - *
  • deleteAssetAsync(String name) + *
  • deleteAssetAsync(AssetName name) + *

  • deleteAssetAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteAssetOperationCallable() - *
  • deleteAssetCallable() + *
  • deleteAssetOperationCallable() + *

  • deleteAssetCallable() *

*
GetAsset

GetAsset

Returns the specified asset.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getAsset(GetAssetRequest request) + *
  • getAsset(GetAssetRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getAsset(AssetName name) - *
  • getAsset(String name) + *
  • getAsset(AssetName name) + *

  • getAsset(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getAssetCallable() + *
  • getAssetCallable() *

*
ListAssets

ListAssets

Returns a list of all assets in the specified region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listAssets(ListAssetsRequest request) + *
  • listAssets(ListAssetsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listAssets(LocationName parent) - *
  • listAssets(String parent) + *
  • listAssets(LocationName parent) + *

  • listAssets(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.

*
    - *
  • listAssetsPagedCallable() - *
  • listAssetsCallable() + *
  • listAssetsPagedCallable() + *

  • listAssetsCallable() *

*
GetPool

GetPool

Returns the specified pool.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getPool(GetPoolRequest request) + *
  • getPool(GetPoolRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getPool(PoolName name) - *
  • getPool(String name) + *
  • getPool(PoolName name) + *

  • getPool(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getPoolCallable() + *
  • getPoolCallable() *

*
UpdatePool

UpdatePool

Updates the specified pool.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updatePoolAsync(UpdatePoolRequest request) + *
  • updatePoolAsync(UpdatePoolRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updatePoolAsync(Pool pool, FieldMask updateMask) + *
  • updatePoolAsync(Pool pool, 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.

*
    - *
  • updatePoolOperationCallable() - *
  • updatePoolCallable() + *
  • updatePoolOperationCallable() + *

  • updatePoolCallable() *

*
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-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java index 3b337dda2cd5..228a94c9384d 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java @@ -671,6 +671,15 @@ public LivestreamServiceStub 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() { @@ -1054,7 +1063,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); @@ -1067,7 +1075,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); @@ -1686,6 +1693,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 LivestreamServiceStubSettings build() throws IOException { return new LivestreamServiceStubSettings(this); diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index 14425b2b6c34..9c1fd5541418 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/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-video-stitcher.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.33.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClient.java b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClient.java index d9d5cd30ee35..42b878ab34c9 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClient.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClient.java @@ -66,479 +66,480 @@ * calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateCdnKey

CreateCdnKey

Creates a new CDN key.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createCdnKeyAsync(CreateCdnKeyRequest request) + *
  • createCdnKeyAsync(CreateCdnKeyRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createCdnKeyAsync(LocationName parent, CdnKey cdnKey, String cdnKeyId) - *
  • createCdnKeyAsync(String parent, CdnKey cdnKey, String cdnKeyId) + *
  • createCdnKeyAsync(LocationName parent, CdnKey cdnKey, String cdnKeyId) + *

  • createCdnKeyAsync(String parent, CdnKey cdnKey, String cdnKeyId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createCdnKeyOperationCallable() - *
  • createCdnKeyCallable() + *
  • createCdnKeyOperationCallable() + *

  • createCdnKeyCallable() *

*
ListCdnKeys

ListCdnKeys

Lists all CDN keys in the specified project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listCdnKeys(ListCdnKeysRequest request) + *
  • listCdnKeys(ListCdnKeysRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listCdnKeys(LocationName parent) - *
  • listCdnKeys(String parent) + *
  • listCdnKeys(LocationName parent) + *

  • listCdnKeys(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.

*
    - *
  • listCdnKeysPagedCallable() - *
  • listCdnKeysCallable() + *
  • listCdnKeysPagedCallable() + *

  • listCdnKeysCallable() *

*
GetCdnKey

GetCdnKey

Returns the specified CDN key.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getCdnKey(GetCdnKeyRequest request) + *
  • getCdnKey(GetCdnKeyRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getCdnKey(CdnKeyName name) - *
  • getCdnKey(String name) + *
  • getCdnKey(CdnKeyName name) + *

  • getCdnKey(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getCdnKeyCallable() + *
  • getCdnKeyCallable() *

*
DeleteCdnKey

DeleteCdnKey

Deletes the specified CDN key.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteCdnKeyAsync(DeleteCdnKeyRequest request) + *
  • deleteCdnKeyAsync(DeleteCdnKeyRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteCdnKeyAsync(CdnKeyName name) - *
  • deleteCdnKeyAsync(String name) + *
  • deleteCdnKeyAsync(CdnKeyName name) + *

  • deleteCdnKeyAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteCdnKeyOperationCallable() - *
  • deleteCdnKeyCallable() + *
  • deleteCdnKeyOperationCallable() + *

  • deleteCdnKeyCallable() *

*
UpdateCdnKey

UpdateCdnKey

Updates the specified CDN key. Only update fields specified in the call method body.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateCdnKeyAsync(UpdateCdnKeyRequest request) + *
  • updateCdnKeyAsync(UpdateCdnKeyRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateCdnKeyAsync(CdnKey cdnKey, FieldMask updateMask) + *
  • updateCdnKeyAsync(CdnKey cdnKey, 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.

*
    - *
  • updateCdnKeyOperationCallable() - *
  • updateCdnKeyCallable() + *
  • updateCdnKeyOperationCallable() + *

  • updateCdnKeyCallable() *

*
CreateVodSession

CreateVodSession

Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createVodSession(CreateVodSessionRequest request) + *
  • createVodSession(CreateVodSessionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createVodSession(LocationName parent, VodSession vodSession) - *
  • createVodSession(String parent, VodSession vodSession) + *
  • createVodSession(LocationName parent, VodSession vodSession) + *

  • createVodSession(String parent, VodSession vodSession) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createVodSessionCallable() + *
  • createVodSessionCallable() *

*
GetVodSession

GetVodSession

Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getVodSession(GetVodSessionRequest request) + *
  • getVodSession(GetVodSessionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getVodSession(VodSessionName name) - *
  • getVodSession(String name) + *
  • getVodSession(VodSessionName name) + *

  • getVodSession(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getVodSessionCallable() + *
  • getVodSessionCallable() *

*
ListVodStitchDetails

ListVodStitchDetails

Returns a list of detailed stitching information of the specified VOD session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listVodStitchDetails(ListVodStitchDetailsRequest request) + *
  • listVodStitchDetails(ListVodStitchDetailsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listVodStitchDetails(VodSessionName parent) - *
  • listVodStitchDetails(String parent) + *
  • listVodStitchDetails(VodSessionName parent) + *

  • listVodStitchDetails(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.

*
    - *
  • listVodStitchDetailsPagedCallable() - *
  • listVodStitchDetailsCallable() + *
  • listVodStitchDetailsPagedCallable() + *

  • listVodStitchDetailsCallable() *

*
GetVodStitchDetail

GetVodStitchDetail

Returns the specified stitching information for the specified VOD session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getVodStitchDetail(GetVodStitchDetailRequest request) + *
  • getVodStitchDetail(GetVodStitchDetailRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getVodStitchDetail(VodStitchDetailName name) - *
  • getVodStitchDetail(String name) + *
  • getVodStitchDetail(VodStitchDetailName name) + *

  • getVodStitchDetail(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getVodStitchDetailCallable() + *
  • getVodStitchDetailCallable() *

*
ListVodAdTagDetails

ListVodAdTagDetails

Return the list of ad tag details for the specified VOD session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listVodAdTagDetails(ListVodAdTagDetailsRequest request) + *
  • listVodAdTagDetails(ListVodAdTagDetailsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listVodAdTagDetails(VodSessionName parent) - *
  • listVodAdTagDetails(String parent) + *
  • listVodAdTagDetails(VodSessionName parent) + *

  • listVodAdTagDetails(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.

*
    - *
  • listVodAdTagDetailsPagedCallable() - *
  • listVodAdTagDetailsCallable() + *
  • listVodAdTagDetailsPagedCallable() + *

  • listVodAdTagDetailsCallable() *

*
GetVodAdTagDetail

GetVodAdTagDetail

Returns the specified ad tag detail for the specified VOD session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getVodAdTagDetail(GetVodAdTagDetailRequest request) + *
  • getVodAdTagDetail(GetVodAdTagDetailRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getVodAdTagDetail(VodAdTagDetailName name) - *
  • getVodAdTagDetail(String name) + *
  • getVodAdTagDetail(VodAdTagDetailName name) + *

  • getVodAdTagDetail(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getVodAdTagDetailCallable() + *
  • getVodAdTagDetailCallable() *

*
ListLiveAdTagDetails

ListLiveAdTagDetails

Return the list of ad tag details for the specified live session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLiveAdTagDetails(ListLiveAdTagDetailsRequest request) + *
  • listLiveAdTagDetails(ListLiveAdTagDetailsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listLiveAdTagDetails(LiveSessionName parent) - *
  • listLiveAdTagDetails(String parent) + *
  • listLiveAdTagDetails(LiveSessionName parent) + *

  • listLiveAdTagDetails(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.

*
    - *
  • listLiveAdTagDetailsPagedCallable() - *
  • listLiveAdTagDetailsCallable() + *
  • listLiveAdTagDetailsPagedCallable() + *

  • listLiveAdTagDetailsCallable() *

*
GetLiveAdTagDetail

GetLiveAdTagDetail

Returns the specified ad tag detail for the specified live session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLiveAdTagDetail(GetLiveAdTagDetailRequest request) + *
  • getLiveAdTagDetail(GetLiveAdTagDetailRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getLiveAdTagDetail(LiveAdTagDetailName name) - *
  • getLiveAdTagDetail(String name) + *
  • getLiveAdTagDetail(LiveAdTagDetailName name) + *

  • getLiveAdTagDetail(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLiveAdTagDetailCallable() + *
  • getLiveAdTagDetailCallable() *

*
CreateSlate

CreateSlate

Creates a slate.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createSlateAsync(CreateSlateRequest request) + *
  • createSlateAsync(CreateSlateRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createSlateAsync(LocationName parent, Slate slate, String slateId) - *
  • createSlateAsync(String parent, Slate slate, String slateId) + *
  • createSlateAsync(LocationName parent, Slate slate, String slateId) + *

  • createSlateAsync(String parent, Slate slate, String slateId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createSlateOperationCallable() - *
  • createSlateCallable() + *
  • createSlateOperationCallable() + *

  • createSlateCallable() *

*
ListSlates

ListSlates

Lists all slates in the specified project and location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listSlates(ListSlatesRequest request) + *
  • listSlates(ListSlatesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listSlates(LocationName parent) - *
  • listSlates(String parent) + *
  • listSlates(LocationName parent) + *

  • listSlates(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.

*
    - *
  • listSlatesPagedCallable() - *
  • listSlatesCallable() + *
  • listSlatesPagedCallable() + *

  • listSlatesCallable() *

*
GetSlate

GetSlate

Returns the specified slate.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getSlate(GetSlateRequest request) + *
  • getSlate(GetSlateRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getSlate(SlateName name) - *
  • getSlate(String name) + *
  • getSlate(SlateName name) + *

  • getSlate(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getSlateCallable() + *
  • getSlateCallable() *

*
UpdateSlate

UpdateSlate

Updates the specified slate.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • updateSlateAsync(UpdateSlateRequest request) + *
  • updateSlateAsync(UpdateSlateRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • updateSlateAsync(Slate slate, FieldMask updateMask) + *
  • updateSlateAsync(Slate slate, 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.

*
    - *
  • updateSlateOperationCallable() - *
  • updateSlateCallable() + *
  • updateSlateOperationCallable() + *

  • updateSlateCallable() *

*
DeleteSlate

DeleteSlate

Deletes the specified slate.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteSlateAsync(DeleteSlateRequest request) + *
  • deleteSlateAsync(DeleteSlateRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteSlateAsync(SlateName name) - *
  • deleteSlateAsync(String name) + *
  • deleteSlateAsync(SlateName name) + *

  • deleteSlateAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteSlateOperationCallable() - *
  • deleteSlateCallable() + *
  • deleteSlateOperationCallable() + *

  • deleteSlateCallable() *

*
CreateLiveSession

CreateLiveSession

Creates a new live session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createLiveSession(CreateLiveSessionRequest request) + *
  • createLiveSession(CreateLiveSessionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createLiveSession(LocationName parent, LiveSession liveSession) - *
  • createLiveSession(String parent, LiveSession liveSession) + *
  • createLiveSession(LocationName parent, LiveSession liveSession) + *

  • createLiveSession(String parent, LiveSession liveSession) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createLiveSessionCallable() + *
  • createLiveSessionCallable() *

*
GetLiveSession

GetLiveSession

Returns the details for the specified live session.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLiveSession(GetLiveSessionRequest request) + *
  • getLiveSession(GetLiveSessionRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getLiveSession(LiveSessionName name) - *
  • getLiveSession(String name) + *
  • getLiveSession(LiveSessionName name) + *

  • getLiveSession(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLiveSessionCallable() + *
  • getLiveSessionCallable() *

*
CreateLiveConfig

CreateLiveConfig

Registers the live config with the provided unique ID in the specified region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createLiveConfigAsync(CreateLiveConfigRequest request) + *
  • createLiveConfigAsync(CreateLiveConfigRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • createLiveConfigAsync(LocationName parent, LiveConfig liveConfig, String liveConfigId) - *
  • createLiveConfigAsync(String parent, LiveConfig liveConfig, String liveConfigId) + *
  • createLiveConfigAsync(LocationName parent, LiveConfig liveConfig, String liveConfigId) + *

  • createLiveConfigAsync(String parent, LiveConfig liveConfig, String liveConfigId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createLiveConfigOperationCallable() - *
  • createLiveConfigCallable() + *
  • createLiveConfigOperationCallable() + *

  • createLiveConfigCallable() *

*
ListLiveConfigs

ListLiveConfigs

Lists all live configs managed by the Video Stitcher that belong to the specified project and region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLiveConfigs(ListLiveConfigsRequest request) + *
  • listLiveConfigs(ListLiveConfigsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listLiveConfigs(LocationName parent) - *
  • listLiveConfigs(String parent) + *
  • listLiveConfigs(LocationName parent) + *

  • listLiveConfigs(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.

*
    - *
  • listLiveConfigsPagedCallable() - *
  • listLiveConfigsCallable() + *
  • listLiveConfigsPagedCallable() + *

  • listLiveConfigsCallable() *

*
GetLiveConfig

GetLiveConfig

Returns the specified live config managed by the Video Stitcher service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLiveConfig(GetLiveConfigRequest request) + *
  • getLiveConfig(GetLiveConfigRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getLiveConfig(LiveConfigName name) - *
  • getLiveConfig(String name) + *
  • getLiveConfig(LiveConfigName name) + *

  • getLiveConfig(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLiveConfigCallable() + *
  • getLiveConfigCallable() *

*
DeleteLiveConfig

DeleteLiveConfig

Deletes the specified live config.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteLiveConfigAsync(DeleteLiveConfigRequest request) + *
  • deleteLiveConfigAsync(DeleteLiveConfigRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteLiveConfigAsync(LiveConfigName name) - *
  • deleteLiveConfigAsync(String name) + *
  • deleteLiveConfigAsync(LiveConfigName name) + *

  • deleteLiveConfigAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteLiveConfigOperationCallable() - *
  • deleteLiveConfigCallable() + *
  • deleteLiveConfigOperationCallable() + *

  • deleteLiveConfigCallable() *

*
* *

See the individual methods for example code. diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java index 5cb84a49b5b5..2c43ce4c74ce 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java @@ -750,6 +750,15 @@ public VideoStitcherServiceStub 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() { @@ -1094,7 +1103,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); @@ -1637,6 +1645,15 @@ public UnaryCallSettings.Builder getLiveConfig return deleteLiveConfigOperationSettings; } + /** Returns the endpoint 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 VideoStitcherServiceStubSettings build() throws IOException { return new VideoStitcherServiceStubSettings(this); diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index 43ecf8ed5e96..bd378f4b445f 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/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-video-transcoder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/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-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClient.java b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClient.java index fb4f648a5d4f..e58724b85832 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClient.java +++ b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClient.java @@ -62,165 +62,166 @@ * close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateJob

CreateJob

Creates a job in the specified region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createJob(CreateJobRequest request) + *
  • createJob(CreateJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createJob(LocationName parent, Job job) - *
  • createJob(String parent, Job job) + *
  • createJob(LocationName parent, Job job) + *

  • createJob(String parent, Job job) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createJobCallable() + *
  • createJobCallable() *

*
ListJobs

ListJobs

Lists jobs in the specified region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listJobs(ListJobsRequest request) + *
  • listJobs(ListJobsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listJobs(LocationName parent) - *
  • listJobs(String parent) + *
  • listJobs(LocationName parent) + *

  • listJobs(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.

*
    - *
  • listJobsPagedCallable() - *
  • listJobsCallable() + *
  • listJobsPagedCallable() + *

  • listJobsCallable() *

*
GetJob

GetJob

Returns the job data.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getJob(GetJobRequest request) + *
  • getJob(GetJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getJob(JobName name) - *
  • getJob(String name) + *
  • getJob(JobName name) + *

  • getJob(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getJobCallable() + *
  • getJobCallable() *

*
DeleteJob

DeleteJob

Deletes a job.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteJob(DeleteJobRequest request) + *
  • deleteJob(DeleteJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteJob(JobName name) - *
  • deleteJob(String name) + *
  • deleteJob(JobName name) + *

  • deleteJob(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteJobCallable() + *
  • deleteJobCallable() *

*
CreateJobTemplate

CreateJobTemplate

Creates a job template in the specified region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createJobTemplate(CreateJobTemplateRequest request) + *
  • createJobTemplate(CreateJobTemplateRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createJobTemplate(LocationName parent, JobTemplate jobTemplate, String jobTemplateId) - *
  • createJobTemplate(String parent, JobTemplate jobTemplate, String jobTemplateId) + *
  • createJobTemplate(LocationName parent, JobTemplate jobTemplate, String jobTemplateId) + *

  • createJobTemplate(String parent, JobTemplate jobTemplate, String jobTemplateId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createJobTemplateCallable() + *
  • createJobTemplateCallable() *

*
ListJobTemplates

ListJobTemplates

Lists job templates in the specified region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listJobTemplates(ListJobTemplatesRequest request) + *
  • listJobTemplates(ListJobTemplatesRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listJobTemplates(LocationName parent) - *
  • listJobTemplates(String parent) + *
  • listJobTemplates(LocationName parent) + *

  • listJobTemplates(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.

*
    - *
  • listJobTemplatesPagedCallable() - *
  • listJobTemplatesCallable() + *
  • listJobTemplatesPagedCallable() + *

  • listJobTemplatesCallable() *

*
GetJobTemplate

GetJobTemplate

Returns the job template data.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getJobTemplate(GetJobTemplateRequest request) + *
  • getJobTemplate(GetJobTemplateRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getJobTemplate(JobTemplateName name) - *
  • getJobTemplate(String name) + *
  • getJobTemplate(JobTemplateName name) + *

  • getJobTemplate(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getJobTemplateCallable() + *
  • getJobTemplateCallable() *

*
DeleteJobTemplate

DeleteJobTemplate

Deletes a job template.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteJobTemplate(DeleteJobTemplateRequest request) + *
  • deleteJobTemplate(DeleteJobTemplateRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • deleteJobTemplate(JobTemplateName name) - *
  • deleteJobTemplate(String name) + *
  • deleteJobTemplate(JobTemplateName name) + *

  • deleteJobTemplate(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteJobTemplateCallable() + *
  • deleteJobTemplateCallable() *

*
* *

See the individual methods for example code. diff --git a/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java index 592eae9aa0c7..b8a61d09ae4b 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java +++ b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java @@ -292,6 +292,15 @@ public TranscoderServiceStub 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() { @@ -502,7 +511,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); @@ -515,7 +523,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); @@ -625,6 +632,15 @@ public UnaryCallSettings.Builder deleteJobTempl return deleteJobTemplateSettings; } + /** Returns the endpoint 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 TranscoderServiceStubSettings build() throws IOException { return new TranscoderServiceStubSettings(this);