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
*
* | Method |
* Description |
* Method 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | UpdateAdminOverride |
+ * UpdateAdminOverride |
* Updates an admin override. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | DeleteAdminOverride |
+ * DeleteAdminOverride |
* Deletes an admin override. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | UpdateConsumerOverride |
+ * UpdateConsumerOverride |
* Updates a consumer override. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | DeleteConsumerOverride |
+ * DeleteConsumerOverride |
* Deletes a consumer override. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* |
*
*
- * | ListNamespaces |
+ * ListNamespaces |
* Lists all namespaces. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetNamespace |
+ * GetNamespace |
* Gets a namespace. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetService |
+ * GetService |
* Gets a service. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | ListEndpoints |
+ * ListEndpoints |
* Lists all endpoints. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetEndpoint |
+ * GetEndpoint |
* Gets an endpoint. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | DeleteEndpoint |
+ * DeleteEndpoint |
* Deletes an endpoint. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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.
*
* 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* |
*
*
- * | ListNamespaces |
+ * ListNamespaces |
* Lists all namespaces. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetNamespace |
+ * GetNamespace |
* Gets a namespace. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetService |
+ * GetService |
* Gets a service. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | ListEndpoints |
+ * ListEndpoints |
* Lists all endpoints. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetEndpoint |
+ * GetEndpoint |
* Gets an endpoint. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | DeleteEndpoint |
+ * DeleteEndpoint |
* Deletes an endpoint. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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.
*
* 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | UpdateAccountLabel |
+ * UpdateAccountLabel |
* Updates a label. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* |
*
*
- * | GetPhraseSet |
+ * GetPhraseSet |
* Get a phrase set. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | UpdatePhraseSet |
+ * UpdatePhraseSet |
* Update a phrase set. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | DeletePhraseSet |
+ * DeletePhraseSet |
* Delete a phrase set. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | CreateCustomClass |
+ * CreateCustomClass |
* Create a custom class. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "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.
*
* |
*
*
- * | GetCustomClass |
+ * GetCustomClass |
* Get a custom class. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | ListCustomClasses |
+ * ListCustomClasses |
* List custom classes. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | UpdateCustomClass |
+ * UpdateCustomClass |
* Update a custom class. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | DeleteCustomClass |
+ * DeleteCustomClass |
* Delete a custom class. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* |
*
*
- * | GetPhraseSet |
+ * GetPhraseSet |
* Get a phrase set. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | UpdatePhraseSet |
+ * UpdatePhraseSet |
* Update a phrase set. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | DeletePhraseSet |
+ * DeletePhraseSet |
* Delete a phrase set. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | CreateCustomClass |
+ * CreateCustomClass |
* Create a custom class. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "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.
*
* |
*
*
- * | GetCustomClass |
+ * GetCustomClass |
* Get a custom class. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | ListCustomClasses |
+ * ListCustomClasses |
* List custom classes. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | UpdateCustomClass |
+ * UpdateCustomClass |
* Update a custom class. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | DeleteCustomClass |
+ * DeleteCustomClass |
* Delete a custom class. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* 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.
*
* |
*
*
- * | ListRecognizers |
+ * ListRecognizers |
* Lists Recognizers. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* 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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* 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.
*
* |
*
*
- * | ListCustomClasses |
+ * ListCustomClasses |
* Lists CustomClasses. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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.
*
* |
*
*
- * | ListPhraseSets |
+ * ListPhraseSets |
* Lists PhraseSets. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetTransferJob |
+ * GetTransferJob |
* Gets a transfer job. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | ListTransferJobs |
+ * ListTransferJobs |
* Lists transfer jobs. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | PauseTransferOperation |
+ * PauseTransferOperation |
* Pauses a transfer operation. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetAgentPool |
+ * GetAgentPool |
* Gets an agent pool. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | DeleteAgentPool |
+ * DeleteAgentPool |
* Deletes an agent pool. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | DeleteReportConfig |
+ * DeleteReportConfig |
* Deletes a single ReportConfig. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* |
*
*
- * | GetCompany |
+ * GetCompany |
* Retrieves specified company. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* 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.
*
* |
*
*
- * | 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.
*
* "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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* 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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* 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.
*
* |
*
*
- * | ListJobs |
+ * ListJobs |
* Lists jobs by filter. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "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.
*
* |
*
*
- * | 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.
*
* 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* |
*
*
- * | GetCompany |
+ * GetCompany |
* Retrieves specified company. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* 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.
*
* |
*
*
- * | 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.
*
* "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.
*
* "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.
*
* 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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "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.
*
* |
*
*
- * | ListJobs |
+ * ListJobs |
* Lists jobs by filter. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "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.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetQueue |
+ * GetQueue |
* Gets a queue. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetTask |
+ * GetTask |
* Gets a task. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetQueue |
+ * GetQueue |
* Gets a queue. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetTask |
+ * GetTask |
* Gets a task. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "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.
*
* "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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetQueue |
+ * GetQueue |
* Gets a queue. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetTask |
+ * GetTask |
* Gets a task. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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.
*
* |
*
*
- * | DeleteOrchestrationCluster |
+ * DeleteOrchestrationCluster |
* Deletes a single OrchestrationCluster. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* 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.
*
* |
*
*
- * | DeleteEdgeSlm |
+ * DeleteEdgeSlm |
* Deletes a single EdgeSlm. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | CreateBlueprint |
+ * CreateBlueprint |
* Creates a blueprint. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "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.
*
* |
*
*
- * | UpdateBlueprint |
+ * UpdateBlueprint |
* Updates a blueprint. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetBlueprint |
+ * GetBlueprint |
* Returns the requested blueprint. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | ListBlueprints |
+ * ListBlueprints |
* List all blueprints. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | SearchBlueprintRevisions |
+ * SearchBlueprintRevisions |
* Searches across blueprint revisions. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "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.
*
* |
*
*
- * | SearchDeploymentRevisions |
+ * SearchDeploymentRevisions |
* Searches across deployment revisions. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | CreateDeployment |
+ * CreateDeployment |
* Creates a deployment. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "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.
*
* |
*
*
- * | UpdateDeployment |
+ * UpdateDeployment |
* Updates a deployment. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetDeployment |
+ * GetDeployment |
* Returns the requested deployment. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | ListDeployments |
+ * ListDeployments |
* List all deployments. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | UpdateHydratedDeployment |
+ * UpdateHydratedDeployment |
* Updates a hydrated deployment. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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.
*
* |
*
*
- * | DeleteOrchestrationCluster |
+ * DeleteOrchestrationCluster |
* Deletes a single OrchestrationCluster. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* 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.
*
* |
*
*
- * | DeleteEdgeSlm |
+ * DeleteEdgeSlm |
* Deletes a single EdgeSlm. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | CreateBlueprint |
+ * CreateBlueprint |
* Creates a blueprint. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "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.
*
* |
*
*
- * | UpdateBlueprint |
+ * UpdateBlueprint |
* Updates a blueprint. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetBlueprint |
+ * GetBlueprint |
* Returns the requested blueprint. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | ListBlueprints |
+ * ListBlueprints |
* List all blueprints. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | SearchBlueprintRevisions |
+ * SearchBlueprintRevisions |
* Searches across blueprint revisions. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "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.
*
* |
*
*
- * | SearchDeploymentRevisions |
+ * SearchDeploymentRevisions |
* Searches across deployment revisions. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | CreateDeployment |
+ * CreateDeployment |
* Creates a deployment. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "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.
*
* |
*
*
- * | UpdateDeployment |
+ * UpdateDeployment |
* Updates a deployment. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetDeployment |
+ * GetDeployment |
* Returns the requested deployment. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | ListDeployments |
+ * ListDeployments |
* List all deployments. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | UpdateHydratedDeployment |
+ * UpdateHydratedDeployment |
* Updates a hydrated deployment. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method Variants |
+ *
*
- * | ListNodes |
+ * ListNodes |
* Lists nodes. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* 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.
*
* |
*
*
- * | DeleteNode |
+ * DeleteNode |
* Deletes a node. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | StartNode |
+ * StartNode |
* Starts a node. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetTensorFlowVersion |
+ * GetTensorFlowVersion |
* Gets TensorFlow Version. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetAcceleratorType |
+ * GetAcceleratorType |
* Gets AcceleratorType. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method Variants |
+ *
*
- * | ListNodes |
+ * ListNodes |
* Lists nodes. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* 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.
*
* |
*
*
- * | DeleteNode |
+ * DeleteNode |
* Deletes a node. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | StartNode |
+ * StartNode |
* Starts a node. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetAcceleratorType |
+ * GetAcceleratorType |
* Gets AcceleratorType. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetRuntimeVersion |
+ * GetRuntimeVersion |
* Gets a runtime version. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method Variants |
+ *
*
- * | ListNodes |
+ * ListNodes |
* Lists nodes. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* 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.
*
* |
*
*
- * | DeleteNode |
+ * DeleteNode |
* Deletes a node. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | StartNode |
+ * StartNode |
* Starts a node. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | ListQueuedResources |
+ * ListQueuedResources |
* Lists queued resources. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetAcceleratorType |
+ * GetAcceleratorType |
* Gets AcceleratorType. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetRuntimeVersion |
+ * GetRuntimeVersion |
* Gets a runtime version. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | SimulateMaintenanceEvent |
+ * SimulateMaintenanceEvent |
* Simulates a maintenance event. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* |
*
*
- * | CreateSpan |
+ * CreateSpan |
* Creates a new span. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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.
*
* |
*
*
- * | 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.
*
* 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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | GetAdaptiveMtFile |
+ * GetAdaptiveMtFile |
* Gets and AdaptiveMtFile |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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.
*
* |
*
*
- * | 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.
*
* 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.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* 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.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* 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.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* 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.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* 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.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* 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.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* 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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetChannel |
+ * GetChannel |
* Returns the specified channel. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | UpdateChannel |
+ * UpdateChannel |
* Updates the specified channel. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetInput |
+ * GetInput |
* Returns the specified input. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | UpdateInput |
+ * UpdateInput |
* Updates the specified input. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetEvent |
+ * GetEvent |
* Returns the specified event. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* 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.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetAsset |
+ * GetAsset |
* Returns the specified asset. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetPool |
+ * GetPool |
* Returns the specified pool. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* 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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | CreateSlate |
+ * CreateSlate |
* Creates a slate. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* 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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetSlate |
+ * GetSlate |
* Returns the specified slate. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | DeleteSlate |
+ * DeleteSlate |
* Deletes the specified slate. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* 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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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
*
* | Method |
* Description |
* Method 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.
*
* "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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | GetJob |
+ * GetJob |
* Returns the job data. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* 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.
*
* "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.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | 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.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
*
- * | DeleteJobTemplate |
+ * DeleteJobTemplate |
* Deletes a job template. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
* |
*
- *
*
*
* 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);