diff --git a/java-vision/README.md b/java-vision/README.md index 7152f12bf521..0f7a15e9bad3 100644 --- a/java-vision/README.md +++ b/java-vision/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-vision.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java index cdcc77878ae3..51a7f4c7aeb6 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java @@ -55,76 +55,77 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * *
Method | *Description | *Method Variants | + *|
---|---|---|---|
BatchAnnotateImages | + *BatchAnnotateImages |
* Run image detection and annotation for a batch of images. |
*
* 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. *
|
*
BatchAnnotateFiles | + *BatchAnnotateFiles |
* Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. * This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and perform detection and annotation for each image extracted. |
*
* 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. *
|
*
AsyncBatchAnnotateImages | + *AsyncBatchAnnotateImages |
* Run asynchronous image detection and annotation for a list of images. * Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results). * This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto. |
*
* 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. *
|
*
AsyncBatchAnnotateFiles | + *AsyncBatchAnnotateFiles |
* Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). |
*
* 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-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java index d78960fba87a..2db01d2b3688 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java @@ -78,12 +78,14 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * *
Method | *Description | *Method Variants | + *|
---|---|---|---|
CreateProductSet | + *CreateProductSet |
* Creates and returns a new ProductSet resource. * Possible errors: *
* |
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
ListProductSets | + *ListProductSets |
* Lists ProductSets in an unspecified order. * Possible errors: *
* |
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
GetProductSet | + *GetProductSet |
* Gets information associated with a ProductSet. * Possible errors: *
* |
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
UpdateProductSet | + *UpdateProductSet |
* Makes changes to a ProductSet resource. Only display_name can be updated currently. * Possible errors: *
* |
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
DeleteProductSet | + *DeleteProductSet |
* Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. * The actual image files are not deleted from Google Cloud Storage. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
*
CreateProduct | + *CreateProduct |
* Creates and returns a new product resource. * Possible errors: *
* |
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
ListProducts | + *ListProducts |
* Lists products in an unspecified order. * Possible errors: *
* |
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
GetProduct | + *GetProduct |
* Gets information associated with a Product. * Possible errors: *
* |
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
UpdateProduct | + *UpdateProduct |
* Makes changes to a Product resource. Only the `display_name`, `description`, and `labels` fields can be updated right now. * If labels are updated, the change will not be reflected in queries until the next index time. * Possible errors: @@ -281,40 +283,40 @@ * |
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
*
DeleteProduct | + *DeleteProduct |
* Permanently deletes a product and its reference images. * Metadata of the product and all its images will be deleted right away, but search queries against ProductSets containing the product may still work until all related caches are refreshed. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
*
CreateReferenceImage | + *CreateReferenceImage |
* Creates and returns a new ReferenceImage resource. * The `bounding_poly` field is optional. If `bounding_poly` is not specified, the system will try to detect regions of interest in the image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. * Note that the pipeline will resize the image if the image resolution is too large to process (above 50MP). @@ -328,42 +330,42 @@ * |
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
*
DeleteReferenceImage | + *DeleteReferenceImage |
* Permanently deletes a reference image. * The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. * The actual image files are not deleted from Google Cloud Storage. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
*
ListReferenceImages | + *ListReferenceImages |
* Lists reference images. * Possible errors: *
* |
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
GetReferenceImage | + *GetReferenceImage |
* Gets information associated with a ReferenceImage. * Possible errors: *
* |
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
AddProductToProductSet | + *AddProductToProductSet |
* Adds a Product to the specified ProductSet. If the Product is already present, no change is made. * One Product can be added to at most 100 ProductSets. * Possible errors: @@ -421,44 +423,44 @@ * |
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
*
RemoveProductFromProductSet | + *RemoveProductFromProductSet |
* Removes a Product from the specified ProductSet. |
*
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
*
ListProductsInProductSet | + *ListProductsInProductSet |
* Lists the Products in a ProductSet, in an unspecified order. If the ProductSet does not exist, the products field of the response will be empty. * Possible errors: *
* |
* Request object method variants only take one parameter, a request object, which must be constructed before the 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. *
|
ImportProductSets | + *ImportProductSets |
* Asynchronous API that imports a list of reference images to specified product sets based on a list of image information. * The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the progress and results of the request. `Operation.metadata` contains `BatchOperationMetadata`. (progress) `Operation.response` contains `ImportProductSetsResponse`. (results) * The input source of this method is a csv file on Google Cloud Storage. For the format of the csv file please see [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1.ImportProductSetsGcsSource.csv_file_uri]. |
*
* 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. *
|
*
PurgeProducts | + *PurgeProducts |
* Asynchronous API to delete all Products in a ProductSet or all Products that are in no ProductSet. * If a Product is a member of the specified ProductSet in addition to other ProductSets, the Product will still be deleted. * It is recommended to not delete the specified ProductSet until after this operation has completed. It is also recommended to not add any of the Products involved in the batch delete to a new ProductSet while this operation is running because those Products may still end up deleted. @@ -514,21 +516,20 @@ * |
* 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-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java
index cb395501b61b..6d8902f9cc2f 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java
@@ -172,6 +172,15 @@ public ImageAnnotatorStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -377,7 +386,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -390,7 +398,6 @@ private static Builder createHttpJsonDefault() {
builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -528,6 +535,15 @@ public Builder applyToAllUnaryMethods(
return asyncBatchAnnotateFilesOperationSettings;
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
@Override
public ImageAnnotatorStubSettings build() throws IOException {
return new ImageAnnotatorStubSettings(this);
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java
index f970813d573e..cdb3380b7acc 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java
@@ -548,6 +548,15 @@ public ProductSearchStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -873,7 +882,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -886,7 +894,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);
@@ -1188,6 +1195,15 @@ public UnaryCallSettings.Builder BatchAnnotateImages Run image detection and annotation for a batch of images. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchAnnotateImages(List<AnnotateImageRequest> requests)
+ * batchAnnotateImages(BatchAnnotateImagesRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchAnnotateImagesCallable()
* See the individual methods for example code.
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java
index 1391b80ade5a..fffabdf037df 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java
@@ -117,6 +117,15 @@ public ImageAnnotatorStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -283,7 +292,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -296,7 +304,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);
@@ -333,6 +340,15 @@ public Builder applyToAllUnaryMethods(
return batchAnnotateImagesSettings;
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
@Override
public ImageAnnotatorStubSettings build() throws IOException {
return new ImageAnnotatorStubSettings(this);
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java
index 64304bbfd0d4..b602843816f1 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java
@@ -55,42 +55,43 @@
* as threads. In the example above, try-with-resources is used, which automatically calls close().
*
* BatchAnnotateImages Run image detection and annotation for a batch of images. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchAnnotateImages(List<AnnotateImageRequest> requests)
+ * batchAnnotateImages(BatchAnnotateImagesRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchAnnotateImagesCallable()
* AsyncBatchAnnotateFiles Run async image detection and annotation for a list of generic files (e.g. PDF) which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). Request object method variants only take one parameter, a request object, which must be constructed before the call. asyncBatchAnnotateFilesAsync(List<AsyncAnnotateFileRequest> requests)
+ * asyncBatchAnnotateFilesAsync(AsyncBatchAnnotateFilesRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. asyncBatchAnnotateFilesOperationCallable()
+ * asyncBatchAnnotateFilesCallable()
* See the individual methods for example code.
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java
index d94479e0e202..20a433b03bc6 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java
@@ -143,6 +143,15 @@ public ImageAnnotatorStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -324,7 +333,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -337,7 +345,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);
@@ -419,6 +426,15 @@ public Builder applyToAllUnaryMethods(
return asyncBatchAnnotateFilesOperationSettings;
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
@Override
public ImageAnnotatorStubSettings build() throws IOException {
return new ImageAnnotatorStubSettings(this);
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java
index 4edd889f475f..9baa279abeb3 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java
@@ -55,42 +55,43 @@
* as threads. In the example above, try-with-resources is used, which automatically calls close().
*
* BatchAnnotateImages Run image detection and annotation for a batch of images. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchAnnotateImages(List<AnnotateImageRequest> requests)
+ * batchAnnotateImages(BatchAnnotateImagesRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchAnnotateImagesCallable()
* AsyncBatchAnnotateFiles Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). Request object method variants only take one parameter, a request object, which must be constructed before the call. asyncBatchAnnotateFilesAsync(List<AsyncAnnotateFileRequest> requests)
+ * asyncBatchAnnotateFilesAsync(AsyncBatchAnnotateFilesRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. asyncBatchAnnotateFilesOperationCallable()
+ * asyncBatchAnnotateFilesCallable()
* See the individual methods for example code.
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java
index 78641a616c75..7ba4d3d2e667 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java
@@ -78,12 +78,14 @@
* as threads. In the example above, try-with-resources is used, which automatically calls close().
*
* CreateProductSet Creates and returns a new ProductSet resource.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. createProductSet(CreateProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createProductSet(LocationName parent, ProductSet productSet, String productSetId)
+ * createProductSet(String parent, ProductSet productSet, String productSetId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createProductSetCallable()
* ListProductSets Lists ProductSets in an unspecified order.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. listProductSets(ListProductSetsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listProductSets(LocationName parent)
+ * listProductSets(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listProductSetsPagedCallable()
+ * listProductSetsCallable()
* GetProductSet Gets information associated with a ProductSet.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. getProductSet(GetProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getProductSet(ProductSetName name)
+ * getProductSet(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getProductSetCallable()
* UpdateProductSet Makes changes to a ProductSet resource. Only display_name can be updated currently.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. updateProductSet(UpdateProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateProductSet(ProductSet productSet, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateProductSetCallable()
* DeleteProductSet Permanently deletes a ProductSet. All Products and ReferenceImages in the ProductSet will be deleted.
* The actual image files are not deleted from Google Cloud Storage.
* Possible errors:
@@ -186,21 +188,21 @@
* Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteProductSet(DeleteProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteProductSet(ProductSetName name)
+ * deleteProductSet(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteProductSetCallable()
* CreateProduct Creates and returns a new product resource.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. createProduct(CreateProductRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createProduct(LocationName parent, Product product, String productId)
+ * createProduct(String parent, Product product, String productId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createProductCallable()
* ListProducts Lists products in an unspecified order.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. listProducts(ListProductsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listProducts(LocationName parent)
+ * listProducts(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listProductsPagedCallable()
+ * listProductsCallable()
* GetProduct Gets information associated with a Product.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. getProduct(GetProductRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getProduct(ProductName name)
+ * getProduct(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getProductCallable()
* UpdateProduct Makes changes to a Product resource. Only display_name, description and labels can be updated right now.
* If labels are updated, the change will not be reflected in queries until the next index time.
* Possible errors:
@@ -285,20 +287,20 @@
* Request object method variants only take one parameter, a request object, which must be constructed before the call. updateProduct(UpdateProductRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateProduct(Product product, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateProductCallable()
* DeleteProduct Permanently deletes a product and its reference images.
* Metadata of the product and all its images will be deleted right away, but search queries against ProductSets containing the product may still work until all related caches are refreshed.
* Possible errors:
@@ -308,21 +310,21 @@
* Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteProduct(DeleteProductRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteProduct(ProductName name)
+ * deleteProduct(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteProductCallable()
* CreateReferenceImage Creates and returns a new ReferenceImage resource.
* The `bounding_poly` field is optional. If `bounding_poly` is not specified, the system will try to detect regions of interest in the image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles.
* Note that the pipeline will resize the image if the image resolution is too large to process (above 50MP).
@@ -336,21 +338,21 @@
* Request object method variants only take one parameter, a request object, which must be constructed before the call. createReferenceImage(CreateReferenceImageRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createReferenceImage(ProductName parent, ReferenceImage referenceImage, String referenceImageId)
+ * createReferenceImage(String parent, ReferenceImage referenceImage, String referenceImageId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createReferenceImageCallable()
* DeleteReferenceImage Permanently deletes a reference image.
* The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed.
* The actual image files are not deleted from Google Cloud Storage.
@@ -361,21 +363,21 @@
* Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteReferenceImage(DeleteReferenceImageRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteReferenceImage(ReferenceImageName name)
+ * deleteReferenceImage(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteReferenceImageCallable()
* ListReferenceImages Lists reference images.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. listReferenceImages(ListReferenceImagesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listReferenceImages(ProductName parent)
+ * listReferenceImages(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listReferenceImagesPagedCallable()
+ * listReferenceImagesCallable()
* GetReferenceImage Gets information associated with a ReferenceImage.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. getReferenceImage(GetReferenceImageRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getReferenceImage(ReferenceImageName name)
+ * getReferenceImage(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getReferenceImageCallable()
* AddProductToProductSet Adds a Product to the specified ProductSet. If the Product is already present, no change is made.
* One Product can be added to at most 100 ProductSets.
* Possible errors:
@@ -433,23 +435,23 @@
* Request object method variants only take one parameter, a request object, which must be constructed before the call. addProductToProductSet(AddProductToProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. addProductToProductSet(ProductSetName name, ProductName product)
+ * addProductToProductSet(ProductSetName name, String product)
+ * addProductToProductSet(String name, ProductName product)
+ * addProductToProductSet(String name, String product)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. addProductToProductSetCallable()
* RemoveProductFromProductSet Removes a Product from the specified ProductSet.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. removeProductFromProductSet(RemoveProductFromProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. removeProductFromProductSet(ProductSetName name, ProductName product)
+ * removeProductFromProductSet(ProductSetName name, String product)
+ * removeProductFromProductSet(String name, ProductName product)
+ * removeProductFromProductSet(String name, String product)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. removeProductFromProductSetCallable()
* ListProductsInProductSet Lists the Products in a ProductSet, in an unspecified order. If the ProductSet does not exist, the products field of the response will be empty.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. listProductsInProductSet(ListProductsInProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listProductsInProductSet(ProductSetName name)
+ * listProductsInProductSet(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listProductsInProductSetPagedCallable()
+ * listProductsInProductSetCallable()
* ImportProductSets Asynchronous API that imports a list of reference images to specified product sets based on a list of image information.
* The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the progress and results of the request. `Operation.metadata` contains `BatchOperationMetadata`. (progress) `Operation.response` contains `ImportProductSetsResponse`. (results)
* The input source of this method is a csv file on Google Cloud Storage. For the format of the csv file please see [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri]. Request object method variants only take one parameter, a request object, which must be constructed before the call. importProductSetsAsync(ImportProductSetsRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. importProductSetsAsync(LocationName parent, ImportProductSetsInputConfig inputConfig)
+ * importProductSetsAsync(String parent, ImportProductSetsInputConfig inputConfig)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. importProductSetsOperationCallable()
+ * importProductSetsCallable()
* See the individual methods for example code.
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java
index c5c91529491d..4401bd1cc8d6 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java
@@ -143,6 +143,15 @@ public ImageAnnotatorStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -337,7 +346,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -350,7 +358,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);
@@ -432,6 +439,15 @@ public Builder applyToAllUnaryMethods(
return asyncBatchAnnotateFilesOperationSettings;
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
@Override
public ImageAnnotatorStubSettings build() throws IOException {
return new ImageAnnotatorStubSettings(this);
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java
index 830f1e3ddd43..8d5bd4ed770e 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java
@@ -534,6 +534,15 @@ public ProductSearchStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -848,7 +857,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -861,7 +869,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);
@@ -1121,6 +1128,15 @@ public UnaryCallSettings.Builder BatchAnnotateImages Run image detection and annotation for a batch of images. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchAnnotateImages(List<AnnotateImageRequest> requests)
+ * batchAnnotateImages(BatchAnnotateImagesRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchAnnotateImagesCallable()
* BatchAnnotateFiles Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported.
* This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and perform detection and annotation for each image extracted. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchAnnotateFiles(List<AnnotateFileRequest> requests)
+ * batchAnnotateFiles(BatchAnnotateFilesRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchAnnotateFilesCallable()
* AsyncBatchAnnotateImages Run asynchronous image detection and annotation for a list of images.
* Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results).
* This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto. Request object method variants only take one parameter, a request object, which must be constructed before the call. asyncBatchAnnotateImagesAsync(List<AnnotateImageRequest> requests, OutputConfig outputConfig)
+ * asyncBatchAnnotateImagesAsync(AsyncBatchAnnotateImagesRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. asyncBatchAnnotateImagesOperationCallable()
+ * asyncBatchAnnotateImagesCallable()
* AsyncBatchAnnotateFiles Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). Request object method variants only take one parameter, a request object, which must be constructed before the call. asyncBatchAnnotateFilesAsync(List<AsyncAnnotateFileRequest> requests)
+ * asyncBatchAnnotateFilesAsync(AsyncBatchAnnotateFilesRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. asyncBatchAnnotateFilesOperationCallable()
+ * asyncBatchAnnotateFilesCallable()
* See the individual methods for example code.
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java
index 3cf09aef17b1..06ad198699b3 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java
@@ -78,12 +78,14 @@
* as threads. In the example above, try-with-resources is used, which automatically calls close().
*
* CreateProductSet Creates and returns a new ProductSet resource.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. createProductSet(CreateProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createProductSet(LocationName parent, ProductSet productSet, String productSetId)
+ * createProductSet(String parent, ProductSet productSet, String productSetId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createProductSetCallable()
* ListProductSets Lists ProductSets in an unspecified order.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. listProductSets(ListProductSetsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listProductSets(LocationName parent)
+ * listProductSets(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listProductSetsPagedCallable()
+ * listProductSetsCallable()
* GetProductSet Gets information associated with a ProductSet.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. getProductSet(GetProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getProductSet(ProductSetName name)
+ * getProductSet(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getProductSetCallable()
* UpdateProductSet Makes changes to a ProductSet resource. Only display_name can be updated currently.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. updateProductSet(UpdateProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateProductSet(ProductSet productSet, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateProductSetCallable()
* DeleteProductSet Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted.
* The actual image files are not deleted from Google Cloud Storage. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteProductSet(DeleteProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteProductSet(ProductSetName name)
+ * deleteProductSet(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteProductSetCallable()
* CreateProduct Creates and returns a new product resource.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. createProduct(CreateProductRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createProduct(LocationName parent, Product product, String productId)
+ * createProduct(String parent, Product product, String productId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createProductCallable()
* ListProducts Lists products in an unspecified order.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. listProducts(ListProductsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listProducts(LocationName parent)
+ * listProducts(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listProductsPagedCallable()
+ * listProductsCallable()
* GetProduct Gets information associated with a Product.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. getProduct(GetProductRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getProduct(ProductName name)
+ * getProduct(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getProductCallable()
* UpdateProduct Makes changes to a Product resource. Only the `display_name`, `description`, and `labels` fields can be updated right now.
* If labels are updated, the change will not be reflected in queries until the next index time.
* Possible errors:
@@ -281,40 +283,40 @@
* Request object method variants only take one parameter, a request object, which must be constructed before the call. updateProduct(UpdateProductRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateProduct(Product product, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateProductCallable()
* DeleteProduct Permanently deletes a product and its reference images.
* Metadata of the product and all its images will be deleted right away, but search queries against ProductSets containing the product may still work until all related caches are refreshed. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteProduct(DeleteProductRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteProduct(ProductName name)
+ * deleteProduct(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteProductCallable()
* CreateReferenceImage Creates and returns a new ReferenceImage resource.
* The `bounding_poly` field is optional. If `bounding_poly` is not specified, the system will try to detect regions of interest in the image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles.
* Note that the pipeline will resize the image if the image resolution is too large to process (above 50MP).
@@ -328,42 +330,42 @@
* Request object method variants only take one parameter, a request object, which must be constructed before the call. createReferenceImage(CreateReferenceImageRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createReferenceImage(ProductName parent, ReferenceImage referenceImage, String referenceImageId)
+ * createReferenceImage(String parent, ReferenceImage referenceImage, String referenceImageId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createReferenceImageCallable()
* DeleteReferenceImage Permanently deletes a reference image.
* The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed.
* The actual image files are not deleted from Google Cloud Storage. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteReferenceImage(DeleteReferenceImageRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteReferenceImage(ReferenceImageName name)
+ * deleteReferenceImage(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteReferenceImageCallable()
* ListReferenceImages Lists reference images.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. listReferenceImages(ListReferenceImagesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listReferenceImages(ProductName parent)
+ * listReferenceImages(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listReferenceImagesPagedCallable()
+ * listReferenceImagesCallable()
* GetReferenceImage Gets information associated with a ReferenceImage.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. getReferenceImage(GetReferenceImageRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getReferenceImage(ReferenceImageName name)
+ * getReferenceImage(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getReferenceImageCallable()
* AddProductToProductSet Adds a Product to the specified ProductSet. If the Product is already present, no change is made.
* One Product can be added to at most 100 ProductSets.
* Possible errors:
@@ -421,44 +423,44 @@
* Request object method variants only take one parameter, a request object, which must be constructed before the call. addProductToProductSet(AddProductToProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. addProductToProductSet(ProductSetName name, ProductName product)
+ * addProductToProductSet(ProductSetName name, String product)
+ * addProductToProductSet(String name, ProductName product)
+ * addProductToProductSet(String name, String product)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. addProductToProductSetCallable()
* RemoveProductFromProductSet Removes a Product from the specified ProductSet. Request object method variants only take one parameter, a request object, which must be constructed before the call. removeProductFromProductSet(RemoveProductFromProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. removeProductFromProductSet(ProductSetName name, ProductName product)
+ * removeProductFromProductSet(ProductSetName name, String product)
+ * removeProductFromProductSet(String name, ProductName product)
+ * removeProductFromProductSet(String name, String product)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. removeProductFromProductSetCallable()
* ListProductsInProductSet Lists the Products in a ProductSet, in an unspecified order. If the ProductSet does not exist, the products field of the response will be empty.
* Possible errors:
* Request object method variants only take one parameter, a request object, which must be constructed before the call. listProductsInProductSet(ListProductsInProductSetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listProductsInProductSet(ProductSetName name)
+ * listProductsInProductSet(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listProductsInProductSetPagedCallable()
+ * listProductsInProductSetCallable()
* ImportProductSets Asynchronous API that imports a list of reference images to specified product sets based on a list of image information.
* The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the progress and results of the request. `Operation.metadata` contains `BatchOperationMetadata`. (progress) `Operation.response` contains `ImportProductSetsResponse`. (results)
* The input source of this method is a csv file on Google Cloud Storage. For the format of the csv file please see [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.csv_file_uri]. Request object method variants only take one parameter, a request object, which must be constructed before the call. importProductSetsAsync(ImportProductSetsRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. importProductSetsAsync(LocationName parent, ImportProductSetsInputConfig inputConfig)
+ * importProductSetsAsync(String parent, ImportProductSetsInputConfig inputConfig)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. importProductSetsOperationCallable()
+ * importProductSetsCallable()
* PurgeProducts Asynchronous API to delete all Products in a ProductSet or all Products that are in no ProductSet.
* If a Product is a member of the specified ProductSet in addition to other ProductSets, the Product will still be deleted.
* It is recommended to not delete the specified ProductSet until after this operation has completed. It is also recommended to not add any of the Products involved in the batch delete to a new ProductSet while this operation is running because those Products may still end up deleted.
@@ -514,21 +516,20 @@
* Request object method variants only take one parameter, a request object, which must be constructed before the call. purgeProductsAsync(PurgeProductsRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. purgeProductsAsync(LocationName parent)
+ * purgeProductsAsync(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. purgeProductsOperationCallable()
+ * purgeProductsCallable()
* See the individual methods for example code.
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java
index 5eb04a9a8bcb..972da6793ada 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java
@@ -173,6 +173,15 @@ public ImageAnnotatorStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -375,7 +384,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -388,7 +396,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);
@@ -526,6 +533,15 @@ public Builder applyToAllUnaryMethods(
return asyncBatchAnnotateFilesOperationSettings;
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
@Override
public ImageAnnotatorStubSettings build() throws IOException {
return new ImageAnnotatorStubSettings(this);
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java
index 6c23cccd9e09..9c55a834307f 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java
@@ -549,6 +549,15 @@ public ProductSearchStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -877,7 +886,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -890,7 +898,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);
@@ -1192,6 +1199,15 @@ public UnaryCallSettings.Builder ListSources Lists Sources in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. listSources(ListSourcesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listSources(LocationName parent)
+ * listSources(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listSourcesPagedCallable()
+ * listSourcesCallable()
* GetSource Gets details of a single Source. Request object method variants only take one parameter, a request object, which must be constructed before the call. getSource(GetSourceRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getSource(SourceName name)
+ * getSource(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getSourceCallable()
* CreateSource Creates a new Source in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. createSourceAsync(CreateSourceRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createSourceAsync(LocationName parent, Source source, String sourceId)
+ * createSourceAsync(String parent, Source source, String sourceId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createSourceOperationCallable()
+ * createSourceCallable()
* UpdateSource Updates the parameters of a single Source. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateSourceAsync(UpdateSourceRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateSourceAsync(Source source, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateSourceOperationCallable()
+ * updateSourceCallable()
* DeleteSource Deletes a single Source. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteSourceAsync(DeleteSourceRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteSourceAsync(SourceName name)
+ * deleteSourceAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteSourceOperationCallable()
+ * deleteSourceCallable()
* FetchInventory List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service. Request object method variants only take one parameter, a request object, which must be constructed before the call. fetchInventory(FetchInventoryRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. fetchInventory(SourceName source)
+ * fetchInventory(String source)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. fetchInventoryCallable()
* ListUtilizationReports Lists Utilization Reports of the given Source. Request object method variants only take one parameter, a request object, which must be constructed before the call. listUtilizationReports(ListUtilizationReportsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listUtilizationReports(SourceName parent)
+ * listUtilizationReports(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listUtilizationReportsPagedCallable()
+ * listUtilizationReportsCallable()
* GetUtilizationReport Gets a single Utilization Report. Request object method variants only take one parameter, a request object, which must be constructed before the call. getUtilizationReport(GetUtilizationReportRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getUtilizationReport(UtilizationReportName name)
+ * getUtilizationReport(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getUtilizationReportCallable()
* CreateUtilizationReport Creates a new UtilizationReport. Request object method variants only take one parameter, a request object, which must be constructed before the call. createUtilizationReportAsync(CreateUtilizationReportRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createUtilizationReportAsync(SourceName parent, UtilizationReport utilizationReport, String utilizationReportId)
+ * createUtilizationReportAsync(String parent, UtilizationReport utilizationReport, String utilizationReportId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createUtilizationReportOperationCallable()
+ * createUtilizationReportCallable()
* DeleteUtilizationReport Deletes a single Utilization Report. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteUtilizationReportAsync(DeleteUtilizationReportRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteUtilizationReportAsync(UtilizationReportName name)
+ * deleteUtilizationReportAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteUtilizationReportOperationCallable()
+ * deleteUtilizationReportCallable()
* ListDatacenterConnectors Lists DatacenterConnectors in a given Source. Request object method variants only take one parameter, a request object, which must be constructed before the call. listDatacenterConnectors(ListDatacenterConnectorsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listDatacenterConnectors(SourceName parent)
+ * listDatacenterConnectors(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listDatacenterConnectorsPagedCallable()
+ * listDatacenterConnectorsCallable()
* GetDatacenterConnector Gets details of a single DatacenterConnector. Request object method variants only take one parameter, a request object, which must be constructed before the call. getDatacenterConnector(GetDatacenterConnectorRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getDatacenterConnector(DatacenterConnectorName name)
+ * getDatacenterConnector(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getDatacenterConnectorCallable()
* CreateDatacenterConnector Creates a new DatacenterConnector in a given Source. Request object method variants only take one parameter, a request object, which must be constructed before the call. createDatacenterConnectorAsync(CreateDatacenterConnectorRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createDatacenterConnectorAsync(SourceName parent, DatacenterConnector datacenterConnector, String datacenterConnectorId)
+ * createDatacenterConnectorAsync(String parent, DatacenterConnector datacenterConnector, String datacenterConnectorId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createDatacenterConnectorOperationCallable()
+ * createDatacenterConnectorCallable()
* DeleteDatacenterConnector Deletes a single DatacenterConnector. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteDatacenterConnectorAsync(DeleteDatacenterConnectorRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteDatacenterConnectorAsync(DatacenterConnectorName name)
+ * deleteDatacenterConnectorAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteDatacenterConnectorOperationCallable()
+ * deleteDatacenterConnectorCallable()
* UpgradeAppliance Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version. Request object method variants only take one parameter, a request object, which must be constructed before the call. upgradeApplianceAsync(UpgradeApplianceRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. upgradeApplianceOperationCallable()
+ * upgradeApplianceCallable()
* CreateMigratingVm Creates a new MigratingVm in a given Source. Request object method variants only take one parameter, a request object, which must be constructed before the call. createMigratingVmAsync(CreateMigratingVmRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createMigratingVmAsync(SourceName parent, MigratingVm migratingVm, String migratingVmId)
+ * createMigratingVmAsync(String parent, MigratingVm migratingVm, String migratingVmId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createMigratingVmOperationCallable()
+ * createMigratingVmCallable()
* ListMigratingVms Lists MigratingVms in a given Source. Request object method variants only take one parameter, a request object, which must be constructed before the call. listMigratingVms(ListMigratingVmsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listMigratingVms(SourceName parent)
+ * listMigratingVms(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listMigratingVmsPagedCallable()
+ * listMigratingVmsCallable()
* GetMigratingVm Gets details of a single MigratingVm. Request object method variants only take one parameter, a request object, which must be constructed before the call. getMigratingVm(GetMigratingVmRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getMigratingVm(MigratingVmName name)
+ * getMigratingVm(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getMigratingVmCallable()
* UpdateMigratingVm Updates the parameters of a single MigratingVm. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateMigratingVmAsync(UpdateMigratingVmRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateMigratingVmAsync(MigratingVm migratingVm, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateMigratingVmOperationCallable()
+ * updateMigratingVmCallable()
* DeleteMigratingVm Deletes a single MigratingVm. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteMigratingVmAsync(DeleteMigratingVmRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteMigratingVmAsync(MigratingVmName name)
+ * deleteMigratingVmAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteMigratingVmOperationCallable()
+ * deleteMigratingVmCallable()
* StartMigration Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy. Request object method variants only take one parameter, a request object, which must be constructed before the call. startMigrationAsync(StartMigrationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. startMigrationAsync(MigratingVmName migratingVm)
+ * startMigrationAsync(String migratingVm)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. startMigrationOperationCallable()
+ * startMigrationCallable()
* ResumeMigration Resumes a migration for a VM. When called on a paused migration, will start the process of uploading data and creating snapshots; when called on a completed cut-over migration, will update the migration to active state and start the process of uploading data and creating snapshots. Request object method variants only take one parameter, a request object, which must be constructed before the call. resumeMigrationAsync(ResumeMigrationRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. resumeMigrationOperationCallable()
+ * resumeMigrationCallable()
* PauseMigration Pauses a migration for a VM. If cycle tasks are running they will be cancelled, preserving source task data. Further replication cycles will not be triggered while the VM is paused. Request object method variants only take one parameter, a request object, which must be constructed before the call. pauseMigrationAsync(PauseMigrationRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. pauseMigrationOperationCallable()
+ * pauseMigrationCallable()
* FinalizeMigration Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done. Request object method variants only take one parameter, a request object, which must be constructed before the call. finalizeMigrationAsync(FinalizeMigrationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. finalizeMigrationAsync(MigratingVmName migratingVm)
+ * finalizeMigrationAsync(String migratingVm)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. finalizeMigrationOperationCallable()
+ * finalizeMigrationCallable()
* CreateCloneJob Initiates a Clone of a specific migrating VM. Request object method variants only take one parameter, a request object, which must be constructed before the call. createCloneJobAsync(CreateCloneJobRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createCloneJobAsync(MigratingVmName parent, CloneJob cloneJob, String cloneJobId)
+ * createCloneJobAsync(String parent, CloneJob cloneJob, String cloneJobId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createCloneJobOperationCallable()
+ * createCloneJobCallable()
* CancelCloneJob Initiates the cancellation of a running clone job. Request object method variants only take one parameter, a request object, which must be constructed before the call. cancelCloneJobAsync(CancelCloneJobRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. cancelCloneJobAsync(CloneJobName name)
+ * cancelCloneJobAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. cancelCloneJobOperationCallable()
+ * cancelCloneJobCallable()
* ListCloneJobs Lists CloneJobs of a given migrating VM. Request object method variants only take one parameter, a request object, which must be constructed before the call. listCloneJobs(ListCloneJobsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listCloneJobs(MigratingVmName parent)
+ * listCloneJobs(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listCloneJobsPagedCallable()
+ * listCloneJobsCallable()
* GetCloneJob Gets details of a single CloneJob. Request object method variants only take one parameter, a request object, which must be constructed before the call. getCloneJob(GetCloneJobRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getCloneJob(CloneJobName name)
+ * getCloneJob(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getCloneJobCallable()
* CreateCutoverJob Initiates a Cutover of a specific migrating VM. The returned LRO is completed when the cutover job resource is created and the job is initiated. Request object method variants only take one parameter, a request object, which must be constructed before the call. createCutoverJobAsync(CreateCutoverJobRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createCutoverJobAsync(MigratingVmName parent, CutoverJob cutoverJob, String cutoverJobId)
+ * createCutoverJobAsync(String parent, CutoverJob cutoverJob, String cutoverJobId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createCutoverJobOperationCallable()
+ * createCutoverJobCallable()
* CancelCutoverJob Initiates the cancellation of a running cutover job. Request object method variants only take one parameter, a request object, which must be constructed before the call. cancelCutoverJobAsync(CancelCutoverJobRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. cancelCutoverJobAsync(CutoverJobName name)
+ * cancelCutoverJobAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. cancelCutoverJobOperationCallable()
+ * cancelCutoverJobCallable()
* ListCutoverJobs Lists CutoverJobs of a given migrating VM. Request object method variants only take one parameter, a request object, which must be constructed before the call. listCutoverJobs(ListCutoverJobsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listCutoverJobs(MigratingVmName parent)
+ * listCutoverJobs(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listCutoverJobsPagedCallable()
+ * listCutoverJobsCallable()
* GetCutoverJob Gets details of a single CutoverJob. Request object method variants only take one parameter, a request object, which must be constructed before the call. getCutoverJob(GetCutoverJobRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getCutoverJob(CutoverJobName name)
+ * getCutoverJob(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getCutoverJobCallable()
* ListGroups Lists Groups in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. listGroups(ListGroupsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listGroups(LocationName parent)
+ * listGroups(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listGroupsPagedCallable()
+ * listGroupsCallable()
* GetGroup Gets details of a single Group. Request object method variants only take one parameter, a request object, which must be constructed before the call. getGroup(GetGroupRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getGroup(GroupName name)
+ * getGroup(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getGroupCallable()
* CreateGroup Creates a new Group in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. createGroupAsync(CreateGroupRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createGroupAsync(LocationName parent, Group group, String groupId)
+ * createGroupAsync(String parent, Group group, String groupId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createGroupOperationCallable()
+ * createGroupCallable()
* UpdateGroup Updates the parameters of a single Group. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateGroupAsync(UpdateGroupRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateGroupAsync(Group group, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateGroupOperationCallable()
+ * updateGroupCallable()
* DeleteGroup Deletes a single Group. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteGroupAsync(DeleteGroupRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteGroupAsync(GroupName name)
+ * deleteGroupAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteGroupOperationCallable()
+ * deleteGroupCallable()
* AddGroupMigration Adds a MigratingVm to a Group. Request object method variants only take one parameter, a request object, which must be constructed before the call. addGroupMigrationAsync(AddGroupMigrationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. addGroupMigrationAsync(GroupName group)
+ * addGroupMigrationAsync(String group)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. addGroupMigrationOperationCallable()
+ * addGroupMigrationCallable()
* RemoveGroupMigration Removes a MigratingVm from a Group. Request object method variants only take one parameter, a request object, which must be constructed before the call. removeGroupMigrationAsync(RemoveGroupMigrationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. removeGroupMigrationAsync(GroupName group)
+ * removeGroupMigrationAsync(String group)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. removeGroupMigrationOperationCallable()
+ * removeGroupMigrationCallable()
* ListTargetProjects Lists TargetProjects in a given project.
* NOTE: TargetProject is a global resource; hence the only supported value for location is `global`. Request object method variants only take one parameter, a request object, which must be constructed before the call. listTargetProjects(ListTargetProjectsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listTargetProjects(LocationName parent)
+ * listTargetProjects(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listTargetProjectsPagedCallable()
+ * listTargetProjectsCallable()
* GetTargetProject Gets details of a single TargetProject.
* NOTE: TargetProject is a global resource; hence the only supported value for location is `global`. Request object method variants only take one parameter, a request object, which must be constructed before the call. getTargetProject(GetTargetProjectRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getTargetProject(TargetProjectName name)
+ * getTargetProject(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getTargetProjectCallable()
* CreateTargetProject Creates a new TargetProject in a given project.
* NOTE: TargetProject is a global resource; hence the only supported value for location is `global`. Request object method variants only take one parameter, a request object, which must be constructed before the call. createTargetProjectAsync(CreateTargetProjectRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createTargetProjectAsync(LocationName parent, TargetProject targetProject, String targetProjectId)
+ * createTargetProjectAsync(String parent, TargetProject targetProject, String targetProjectId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createTargetProjectOperationCallable()
+ * createTargetProjectCallable()
* UpdateTargetProject Updates the parameters of a single TargetProject.
* NOTE: TargetProject is a global resource; hence the only supported value for location is `global`. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateTargetProjectAsync(UpdateTargetProjectRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateTargetProjectAsync(TargetProject targetProject, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateTargetProjectOperationCallable()
+ * updateTargetProjectCallable()
* DeleteTargetProject Deletes a single TargetProject.
* NOTE: TargetProject is a global resource; hence the only supported value for location is `global`. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteTargetProjectAsync(DeleteTargetProjectRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteTargetProjectAsync(TargetProjectName name)
+ * deleteTargetProjectAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteTargetProjectOperationCallable()
+ * deleteTargetProjectCallable()
* ListReplicationCycles Lists ReplicationCycles in a given MigratingVM. Request object method variants only take one parameter, a request object, which must be constructed before the call. listReplicationCycles(ListReplicationCyclesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listReplicationCycles(MigratingVmName parent)
+ * listReplicationCycles(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listReplicationCyclesPagedCallable()
+ * listReplicationCyclesCallable()
* GetReplicationCycle Gets details of a single ReplicationCycle. Request object method variants only take one parameter, a request object, which must be constructed before the call. getReplicationCycle(GetReplicationCycleRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getReplicationCycle(ReplicationCycleName name)
+ * getReplicationCycle(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getReplicationCycleCallable()
* ListLocations Lists information about the supported locations for this service. Request object method variants only take one parameter, a request object, which must be constructed before the call. listLocations(ListLocationsRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listLocationsPagedCallable()
+ * listLocationsCallable()
* GetLocation Gets information about a location. Request object method variants only take one parameter, a request object, which must be constructed before the call. getLocation(GetLocationRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getLocationCallable()
* See the individual methods for example code.
diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java
index 580522d7994e..050f51534319 100644
--- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java
+++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java
@@ -1387,6 +1387,15 @@ public VmMigrationStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -2081,7 +2090,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -2094,7 +2102,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);
@@ -3525,6 +3532,15 @@ public UnaryCallSettings.Builder ListPrivateClouds Lists `PrivateCloud` resources in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. listPrivateClouds(ListPrivateCloudsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listPrivateClouds(LocationName parent)
+ * listPrivateClouds(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listPrivateCloudsPagedCallable()
+ * listPrivateCloudsCallable()
* GetPrivateCloud Retrieves a `PrivateCloud` resource by its resource name. Request object method variants only take one parameter, a request object, which must be constructed before the call. getPrivateCloud(GetPrivateCloudRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getPrivateCloud(PrivateCloudName name)
+ * getPrivateCloud(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getPrivateCloudCallable()
* CreatePrivateCloud Creates a new `PrivateCloud` resource in a given project and location. Private clouds of type `STANDARD` and `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are regional. Creating a private cloud also creates a [management cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that private cloud. Request object method variants only take one parameter, a request object, which must be constructed before the call. createPrivateCloudAsync(CreatePrivateCloudRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createPrivateCloudAsync(LocationName parent, PrivateCloud privateCloud, String privateCloudId)
+ * createPrivateCloudAsync(String parent, PrivateCloud privateCloud, String privateCloudId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createPrivateCloudOperationCallable()
+ * createPrivateCloudCallable()
* UpdatePrivateCloud Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. Only fields specified in `updateMask` are applied.
* During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes. Request object method variants only take one parameter, a request object, which must be constructed before the call. updatePrivateCloudAsync(UpdatePrivateCloudRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updatePrivateCloudAsync(PrivateCloud privateCloud, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updatePrivateCloudOperationCallable()
+ * updatePrivateCloudCallable()
* DeletePrivateCloud Schedules a `PrivateCloud` resource for deletion.
* A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and `expireTime` set to the time when deletion is final and can no longer be reversed. The delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, deletion is final and all private cloud resources are irreversibly removed and billing stops. During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can be polled using standard `GET` method for the whole period of deletion and purging. It will not be returned only when it is completely purged. Request object method variants only take one parameter, a request object, which must be constructed before the call. deletePrivateCloudAsync(DeletePrivateCloudRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deletePrivateCloudAsync(PrivateCloudName name)
+ * deletePrivateCloudAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deletePrivateCloudOperationCallable()
+ * deletePrivateCloudCallable()
* UndeletePrivateCloud Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. Request object method variants only take one parameter, a request object, which must be constructed before the call. undeletePrivateCloudAsync(UndeletePrivateCloudRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. undeletePrivateCloudAsync(PrivateCloudName name)
+ * undeletePrivateCloudAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. undeletePrivateCloudOperationCallable()
+ * undeletePrivateCloudCallable()
* ListClusters Lists `Cluster` resources in a given private cloud. Request object method variants only take one parameter, a request object, which must be constructed before the call. listClusters(ListClustersRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listClusters(PrivateCloudName parent)
+ * listClusters(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listClustersPagedCallable()
+ * listClustersCallable()
* GetCluster Retrieves a `Cluster` resource by its resource name. Request object method variants only take one parameter, a request object, which must be constructed before the call. getCluster(GetClusterRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getCluster(ClusterName name)
+ * getCluster(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getClusterCallable()
* CreateCluster Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient [node quota](https://cloud.google.com/vmware-engine/quotas). Request object method variants only take one parameter, a request object, which must be constructed before the call. createClusterAsync(CreateClusterRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createClusterAsync(PrivateCloudName parent, Cluster cluster, String clusterId)
+ * createClusterAsync(String parent, Cluster cluster, String clusterId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createClusterOperationCallable()
+ * createClusterCallable()
* UpdateCluster Modifies a `Cluster` resource. Only fields specified in `updateMask` are applied.
* During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateClusterAsync(UpdateClusterRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateClusterAsync(Cluster cluster, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateClusterOperationCallable()
+ * updateClusterCallable()
* DeleteCluster Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down any workloads running on the cluster before deletion. You cannot delete the management cluster of a private cloud using this method. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteClusterAsync(DeleteClusterRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteClusterAsync(ClusterName name)
+ * deleteClusterAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteClusterOperationCallable()
+ * deleteClusterCallable()
* ListNodes Lists nodes in a given cluster. Request object method variants only take one parameter, a request object, which must be constructed before the call. listNodes(ListNodesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listNodes(ClusterName parent)
+ * listNodes(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listNodesPagedCallable()
+ * listNodesCallable()
* GetNode Gets details of a single node. Request object method variants only take one parameter, a request object, which must be constructed before the call. getNode(GetNodeRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getNode(NodeName name)
+ * getNode(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getNodeCallable()
* ListExternalAddresses Lists external IP addresses assigned to VMware workload VMs in a given private cloud. Request object method variants only take one parameter, a request object, which must be constructed before the call. listExternalAddresses(ListExternalAddressesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listExternalAddresses(PrivateCloudName parent)
+ * listExternalAddresses(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listExternalAddressesPagedCallable()
+ * listExternalAddressesCallable()
* FetchNetworkPolicyExternalAddresses Lists external IP addresses assigned to VMware workload VMs within the scope of the given network policy. Request object method variants only take one parameter, a request object, which must be constructed before the call. fetchNetworkPolicyExternalAddresses(FetchNetworkPolicyExternalAddressesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. fetchNetworkPolicyExternalAddresses(NetworkPolicyName networkPolicy)
+ * fetchNetworkPolicyExternalAddresses(String networkPolicy)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. fetchNetworkPolicyExternalAddressesPagedCallable()
+ * fetchNetworkPolicyExternalAddressesCallable()
* GetExternalAddress Gets details of a single external IP address. Request object method variants only take one parameter, a request object, which must be constructed before the call. getExternalAddress(GetExternalAddressRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getExternalAddress(ExternalAddressName name)
+ * getExternalAddress(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getExternalAddressCallable()
* CreateExternalAddress Creates a new `ExternalAddress` resource in a given private cloud. The network policy that corresponds to the private cloud must have the external IP address network service enabled (`NetworkPolicy.external_ip`). Request object method variants only take one parameter, a request object, which must be constructed before the call. createExternalAddressAsync(CreateExternalAddressRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createExternalAddressAsync(PrivateCloudName parent, ExternalAddress externalAddress, String externalAddressId)
+ * createExternalAddressAsync(String parent, ExternalAddress externalAddress, String externalAddressId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createExternalAddressOperationCallable()
+ * createExternalAddressCallable()
* UpdateExternalAddress Updates the parameters of a single external IP address. Only fields specified in `update_mask` are applied.
* During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateExternalAddressAsync(UpdateExternalAddressRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateExternalAddressAsync(ExternalAddress externalAddress, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateExternalAddressOperationCallable()
+ * updateExternalAddressCallable()
* DeleteExternalAddress Deletes a single external IP address. When you delete an external IP address, connectivity between the external IP address and the corresponding internal IP address is lost. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteExternalAddressAsync(DeleteExternalAddressRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteExternalAddressAsync(ExternalAddressName name)
+ * deleteExternalAddressAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteExternalAddressOperationCallable()
+ * deleteExternalAddressCallable()
* ListSubnets Lists subnets in a given private cloud. Request object method variants only take one parameter, a request object, which must be constructed before the call. listSubnets(ListSubnetsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listSubnets(PrivateCloudName parent)
+ * listSubnets(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listSubnetsPagedCallable()
+ * listSubnetsCallable()
* GetSubnet Gets details of a single subnet. Request object method variants only take one parameter, a request object, which must be constructed before the call. getSubnet(GetSubnetRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getSubnet(SubnetName name)
+ * getSubnet(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getSubnetCallable()
* UpdateSubnet Updates the parameters of a single subnet. Only fields specified in `update_mask` are applied.
* *Note*: This API is synchronous and always returns a successful `google.longrunning.Operation` (LRO). The returned LRO will only have `done` and `response` fields. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateSubnetAsync(UpdateSubnetRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateSubnetAsync(Subnet subnet, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateSubnetOperationCallable()
+ * updateSubnetCallable()
* ListExternalAccessRules Lists `ExternalAccessRule` resources in the specified network policy. Request object method variants only take one parameter, a request object, which must be constructed before the call. listExternalAccessRules(ListExternalAccessRulesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listExternalAccessRules(NetworkPolicyName parent)
+ * listExternalAccessRules(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listExternalAccessRulesPagedCallable()
+ * listExternalAccessRulesCallable()
* GetExternalAccessRule Gets details of a single external access rule. Request object method variants only take one parameter, a request object, which must be constructed before the call. getExternalAccessRule(GetExternalAccessRuleRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getExternalAccessRule(ExternalAccessRuleName name)
+ * getExternalAccessRule(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getExternalAccessRuleCallable()
* CreateExternalAccessRule Creates a new external access rule in a given network policy. Request object method variants only take one parameter, a request object, which must be constructed before the call. createExternalAccessRuleAsync(CreateExternalAccessRuleRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createExternalAccessRuleAsync(NetworkPolicyName parent, ExternalAccessRule externalAccessRule, String externalAccessRuleId)
+ * createExternalAccessRuleAsync(String parent, ExternalAccessRule externalAccessRule, String externalAccessRuleId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createExternalAccessRuleOperationCallable()
+ * createExternalAccessRuleCallable()
* UpdateExternalAccessRule Updates the parameters of a single external access rule. Only fields specified in `update_mask` are applied. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateExternalAccessRuleAsync(UpdateExternalAccessRuleRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateExternalAccessRuleAsync(ExternalAccessRule externalAccessRule, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateExternalAccessRuleOperationCallable()
+ * updateExternalAccessRuleCallable()
* DeleteExternalAccessRule Deletes a single external access rule. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteExternalAccessRuleAsync(DeleteExternalAccessRuleRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteExternalAccessRuleAsync(ExternalAccessRuleName name)
+ * deleteExternalAccessRuleAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteExternalAccessRuleOperationCallable()
+ * deleteExternalAccessRuleCallable()
* ListLoggingServers Lists logging servers configured for a given private cloud. Request object method variants only take one parameter, a request object, which must be constructed before the call. listLoggingServers(ListLoggingServersRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listLoggingServers(PrivateCloudName parent)
+ * listLoggingServers(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listLoggingServersPagedCallable()
+ * listLoggingServersCallable()
* GetLoggingServer Gets details of a logging server. Request object method variants only take one parameter, a request object, which must be constructed before the call. getLoggingServer(GetLoggingServerRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getLoggingServer(LoggingServerName name)
+ * getLoggingServer(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getLoggingServerCallable()
* CreateLoggingServer Create a new logging server for a given private cloud. Request object method variants only take one parameter, a request object, which must be constructed before the call. createLoggingServerAsync(CreateLoggingServerRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createLoggingServerAsync(PrivateCloudName parent, LoggingServer loggingServer, String loggingServerId)
+ * createLoggingServerAsync(String parent, LoggingServer loggingServer, String loggingServerId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createLoggingServerOperationCallable()
+ * createLoggingServerCallable()
* UpdateLoggingServer Updates the parameters of a single logging server. Only fields specified in `update_mask` are applied. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateLoggingServerAsync(UpdateLoggingServerRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateLoggingServerAsync(LoggingServer loggingServer, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateLoggingServerOperationCallable()
+ * updateLoggingServerCallable()
* DeleteLoggingServer Deletes a single logging server. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteLoggingServerAsync(DeleteLoggingServerRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteLoggingServerAsync(LoggingServerName name)
+ * deleteLoggingServerAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteLoggingServerOperationCallable()
+ * deleteLoggingServerCallable()
* ListNodeTypes Lists node types Request object method variants only take one parameter, a request object, which must be constructed before the call. listNodeTypes(ListNodeTypesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listNodeTypes(LocationName parent)
+ * listNodeTypes(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listNodeTypesPagedCallable()
+ * listNodeTypesCallable()
* GetNodeType Gets details of a single `NodeType`. Request object method variants only take one parameter, a request object, which must be constructed before the call. getNodeType(GetNodeTypeRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getNodeType(NodeTypeName name)
+ * getNodeType(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getNodeTypeCallable()
* ShowNsxCredentials Gets details of credentials for NSX appliance. Request object method variants only take one parameter, a request object, which must be constructed before the call. showNsxCredentials(ShowNsxCredentialsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. showNsxCredentials(PrivateCloudName privateCloud)
+ * showNsxCredentials(String privateCloud)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. showNsxCredentialsCallable()
* ShowVcenterCredentials Gets details of credentials for Vcenter appliance. Request object method variants only take one parameter, a request object, which must be constructed before the call. showVcenterCredentials(ShowVcenterCredentialsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. showVcenterCredentials(PrivateCloudName privateCloud)
+ * showVcenterCredentials(String privateCloud)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. showVcenterCredentialsCallable()
* ResetNsxCredentials Resets credentials of the NSX appliance. Request object method variants only take one parameter, a request object, which must be constructed before the call. resetNsxCredentialsAsync(ResetNsxCredentialsRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. resetNsxCredentialsAsync(PrivateCloudName privateCloud)
+ * resetNsxCredentialsAsync(String privateCloud)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. resetNsxCredentialsOperationCallable()
+ * resetNsxCredentialsCallable()
* ResetVcenterCredentials Resets credentials of the Vcenter appliance. Request object method variants only take one parameter, a request object, which must be constructed before the call. resetVcenterCredentialsAsync(ResetVcenterCredentialsRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. resetVcenterCredentialsAsync(PrivateCloudName privateCloud)
+ * resetVcenterCredentialsAsync(String privateCloud)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. resetVcenterCredentialsOperationCallable()
+ * resetVcenterCredentialsCallable()
* GetDnsForwarding Gets details of the `DnsForwarding` config. Request object method variants only take one parameter, a request object, which must be constructed before the call. getDnsForwarding(GetDnsForwardingRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getDnsForwarding(DnsForwardingName name)
+ * getDnsForwarding(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getDnsForwardingCallable()
* UpdateDnsForwarding Updates the parameters of the `DnsForwarding` config, like associated domains. Only fields specified in `update_mask` are applied. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateDnsForwardingAsync(UpdateDnsForwardingRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateDnsForwardingAsync(DnsForwarding dnsForwarding, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateDnsForwardingOperationCallable()
+ * updateDnsForwardingCallable()
* GetNetworkPeering Retrieves a `NetworkPeering` resource by its resource name. The resource contains details of the network peering, such as peered networks, import and export custom route configurations, and peering state. NetworkPeering is a global resource and location can only be global. Request object method variants only take one parameter, a request object, which must be constructed before the call. getNetworkPeering(GetNetworkPeeringRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getNetworkPeering(NetworkPeeringName name)
+ * getNetworkPeering(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getNetworkPeeringCallable()
* ListNetworkPeerings Lists `NetworkPeering` resources in a given project. NetworkPeering is a global resource and location can only be global. Request object method variants only take one parameter, a request object, which must be constructed before the call. listNetworkPeerings(ListNetworkPeeringsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listNetworkPeerings(LocationName parent)
+ * listNetworkPeerings(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listNetworkPeeringsPagedCallable()
+ * listNetworkPeeringsCallable()
* CreateNetworkPeering Creates a new network peering between the peer network and VMware Engine network provided in a `NetworkPeering` resource. NetworkPeering is a global resource and location can only be global. Request object method variants only take one parameter, a request object, which must be constructed before the call. createNetworkPeeringAsync(CreateNetworkPeeringRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createNetworkPeeringAsync(LocationName parent, NetworkPeering networkPeering, String networkPeeringId)
+ * createNetworkPeeringAsync(String parent, NetworkPeering networkPeering, String networkPeeringId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createNetworkPeeringOperationCallable()
+ * createNetworkPeeringCallable()
* DeleteNetworkPeering Deletes a `NetworkPeering` resource. When a network peering is deleted for a VMware Engine network, the peer network becomes inaccessible to that VMware Engine network. NetworkPeering is a global resource and location can only be global. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteNetworkPeeringAsync(DeleteNetworkPeeringRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteNetworkPeeringAsync(NetworkPeeringName name)
+ * deleteNetworkPeeringAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteNetworkPeeringOperationCallable()
+ * deleteNetworkPeeringCallable()
* UpdateNetworkPeering Modifies a `NetworkPeering` resource. Only the `description` field can be updated. Only fields specified in `updateMask` are applied. NetworkPeering is a global resource and location can only be global. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateNetworkPeeringAsync(UpdateNetworkPeeringRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateNetworkPeeringAsync(NetworkPeering networkPeering, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateNetworkPeeringOperationCallable()
+ * updateNetworkPeeringCallable()
* ListPeeringRoutes Lists the network peering routes exchanged over a peering connection. NetworkPeering is a global resource and location can only be global. Request object method variants only take one parameter, a request object, which must be constructed before the call. listPeeringRoutes(ListPeeringRoutesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listPeeringRoutes(NetworkPeeringName parent)
+ * listPeeringRoutes(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listPeeringRoutesPagedCallable()
+ * listPeeringRoutesCallable()
* CreateHcxActivationKey Creates a new HCX activation key in a given private cloud. Request object method variants only take one parameter, a request object, which must be constructed before the call. createHcxActivationKeyAsync(CreateHcxActivationKeyRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createHcxActivationKeyAsync(PrivateCloudName parent, HcxActivationKey hcxActivationKey, String hcxActivationKeyId)
+ * createHcxActivationKeyAsync(String parent, HcxActivationKey hcxActivationKey, String hcxActivationKeyId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createHcxActivationKeyOperationCallable()
+ * createHcxActivationKeyCallable()
* ListHcxActivationKeys Lists `HcxActivationKey` resources in a given private cloud. Request object method variants only take one parameter, a request object, which must be constructed before the call. listHcxActivationKeys(ListHcxActivationKeysRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listHcxActivationKeys(PrivateCloudName parent)
+ * listHcxActivationKeys(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listHcxActivationKeysPagedCallable()
+ * listHcxActivationKeysCallable()
* GetHcxActivationKey Retrieves a `HcxActivationKey` resource by its resource name. Request object method variants only take one parameter, a request object, which must be constructed before the call. getHcxActivationKey(GetHcxActivationKeyRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getHcxActivationKey(HcxActivationKeyName name)
+ * getHcxActivationKey(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getHcxActivationKeyCallable()
* GetNetworkPolicy Retrieves a `NetworkPolicy` resource by its resource name. Request object method variants only take one parameter, a request object, which must be constructed before the call. getNetworkPolicy(GetNetworkPolicyRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getNetworkPolicy(NetworkPolicyName name)
+ * getNetworkPolicy(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getNetworkPolicyCallable()
* ListNetworkPolicies Lists `NetworkPolicy` resources in a specified project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. listNetworkPolicies(ListNetworkPoliciesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listNetworkPolicies(LocationName parent)
+ * listNetworkPolicies(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listNetworkPoliciesPagedCallable()
+ * listNetworkPoliciesCallable()
* CreateNetworkPolicy Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope. Request object method variants only take one parameter, a request object, which must be constructed before the call. createNetworkPolicyAsync(CreateNetworkPolicyRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createNetworkPolicyAsync(LocationName parent, NetworkPolicy networkPolicy, String networkPolicyId)
+ * createNetworkPolicyAsync(String parent, NetworkPolicy networkPolicy, String networkPolicyId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createNetworkPolicyOperationCallable()
+ * createNetworkPolicyCallable()
* UpdateNetworkPolicy Modifies a `NetworkPolicy` resource. Only the following fields can be updated: `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` are applied. When updating a network policy, the external IP network service can only be disabled if there are no external IP addresses present in the scope of the policy. Also, a `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`.
* During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateNetworkPolicyAsync(UpdateNetworkPolicyRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateNetworkPolicyAsync(NetworkPolicy networkPolicy, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateNetworkPolicyOperationCallable()
+ * updateNetworkPolicyCallable()
* DeleteNetworkPolicy Deletes a `NetworkPolicy` resource. A network policy cannot be deleted when `NetworkService.state` is set to `RECONCILING` for either its external IP or internet access service. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteNetworkPolicyAsync(DeleteNetworkPolicyRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteNetworkPolicyAsync(NetworkPolicyName name)
+ * deleteNetworkPolicyAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteNetworkPolicyOperationCallable()
+ * deleteNetworkPolicyCallable()
* ListManagementDnsZoneBindings Lists Consumer VPCs bound to Management DNS Zone of a given private cloud. Request object method variants only take one parameter, a request object, which must be constructed before the call. listManagementDnsZoneBindings(ListManagementDnsZoneBindingsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listManagementDnsZoneBindings(PrivateCloudName parent)
+ * listManagementDnsZoneBindings(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listManagementDnsZoneBindingsPagedCallable()
+ * listManagementDnsZoneBindingsCallable()
* GetManagementDnsZoneBinding Retrieves a 'ManagementDnsZoneBinding' resource by its resource name. Request object method variants only take one parameter, a request object, which must be constructed before the call. getManagementDnsZoneBinding(GetManagementDnsZoneBindingRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getManagementDnsZoneBinding(ManagementDnsZoneBindingName name)
+ * getManagementDnsZoneBinding(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getManagementDnsZoneBindingCallable()
* CreateManagementDnsZoneBinding Creates a new `ManagementDnsZoneBinding` resource in a private cloud. This RPC creates the DNS binding and the resource that represents the DNS binding of the consumer VPC network to the management DNS zone. A management DNS zone is the Cloud DNS cross-project binding zone that VMware Engine creates for each private cloud. It contains FQDNs and corresponding IP addresses for the private cloud's ESXi hosts and management VM appliances like vCenter and NSX Manager. Request object method variants only take one parameter, a request object, which must be constructed before the call. createManagementDnsZoneBindingAsync(CreateManagementDnsZoneBindingRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createManagementDnsZoneBindingAsync(PrivateCloudName parent, ManagementDnsZoneBinding managementDnsZoneBinding, String managementDnsZoneBindingId)
+ * createManagementDnsZoneBindingAsync(String parent, ManagementDnsZoneBinding managementDnsZoneBinding, String managementDnsZoneBindingId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createManagementDnsZoneBindingOperationCallable()
+ * createManagementDnsZoneBindingCallable()
* UpdateManagementDnsZoneBinding Updates a `ManagementDnsZoneBinding` resource. Only fields specified in `update_mask` are applied. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateManagementDnsZoneBindingAsync(UpdateManagementDnsZoneBindingRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateManagementDnsZoneBindingAsync(ManagementDnsZoneBinding managementDnsZoneBinding, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateManagementDnsZoneBindingOperationCallable()
+ * updateManagementDnsZoneBindingCallable()
* DeleteManagementDnsZoneBinding Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone binding is deleted, the corresponding consumer VPC network is no longer bound to the management DNS zone. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteManagementDnsZoneBindingAsync(DeleteManagementDnsZoneBindingRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteManagementDnsZoneBindingAsync(ManagementDnsZoneBindingName name)
+ * deleteManagementDnsZoneBindingAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteManagementDnsZoneBindingOperationCallable()
+ * deleteManagementDnsZoneBindingCallable()
* RepairManagementDnsZoneBinding Retries to create a `ManagementDnsZoneBinding` resource that is in failed state. Request object method variants only take one parameter, a request object, which must be constructed before the call. repairManagementDnsZoneBindingAsync(RepairManagementDnsZoneBindingRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. repairManagementDnsZoneBindingAsync(ManagementDnsZoneBindingName name)
+ * repairManagementDnsZoneBindingAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. repairManagementDnsZoneBindingOperationCallable()
+ * repairManagementDnsZoneBindingCallable()
* CreateVmwareEngineNetwork Creates a new VMware Engine network that can be used by a private cloud. Request object method variants only take one parameter, a request object, which must be constructed before the call. createVmwareEngineNetworkAsync(CreateVmwareEngineNetworkRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createVmwareEngineNetworkAsync(LocationName parent, VmwareEngineNetwork vmwareEngineNetwork, String vmwareEngineNetworkId)
+ * createVmwareEngineNetworkAsync(String parent, VmwareEngineNetwork vmwareEngineNetwork, String vmwareEngineNetworkId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createVmwareEngineNetworkOperationCallable()
+ * createVmwareEngineNetworkCallable()
* UpdateVmwareEngineNetwork Modifies a VMware Engine network resource. Only the following fields can be updated: `description`. Only fields specified in `updateMask` are applied. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateVmwareEngineNetworkAsync(UpdateVmwareEngineNetworkRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateVmwareEngineNetworkAsync(VmwareEngineNetwork vmwareEngineNetwork, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateVmwareEngineNetworkOperationCallable()
+ * updateVmwareEngineNetworkCallable()
* DeleteVmwareEngineNetwork Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware Engine network after all resources that refer to it are deleted. For example, a private cloud, a network peering, and a network policy can all refer to the same VMware Engine network. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteVmwareEngineNetworkAsync(DeleteVmwareEngineNetworkRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteVmwareEngineNetworkAsync(VmwareEngineNetworkName name)
+ * deleteVmwareEngineNetworkAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteVmwareEngineNetworkOperationCallable()
+ * deleteVmwareEngineNetworkCallable()
* GetVmwareEngineNetwork Retrieves a `VmwareEngineNetwork` resource by its resource name. The resource contains details of the VMware Engine network, such as its VMware Engine network type, peered networks in a service project, and state (for example, `CREATING`, `ACTIVE`, `DELETING`). Request object method variants only take one parameter, a request object, which must be constructed before the call. getVmwareEngineNetwork(GetVmwareEngineNetworkRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getVmwareEngineNetwork(VmwareEngineNetworkName name)
+ * getVmwareEngineNetwork(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getVmwareEngineNetworkCallable()
* ListVmwareEngineNetworks Lists `VmwareEngineNetwork` resources in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. listVmwareEngineNetworks(ListVmwareEngineNetworksRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listVmwareEngineNetworks(LocationName parent)
+ * listVmwareEngineNetworks(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listVmwareEngineNetworksPagedCallable()
+ * listVmwareEngineNetworksCallable()
* CreatePrivateConnection Creates a new private connection that can be used for accessing private Clouds. Request object method variants only take one parameter, a request object, which must be constructed before the call. createPrivateConnectionAsync(CreatePrivateConnectionRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createPrivateConnectionAsync(LocationName parent, PrivateConnection privateConnection, String privateConnectionId)
+ * createPrivateConnectionAsync(String parent, PrivateConnection privateConnection, String privateConnectionId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createPrivateConnectionOperationCallable()
+ * createPrivateConnectionCallable()
* GetPrivateConnection Retrieves a `PrivateConnection` resource by its resource name. The resource contains details of the private connection, such as connected network, routing mode and state. Request object method variants only take one parameter, a request object, which must be constructed before the call. getPrivateConnection(GetPrivateConnectionRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getPrivateConnection(PrivateConnectionName name)
+ * getPrivateConnection(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getPrivateConnectionCallable()
* ListPrivateConnections Lists `PrivateConnection` resources in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. listPrivateConnections(ListPrivateConnectionsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listPrivateConnections(LocationName parent)
+ * listPrivateConnections(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listPrivateConnectionsPagedCallable()
+ * listPrivateConnectionsCallable()
* UpdatePrivateConnection Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be updated. Only fields specified in `updateMask` are applied. Request object method variants only take one parameter, a request object, which must be constructed before the call. updatePrivateConnectionAsync(UpdatePrivateConnectionRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updatePrivateConnectionAsync(PrivateConnection privateConnection, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updatePrivateConnectionOperationCallable()
+ * updatePrivateConnectionCallable()
* DeletePrivateConnection Deletes a `PrivateConnection` resource. When a private connection is deleted for a VMware Engine network, the connected network becomes inaccessible to that VMware Engine network. Request object method variants only take one parameter, a request object, which must be constructed before the call. deletePrivateConnectionAsync(DeletePrivateConnectionRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deletePrivateConnectionAsync(PrivateConnectionName name)
+ * deletePrivateConnectionAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deletePrivateConnectionOperationCallable()
+ * deletePrivateConnectionCallable()
* ListPrivateConnectionPeeringRoutes Lists the private connection routes exchanged over a peering connection. Request object method variants only take one parameter, a request object, which must be constructed before the call. listPrivateConnectionPeeringRoutes(ListPrivateConnectionPeeringRoutesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listPrivateConnectionPeeringRoutes(PrivateConnectionName parent)
+ * listPrivateConnectionPeeringRoutes(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listPrivateConnectionPeeringRoutesPagedCallable()
+ * listPrivateConnectionPeeringRoutesCallable()
* GrantDnsBindPermission Grants the bind permission to the customer provided principal(user / service account) to bind their DNS zone with the intranet VPC associated with the project. DnsBindPermission is a global resource and location can only be global. Request object method variants only take one parameter, a request object, which must be constructed before the call. grantDnsBindPermissionAsync(GrantDnsBindPermissionRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. grantDnsBindPermissionAsync(DnsBindPermissionName name, Principal principal)
+ * grantDnsBindPermissionAsync(String name, Principal principal)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. grantDnsBindPermissionOperationCallable()
+ * grantDnsBindPermissionCallable()
* GetDnsBindPermission Gets all the principals having bind permission on the intranet VPC associated with the consumer project granted by the Grant API. DnsBindPermission is a global resource and location can only be global. Request object method variants only take one parameter, a request object, which must be constructed before the call. getDnsBindPermission(GetDnsBindPermissionRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getDnsBindPermission(DnsBindPermissionName name)
+ * getDnsBindPermission(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getDnsBindPermissionCallable()
* RevokeDnsBindPermission Revokes the bind permission from the customer provided principal(user / service account) on the intranet VPC associated with the consumer project. DnsBindPermission is a global resource and location can only be global. Request object method variants only take one parameter, a request object, which must be constructed before the call. revokeDnsBindPermissionAsync(RevokeDnsBindPermissionRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. revokeDnsBindPermissionAsync(DnsBindPermissionName name, Principal principal)
+ * revokeDnsBindPermissionAsync(String name, Principal principal)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. revokeDnsBindPermissionOperationCallable()
+ * revokeDnsBindPermissionCallable()
* ListLocations Lists information about the supported locations for this service. Request object method variants only take one parameter, a request object, which must be constructed before the call. listLocations(ListLocationsRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listLocationsPagedCallable()
+ * listLocationsCallable()
* GetLocation Gets information about a location. Request object method variants only take one parameter, a request object, which must be constructed before the call. getLocation(GetLocationRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getLocationCallable()
* SetIamPolicy Sets the access control policy on the specified resource. Replacesany existing policy.
* Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. Request object method variants only take one parameter, a request object, which must be constructed before the call. setIamPolicy(SetIamPolicyRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. setIamPolicyCallable()
* GetIamPolicy Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. Request object method variants only take one parameter, a request object, which must be constructed before the call. getIamPolicy(GetIamPolicyRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getIamPolicyCallable()
* TestIamPermissions Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error.
* Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning. Request object method variants only take one parameter, a request object, which must be constructed before the call. testIamPermissions(TestIamPermissionsRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. testIamPermissionsCallable()
* See the individual methods for example code.
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java
index 098824cc8f93..6f9967955221 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java
@@ -2397,6 +2397,15 @@ public VmwareEngineStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -3483,7 +3492,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -3496,7 +3504,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);
@@ -5701,6 +5708,15 @@ public UnaryCallSettings.Builder CreateConnector Creates a Serverless VPC Access connector, returns an operation. Request object method variants only take one parameter, a request object, which must be constructed before the call. createConnectorAsync(CreateConnectorRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createConnectorAsync(LocationName parent, String connectorId, Connector connector)
+ * createConnectorAsync(String parent, String connectorId, Connector connector)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createConnectorOperationCallable()
+ * createConnectorCallable()
* GetConnector Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist. Request object method variants only take one parameter, a request object, which must be constructed before the call. getConnector(GetConnectorRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getConnector(ConnectorName name)
+ * getConnector(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getConnectorCallable()
* ListConnectors Lists Serverless VPC Access connectors. Request object method variants only take one parameter, a request object, which must be constructed before the call. listConnectors(ListConnectorsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listConnectors(LocationName parent)
+ * listConnectors(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listConnectorsPagedCallable()
+ * listConnectorsCallable()
* DeleteConnector Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteConnectorAsync(DeleteConnectorRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteConnectorAsync(ConnectorName name)
+ * deleteConnectorAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteConnectorOperationCallable()
+ * deleteConnectorCallable()
* ListLocations Lists information about the supported locations for this service. Request object method variants only take one parameter, a request object, which must be constructed before the call. listLocations(ListLocationsRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listLocationsPagedCallable()
+ * listLocationsCallable()
* See the individual methods for example code.
diff --git a/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java
index 3d52cc41baf4..bfada51d5e23 100644
--- a/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java
+++ b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java
@@ -289,6 +289,15 @@ public VpcAccessServiceStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -507,7 +516,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -520,7 +528,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);
@@ -664,6 +671,15 @@ public UnaryCallSettings.Builder ComputeThreatListDiff Gets the most recent threat list diffs. These diffs should be applied to a local database of hashes to keep it up-to-date. If the local database is empty or excessively out-of-date, a complete snapshot of the database will be returned. This Method only updates a single ThreatList at a time. To update multiple ThreatList databases, this method needs to be called once for each list. Request object method variants only take one parameter, a request object, which must be constructed before the call. computeThreatListDiff(ComputeThreatListDiffRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. computeThreatListDiff(ThreatType threatType, ByteString versionToken, ComputeThreatListDiffRequest.Constraints constraints)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. computeThreatListDiffCallable()
* SearchUris This method is used to check whether a URI is on a given threatList. Multiple threatLists may be searched in a single query. The response will list all requested threatLists the URI was found to match. If the URI is not found on any of the requested ThreatList an empty response will be returned. Request object method variants only take one parameter, a request object, which must be constructed before the call. searchUris(SearchUrisRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. searchUris(String uri, List<ThreatType> threatTypes)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. searchUrisCallable()
* SearchHashes Gets the full hashes that match the requested hash prefix. This is used after a hash prefix is looked up in a threatList and there is a match. The client side threatList only holds partial hashes so the client must query this method to determine if there is a full hash match of a threat. Request object method variants only take one parameter, a request object, which must be constructed before the call. searchHashes(SearchHashesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. searchHashes(ByteString hashPrefix, List<ThreatType> threatTypes)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. searchHashesCallable()
* CreateSubmission Creates a Submission of a URI suspected of containing phishing content to be reviewed. If the result verifies the existence of malicious phishing content, the site will be added to the [Google's Social Engineering lists](https://support.google.com/webmasters/answer/6350487/) in order to protect users that could get exposed to this threat in the future. Only allowlisted projects can use this method during Early Access. Please reach out to Sales or your customer engineer to obtain access. Request object method variants only take one parameter, a request object, which must be constructed before the call. createSubmission(CreateSubmissionRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createSubmission(ProjectName parent, Submission submission)
+ * createSubmission(String parent, Submission submission)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createSubmissionCallable()
* SubmitUri Submits a URI suspected of containing malicious content to be reviewed. Returns a google.longrunning.Operation which, once the review is complete, is updated with its result. You can use the [Pub/Sub API] (https://cloud.google.com/pubsub) to receive notifications for the returned Operation. If the result verifies the existence of malicious content, the site will be added to the [Google's Social Engineering lists] (https://support.google.com/webmasters/answer/6350487/) in order to protect users that could get exposed to this threat in the future. Only allowlisted projects can use this method during Early Access. Please reach out to Sales or your customer engineer to obtain access. Request object method variants only take one parameter, a request object, which must be constructed before the call. submitUriAsync(SubmitUriRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. submitUriOperationCallable()
+ * submitUriCallable()
* See the individual methods for example code.
diff --git a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java
index 40bd4312f88e..e1427394e689 100644
--- a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java
+++ b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java
@@ -158,6 +158,15 @@ public WebRiskServiceStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's 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);
@@ -495,6 +502,15 @@ public UnaryCallSettings.Builder ComputeThreatListDiff Gets the most recent threat list diffs. Request object method variants only take one parameter, a request object, which must be constructed before the call. computeThreatListDiff(ComputeThreatListDiffRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. computeThreatListDiff(ThreatType threatType, ByteString versionToken, ComputeThreatListDiffRequest.Constraints constraints)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. computeThreatListDiffCallable()
* SearchUris This method is used to check whether a URI is on a given threatList. Request object method variants only take one parameter, a request object, which must be constructed before the call. searchUris(SearchUrisRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. searchUris(String uri, List<ThreatType> threatTypes)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. searchUrisCallable()
* SearchHashes Gets the full hashes that match the requested hash prefix. This is used after a hash prefix is looked up in a threatList and there is a match. The client side threatList only holds partial hashes so the client must query this method to determine if there is a full hash match of a threat. Request object method variants only take one parameter, a request object, which must be constructed before the call. searchHashes(SearchHashesRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. searchHashes(ByteString hashPrefix, List<ThreatType> threatTypes)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. searchHashesCallable()
* See the individual methods for example code.
diff --git a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java
index 6818af1fc35e..6b245aaa9f67 100644
--- a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java
+++ b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java
@@ -132,6 +132,15 @@ public WebRiskServiceV1Beta1Stub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -312,7 +321,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -325,7 +333,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 CreateScanConfig Creates a new ScanConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. createScanConfig(CreateScanConfigRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createScanConfigCallable()
* DeleteScanConfig Deletes an existing ScanConfig and its child resources. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteScanConfig(DeleteScanConfigRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteScanConfigCallable()
* GetScanConfig Gets a ScanConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. getScanConfig(GetScanConfigRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getScanConfigCallable()
* ListScanConfigs Lists ScanConfigs under a given project. Request object method variants only take one parameter, a request object, which must be constructed before the call. listScanConfigs(ListScanConfigsRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listScanConfigsPagedCallable()
+ * listScanConfigsCallable()
* UpdateScanConfig Updates a ScanConfig. This method support partial update of a ScanConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateScanConfig(UpdateScanConfigRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateScanConfigCallable()
* StartScanRun Start a ScanRun according to the given ScanConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. startScanRun(StartScanRunRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. startScanRunCallable()
* GetScanRun Gets a ScanRun. Request object method variants only take one parameter, a request object, which must be constructed before the call. getScanRun(GetScanRunRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getScanRunCallable()
* ListScanRuns Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. Request object method variants only take one parameter, a request object, which must be constructed before the call. listScanRuns(ListScanRunsRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listScanRunsPagedCallable()
+ * listScanRunsCallable()
* StopScanRun Stops a ScanRun. The stopped ScanRun is returned. Request object method variants only take one parameter, a request object, which must be constructed before the call. stopScanRun(StopScanRunRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. stopScanRunCallable()
* ListCrawledUrls List CrawledUrls under a given ScanRun. Request object method variants only take one parameter, a request object, which must be constructed before the call. listCrawledUrls(ListCrawledUrlsRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listCrawledUrlsPagedCallable()
+ * listCrawledUrlsCallable()
* GetFinding Gets a Finding. Request object method variants only take one parameter, a request object, which must be constructed before the call. getFinding(GetFindingRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getFindingCallable()
* ListFindings List Findings under a given ScanRun. Request object method variants only take one parameter, a request object, which must be constructed before the call. listFindings(ListFindingsRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listFindingsPagedCallable()
+ * listFindingsCallable()
* ListFindingTypeStats List all FindingTypeStats under a given ScanRun. Request object method variants only take one parameter, a request object, which must be constructed before the call. listFindingTypeStats(ListFindingTypeStatsRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listFindingTypeStatsCallable()
* See the individual methods for example code.
diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
index 7684b92849b1..5cc678916727 100644
--- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
+++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
@@ -452,6 +452,15 @@ public WebSecurityScannerStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -715,7 +724,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -728,7 +736,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);
@@ -895,6 +902,15 @@ public UnaryCallSettings.Builder CreateScanConfig Creates a new ScanConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. createScanConfig(CreateScanConfigRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createScanConfig(ProjectName parent, ScanConfig scanConfig)
+ * createScanConfig(String parent, ScanConfig scanConfig)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createScanConfigCallable()
* DeleteScanConfig Deletes an existing ScanConfig and its child resources. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteScanConfig(DeleteScanConfigRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteScanConfig(ScanConfigName name)
+ * deleteScanConfig(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteScanConfigCallable()
* GetScanConfig Gets a ScanConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. getScanConfig(GetScanConfigRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getScanConfig(ScanConfigName name)
+ * getScanConfig(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getScanConfigCallable()
* ListScanConfigs Lists ScanConfigs under a given project. Request object method variants only take one parameter, a request object, which must be constructed before the call. listScanConfigs(ListScanConfigsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listScanConfigs(ProjectName parent)
+ * listScanConfigs(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listScanConfigsPagedCallable()
+ * listScanConfigsCallable()
* UpdateScanConfig Updates a ScanConfig. This method support partial update of a ScanConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateScanConfig(UpdateScanConfigRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateScanConfig(ScanConfig scanConfig, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateScanConfigCallable()
* StartScanRun Start a ScanRun according to the given ScanConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. startScanRun(StartScanRunRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. startScanRun(ScanConfigName name)
+ * startScanRun(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. startScanRunCallable()
* GetScanRun Gets a ScanRun. Request object method variants only take one parameter, a request object, which must be constructed before the call. getScanRun(GetScanRunRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getScanRun(ScanRunName name)
+ * getScanRun(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getScanRunCallable()
* ListScanRuns Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. Request object method variants only take one parameter, a request object, which must be constructed before the call. listScanRuns(ListScanRunsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listScanRuns(ScanConfigName parent)
+ * listScanRuns(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listScanRunsPagedCallable()
+ * listScanRunsCallable()
* StopScanRun Stops a ScanRun. The stopped ScanRun is returned. Request object method variants only take one parameter, a request object, which must be constructed before the call. stopScanRun(StopScanRunRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. stopScanRun(ScanRunName name)
+ * stopScanRun(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. stopScanRunCallable()
* ListCrawledUrls List CrawledUrls under a given ScanRun. Request object method variants only take one parameter, a request object, which must be constructed before the call. listCrawledUrls(ListCrawledUrlsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listCrawledUrls(ScanRunName parent)
+ * listCrawledUrls(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listCrawledUrlsPagedCallable()
+ * listCrawledUrlsCallable()
* GetFinding Gets a Finding. Request object method variants only take one parameter, a request object, which must be constructed before the call. getFinding(GetFindingRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getFinding(FindingName name)
+ * getFinding(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getFindingCallable()
* ListFindings List Findings under a given ScanRun. Request object method variants only take one parameter, a request object, which must be constructed before the call. listFindings(ListFindingsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listFindings(ScanRunName parent, String filter)
+ * listFindings(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. listFindingsPagedCallable()
+ * listFindingsCallable()
* ListFindingTypeStats List all FindingTypeStats under a given ScanRun. Request object method variants only take one parameter, a request object, which must be constructed before the call. listFindingTypeStats(ListFindingTypeStatsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listFindingTypeStats(ScanRunName parent)
+ * listFindingTypeStats(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listFindingTypeStatsCallable()
* See the individual methods for example code.
diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
index 4350bd72dec0..415a1aec5575 100644
--- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
+++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
@@ -453,6 +453,15 @@ public WebSecurityScannerStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -716,7 +725,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -729,7 +737,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);
@@ -896,6 +903,15 @@ public UnaryCallSettings.Builder CreateScanConfig Creates a new ScanConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. createScanConfig(CreateScanConfigRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createScanConfig(ProjectName parent, ScanConfig scanConfig)
+ * createScanConfig(String parent, ScanConfig scanConfig)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createScanConfigCallable()
* DeleteScanConfig Deletes an existing ScanConfig and its child resources. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteScanConfig(DeleteScanConfigRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteScanConfig(ScanConfigName name)
+ * deleteScanConfig(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteScanConfigCallable()
* GetScanConfig Gets a ScanConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. getScanConfig(GetScanConfigRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getScanConfig(ScanConfigName name)
+ * getScanConfig(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getScanConfigCallable()
* ListScanConfigs Lists ScanConfigs under a given project. Request object method variants only take one parameter, a request object, which must be constructed before the call. listScanConfigs(ListScanConfigsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listScanConfigs(ProjectName parent)
+ * listScanConfigs(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listScanConfigsPagedCallable()
+ * listScanConfigsCallable()
* UpdateScanConfig Updates a ScanConfig. This method support partial update of a ScanConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateScanConfig(UpdateScanConfigRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateScanConfig(ScanConfig scanConfig, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateScanConfigCallable()
* StartScanRun Start a ScanRun according to the given ScanConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. startScanRun(StartScanRunRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. startScanRun(ScanConfigName name)
+ * startScanRun(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. startScanRunCallable()
* GetScanRun Gets a ScanRun. Request object method variants only take one parameter, a request object, which must be constructed before the call. getScanRun(GetScanRunRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getScanRun(ScanRunName name)
+ * getScanRun(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getScanRunCallable()
* ListScanRuns Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. Request object method variants only take one parameter, a request object, which must be constructed before the call. listScanRuns(ListScanRunsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listScanRuns(ScanConfigName parent)
+ * listScanRuns(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listScanRunsPagedCallable()
+ * listScanRunsCallable()
* StopScanRun Stops a ScanRun. The stopped ScanRun is returned. Request object method variants only take one parameter, a request object, which must be constructed before the call. stopScanRun(StopScanRunRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. stopScanRun(ScanRunName name)
+ * stopScanRun(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. stopScanRunCallable()
* ListCrawledUrls List CrawledUrls under a given ScanRun. Request object method variants only take one parameter, a request object, which must be constructed before the call. listCrawledUrls(ListCrawledUrlsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listCrawledUrls(ScanRunName parent)
+ * listCrawledUrls(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listCrawledUrlsPagedCallable()
+ * listCrawledUrlsCallable()
* GetFinding Gets a Finding. Request object method variants only take one parameter, a request object, which must be constructed before the call. getFinding(GetFindingRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getFinding(FindingName name)
+ * getFinding(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getFindingCallable()
* ListFindings List Findings under a given ScanRun. Request object method variants only take one parameter, a request object, which must be constructed before the call. listFindings(ListFindingsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listFindings(ScanRunName parent, String filter)
+ * listFindings(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. listFindingsPagedCallable()
+ * listFindingsCallable()
* ListFindingTypeStats List all FindingTypeStats under a given ScanRun. Request object method variants only take one parameter, a request object, which must be constructed before the call. listFindingTypeStats(ListFindingTypeStatsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listFindingTypeStats(ScanRunName parent)
+ * listFindingTypeStats(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listFindingTypeStatsCallable()
* See the individual methods for example code.
diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
index 1f6ed8aab030..13d84403e209 100644
--- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
+++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
@@ -453,6 +453,15 @@ public WebSecurityScannerStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -716,7 +725,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -729,7 +737,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);
@@ -896,6 +903,15 @@ public UnaryCallSettings.Builder ListExecutions Returns a list of executions which belong to the workflow with the given name. The method returns executions of all workflow revisions. Returned executions are ordered by their start time (newest first). Request object method variants only take one parameter, a request object, which must be constructed before the call. listExecutions(ListExecutionsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listExecutions(WorkflowName parent)
+ * listExecutions(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listExecutionsPagedCallable()
+ * listExecutionsCallable()
* CreateExecution Creates a new execution using the latest revision of the given workflow. Request object method variants only take one parameter, a request object, which must be constructed before the call. createExecution(CreateExecutionRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createExecution(WorkflowName parent, Execution execution)
+ * createExecution(String parent, Execution execution)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createExecutionCallable()
* GetExecution Returns an execution of the given name. Request object method variants only take one parameter, a request object, which must be constructed before the call. getExecution(GetExecutionRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getExecution(ExecutionName name)
+ * getExecution(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getExecutionCallable()
* CancelExecution Cancels an execution of the given name. Request object method variants only take one parameter, a request object, which must be constructed before the call. cancelExecution(CancelExecutionRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. cancelExecution(ExecutionName name)
+ * cancelExecution(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. cancelExecutionCallable()
* See the individual methods for example code.
diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java
index b692dc08b4ba..255fd160d79e 100644
--- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java
+++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java
@@ -199,6 +199,15 @@ public ExecutionsStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -375,7 +384,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -388,7 +396,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 ListExecutions Returns a list of executions which belong to the workflow with the given name. The method returns executions of all workflow revisions. Returned executions are ordered by their start time (newest first). Request object method variants only take one parameter, a request object, which must be constructed before the call. listExecutions(ListExecutionsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listExecutions(WorkflowName parent)
+ * listExecutions(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listExecutionsPagedCallable()
+ * listExecutionsCallable()
* CreateExecution Creates a new execution using the latest revision of the given workflow. Request object method variants only take one parameter, a request object, which must be constructed before the call. createExecution(CreateExecutionRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createExecution(WorkflowName parent, Execution execution)
+ * createExecution(String parent, Execution execution)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createExecutionCallable()
* GetExecution Returns an execution of the given name. Request object method variants only take one parameter, a request object, which must be constructed before the call. getExecution(GetExecutionRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getExecution(ExecutionName name)
+ * getExecution(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getExecutionCallable()
* CancelExecution Cancels an execution of the given name. Request object method variants only take one parameter, a request object, which must be constructed before the call. cancelExecution(CancelExecutionRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. cancelExecution(ExecutionName name)
+ * cancelExecution(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. cancelExecutionCallable()
* See the individual methods for example code.
diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java
index 3c3ad799eb4a..d57662eb712b 100644
--- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java
+++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java
@@ -200,6 +200,15 @@ public ExecutionsStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -376,7 +385,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -389,7 +397,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);
@@ -457,6 +464,15 @@ public UnaryCallSettings.Builder ListWorkflows Lists workflows in a given project and location. The default order is not specified. Request object method variants only take one parameter, a request object, which must be constructed before the call. listWorkflows(ListWorkflowsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listWorkflows(LocationName parent)
+ * listWorkflows(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listWorkflowsPagedCallable()
+ * listWorkflowsCallable()
* GetWorkflow Gets details of a single workflow. Request object method variants only take one parameter, a request object, which must be constructed before the call. getWorkflow(GetWorkflowRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getWorkflow(WorkflowName name)
+ * getWorkflow(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getWorkflowCallable()
* CreateWorkflow Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation returns a [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error. Request object method variants only take one parameter, a request object, which must be constructed before the call. createWorkflowAsync(CreateWorkflowRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createWorkflowAsync(LocationName parent, Workflow workflow, String workflowId)
+ * createWorkflowAsync(String parent, Workflow workflow, String workflowId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createWorkflowOperationCallable()
+ * createWorkflowCallable()
* DeleteWorkflow Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteWorkflowAsync(DeleteWorkflowRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteWorkflowAsync(WorkflowName name)
+ * deleteWorkflowAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteWorkflowOperationCallable()
+ * deleteWorkflowCallable()
* UpdateWorkflow Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a successful update operation. In that case, the new revision is used in new workflow executions. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateWorkflowAsync(UpdateWorkflowRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateWorkflowAsync(Workflow workflow, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateWorkflowOperationCallable()
+ * updateWorkflowCallable()
* ListLocations Lists information about the supported locations for this service. Request object method variants only take one parameter, a request object, which must be constructed before the call. listLocations(ListLocationsRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listLocationsPagedCallable()
+ * listLocationsCallable()
* GetLocation Gets information about a location. Request object method variants only take one parameter, a request object, which must be constructed before the call. getLocation(GetLocationRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getLocationCallable()
* See the individual methods for example code.
diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java
index e2ad6dcd5332..b588ffbd17d0 100644
--- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java
+++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java
@@ -308,6 +308,15 @@ public WorkflowsStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -518,7 +527,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -531,7 +539,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);
@@ -727,6 +734,15 @@ public UnaryCallSettings.Builder ListWorkflows Lists Workflows in a given project and location. The default order is not specified. Request object method variants only take one parameter, a request object, which must be constructed before the call. listWorkflows(ListWorkflowsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listWorkflows(LocationName parent)
+ * listWorkflows(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listWorkflowsPagedCallable()
+ * listWorkflowsCallable()
* GetWorkflow Gets details of a single Workflow. Request object method variants only take one parameter, a request object, which must be constructed before the call. getWorkflow(GetWorkflowRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getWorkflow(WorkflowName name)
+ * getWorkflow(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getWorkflowCallable()
* CreateWorkflow Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation will return [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error. Request object method variants only take one parameter, a request object, which must be constructed before the call. createWorkflowAsync(CreateWorkflowRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createWorkflowAsync(LocationName parent, Workflow workflow, String workflowId)
+ * createWorkflowAsync(String parent, Workflow workflow, String workflowId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createWorkflowOperationCallable()
+ * createWorkflowCallable()
* DeleteWorkflow Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteWorkflowAsync(DeleteWorkflowRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteWorkflowAsync(WorkflowName name)
+ * deleteWorkflowAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteWorkflowOperationCallable()
+ * deleteWorkflowCallable()
* UpdateWorkflow Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow may be created as a result of a successful update operation. In that case, such revision will be used in new workflow executions. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateWorkflowAsync(UpdateWorkflowRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateWorkflowAsync(Workflow workflow, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateWorkflowOperationCallable()
+ * updateWorkflowCallable()
* See the individual methods for example code.
diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java
index 0ec034ed5c8a..9f88db6d9aa5 100644
--- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java
+++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java
@@ -236,6 +236,15 @@ public WorkflowsStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -432,7 +441,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -445,7 +453,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);
@@ -619,6 +626,15 @@ public UnaryCallSettings.Builder GetWorkstationCluster Returns the requested workstation cluster. Request object method variants only take one parameter, a request object, which must be constructed before the call. getWorkstationCluster(GetWorkstationClusterRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getWorkstationCluster(WorkstationClusterName name)
+ * getWorkstationCluster(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getWorkstationClusterCallable()
* ListWorkstationClusters Returns all workstation clusters in the specified location. Request object method variants only take one parameter, a request object, which must be constructed before the call. listWorkstationClusters(ListWorkstationClustersRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listWorkstationClusters(LocationName parent)
+ * listWorkstationClusters(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listWorkstationClustersPagedCallable()
+ * listWorkstationClustersCallable()
* CreateWorkstationCluster Creates a new workstation cluster. Request object method variants only take one parameter, a request object, which must be constructed before the call. createWorkstationClusterAsync(CreateWorkstationClusterRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createWorkstationClusterAsync(LocationName parent, WorkstationCluster workstationCluster, String workstationClusterId)
+ * createWorkstationClusterAsync(String parent, WorkstationCluster workstationCluster, String workstationClusterId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createWorkstationClusterOperationCallable()
+ * createWorkstationClusterCallable()
* UpdateWorkstationCluster Updates an existing workstation cluster. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateWorkstationClusterAsync(UpdateWorkstationClusterRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateWorkstationClusterAsync(WorkstationCluster workstationCluster, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateWorkstationClusterOperationCallable()
+ * updateWorkstationClusterCallable()
* DeleteWorkstationCluster Deletes the specified workstation cluster. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteWorkstationClusterAsync(DeleteWorkstationClusterRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteWorkstationClusterAsync(WorkstationClusterName name)
+ * deleteWorkstationClusterAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteWorkstationClusterOperationCallable()
+ * deleteWorkstationClusterCallable()
* GetWorkstationConfig Returns the requested workstation configuration. Request object method variants only take one parameter, a request object, which must be constructed before the call. getWorkstationConfig(GetWorkstationConfigRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getWorkstationConfig(WorkstationConfigName name)
+ * getWorkstationConfig(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getWorkstationConfigCallable()
* ListWorkstationConfigs Returns all workstation configurations in the specified cluster. Request object method variants only take one parameter, a request object, which must be constructed before the call. listWorkstationConfigs(ListWorkstationConfigsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listWorkstationConfigs(WorkstationClusterName parent)
+ * listWorkstationConfigs(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listWorkstationConfigsPagedCallable()
+ * listWorkstationConfigsCallable()
* ListUsableWorkstationConfigs Returns all workstation configurations in the specified cluster on which the caller has the "workstations.workstation.create" permission. Request object method variants only take one parameter, a request object, which must be constructed before the call. listUsableWorkstationConfigs(ListUsableWorkstationConfigsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listUsableWorkstationConfigs(WorkstationClusterName parent)
+ * listUsableWorkstationConfigs(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listUsableWorkstationConfigsPagedCallable()
+ * listUsableWorkstationConfigsCallable()
* CreateWorkstationConfig Creates a new workstation configuration. Request object method variants only take one parameter, a request object, which must be constructed before the call. createWorkstationConfigAsync(CreateWorkstationConfigRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createWorkstationConfigAsync(WorkstationClusterName parent, WorkstationConfig workstationConfig, String workstationConfigId)
+ * createWorkstationConfigAsync(String parent, WorkstationConfig workstationConfig, String workstationConfigId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createWorkstationConfigOperationCallable()
+ * createWorkstationConfigCallable()
* UpdateWorkstationConfig Updates an existing workstation configuration. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateWorkstationConfigAsync(UpdateWorkstationConfigRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateWorkstationConfigAsync(WorkstationConfig workstationConfig, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateWorkstationConfigOperationCallable()
+ * updateWorkstationConfigCallable()
* DeleteWorkstationConfig Deletes the specified workstation configuration. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteWorkstationConfigAsync(DeleteWorkstationConfigRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteWorkstationConfigAsync(WorkstationConfigName name)
+ * deleteWorkstationConfigAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteWorkstationConfigOperationCallable()
+ * deleteWorkstationConfigCallable()
* GetWorkstation Returns the requested workstation. Request object method variants only take one parameter, a request object, which must be constructed before the call. getWorkstation(GetWorkstationRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getWorkstation(WorkstationName name)
+ * getWorkstation(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getWorkstationCallable()
* ListWorkstations Returns all Workstations using the specified workstation configuration. Request object method variants only take one parameter, a request object, which must be constructed before the call. listWorkstations(ListWorkstationsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listWorkstations(WorkstationConfigName parent)
+ * listWorkstations(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listWorkstationsPagedCallable()
+ * listWorkstationsCallable()
* ListUsableWorkstations Returns all workstations using the specified workstation configuration on which the caller has the "workstations.workstations.use" permission. Request object method variants only take one parameter, a request object, which must be constructed before the call. listUsableWorkstations(ListUsableWorkstationsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listUsableWorkstations(WorkstationConfigName parent)
+ * listUsableWorkstations(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listUsableWorkstationsPagedCallable()
+ * listUsableWorkstationsCallable()
* CreateWorkstation Creates a new workstation. Request object method variants only take one parameter, a request object, which must be constructed before the call. createWorkstationAsync(CreateWorkstationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createWorkstationAsync(WorkstationConfigName parent, Workstation workstation, String workstationId)
+ * createWorkstationAsync(String parent, Workstation workstation, String workstationId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createWorkstationOperationCallable()
+ * createWorkstationCallable()
* UpdateWorkstation Updates an existing workstation. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateWorkstationAsync(UpdateWorkstationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateWorkstationAsync(Workstation workstation, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateWorkstationOperationCallable()
+ * updateWorkstationCallable()
* DeleteWorkstation Deletes the specified workstation. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteWorkstationAsync(DeleteWorkstationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteWorkstationAsync(WorkstationName name)
+ * deleteWorkstationAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteWorkstationOperationCallable()
+ * deleteWorkstationCallable()
* StartWorkstation Starts running a workstation so that users can connect to it. Request object method variants only take one parameter, a request object, which must be constructed before the call. startWorkstationAsync(StartWorkstationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. startWorkstationAsync(WorkstationName name)
+ * startWorkstationAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. startWorkstationOperationCallable()
+ * startWorkstationCallable()
* StopWorkstation Stops running a workstation, reducing costs. Request object method variants only take one parameter, a request object, which must be constructed before the call. stopWorkstationAsync(StopWorkstationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. stopWorkstationAsync(WorkstationName name)
+ * stopWorkstationAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. stopWorkstationOperationCallable()
+ * stopWorkstationCallable()
* GenerateAccessToken Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation. Request object method variants only take one parameter, a request object, which must be constructed before the call. generateAccessToken(GenerateAccessTokenRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. generateAccessToken(WorkstationName workstation)
+ * generateAccessToken(String workstation)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. generateAccessTokenCallable()
* SetIamPolicy Sets the access control policy on the specified resource. Replacesany existing policy.
* Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. Request object method variants only take one parameter, a request object, which must be constructed before the call. setIamPolicy(SetIamPolicyRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. setIamPolicyCallable()
* GetIamPolicy Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. Request object method variants only take one parameter, a request object, which must be constructed before the call. getIamPolicy(GetIamPolicyRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getIamPolicyCallable()
* TestIamPermissions Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error.
* Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning. Request object method variants only take one parameter, a request object, which must be constructed before the call. testIamPermissions(TestIamPermissionsRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. testIamPermissionsCallable()
* See the individual methods for example code.
diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java
index ca8378d7dabc..29f4862584ec 100644
--- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java
+++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java
@@ -796,6 +796,15 @@ public WorkstationsStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -1227,7 +1236,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -1240,7 +1248,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);
@@ -1886,6 +1893,15 @@ public UnaryCallSettings.Builder GetWorkstationCluster Returns the requested workstation cluster. Request object method variants only take one parameter, a request object, which must be constructed before the call. getWorkstationCluster(GetWorkstationClusterRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getWorkstationCluster(WorkstationClusterName name)
+ * getWorkstationCluster(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getWorkstationClusterCallable()
* ListWorkstationClusters Returns all workstation clusters in the specified location. Request object method variants only take one parameter, a request object, which must be constructed before the call. listWorkstationClusters(ListWorkstationClustersRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listWorkstationClusters(LocationName parent)
+ * listWorkstationClusters(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listWorkstationClustersPagedCallable()
+ * listWorkstationClustersCallable()
* CreateWorkstationCluster Creates a new workstation cluster. Request object method variants only take one parameter, a request object, which must be constructed before the call. createWorkstationClusterAsync(CreateWorkstationClusterRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createWorkstationClusterAsync(LocationName parent, WorkstationCluster workstationCluster, String workstationClusterId)
+ * createWorkstationClusterAsync(String parent, WorkstationCluster workstationCluster, String workstationClusterId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createWorkstationClusterOperationCallable()
+ * createWorkstationClusterCallable()
* UpdateWorkstationCluster Updates an existing workstation cluster. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateWorkstationClusterAsync(UpdateWorkstationClusterRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateWorkstationClusterAsync(WorkstationCluster workstationCluster, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateWorkstationClusterOperationCallable()
+ * updateWorkstationClusterCallable()
* DeleteWorkstationCluster Deletes the specified workstation cluster. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteWorkstationClusterAsync(DeleteWorkstationClusterRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteWorkstationClusterAsync(WorkstationClusterName name)
+ * deleteWorkstationClusterAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteWorkstationClusterOperationCallable()
+ * deleteWorkstationClusterCallable()
* GetWorkstationConfig Returns the requested workstation configuration. Request object method variants only take one parameter, a request object, which must be constructed before the call. getWorkstationConfig(GetWorkstationConfigRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getWorkstationConfig(WorkstationConfigName name)
+ * getWorkstationConfig(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getWorkstationConfigCallable()
* ListWorkstationConfigs Returns all workstation configurations in the specified cluster. Request object method variants only take one parameter, a request object, which must be constructed before the call. listWorkstationConfigs(ListWorkstationConfigsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listWorkstationConfigs(WorkstationClusterName parent)
+ * listWorkstationConfigs(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listWorkstationConfigsPagedCallable()
+ * listWorkstationConfigsCallable()
* ListUsableWorkstationConfigs Returns all workstation configurations in the specified cluster on which the caller has the "workstations.workstation.create" permission. Request object method variants only take one parameter, a request object, which must be constructed before the call. listUsableWorkstationConfigs(ListUsableWorkstationConfigsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listUsableWorkstationConfigs(WorkstationClusterName parent)
+ * listUsableWorkstationConfigs(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listUsableWorkstationConfigsPagedCallable()
+ * listUsableWorkstationConfigsCallable()
* CreateWorkstationConfig Creates a new workstation configuration. Request object method variants only take one parameter, a request object, which must be constructed before the call. createWorkstationConfigAsync(CreateWorkstationConfigRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createWorkstationConfigAsync(WorkstationClusterName parent, WorkstationConfig workstationConfig, String workstationConfigId)
+ * createWorkstationConfigAsync(String parent, WorkstationConfig workstationConfig, String workstationConfigId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createWorkstationConfigOperationCallable()
+ * createWorkstationConfigCallable()
* UpdateWorkstationConfig Updates an existing workstation configuration. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateWorkstationConfigAsync(UpdateWorkstationConfigRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateWorkstationConfigAsync(WorkstationConfig workstationConfig, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateWorkstationConfigOperationCallable()
+ * updateWorkstationConfigCallable()
* DeleteWorkstationConfig Deletes the specified workstation configuration. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteWorkstationConfigAsync(DeleteWorkstationConfigRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteWorkstationConfigAsync(WorkstationConfigName name)
+ * deleteWorkstationConfigAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteWorkstationConfigOperationCallable()
+ * deleteWorkstationConfigCallable()
* GetWorkstation Returns the requested workstation. Request object method variants only take one parameter, a request object, which must be constructed before the call. getWorkstation(GetWorkstationRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getWorkstation(WorkstationName name)
+ * getWorkstation(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getWorkstationCallable()
* ListWorkstations Returns all Workstations using the specified workstation configuration. Request object method variants only take one parameter, a request object, which must be constructed before the call. listWorkstations(ListWorkstationsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listWorkstations(WorkstationConfigName parent)
+ * listWorkstations(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listWorkstationsPagedCallable()
+ * listWorkstationsCallable()
* ListUsableWorkstations Returns all workstations using the specified workstation configuration on which the caller has the "workstations.workstations.use" permission. Request object method variants only take one parameter, a request object, which must be constructed before the call. listUsableWorkstations(ListUsableWorkstationsRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listUsableWorkstations(WorkstationConfigName parent)
+ * listUsableWorkstations(String parent)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listUsableWorkstationsPagedCallable()
+ * listUsableWorkstationsCallable()
* CreateWorkstation Creates a new workstation. Request object method variants only take one parameter, a request object, which must be constructed before the call. createWorkstationAsync(CreateWorkstationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. createWorkstationAsync(WorkstationConfigName parent, Workstation workstation, String workstationId)
+ * createWorkstationAsync(String parent, Workstation workstation, String workstationId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createWorkstationOperationCallable()
+ * createWorkstationCallable()
* UpdateWorkstation Updates an existing workstation. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateWorkstationAsync(UpdateWorkstationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateWorkstationAsync(Workstation workstation, FieldMask updateMask)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateWorkstationOperationCallable()
+ * updateWorkstationCallable()
* DeleteWorkstation Deletes the specified workstation. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteWorkstationAsync(DeleteWorkstationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteWorkstationAsync(WorkstationName name)
+ * deleteWorkstationAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteWorkstationOperationCallable()
+ * deleteWorkstationCallable()
* StartWorkstation Starts running a workstation so that users can connect to it. Request object method variants only take one parameter, a request object, which must be constructed before the call. startWorkstationAsync(StartWorkstationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. startWorkstationAsync(WorkstationName name)
+ * startWorkstationAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. startWorkstationOperationCallable()
+ * startWorkstationCallable()
* StopWorkstation Stops running a workstation, reducing costs. Request object method variants only take one parameter, a request object, which must be constructed before the call. stopWorkstationAsync(StopWorkstationRequest request)
* Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. stopWorkstationAsync(WorkstationName name)
+ * stopWorkstationAsync(String name)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. stopWorkstationOperationCallable()
+ * stopWorkstationCallable()
* GenerateAccessToken Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation. Request object method variants only take one parameter, a request object, which must be constructed before the call. generateAccessToken(GenerateAccessTokenRequest request)
* "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. generateAccessToken(WorkstationName workstation)
+ * generateAccessToken(String workstation)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. generateAccessTokenCallable()
* SetIamPolicy Sets the access control policy on the specified resource. Replacesany existing policy.
* Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. Request object method variants only take one parameter, a request object, which must be constructed before the call. setIamPolicy(SetIamPolicyRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. setIamPolicyCallable()
* GetIamPolicy Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. Request object method variants only take one parameter, a request object, which must be constructed before the call. getIamPolicy(GetIamPolicyRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getIamPolicyCallable()
* TestIamPermissions Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error.
* Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning. Request object method variants only take one parameter, a request object, which must be constructed before the call. testIamPermissions(TestIamPermissionsRequest request)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. testIamPermissionsCallable()
* See the individual methods for example code.
diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java
index d204c1be943c..5d9f79bc9b61 100644
--- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java
+++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java
@@ -797,6 +797,15 @@ public WorkstationsStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
/** Returns the default service name. */
@Override
public String getServiceName() {
@@ -1228,7 +1237,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);
@@ -1241,7 +1249,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);
@@ -1887,6 +1894,15 @@ public UnaryCallSettings.Builder
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
- *
* BatchAnnotateImages
+ *
*
*
*
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* BatchAnnotateImages
+ *
*
*
*
*
- *
*
- *
*
- *
- *
* AsyncBatchAnnotateFiles
+ *
*
*
*
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* BatchAnnotateImages
+ *
*
*
*
*
- *
*
- *
*
- *
- *
* AsyncBatchAnnotateFiles
+ *
*
*
*
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* CreateProductSet
+ *
*
@@ -92,21 +94,21 @@
*
*
*
- *
*
- *
*
- *
*
- *
* ListProductSets
+ *
*
@@ -115,22 +117,22 @@
*
*
*
- *
*
- *
*
- *
*
- *
* GetProductSet
+ *
*
@@ -139,21 +141,21 @@
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateProductSet
+ *
*
@@ -163,20 +165,20 @@
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteProductSet
+ *
*
*
*
- *
*
- *
*
- *
*
- *
* CreateProduct
+ *
*
@@ -211,21 +213,21 @@
*
*
*
- *
*
- *
*
- *
*
- *
* ListProducts
+ *
*
@@ -234,22 +236,22 @@
*
*
*
- *
*
- *
*
- *
*
- *
* GetProduct
+ *
*
@@ -258,21 +260,21 @@
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateProduct
+ *
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteProduct
+ *
*
*
*
- *
*
- *
*
- *
*
- *
* CreateReferenceImage
+ *
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteReferenceImage
+ *
*
*
*
- *
*
- *
*
- *
*
- *
* ListReferenceImages
+ *
*
@@ -385,22 +387,22 @@
*
*
*
- *
*
- *
*
- *
*
- *
* GetReferenceImage
+ *
*
@@ -409,21 +411,21 @@
*
*
*
- *
*
- *
*
- *
*
- *
* AddProductToProductSet
+ *
*
*
*
- *
*
- *
*
- *
*
- *
* RemoveProductFromProductSet
+ *
*
@@ -458,23 +460,23 @@
*
*
*
- *
*
- *
*
- *
*
- *
* ListProductsInProductSet
+ *
*
@@ -483,43 +485,42 @@
*
*
*
- *
*
- *
*
- *
*
- *
- *
* ImportProductSets
+ *
*
*
*
*
- *
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* BatchAnnotateImages
+ *
*
*
*
*
- *
*
- *
*
- *
* BatchAnnotateFiles
+ *
*
*
*
*
- *
*
- *
*
- *
* AsyncBatchAnnotateImages
+ *
*
*
*
*
- *
*
- *
*
- *
- *
* AsyncBatchAnnotateFiles
+ *
*
*
*
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* CreateProductSet
+ *
*
@@ -92,21 +94,21 @@
*
*
*
- *
*
- *
*
- *
*
- *
* ListProductSets
+ *
*
@@ -115,22 +117,22 @@
*
*
*
- *
*
- *
*
- *
*
- *
* GetProductSet
+ *
*
@@ -139,21 +141,21 @@
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateProductSet
+ *
*
@@ -163,40 +165,40 @@
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteProductSet
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateProduct
+ *
*
@@ -207,21 +209,21 @@
*
*
*
- *
*
- *
*
- *
*
- *
* ListProducts
+ *
*
@@ -230,22 +232,22 @@
*
*
*
- *
*
- *
*
- *
*
- *
* GetProduct
+ *
*
@@ -254,21 +256,21 @@
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateProduct
+ *
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteProduct
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateReferenceImage
+ *
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteReferenceImage
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListReferenceImages
+ *
*
@@ -373,22 +375,22 @@
*
*
*
- *
*
- *
*
- *
*
- *
* GetReferenceImage
+ *
*
@@ -397,21 +399,21 @@
*
*
*
- *
*
- *
*
- *
*
- *
* AddProductToProductSet
+ *
*
*
*
- *
*
- *
*
- *
*
- *
* RemoveProductFromProductSet
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListProductsInProductSet
+ *
*
@@ -467,44 +469,44 @@
*
*
*
- *
*
- *
*
- *
*
- *
* ImportProductSets
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
- *
* PurgeProducts
+ *
*
*
*
- *
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* ListSources
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetSource
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateSource
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateSource
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteSource
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* FetchInventory
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListUtilizationReports
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetUtilizationReport
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateUtilizationReport
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteUtilizationReport
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListDatacenterConnectors
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetDatacenterConnector
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateDatacenterConnector
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteDatacenterConnector
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpgradeAppliance
+ *
*
*
*
*
- *
*
- *
*
- *
* CreateMigratingVm
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListMigratingVms
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetMigratingVm
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateMigratingVm
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteMigratingVm
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* StartMigration
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ResumeMigration
+ *
*
*
*
*
- *
*
- *
*
- *
* PauseMigration
+ *
*
*
*
*
- *
*
- *
*
- *
* FinalizeMigration
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateCloneJob
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CancelCloneJob
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListCloneJobs
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetCloneJob
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateCutoverJob
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CancelCutoverJob
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListCutoverJobs
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetCutoverJob
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListGroups
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetGroup
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateGroup
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateGroup
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteGroup
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* AddGroupMigration
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* RemoveGroupMigration
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListTargetProjects
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetTargetProject
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateTargetProject
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateTargetProject
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteTargetProject
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListReplicationCycles
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetReplicationCycle
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListLocations
+ *
*
*
*
*
- *
*
- *
*
- *
- *
* GetLocation
+ *
*
*
*
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* ListPrivateClouds
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetPrivateCloud
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreatePrivateCloud
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdatePrivateCloud
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeletePrivateCloud
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UndeletePrivateCloud
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListClusters
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetCluster
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateCluster
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateCluster
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteCluster
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListNodes
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetNode
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListExternalAddresses
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* FetchNetworkPolicyExternalAddresses
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetExternalAddress
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateExternalAddress
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateExternalAddress
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteExternalAddress
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListSubnets
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetSubnet
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateSubnet
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListExternalAccessRules
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetExternalAccessRule
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateExternalAccessRule
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateExternalAccessRule
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteExternalAccessRule
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListLoggingServers
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetLoggingServer
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateLoggingServer
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateLoggingServer
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteLoggingServer
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListNodeTypes
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetNodeType
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ShowNsxCredentials
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ShowVcenterCredentials
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ResetNsxCredentials
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ResetVcenterCredentials
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetDnsForwarding
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateDnsForwarding
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetNetworkPeering
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListNetworkPeerings
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateNetworkPeering
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteNetworkPeering
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateNetworkPeering
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListPeeringRoutes
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateHcxActivationKey
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListHcxActivationKeys
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetHcxActivationKey
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetNetworkPolicy
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListNetworkPolicies
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateNetworkPolicy
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateNetworkPolicy
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteNetworkPolicy
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListManagementDnsZoneBindings
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetManagementDnsZoneBinding
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateManagementDnsZoneBinding
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateManagementDnsZoneBinding
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteManagementDnsZoneBinding
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* RepairManagementDnsZoneBinding
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateVmwareEngineNetwork
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateVmwareEngineNetwork
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteVmwareEngineNetwork
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetVmwareEngineNetwork
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListVmwareEngineNetworks
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreatePrivateConnection
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetPrivateConnection
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListPrivateConnections
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdatePrivateConnection
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeletePrivateConnection
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListPrivateConnectionPeeringRoutes
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GrantDnsBindPermission
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetDnsBindPermission
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* RevokeDnsBindPermission
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListLocations
+ *
*
*
*
*
- *
*
- *
*
- *
* GetLocation
+ *
*
*
*
*
- *
*
- *
*
- *
* SetIamPolicy
+ *
*
*
*
*
- *
*
- *
*
- *
* GetIamPolicy
+ *
*
*
*
*
- *
*
- *
*
- *
- *
* TestIamPermissions
+ *
*
*
*
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* CreateConnector
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetConnector
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListConnectors
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteConnector
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
- *
* ListLocations
+ *
*
*
*
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* ComputeThreatListDiff
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* SearchUris
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* SearchHashes
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateSubmission
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
- *
* SubmitUri
+ *
*
*
*
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* ComputeThreatListDiff
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* SearchUris
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
- *
* SearchHashes
+ *
*
*
*
*
- *
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* CreateScanConfig
+ *
*
*
*
*
- *
*
- *
*
- *
* DeleteScanConfig
+ *
*
*
*
*
- *
*
- *
*
- *
* GetScanConfig
+ *
*
*
*
*
- *
*
- *
*
- *
* ListScanConfigs
+ *
*
*
*
*
- *
*
- *
*
- *
* UpdateScanConfig
+ *
*
*
*
*
- *
*
- *
*
- *
* StartScanRun
+ *
*
*
*
*
- *
*
- *
*
- *
* GetScanRun
+ *
*
*
*
*
- *
*
- *
*
- *
* ListScanRuns
+ *
*
*
*
*
- *
*
- *
*
- *
* StopScanRun
+ *
*
*
*
*
- *
*
- *
*
- *
* ListCrawledUrls
+ *
*
*
*
*
- *
*
- *
*
- *
* GetFinding
+ *
*
*
*
*
- *
*
- *
*
- *
* ListFindings
+ *
*
*
*
*
- *
*
- *
*
- *
- *
* ListFindingTypeStats
+ *
*
*
*
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* CreateScanConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteScanConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetScanConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListScanConfigs
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateScanConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* StartScanRun
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetScanRun
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListScanRuns
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* StopScanRun
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListCrawledUrls
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetFinding
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListFindings
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
- *
* ListFindingTypeStats
+ *
*
*
*
*
- *
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* CreateScanConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteScanConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetScanConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListScanConfigs
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateScanConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* StartScanRun
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetScanRun
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListScanRuns
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* StopScanRun
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListCrawledUrls
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetFinding
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListFindings
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
- *
* ListFindingTypeStats
+ *
*
*
*
*
- *
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* ListExecutions
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateExecution
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetExecution
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
- *
* CancelExecution
+ *
*
*
*
*
- *
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* ListExecutions
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateExecution
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetExecution
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
- *
* CancelExecution
+ *
*
*
*
*
- *
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* ListWorkflows
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetWorkflow
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateWorkflow
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteWorkflow
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateWorkflow
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListLocations
+ *
*
*
*
*
- *
*
- *
*
- *
- *
* GetLocation
+ *
*
*
*
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* ListWorkflows
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetWorkflow
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateWorkflow
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteWorkflow
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
- *
* UpdateWorkflow
+ *
*
*
*
*
- *
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* GetWorkstationCluster
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListWorkstationClusters
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateWorkstationCluster
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateWorkstationCluster
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteWorkstationCluster
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetWorkstationConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListWorkstationConfigs
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListUsableWorkstationConfigs
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateWorkstationConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateWorkstationConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteWorkstationConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetWorkstation
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListWorkstations
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListUsableWorkstations
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateWorkstation
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateWorkstation
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteWorkstation
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* StartWorkstation
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* StopWorkstation
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GenerateAccessToken
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* SetIamPolicy
+ *
*
*
*
*
- *
*
- *
*
- *
* GetIamPolicy
+ *
*
*
*
*
- *
*
- *
*
- *
- *
* TestIamPermissions
+ *
*
*
*
*
- *
*
- *
*
+ *
*
*
*
* Method
* Description
* Method Variants
+ *
- *
* GetWorkstationCluster
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListWorkstationClusters
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateWorkstationCluster
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateWorkstationCluster
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteWorkstationCluster
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetWorkstationConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListWorkstationConfigs
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListUsableWorkstationConfigs
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateWorkstationConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateWorkstationConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteWorkstationConfig
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GetWorkstation
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListWorkstations
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* ListUsableWorkstations
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* CreateWorkstation
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* UpdateWorkstation
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* DeleteWorkstation
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* StartWorkstation
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* StopWorkstation
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* GenerateAccessToken
+ *
*
*
*
*
- *
*
- *
*
- *
*
- *
* SetIamPolicy
+ *
*
*
*
*
- *
*
- *
*
- *
* GetIamPolicy
+ *
*
*
*
*
- *
*
- *
*
- *
- *
* TestIamPermissions
+ *
*
*
*
*
- *
*
- *
*