diff --git a/generation_config.yaml b/generation_config.yaml
index 2b8674f90529..5270ebe849a4 100644
--- a/generation_config.yaml
+++ b/generation_config.yaml
@@ -1,4 +1,4 @@
-googleapis_commitish: 05c4b6d37258ab81054529451cdf804f2918441f
+googleapis_commitish: 00bb3db8a8cc88f0755e872856462b902d6dd8c4
libraries_bom_version: 26.83.0
is_monorepo: true
libraries:
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java
index 4674ff8c9502..42b13e8f4bf3 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java
@@ -6627,7 +6627,7 @@ public com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder getNetworkConf
*
*
* @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=682
+ * google/cloud/alloydb/v1/resources.proto;l=687
* @return The network.
*/
@java.lang.Override
@@ -6660,7 +6660,7 @@ public java.lang.String getNetwork() {
*
*
* @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=682
+ * google/cloud/alloydb/v1/resources.proto;l=687
* @return The bytes for network.
*/
@java.lang.Override
@@ -7016,7 +7016,7 @@ public com.google.cloud.alloydb.v1.AutomatedBackupPolicy getAutomatedBackupPolic
* .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true];
*
* @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=717
+ * google/cloud/alloydb/v1/resources.proto;l=722
* @return Whether the sslConfig field is set.
*/
@java.lang.Override
@@ -7035,7 +7035,7 @@ public boolean hasSslConfig() {
* .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true];
*
* @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=717
+ * google/cloud/alloydb/v1/resources.proto;l=722
* @return The sslConfig.
*/
@java.lang.Override
@@ -11812,7 +11812,7 @@ public com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder getNetworkConf
*
*
* @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=682
+ * google/cloud/alloydb/v1/resources.proto;l=687
* @return The network.
*/
@java.lang.Deprecated
@@ -11844,7 +11844,7 @@ public java.lang.String getNetwork() {
*
*
* @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=682
+ * google/cloud/alloydb/v1/resources.proto;l=687
* @return The bytes for network.
*/
@java.lang.Deprecated
@@ -11876,7 +11876,7 @@ public com.google.protobuf.ByteString getNetworkBytes() {
*
*
* @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=682
+ * google/cloud/alloydb/v1/resources.proto;l=687
* @param value The network to set.
* @return This builder for chaining.
*/
@@ -11907,7 +11907,7 @@ public Builder setNetwork(java.lang.String value) {
*
*
* @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=682
+ * google/cloud/alloydb/v1/resources.proto;l=687
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -11934,7 +11934,7 @@ public Builder clearNetwork() {
*
*
* @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=682
+ * google/cloud/alloydb/v1/resources.proto;l=687
* @param value The bytes for network to set.
* @return This builder for chaining.
*/
@@ -12811,7 +12811,7 @@ public Builder clearAutomatedBackupPolicy() {
* .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true];
*
* @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=717
+ * google/cloud/alloydb/v1/resources.proto;l=722
* @return Whether the sslConfig field is set.
*/
@java.lang.Deprecated
@@ -12829,7 +12829,7 @@ public boolean hasSslConfig() {
* .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true];
*
* @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=717
+ * google/cloud/alloydb/v1/resources.proto;l=722
* @return The sslConfig.
*/
@java.lang.Deprecated
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java
index dcc3a457d6c1..5587d9e98d7f 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java
@@ -572,7 +572,7 @@ java.lang.String getLabelsOrDefault(
*
*
* @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=682
+ * google/cloud/alloydb/v1/resources.proto;l=687
* @return The network.
*/
@java.lang.Deprecated
@@ -594,7 +594,7 @@ java.lang.String getLabelsOrDefault(
*
*
* @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=682
+ * google/cloud/alloydb/v1/resources.proto;l=687
* @return The bytes for network.
*/
@java.lang.Deprecated
@@ -827,7 +827,7 @@ java.lang.String getAnnotationsOrDefault(
* .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true];
*
* @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=717
+ * google/cloud/alloydb/v1/resources.proto;l=722
* @return Whether the sslConfig field is set.
*/
@java.lang.Deprecated
@@ -843,7 +843,7 @@ java.lang.String getAnnotationsOrDefault(
* .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true];
*
* @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See
- * google/cloud/alloydb/v1/resources.proto;l=717
+ * google/cloud/alloydb/v1/resources.proto;l=722
* @return The sslConfig.
*/
@java.lang.Deprecated
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseVersion.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseVersion.java
index 7cc969e003a1..274213b07b98 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseVersion.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseVersion.java
@@ -92,6 +92,16 @@ public enum DatabaseVersion implements com.google.protobuf.ProtocolMessageEnum {
* POSTGRES_17 = 5;
*/
POSTGRES_17(5),
+ /**
+ *
+ *
+ *
+ * The database version is Postgres 18. + *+ * + *
POSTGRES_18 = 6;
+ */
+ POSTGRES_18(6),
UNRECOGNIZED(-1),
;
@@ -171,6 +181,17 @@ public enum DatabaseVersion implements com.google.protobuf.ProtocolMessageEnum {
*/
public static final int POSTGRES_17_VALUE = 5;
+ /**
+ *
+ *
+ * + * The database version is Postgres 18. + *+ * + *
POSTGRES_18 = 6;
+ */
+ public static final int POSTGRES_18_VALUE = 6;
+
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
@@ -207,6 +228,8 @@ public static DatabaseVersion forNumber(int value) {
return POSTGRES_16;
case 5:
return POSTGRES_17;
+ case 6:
+ return POSTGRES_18;
default:
return null;
}
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java
index 522ea46e1afe..158db9ef7add 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java
@@ -793,34 +793,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013ClusterView\022\034\n"
+ "\030CLUSTER_VIEW_UNSPECIFIED\020\000\022\026\n"
+ "\022CLUSTER_VIEW_BASIC\020\001\022\"\n"
- + "\036CLUSTER_VIEW_CONTINUOUS_BACKUP\020\002*\214\001\n"
+ + "\036CLUSTER_VIEW_CONTINUOUS_BACKUP\020\002*\235\001\n"
+ "\017DatabaseVersion\022 \n"
+ "\034DATABASE_VERSION_UNSPECIFIED\020\000\022\023\n"
+ "\013POSTGRES_13\020\001\032\002\010\001\022\017\n"
+ "\013POSTGRES_14\020\002\022\017\n"
+ "\013POSTGRES_15\020\003\022\017\n"
+ "\013POSTGRES_16\020\004\022\017\n"
- + "\013POSTGRES_17\020\005*N\n"
+ + "\013POSTGRES_17\020\005\022\017\n"
+ + "\013POSTGRES_18\020\006*N\n"
+ "\020SubscriptionType\022!\n"
+ "\035SUBSCRIPTION_TYPE_UNSPECIFIED\020\000\022\014\n"
+ "\010STANDARD\020\001\022\t\n"
+ "\005TRIAL\020\002B\247\005\n"
- + "\033com.google.cloud.alloydb.v1B\016ResourcesProtoP\001Z5cloud.google.com/go/allo"
- + "ydb/apiv1/alloydbpb;alloydbpb\252\002\027Google.C"
- + "loud.AlloyDb.V1\312\002\027Google\\Cloud\\AlloyDb\\V1\352\002\032Google::Cloud::AlloyDB::V1\352A\246\001\n"
- + "(cloudkms.googleapis.com/CryptoKeyVersion\022zpr",
- "ojects/{project}/locations/{location}/ke"
- + "yRings/{key_ring}/cryptoKeys/{crypto_key"
- + "}/cryptoKeyVersions/{crypto_key_version}"
- + "\352AN\n\036compute.googleapis.com/Network\022,pro"
- + "jects/{project}/global/networks/{network"
- + "}\352Ax\n!cloudkms.googleapis.com/CryptoKey\022"
- + "Sprojects/{project}/locations/{location}"
- + "/keyRings/{key_ring}/cryptoKeys/{crypto_"
- + "key}\352Aw\n(compute.googleapis.com/ServiceA"
- + "ttachment\022Kprojects/{project}/regions/{r"
- + "egion}/serviceAttachments/{service_attac"
- + "hment}b\006proto3"
+ + "\033com.google.cloud.alloydb.v1B\016ResourcesProtoP\001Z5cloud.g"
+ + "oogle.com/go/alloydb/apiv1/alloydbpb;all"
+ + "oydbpb\252\002\027Google.Cloud.AlloyDb.V1\312\002\027Googl"
+ + "e\\Cloud\\AlloyDb\\V1\352\002\032Google::Cloud::AlloyDB::V1\352A\246\001\n"
+ + "(cloudkms.googleapis.com/Cry",
+ "ptoKeyVersion\022zprojects/{project}/locati"
+ + "ons/{location}/keyRings/{key_ring}/crypt"
+ + "oKeys/{crypto_key}/cryptoKeyVersions/{cr"
+ + "ypto_key_version}\352AN\n\036compute.googleapis"
+ + ".com/Network\022,projects/{project}/global/"
+ + "networks/{network}\352Ax\n!cloudkms.googleap"
+ + "is.com/CryptoKey\022Sprojects/{project}/loc"
+ + "ations/{location}/keyRings/{key_ring}/cr"
+ + "yptoKeys/{crypto_key}\352Aw\n(compute.google"
+ + "apis.com/ServiceAttachment\022Kprojects/{pr"
+ + "oject}/regions/{region}/serviceAttachmen"
+ + "ts/{service_attachment}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto
index a5a80e137f61..18730aa4a086 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto
@@ -11,6 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+// LINT: LEGACY_NAMES
syntax = "proto3";
@@ -103,6 +104,10 @@ enum DatabaseVersion {
// The database version is Postgres 17.
POSTGRES_17 = 5;
+
+ // The database version is Postgres 18.
+ POSTGRES_18 = 6;
+
}
// Subscription_type added to distinguish between Standard and Trial
diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java
index 2bb1c409f64c..096e3be34a2a 100644
--- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java
+++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java
@@ -131,8 +131,9 @@
*
* ListLocations
Lists information about the supported locations for this service.This method can be called in two ways: - *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Lists information about the supported locations for this service. + *
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
** **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *
This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *
Sample code: * @@ -643,13 +652,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *
This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. * - *
* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *
Sample code: * @@ -684,13 +699,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: - * - *
* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + * Lists information about the supported locations for this service. + * + *
This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *
Sample code:
*
diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java
index e148789e8323..44e3fab020dd 100644
--- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java
+++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java
@@ -201,6 +201,7 @@ public void verifyAttestationTest() throws Exception {
.setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build())
.setTokenOptions(TokenOptions.newBuilder().build())
.setAttester("attester542920370")
+ .setInstance(InstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]").toString())
.build();
VerifyAttestationResponse actualResponse = client.verifyAttestation(request);
@@ -237,6 +238,7 @@ public void verifyAttestationExceptionTest() throws Exception {
.setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build())
.setTokenOptions(TokenOptions.newBuilder().build())
.setAttester("attester542920370")
+ .setInstance(InstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]").toString())
.build();
client.verifyAttestation(request);
Assert.fail("No exception raised");
diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java
index 4a6b4ca0cfca..d784a04e3904 100644
--- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java
+++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java
@@ -197,6 +197,7 @@ public void verifyAttestationTest() throws Exception {
.setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build())
.setTokenOptions(TokenOptions.newBuilder().build())
.setAttester("attester542920370")
+ .setInstance(InstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]").toString())
.build();
VerifyAttestationResponse actualResponse = client.verifyAttestation(request);
@@ -216,6 +217,7 @@ public void verifyAttestationTest() throws Exception {
request.getConfidentialSpaceInfo(), actualRequest.getConfidentialSpaceInfo());
Assert.assertEquals(request.getTokenOptions(), actualRequest.getTokenOptions());
Assert.assertEquals(request.getAttester(), actualRequest.getAttester());
+ Assert.assertEquals(request.getInstance(), actualRequest.getInstance());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -236,6 +238,7 @@ public void verifyAttestationExceptionTest() throws Exception {
.setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build())
.setTokenOptions(TokenOptions.newBuilder().build())
.setAttester("attester542920370")
+ .setInstance(InstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]").toString())
.build();
client.verifyAttestation(request);
Assert.fail("No exception raised");
diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/InstanceName.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/InstanceName.java
new file mode 100644
index 000000000000..d6363ea16c83
--- /dev/null
+++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/InstanceName.java
@@ -0,0 +1,217 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.confidentialcomputing.v1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
+public class InstanceName implements ResourceName {
+ private static final PathTemplate PROJECT_ZONE_INSTANCE =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}/zones/{zone}/instances/{instance}");
+ private volatile Map Use `projects/{project_id}/databases/{database_id}/documents` to list top-level
+ * collections.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListCollectionIdsPagedResponse listCollectionIds(String parent) {
diff --git a/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStubSettings.java b/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStubSettings.java
index 7355a531db05..e0fcc7b2bca6 100644
--- a/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStubSettings.java
+++ b/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStubSettings.java
@@ -609,7 +609,7 @@ public static class Builder extends StubSettings.Builder
+ * Optional. Optional resource link of the Compute Engine instance.
+ * Format:
+ * `projects/{project_number}/zones/{zone}/instances/{instance_id}`
+ *
+ *
+ *
+ * string instance = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The instance.
+ */
+ @java.lang.Override
+ public java.lang.String getInstance() {
+ java.lang.Object ref = instance_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instance_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional resource link of the Compute Engine instance.
+ * Format:
+ * `projects/{project_number}/zones/{zone}/instances/{instance_id}`
+ *
+ *
+ *
+ * string instance = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for instance.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInstanceBytes() {
+ java.lang.Object ref = instance_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instance_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -763,6 +825,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeMessage(
9, (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_);
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instance_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 10, instance_);
+ }
getUnknownFields().writeTo(output);
}
@@ -806,6 +871,9 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
9, (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_);
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instance_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(10, instance_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -840,6 +908,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getTokenOptions().equals(other.getTokenOptions())) return false;
}
if (!getAttester().equals(other.getAttester())) return false;
+ if (!getInstance().equals(other.getInstance())) return false;
if (!getTeeAttestationCase().equals(other.getTeeAttestationCase())) return false;
switch (teeAttestationCase_) {
case 6:
@@ -890,6 +959,8 @@ public int hashCode() {
}
hash = (37 * hash) + ATTESTER_FIELD_NUMBER;
hash = (53 * hash) + getAttester().hashCode();
+ hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getInstance().hashCode();
switch (teeAttestationCase_) {
case 6:
hash = (37 * hash) + TD_CCEL_FIELD_NUMBER;
@@ -1097,6 +1168,7 @@ public Builder clear() {
tokenOptionsBuilder_ = null;
}
attester_ = "";
+ instance_ = "";
teeAttestationCase_ = 0;
teeAttestation_ = null;
deviceAttestationCase_ = 0;
@@ -1170,6 +1242,9 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000100) != 0)) {
result.attester_ = attester_;
}
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.instance_ = instance_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1228,6 +1303,11 @@ public Builder mergeFrom(
bitField0_ |= 0x00000100;
onChanged();
}
+ if (!other.getInstance().isEmpty()) {
+ instance_ = other.instance_;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
switch (other.getTeeAttestationCase()) {
case TD_CCEL:
{
@@ -1341,6 +1421,12 @@ public Builder mergeFrom(
deviceAttestationCase_ = 9;
break;
} // case 74
+ case 82:
+ {
+ instance_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 82
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3261,6 +3347,137 @@ public Builder setAttesterBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object instance_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional resource link of the Compute Engine instance.
+ * Format:
+ * `projects/{project_number}/zones/{zone}/instances/{instance_id}`
+ *
+ *
+ *
+ * string instance = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The instance.
+ */
+ public java.lang.String getInstance() {
+ java.lang.Object ref = instance_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instance_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional resource link of the Compute Engine instance.
+ * Format:
+ * `projects/{project_number}/zones/{zone}/instances/{instance_id}`
+ *
+ *
+ *
+ * string instance = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for instance.
+ */
+ public com.google.protobuf.ByteString getInstanceBytes() {
+ java.lang.Object ref = instance_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instance_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional resource link of the Compute Engine instance.
+ * Format:
+ * `projects/{project_number}/zones/{zone}/instances/{instance_id}`
+ *
+ *
+ *
+ * string instance = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The instance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstance(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instance_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional resource link of the Compute Engine instance.
+ * Format:
+ * `projects/{project_number}/zones/{zone}/instances/{instance_id}`
+ *
+ *
+ *
+ * string instance = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstance() {
+ instance_ = getDefaultInstance().getInstance();
+ bitField0_ = (bitField0_ & ~0x00000200);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional resource link of the Compute Engine instance.
+ * Format:
+ * `projects/{project_number}/zones/{zone}/instances/{instance_id}`
+ *
+ *
+ *
+ * string instance = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for instance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instance_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest)
}
diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java
index 00225e387834..87e7e336bca2 100644
--- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java
+++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java
@@ -401,6 +401,40 @@ public interface VerifyAttestationRequestOrBuilder
*/
com.google.protobuf.ByteString getAttesterBytes();
+ /**
+ *
+ *
+ *
+ * Optional. Optional resource link of the Compute Engine instance.
+ * Format:
+ * `projects/{project_number}/zones/{zone}/instances/{instance_id}`
+ *
+ *
+ *
+ * string instance = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The instance.
+ */
+ java.lang.String getInstance();
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional resource link of the Compute Engine instance.
+ * Format:
+ * `projects/{project_number}/zones/{zone}/instances/{instance_id}`
+ *
+ *
+ *
+ * string instance = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for instance.
+ */
+ com.google.protobuf.ByteString getInstanceBytes();
+
com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.TeeAttestationCase
getTeeAttestationCase();
diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto
index b9f0bbd5b9aa..179c433efc98 100644
--- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto
+++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto
@@ -30,6 +30,12 @@ option java_outer_classname = "ServiceProto";
option java_package = "com.google.cloud.confidentialcomputing.v1";
option php_namespace = "Google\\Cloud\\ConfidentialComputing\\V1";
option ruby_package = "Google::Cloud::ConfidentialComputing::V1";
+option (google.api.resource_definition) = {
+ type: "compute.googleapis.com/Instance"
+ pattern: "projects/{project}/zones/{zone}/instances/{instance}"
+ plural: "instances"
+ singular: "instance"
+};
// Service describing handlers for resources
service ConfidentialComputing {
@@ -228,6 +234,16 @@ message VerifyAttestationRequest {
// Optional. An optional indicator of the attester, only applies to certain
// products.
string attester = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Optional resource link of the Compute Engine instance.
+ // Format:
+ // `projects/{project_number}/zones/{zone}/instances/{instance_id}`
+ string instance = 10 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "compute.googleapis.com/Instance"
+ }
+ ];
}
// An Nvidia attestation report for GPU and NVSwitch devices.
diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java
index 2c4890352142..159b61199f8f 100644
--- a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java
+++ b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java
@@ -22,6 +22,7 @@
import com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient;
import com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo;
import com.google.cloud.confidentialcomputing.v1.GcpCredentials;
+import com.google.cloud.confidentialcomputing.v1.InstanceName;
import com.google.cloud.confidentialcomputing.v1.TokenOptions;
import com.google.cloud.confidentialcomputing.v1.TpmAttestation;
import com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest;
@@ -49,6 +50,7 @@ public static void asyncVerifyAttestation() throws Exception {
.setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build())
.setTokenOptions(TokenOptions.newBuilder().build())
.setAttester("attester542920370")
+ .setInstance(InstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]").toString())
.build();
ApiFuture
+ * Optional. Automatically commits the transaction after the pipeline has been
+ * executed. Only permitted in combination with `transaction` or
+ * `new_transaction`.
+ *
+ *
+ * bool auto_commit_transaction = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The autoCommitTransaction.
+ */
+ @java.lang.Override
+ public boolean getAutoCommitTransaction() {
+ return autoCommitTransaction_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -479,6 +500,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (consistencySelectorCase_ == 7) {
output.writeMessage(7, (com.google.protobuf.Timestamp) consistencySelector_);
}
+ if (autoCommitTransaction_ != false) {
+ output.writeBool(9, autoCommitTransaction_);
+ }
getUnknownFields().writeTo(output);
}
@@ -511,6 +535,9 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
7, (com.google.protobuf.Timestamp) consistencySelector_);
}
+ if (autoCommitTransaction_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, autoCommitTransaction_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -528,6 +555,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.firestore.v1.ExecutePipelineRequest) obj;
if (!getDatabase().equals(other.getDatabase())) return false;
+ if (getAutoCommitTransaction() != other.getAutoCommitTransaction()) return false;
if (!getPipelineTypeCase().equals(other.getPipelineTypeCase())) return false;
switch (pipelineTypeCase_) {
case 2:
@@ -563,6 +591,8 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DATABASE_FIELD_NUMBER;
hash = (53 * hash) + getDatabase().hashCode();
+ hash = (37 * hash) + AUTO_COMMIT_TRANSACTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoCommitTransaction());
switch (pipelineTypeCase_) {
case 2:
hash = (37 * hash) + STRUCTURED_PIPELINE_FIELD_NUMBER;
@@ -738,6 +768,7 @@ public Builder clear() {
if (readTimeBuilder_ != null) {
readTimeBuilder_.clear();
}
+ autoCommitTransaction_ = false;
pipelineTypeCase_ = 0;
pipelineType_ = null;
consistencySelectorCase_ = 0;
@@ -782,6 +813,9 @@ private void buildPartial0(com.google.firestore.v1.ExecutePipelineRequest result
if (((from_bitField0_ & 0x00000001) != 0)) {
result.database_ = database_;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.autoCommitTransaction_ = autoCommitTransaction_;
+ }
}
private void buildPartialOneofs(com.google.firestore.v1.ExecutePipelineRequest result) {
@@ -817,6 +851,9 @@ public Builder mergeFrom(com.google.firestore.v1.ExecutePipelineRequest other) {
bitField0_ |= 0x00000001;
onChanged();
}
+ if (other.getAutoCommitTransaction() != false) {
+ setAutoCommitTransaction(other.getAutoCommitTransaction());
+ }
switch (other.getPipelineTypeCase()) {
case STRUCTURED_PIPELINE:
{
@@ -908,6 +945,12 @@ public Builder mergeFrom(
consistencySelectorCase_ = 7;
break;
} // case 58
+ case 72:
+ {
+ autoCommitTransaction_ = input.readBool();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 72
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1871,6 +1914,68 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return readTimeBuilder_;
}
+ private boolean autoCommitTransaction_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Automatically commits the transaction after the pipeline has been
+ * executed. Only permitted in combination with `transaction` or
+ * `new_transaction`.
+ *
+ *
+ * bool auto_commit_transaction = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The autoCommitTransaction.
+ */
+ @java.lang.Override
+ public boolean getAutoCommitTransaction() {
+ return autoCommitTransaction_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Automatically commits the transaction after the pipeline has been
+ * executed. Only permitted in combination with `transaction` or
+ * `new_transaction`.
+ *
+ *
+ * bool auto_commit_transaction = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The autoCommitTransaction to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAutoCommitTransaction(boolean value) {
+
+ autoCommitTransaction_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Automatically commits the transaction after the pipeline has been
+ * executed. Only permitted in combination with `transaction` or
+ * `new_transaction`.
+ *
+ *
+ * bool auto_commit_transaction = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAutoCommitTransaction() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ autoCommitTransaction_ = false;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.firestore.v1.ExecutePipelineRequest)
}
diff --git a/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExecutePipelineRequestOrBuilder.java b/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExecutePipelineRequestOrBuilder.java
index 4083a3627e6d..4d2cca90f66b 100644
--- a/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExecutePipelineRequestOrBuilder.java
+++ b/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ExecutePipelineRequestOrBuilder.java
@@ -216,6 +216,21 @@ public interface ExecutePipelineRequestOrBuilder
*/
com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
+ /**
+ *
+ *
+ *
+ * Optional. Automatically commits the transaction after the pipeline has been
+ * executed. Only permitted in combination with `transaction` or
+ * `new_transaction`.
+ *
+ *
+ * bool auto_commit_transaction = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The autoCommitTransaction.
+ */
+ boolean getAutoCommitTransaction();
+
com.google.firestore.v1.ExecutePipelineRequest.PipelineTypeCase getPipelineTypeCase();
com.google.firestore.v1.ExecutePipelineRequest.ConsistencySelectorCase
diff --git a/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/FirestoreProto.java b/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/FirestoreProto.java
index 428cce5d4010..7827af2a3917 100644
--- a/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/FirestoreProto.java
+++ b/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/FirestoreProto.java
@@ -291,7 +291,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017skipped_results\030\004 \001(\005\022\016\n"
+ "\004done\030\006 \001(\010H\000\022<\n"
+ "\017explain_metrics\030\013 \001(\0132#.google.firestore.v1.ExplainMetricsB\027\n"
- + "\025continuation_selector\"\254\002\n"
+ + "\025continuation_selector\"\322\002\n"
+ "\026ExecutePipelineRequest\022\025\n"
+ "\010database\030\001 \001(\tB\003\340A\002\022F\n"
+ "\023structured_pipeline\030\002 \001(\0132\'.g"
@@ -299,7 +299,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013transaction\030\005 \001(\014H\001\022B\n"
+ "\017new_transaction\030\006"
+ " \001(\0132\'.google.firestore.v1.TransactionOptionsH\001\022/\n"
- + "\tread_time\030\007 \001(\0132\032.google.protobuf.TimestampH\001B\017\n\r"
+ + "\tread_time\030\007 \001(\0132\032.google.protobuf.TimestampH\001\022$\n"
+ + "\027auto_commit_transaction\030\t \001(\010B\003\340A\001B\017\n\r"
+ "pipeline_typeB\026\n"
+ "\024consistency_selector\"\314\001\n"
+ "\027ExecutePipelineResponse\022\023\n"
@@ -309,8 +310,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "explain_stats\030\004 \001(\0132!.google.firestore.v1.ExplainStats\"\377\002\n"
+ "\032RunAggregationQueryRequest\022\023\n"
+ "\006parent\030\001 \001(\tB\003\340A\002\022W\n"
- + "\034structured_aggregation_query\030\002 \001(\0132/."
- + "google.firestore.v1.StructuredAggregationQueryH\000\022\025\n"
+ + "\034structured_aggregation_query\030\002 \001(\0132/.go"
+ + "ogle.firestore.v1.StructuredAggregationQueryH\000\022\025\n"
+ "\013transaction\030\004 \001(\014H\001\022B\n"
+ "\017new_transaction\030\005"
+ " \001(\0132\'.google.firestore.v1.TransactionOptionsH\001\022/\n"
@@ -370,8 +371,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "response_type\"\326\003\n"
+ "\006Target\0228\n"
+ "\005query\030\002 \001(\0132\'.google.firestore.v1.Target.QueryTargetH\000\022@\n"
- + "\tdocuments\030\003 \001(\0132+.googl"
- + "e.firestore.v1.Target.DocumentsTargetH\000\022\026\n"
+ + "\tdocuments\030\003"
+ + " \001(\0132+.google.firestore.v1.Target.DocumentsTargetH\000\022\026\n"
+ "\014resume_token\030\004 \001(\014H\001\022/\n"
+ "\tread_time\030\013 \001(\0132\032.google.protobuf.TimestampH\001\022\021\n"
+ "\ttarget_id\030\005 \001(\005\022\014\n"
@@ -420,83 +421,82 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "write_results\030\001 \003(\0132 .google.firestore.v1.WriteResult\022\"\n"
+ "\006status\030\002 \003(\0132\022.google.rpc.Status2\373\033\n"
+ "\tFirestore\022\217\001\n"
- + "\013GetDocument\022\'.google.firestore.v1.GetDocumentRequest\032\035.google.fi"
- + "restore.v1.Document\"8\202\323\344\223\0022\0220/v1/{name=p"
- + "rojects/*/databases/*/documents/*/**}\022\365\001\n\r"
- + "ListDocuments\022).google.firestore.v1.ListDocumentsRequest\032*.google.firestore.v1"
- + ".ListDocumentsResponse\"\214\001\202\323\344\223\002\205\001\022B/v1/{p"
- + "arent=projects/*/databases/*/documents/*/**}/{collection_id}Z?\022=/v1/{parent=proj"
- + "ects/*/databases/*/documents}/{collection_id}\022\277\001\n"
- + "\016UpdateDocument\022*.google.firestore.v1.UpdateDocumentRequest\032\035.google.fi"
- + "restore.v1.Document\"b\332A\024document,update_"
- + "mask\202\323\344\223\002E29/v1/{document.name=projects/"
- + "*/databases/*/documents/*/**}:\010document\022\225\001\n"
- + "\016DeleteDocument\022*.google.firestore.v1"
- + ".DeleteDocumentRequest\032\026.google.protobuf"
- + ".Empty\"?\332A\004name\202\323\344\223\0022*0/v1/{name=projects/*/databases/*/documents/*/**}\022\271\001\n"
- + "\021BatchGetDocuments\022-.google.firestore.v1.Batc"
- + "hGetDocumentsRequest\032..google.firestore."
- + "v1.BatchGetDocumentsResponse\"C\202\323\344\223\002=\"8/v"
- + "1/{database=projects/*/databases/*}/documents:batchGet:\001*0\001\022\307\001\n"
- + "\020BeginTransaction\022,.google.firestore.v1.BeginTransactionR"
- + "equest\032-.google.firestore.v1.BeginTransa"
- + "ctionResponse\"V\332A\010database\202\323\344\223\002E\"@/v1/{d"
- + "atabase=projects/*/databases/*}/documents:beginTransaction:\001*\022\246\001\n"
- + "\006Commit\022\".google.firestore.v1.CommitRequest\032#.google.fi"
- + "restore.v1.CommitResponse\"S\332A\017database,w"
- + "rites\202\323\344\223\002;\"6/v1/{database=projects/*/databases/*}/documents:commit:\001*\022\244\001\n"
- + "\010Rollback\022$.google.firestore.v1.RollbackReques"
- + "t\032\026.google.protobuf.Empty\"Z\332A\024database,t"
- + "ransaction\202\323\344\223\002=\"8/v1/{database=projects"
- + "/*/databases/*}/documents:rollback:\001*\022\337\001\n"
- + "\010RunQuery\022$.google.firestore.v1.RunQuer"
- + "yRequest\032%.google.firestore.v1.RunQueryR"
- + "esponse\"\203\001\202\323\344\223\002}\"6/v1/{parent=projects/*"
- + "/databases/*/documents}:runQuery:\001*Z@\";/"
- + "v1/{parent=projects/*/databases/*/documents/*/**}:runQuery:\001*0\001\022\236\002\n"
- + "\017ExecutePipeline\022+.google.firestore.v1.ExecutePipelin"
- + "eRequest\032,.google.firestore.v1.ExecutePi"
- + "pelineResponse\"\255\001\202\323\344\223\002D\"?/v1/{database=p"
- + "rojects/*/databases/*}/documents:executePipeline:\001*\212\323\344\223\002]\022&\n"
+ + "\013GetDocument\022\'.google.firestore.v1.GetDocumentRequest\032\035.google.fire"
+ + "store.v1.Document\"8\202\323\344\223\0022\0220/v1/{name=projects/*/databases/*/documents/*/**}\022\365\001\n\r"
+ + "ListDocuments\022).google.firestore.v1.ListDocumentsRequest\032*.google.firestore.v1.L"
+ + "istDocumentsResponse\"\214\001\202\323\344\223\002\205\001\022B/v1/{par"
+ + "ent=projects/*/databases/*/documents/*/**}/{collection_id}Z?\022=/v1/{parent=projec"
+ + "ts/*/databases/*/documents}/{collection_id}\022\277\001\n"
+ + "\016UpdateDocument\022*.google.firestore.v1.UpdateDocumentRequest\032\035.google.fire"
+ + "store.v1.Document\"b\332A\024document,update_ma"
+ + "sk\202\323\344\223\002E29/v1/{document.name=projects/*/"
+ + "databases/*/documents/*/**}:\010document\022\225\001\n"
+ + "\016DeleteDocument\022*.google.firestore.v1.D"
+ + "eleteDocumentRequest\032\026.google.protobuf.E"
+ + "mpty\"?\332A\004name\202\323\344\223\0022*0/v1/{name=projects/*/databases/*/documents/*/**}\022\271\001\n"
+ + "\021BatchGetDocuments\022-.google.firestore.v1.BatchG"
+ + "etDocumentsRequest\032..google.firestore.v1"
+ + ".BatchGetDocumentsResponse\"C\202\323\344\223\002=\"8/v1/"
+ + "{database=projects/*/databases/*}/documents:batchGet:\001*0\001\022\307\001\n"
+ + "\020BeginTransaction\022,.google.firestore.v1.BeginTransactionReq"
+ + "uest\032-.google.firestore.v1.BeginTransact"
+ + "ionResponse\"V\332A\010database\202\323\344\223\002E\"@/v1/{dat"
+ + "abase=projects/*/databases/*}/documents:beginTransaction:\001*\022\246\001\n"
+ + "\006Commit\022\".google.firestore.v1.CommitRequest\032#.google.fire"
+ + "store.v1.CommitResponse\"S\332A\017database,wri"
+ + "tes\202\323\344\223\002;\"6/v1/{database=projects/*/databases/*}/documents:commit:\001*\022\244\001\n"
+ + "\010Rollback\022$.google.firestore.v1.RollbackRequest\032"
+ + "\026.google.protobuf.Empty\"Z\332A\024database,tra"
+ + "nsaction\202\323\344\223\002=\"8/v1/{database=projects/*/databases/*}/documents:rollback:\001*\022\337\001\n"
+ + "\010RunQuery\022$.google.firestore.v1.RunQueryR"
+ + "equest\032%.google.firestore.v1.RunQueryRes"
+ + "ponse\"\203\001\202\323\344\223\002}\"6/v1/{parent=projects/*/d"
+ + "atabases/*/documents}:runQuery:\001*Z@\";/v1"
+ + "/{parent=projects/*/databases/*/documents/*/**}:runQuery:\001*0\001\022\236\002\n"
+ + "\017ExecutePipeline\022+.google.firestore.v1.ExecutePipelineR"
+ + "equest\032,.google.firestore.v1.ExecutePipe"
+ + "lineResponse\"\255\001\202\323\344\223\002D\"?/v1/{database=pro"
+ + "jects/*/databases/*}/documents:executePipeline:\001*\212\323\344\223\002]\022&\n"
+ "\010database\022\032projects/{project_id=*}/**\0223\n"
+ "\010database\022\'projects/*/databases/{database_id=*}/**0\001\022\227\002\n"
- + "\023RunAggregationQuery\022/.google.firestore.v1.R"
- + "unAggregationQueryRequest\0320.google.fires"
- + "tore.v1.RunAggregationQueryResponse\"\232\001\202\323"
- + "\344\223\002\223\001\"A/v1/{parent=projects/*/databases/"
- + "*/documents}:runAggregationQuery:\001*ZK\"F/"
- + "v1/{parent=projects/*/databases/*/documents/*/**}:runAggregationQuery:\001*0\001\022\374\001\n"
- + "\016PartitionQuery\022*.google.firestore.v1.Part"
- + "itionQueryRequest\032+.google.firestore.v1."
- + "PartitionQueryResponse\"\220\001\202\323\344\223\002\211\001\"
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -159,6 +162,9 @@ public java.lang.String getParent() {
* `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
* For example:
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ *
+ * Use `projects/{project_id}/databases/{database_id}/documents` to list
+ * top-level collections.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -755,6 +761,9 @@ public Builder clearConsistencySelector() {
* `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
* For example:
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ *
+ * Use `projects/{project_id}/databases/{database_id}/documents` to list
+ * top-level collections.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -781,6 +790,9 @@ public java.lang.String getParent() {
* `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
* For example:
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ *
+ * Use `projects/{project_id}/databases/{database_id}/documents` to list
+ * top-level collections.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -807,6 +819,9 @@ public com.google.protobuf.ByteString getParentBytes() {
* `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
* For example:
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ *
+ * Use `projects/{project_id}/databases/{database_id}/documents` to list
+ * top-level collections.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -832,6 +847,9 @@ public Builder setParent(java.lang.String value) {
* `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
* For example:
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ *
+ * Use `projects/{project_id}/databases/{database_id}/documents` to list
+ * top-level collections.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -853,6 +871,9 @@ public Builder clearParent() {
* `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
* For example:
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ *
+ * Use `projects/{project_id}/databases/{database_id}/documents` to list
+ * top-level collections.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequestOrBuilder.java b/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequestOrBuilder.java
index d962cac25a61..18d4a647252c 100644
--- a/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequestOrBuilder.java
+++ b/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ListCollectionIdsRequestOrBuilder.java
@@ -34,6 +34,9 @@ public interface ListCollectionIdsRequestOrBuilder
* `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
* For example:
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ *
+ * Use `projects/{project_id}/databases/{database_id}/documents` to list
+ * top-level collections.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -50,6 +53,9 @@ public interface ListCollectionIdsRequestOrBuilder
* `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
* For example:
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ *
+ * Use `projects/{project_id}/databases/{database_id}/documents` to list
+ * top-level collections.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java b/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java
index c9ce6ece25b1..ef0d68c906eb 100644
--- a/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java
+++ b/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java
@@ -12313,9 +12313,12 @@ public com.google.firestore.v1.StructuredQuery.FilterOrBuilder getWhereOrBuilder
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -12331,6 +12334,13 @@ public com.google.firestore.v1.StructuredQuery.FilterOrBuilder getWhereOrBuilder
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -12346,9 +12356,12 @@ public java.util.List
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -12364,6 +12377,13 @@ public java.util.List
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -12380,9 +12400,12 @@ public java.util.List
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -12398,6 +12421,13 @@ public java.util.List
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -12413,9 +12443,12 @@ public int getOrderByCount() {
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -12431,6 +12464,13 @@ public int getOrderByCount() {
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -12446,9 +12486,12 @@ public com.google.firestore.v1.StructuredQuery.Order getOrderBy(int index) {
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -12464,6 +12507,13 @@ public com.google.firestore.v1.StructuredQuery.Order getOrderBy(int index) {
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14345,9 +14395,12 @@ private void ensureOrderByIsMutable() {
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14363,6 +14416,13 @@ private void ensureOrderByIsMutable() {
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14381,9 +14441,12 @@ public java.util.List
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14399,6 +14462,13 @@ public java.util.List
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14417,9 +14487,12 @@ public int getOrderByCount() {
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14435,6 +14508,13 @@ public int getOrderByCount() {
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14453,9 +14533,12 @@ public com.google.firestore.v1.StructuredQuery.Order getOrderBy(int index) {
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14471,6 +14554,13 @@ public com.google.firestore.v1.StructuredQuery.Order getOrderBy(int index) {
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14495,9 +14585,12 @@ public Builder setOrderBy(int index, com.google.firestore.v1.StructuredQuery.Ord
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14513,6 +14606,13 @@ public Builder setOrderBy(int index, com.google.firestore.v1.StructuredQuery.Ord
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14535,9 +14635,12 @@ public Builder setOrderBy(
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14553,6 +14656,13 @@ public Builder setOrderBy(
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14577,9 +14687,12 @@ public Builder addOrderBy(com.google.firestore.v1.StructuredQuery.Order value) {
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14595,6 +14708,13 @@ public Builder addOrderBy(com.google.firestore.v1.StructuredQuery.Order value) {
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14619,9 +14739,12 @@ public Builder addOrderBy(int index, com.google.firestore.v1.StructuredQuery.Ord
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14637,6 +14760,13 @@ public Builder addOrderBy(int index, com.google.firestore.v1.StructuredQuery.Ord
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14659,9 +14789,12 @@ public Builder addOrderBy(
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14677,6 +14810,13 @@ public Builder addOrderBy(
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14699,9 +14839,12 @@ public Builder addOrderBy(
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14717,6 +14860,13 @@ public Builder addOrderBy(
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14739,9 +14889,12 @@ public Builder addAllOrderBy(
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14757,6 +14910,13 @@ public Builder addAllOrderBy(
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14778,9 +14938,12 @@ public Builder clearOrderBy() {
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14796,6 +14959,13 @@ public Builder clearOrderBy() {
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14817,9 +14987,12 @@ public Builder removeOrderBy(int index) {
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14835,6 +15008,13 @@ public Builder removeOrderBy(int index) {
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14849,9 +15029,12 @@ public com.google.firestore.v1.StructuredQuery.Order.Builder getOrderByBuilder(i
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14867,6 +15050,13 @@ public com.google.firestore.v1.StructuredQuery.Order.Builder getOrderByBuilder(i
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14885,9 +15075,12 @@ public com.google.firestore.v1.StructuredQuery.OrderOrBuilder getOrderByOrBuilde
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14903,6 +15096,13 @@ public com.google.firestore.v1.StructuredQuery.OrderOrBuilder getOrderByOrBuilde
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14922,9 +15122,12 @@ public com.google.firestore.v1.StructuredQuery.OrderOrBuilder getOrderByOrBuilde
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14940,6 +15143,13 @@ public com.google.firestore.v1.StructuredQuery.OrderOrBuilder getOrderByOrBuilde
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14955,9 +15165,12 @@ public com.google.firestore.v1.StructuredQuery.Order.Builder addOrderByBuilder()
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -14973,6 +15186,13 @@ public com.google.firestore.v1.StructuredQuery.Order.Builder addOrderByBuilder()
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -14988,9 +15208,12 @@ public com.google.firestore.v1.StructuredQuery.Order.Builder addOrderByBuilder(i
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -15006,6 +15229,13 @@ public com.google.firestore.v1.StructuredQuery.Order.Builder addOrderByBuilder(i
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
diff --git a/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQueryOrBuilder.java b/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQueryOrBuilder.java
index 5a407bba5a42..9c33923bdae9 100644
--- a/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQueryOrBuilder.java
+++ b/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQueryOrBuilder.java
@@ -174,9 +174,12 @@ public interface StructuredQueryOrBuilder
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -192,6 +195,13 @@ public interface StructuredQueryOrBuilder
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -204,9 +214,12 @@ public interface StructuredQueryOrBuilder
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -222,6 +235,13 @@ public interface StructuredQueryOrBuilder
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -234,9 +254,12 @@ public interface StructuredQueryOrBuilder
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -252,6 +275,13 @@ public interface StructuredQueryOrBuilder
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -264,9 +294,12 @@ public interface StructuredQueryOrBuilder
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -282,6 +315,13 @@ public interface StructuredQueryOrBuilder
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
@@ -295,9 +335,12 @@ public interface StructuredQueryOrBuilder
*
* The order to apply to the query results.
*
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
+ * Callers can provide a full ordering, a partial ordering, or no ordering at
+ * all. While Firestore will always respect the provided order, the behavior
+ * for queries without a full ordering is different per database edition:
+ *
+ * In Standard edition, Firestore guarantees a stable ordering through the
+ * following rules:
*
* * The `order_by` is required to reference all fields used with an
* inequality filter.
@@ -313,6 +356,13 @@ public interface StructuredQueryOrBuilder
* * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
* * `WHERE __name__ > ... AND a > 1` becomes
* `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ *
+ * In Enterprise edition, Firestore does not guarantee a stable ordering.
+ * Instead it will pick the most efficient ordering based on the indexes
+ * available at the time of query execution. This will result in a different
+ * ordering for queries that are otherwise identical. To ensure a stable
+ * ordering, always include a unique field in the `order_by` clause, such as
+ * `__name__`.
*
*
* repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
diff --git a/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptions.java b/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptions.java
index 18ecb61c4f18..8636097c6141 100644
--- a/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptions.java
+++ b/java-firestore/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptions.java
@@ -68,6 +68,177 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.firestore.v1.TransactionOptions.Builder.class);
}
+ /**
+ *
+ *
+ *
+ * The type of concurrency control mode for transactions.
+ *
+ *
+ * Protobuf enum {@code google.firestore.v1.TransactionOptions.ConcurrencyMode}
+ */
+ public enum ConcurrencyMode implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Start the transaction with the database-level default concurrency mode.
+ *
+ *
+ * CONCURRENCY_MODE_UNSPECIFIED = 0;
+ */
+ CONCURRENCY_MODE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Use optimistic concurrency control for the new transaction.
+ *
+ *
+ * OPTIMISTIC = 1;
+ */
+ OPTIMISTIC(1),
+ /**
+ *
+ *
+ *
+ * Use pessimistic concurrency control for the new transaction.
+ *
+ *
+ * PESSIMISTIC = 2;
+ */
+ PESSIMISTIC(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "ConcurrencyMode");
+ }
+
+ /**
+ *
+ *
+ *
+ * Start the transaction with the database-level default concurrency mode.
+ *
+ *
+ * CONCURRENCY_MODE_UNSPECIFIED = 0;
+ */
+ public static final int CONCURRENCY_MODE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Use optimistic concurrency control for the new transaction.
+ *
+ *
+ * OPTIMISTIC = 1;
+ */
+ public static final int OPTIMISTIC_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Use pessimistic concurrency control for the new transaction.
+ *
+ *
+ * PESSIMISTIC = 2;
+ */
+ public static final int PESSIMISTIC_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ConcurrencyMode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ConcurrencyMode forNumber(int value) {
+ switch (value) {
+ case 0:
+ return CONCURRENCY_MODE_UNSPECIFIED;
+ case 1:
+ return OPTIMISTIC;
+ case 2:
+ return PESSIMISTIC;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Optional. The concurrency control mode to use for this transaction.
+ *
+ * A database is able to use different concurrency modes for different
+ * transactions simultaneously.
+ *
+ * 3rd party auth requests are only allowed to create optimistic
+ * read-write transactions and must specify that here even if the
+ * database-level setting is already configured to optimistic.
+ *
+ *
+ *
+ * .google.firestore.v1.TransactionOptions.ConcurrencyMode concurrency_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for concurrencyMode.
+ */
+ int getConcurrencyModeValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. The concurrency control mode to use for this transaction.
+ *
+ * A database is able to use different concurrency modes for different
+ * transactions simultaneously.
+ *
+ * 3rd party auth requests are only allowed to create optimistic
+ * read-write transactions and must specify that here even if the
+ * database-level setting is already configured to optimistic.
+ *
+ *
+ *
+ * .google.firestore.v1.TransactionOptions.ConcurrencyMode concurrency_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The concurrencyMode.
+ */
+ com.google.firestore.v1.TransactionOptions.ConcurrencyMode getConcurrencyMode();
}
/**
@@ -92,9 +307,6 @@ public interface ReadWriteOrBuilder
*
*
* Options for a transaction that can be used to read and write documents.
- *
- * Firestore does not allow 3rd party auth requests to create read-write.
- * transactions.
*
*
* Protobuf type {@code google.firestore.v1.TransactionOptions.ReadWrite}
@@ -122,6 +334,7 @@ private ReadWrite(com.google.protobuf.GeneratedMessage.Builder> builder) {
private ReadWrite() {
retryTransaction_ = com.google.protobuf.ByteString.EMPTY;
+ concurrencyMode_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -158,6 +371,63 @@ public com.google.protobuf.ByteString getRetryTransaction() {
return retryTransaction_;
}
+ public static final int CONCURRENCY_MODE_FIELD_NUMBER = 2;
+ private int concurrencyMode_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. The concurrency control mode to use for this transaction.
+ *
+ * A database is able to use different concurrency modes for different
+ * transactions simultaneously.
+ *
+ * 3rd party auth requests are only allowed to create optimistic
+ * read-write transactions and must specify that here even if the
+ * database-level setting is already configured to optimistic.
+ *
+ *
+ *
+ * .google.firestore.v1.TransactionOptions.ConcurrencyMode concurrency_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for concurrencyMode.
+ */
+ @java.lang.Override
+ public int getConcurrencyModeValue() {
+ return concurrencyMode_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The concurrency control mode to use for this transaction.
+ *
+ * A database is able to use different concurrency modes for different
+ * transactions simultaneously.
+ *
+ * 3rd party auth requests are only allowed to create optimistic
+ * read-write transactions and must specify that here even if the
+ * database-level setting is already configured to optimistic.
+ *
+ *
+ *
+ * .google.firestore.v1.TransactionOptions.ConcurrencyMode concurrency_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The concurrencyMode.
+ */
+ @java.lang.Override
+ public com.google.firestore.v1.TransactionOptions.ConcurrencyMode getConcurrencyMode() {
+ com.google.firestore.v1.TransactionOptions.ConcurrencyMode result =
+ com.google.firestore.v1.TransactionOptions.ConcurrencyMode.forNumber(concurrencyMode_);
+ return result == null
+ ? com.google.firestore.v1.TransactionOptions.ConcurrencyMode.UNRECOGNIZED
+ : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -175,6 +445,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!retryTransaction_.isEmpty()) {
output.writeBytes(1, retryTransaction_);
}
+ if (concurrencyMode_
+ != com.google.firestore.v1.TransactionOptions.ConcurrencyMode.CONCURRENCY_MODE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, concurrencyMode_);
+ }
getUnknownFields().writeTo(output);
}
@@ -187,6 +462,11 @@ public int getSerializedSize() {
if (!retryTransaction_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, retryTransaction_);
}
+ if (concurrencyMode_
+ != com.google.firestore.v1.TransactionOptions.ConcurrencyMode.CONCURRENCY_MODE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, concurrencyMode_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -204,6 +484,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.firestore.v1.TransactionOptions.ReadWrite) obj;
if (!getRetryTransaction().equals(other.getRetryTransaction())) return false;
+ if (concurrencyMode_ != other.concurrencyMode_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -217,6 +498,8 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RETRY_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getRetryTransaction().hashCode();
+ hash = (37 * hash) + CONCURRENCY_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + concurrencyMode_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -324,9 +607,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
*
*
* Options for a transaction that can be used to read and write documents.
- *
- * Firestore does not allow 3rd party auth requests to create read-write.
- * transactions.
*
*
* Protobuf type {@code google.firestore.v1.TransactionOptions.ReadWrite}
@@ -362,6 +642,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
retryTransaction_ = com.google.protobuf.ByteString.EMPTY;
+ concurrencyMode_ = 0;
return this;
}
@@ -401,6 +682,9 @@ private void buildPartial0(com.google.firestore.v1.TransactionOptions.ReadWrite
if (((from_bitField0_ & 0x00000001) != 0)) {
result.retryTransaction_ = retryTransaction_;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.concurrencyMode_ = concurrencyMode_;
+ }
}
@java.lang.Override
@@ -419,6 +703,9 @@ public Builder mergeFrom(com.google.firestore.v1.TransactionOptions.ReadWrite ot
if (!other.getRetryTransaction().isEmpty()) {
setRetryTransaction(other.getRetryTransaction());
}
+ if (other.concurrencyMode_ != 0) {
+ setConcurrencyModeValue(other.getConcurrencyModeValue());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -451,6 +738,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 10
+ case 16:
+ {
+ concurrencyMode_ = input.readEnum();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -529,6 +822,149 @@ public Builder clearRetryTransaction() {
return this;
}
+ private int concurrencyMode_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. The concurrency control mode to use for this transaction.
+ *
+ * A database is able to use different concurrency modes for different
+ * transactions simultaneously.
+ *
+ * 3rd party auth requests are only allowed to create optimistic
+ * read-write transactions and must specify that here even if the
+ * database-level setting is already configured to optimistic.
+ *
+ *
+ *
+ * .google.firestore.v1.TransactionOptions.ConcurrencyMode concurrency_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for concurrencyMode.
+ */
+ @java.lang.Override
+ public int getConcurrencyModeValue() {
+ return concurrencyMode_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The concurrency control mode to use for this transaction.
+ *
+ * A database is able to use different concurrency modes for different
+ * transactions simultaneously.
+ *
+ * 3rd party auth requests are only allowed to create optimistic
+ * read-write transactions and must specify that here even if the
+ * database-level setting is already configured to optimistic.
+ *
+ *
+ *
+ * .google.firestore.v1.TransactionOptions.ConcurrencyMode concurrency_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for concurrencyMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConcurrencyModeValue(int value) {
+ concurrencyMode_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The concurrency control mode to use for this transaction.
+ *
+ * A database is able to use different concurrency modes for different
+ * transactions simultaneously.
+ *
+ * 3rd party auth requests are only allowed to create optimistic
+ * read-write transactions and must specify that here even if the
+ * database-level setting is already configured to optimistic.
+ *
+ *
+ *
+ * .google.firestore.v1.TransactionOptions.ConcurrencyMode concurrency_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The concurrencyMode.
+ */
+ @java.lang.Override
+ public com.google.firestore.v1.TransactionOptions.ConcurrencyMode getConcurrencyMode() {
+ com.google.firestore.v1.TransactionOptions.ConcurrencyMode result =
+ com.google.firestore.v1.TransactionOptions.ConcurrencyMode.forNumber(concurrencyMode_);
+ return result == null
+ ? com.google.firestore.v1.TransactionOptions.ConcurrencyMode.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The concurrency control mode to use for this transaction.
+ *
+ * A database is able to use different concurrency modes for different
+ * transactions simultaneously.
+ *
+ * 3rd party auth requests are only allowed to create optimistic
+ * read-write transactions and must specify that here even if the
+ * database-level setting is already configured to optimistic.
+ *
+ *
+ *
+ * .google.firestore.v1.TransactionOptions.ConcurrencyMode concurrency_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The concurrencyMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConcurrencyMode(
+ com.google.firestore.v1.TransactionOptions.ConcurrencyMode value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ concurrencyMode_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The concurrency control mode to use for this transaction.
+ *
+ * A database is able to use different concurrency modes for different
+ * transactions simultaneously.
+ *
+ * 3rd party auth requests are only allowed to create optimistic
+ * read-write transactions and must specify that here even if the
+ * database-level setting is already configured to optimistic.
+ *
+ *
+ *
+ * .google.firestore.v1.TransactionOptions.ConcurrencyMode concurrency_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearConcurrencyMode() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ concurrencyMode_ = 0;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.firestore.v1.TransactionOptions.ReadWrite)
}
diff --git a/java-firestore/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/common.proto b/java-firestore/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/common.proto
index 799fd011c26b..d075d54a9a93 100644
--- a/java-firestore/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/common.proto
+++ b/java-firestore/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/common.proto
@@ -16,6 +16,7 @@ syntax = "proto3";
package google.firestore.v1;
+import "google/api/field_behavior.proto";
import "google/protobuf/timestamp.proto";
option csharp_namespace = "Google.Cloud.Firestore.V1";
@@ -56,13 +57,33 @@ message Precondition {
// Options for creating a new transaction.
message TransactionOptions {
+ // The type of concurrency control mode for transactions.
+ enum ConcurrencyMode {
+ // Start the transaction with the database-level default concurrency mode.
+ CONCURRENCY_MODE_UNSPECIFIED = 0;
+
+ // Use optimistic concurrency control for the new transaction.
+ OPTIMISTIC = 1;
+
+ // Use pessimistic concurrency control for the new transaction.
+ PESSIMISTIC = 2;
+ }
+
// Options for a transaction that can be used to read and write documents.
- //
- // Firestore does not allow 3rd party auth requests to create read-write.
- // transactions.
message ReadWrite {
// An optional transaction to retry.
bytes retry_transaction = 1;
+
+ // Optional. The concurrency control mode to use for this transaction.
+ //
+ // A database is able to use different concurrency modes for different
+ // transactions simultaneously.
+ //
+ // 3rd party auth requests are only allowed to create optimistic
+ // read-write transactions and must specify that here even if the
+ // database-level setting is already configured to optimistic.
+ ConcurrencyMode concurrency_mode = 2
+ [(google.api.field_behavior) = OPTIONAL];
}
// Options for a transaction that can only be used to read documents.
diff --git a/java-firestore/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto b/java-firestore/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto
index f65646a4afdf..a1dea5a637b3 100644
--- a/java-firestore/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto
+++ b/java-firestore/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto
@@ -678,6 +678,11 @@ message ExecutePipelineRequest {
// minute timestamp within the past 7 days.
google.protobuf.Timestamp read_time = 7;
}
+
+ // Optional. Automatically commits the transaction after the pipeline has been
+ // executed. Only permitted in combination with `transaction` or
+ // `new_transaction`.
+ bool auto_commit_transaction = 9 [(google.api.field_behavior) = OPTIONAL];
}
// The response for [Firestore.Execute][].
@@ -1163,6 +1168,9 @@ message ListCollectionIdsRequest {
// `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
// For example:
// `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ //
+ // Use `projects/{project_id}/databases/{database_id}/documents` to list
+ // top-level collections.
string parent = 1 [(google.api.field_behavior) = REQUIRED];
// The maximum number of results to return.
diff --git a/java-firestore/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query.proto b/java-firestore/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query.proto
index 0144ffe5cd9f..8ff0c66b4b03 100644
--- a/java-firestore/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query.proto
+++ b/java-firestore/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query.proto
@@ -346,9 +346,12 @@ message StructuredQuery {
// The order to apply to the query results.
//
- // Firestore allows callers to provide a full ordering, a partial ordering, or
- // no ordering at all. In all cases, Firestore guarantees a stable ordering
- // through the following rules:
+ // Callers can provide a full ordering, a partial ordering, or no ordering at
+ // all. While Firestore will always respect the provided order, the behavior
+ // for queries without a full ordering is different per database edition:
+ //
+ // In Standard edition, Firestore guarantees a stable ordering through the
+ // following rules:
//
// * The `order_by` is required to reference all fields used with an
// inequality filter.
@@ -364,6 +367,13 @@ message StructuredQuery {
// * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
// * `WHERE __name__ > ... AND a > 1` becomes
// `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ //
+ // In Enterprise edition, Firestore does not guarantee a stable ordering.
+ // Instead it will pick the most efficient ordering based on the indexes
+ // available at the time of query execution. This will result in a different
+ // ordering for queries that are otherwise identical. To ensure a stable
+ // ordering, always include a unique field in the `order_by` clause, such as
+ // `__name__`.
repeated Order order_by = 4;
// A potential prefix of a position in the result set to start the query at.
diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorClient.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorClient.java
index 41259ffa7d84..bc67510e819f 100644
--- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorClient.java
+++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorClient.java
@@ -22,6 +22,7 @@
import com.google.api.gax.paging.AbstractFixedSizeCollection;
import com.google.api.gax.paging.AbstractPage;
import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.BidiStreamingCallable;
import com.google.api.gax.rpc.PageContext;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.location.GetLocationRequest;
@@ -228,6 +229,26 @@
*
StreamSanitizeUserPrompt
Streaming version of Sanitize User Prompt.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *streamSanitizeUserPromptCallable() + *
StreamSanitizeModelResponse
Streaming version of Sanitizes Model Response.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *streamSanitizeModelResponseCallable() + *
ListLocations
Lists information about the supported locations for this service.
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ModelArmorClient modelArmorClient = ModelArmorClient.create()) {
+ * BidiStream bidiStream =
+ * modelArmorClient.streamSanitizeUserPromptCallable().call();
+ * SanitizeUserPromptRequest request =
+ * SanitizeUserPromptRequest.newBuilder()
+ * .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString())
+ * .setUserPromptData(DataItem.newBuilder().build())
+ * .setMultiLanguageDetectionMetadata(
+ * MultiLanguageDetectionMetadata.newBuilder().build())
+ * .setStreamingMode(StreamingMode.forNumber(0))
+ * .build();
+ * bidiStream.send(request);
+ * for (SanitizeUserPromptResponse response : bidiStream) {
+ * // Do something when a response is received.
+ * }
+ * }
+ * }
+ */
+ public final BidiStreamingCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ModelArmorClient modelArmorClient = ModelArmorClient.create()) {
+ * BidiStream bidiStream =
+ * modelArmorClient.streamSanitizeModelResponseCallable().call();
+ * SanitizeModelResponseRequest request =
+ * SanitizeModelResponseRequest.newBuilder()
+ * .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString())
+ * .setModelResponseData(DataItem.newBuilder().build())
+ * .setUserPrompt("userPrompt1504308495")
+ * .setMultiLanguageDetectionMetadata(
+ * MultiLanguageDetectionMetadata.newBuilder().build())
+ * .setStreamingMode(StreamingMode.forNumber(0))
+ * .build();
+ * bidiStream.send(request);
+ * for (SanitizeModelResponseResponse response : bidiStream) {
+ * // Do something when a response is received.
+ * }
+ * }
+ * }
+ */
+ public final BidiStreamingCallable+ * Streaming version of Sanitize User Prompt. + *+ */ + default io.grpc.stub.StreamObserver
+ * Streaming version of Sanitizes Model Response. + *+ */ + default io.grpc.stub.StreamObserver
+ * Streaming version of Sanitize User Prompt. + *+ */ + public io.grpc.stub.StreamObserver
+ * Streaming version of Sanitizes Model Response. + *+ */ + public io.grpc.stub.StreamObserver
+ * Streaming version of Sanitize User Prompt. + *+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.cloud.modelarmor.v1.SanitizeUserPromptRequest, + com.google.cloud.modelarmor.v1.SanitizeUserPromptResponse> + streamSanitizeUserPrompt() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getStreamSanitizeUserPromptMethod(), getCallOptions()); + } + + /** + * + * + *
+ * Streaming version of Sanitizes Model Response. + *+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.cloud.modelarmor.v1.SanitizeModelResponseRequest, + com.google.cloud.modelarmor.v1.SanitizeModelResponseResponse> + streamSanitizeModelResponse() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getStreamSanitizeModelResponseMethod(), getCallOptions()); + } } /** @@ -1250,6 +1447,8 @@ protected ModelArmorFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_UPDATE_FLOOR_SETTING = 6; private static final int METHODID_SANITIZE_USER_PROMPT = 7; private static final int METHODID_SANITIZE_MODEL_RESPONSE = 8; + private static final int METHODID_STREAM_SANITIZE_USER_PROMPT = 9; + private static final int METHODID_STREAM_SANITIZE_MODEL_RESPONSE = 10; private static final class MethodHandlers
+ * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the streamChunkProcessed field is set.
+ */
+ boolean hasStreamChunkProcessed();
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The streamChunkProcessed.
+ */
+ com.google.cloud.modelarmor.v1.DataItem getStreamChunkProcessed();
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.modelarmor.v1.DataItemOrBuilder getStreamChunkProcessedOrBuilder();
}
/**
@@ -191,6 +234,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.modelarmor.v1.SanitizationResult.SanitizationMetadata.Builder.class);
}
+ private int bitField0_;
public static final int ERROR_CODE_FIELD_NUMBER = 1;
private long errorCode_ = 0L;
@@ -283,6 +327,65 @@ public boolean getIgnorePartialInvocationFailures() {
return ignorePartialInvocationFailures_;
}
+ public static final int STREAM_CHUNK_PROCESSED_FIELD_NUMBER = 4;
+ private com.google.cloud.modelarmor.v1.DataItem streamChunkProcessed_;
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the streamChunkProcessed field is set.
+ */
+ @java.lang.Override
+ public boolean hasStreamChunkProcessed() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The streamChunkProcessed.
+ */
+ @java.lang.Override
+ public com.google.cloud.modelarmor.v1.DataItem getStreamChunkProcessed() {
+ return streamChunkProcessed_ == null
+ ? com.google.cloud.modelarmor.v1.DataItem.getDefaultInstance()
+ : streamChunkProcessed_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.modelarmor.v1.DataItemOrBuilder getStreamChunkProcessedOrBuilder() {
+ return streamChunkProcessed_ == null
+ ? com.google.cloud.modelarmor.v1.DataItem.getDefaultInstance()
+ : streamChunkProcessed_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -306,6 +409,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (ignorePartialInvocationFailures_ != false) {
output.writeBool(3, ignorePartialInvocationFailures_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(4, getStreamChunkProcessed());
+ }
getUnknownFields().writeTo(output);
}
@@ -326,6 +432,10 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeBoolSize(
3, ignorePartialInvocationFailures_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStreamChunkProcessed());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -347,6 +457,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getErrorMessage().equals(other.getErrorMessage())) return false;
if (getIgnorePartialInvocationFailures() != other.getIgnorePartialInvocationFailures())
return false;
+ if (hasStreamChunkProcessed() != other.hasStreamChunkProcessed()) return false;
+ if (hasStreamChunkProcessed()) {
+ if (!getStreamChunkProcessed().equals(other.getStreamChunkProcessed())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -366,6 +480,10 @@ public int hashCode() {
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashBoolean(getIgnorePartialInvocationFailures());
+ if (hasStreamChunkProcessed()) {
+ hash = (37 * hash) + STREAM_CHUNK_PROCESSED_FIELD_NUMBER;
+ hash = (53 * hash) + getStreamChunkProcessed().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -500,10 +618,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
// Construct using
// com.google.cloud.modelarmor.v1.SanitizationResult.SanitizationMetadata.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ internalGetStreamChunkProcessedFieldBuilder();
+ }
}
@java.lang.Override
@@ -513,6 +640,11 @@ public Builder clear() {
errorCode_ = 0L;
errorMessage_ = "";
ignorePartialInvocationFailures_ = false;
+ streamChunkProcessed_ = null;
+ if (streamChunkProcessedBuilder_ != null) {
+ streamChunkProcessedBuilder_.dispose();
+ streamChunkProcessedBuilder_ = null;
+ }
return this;
}
@@ -562,6 +694,15 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000004) != 0)) {
result.ignorePartialInvocationFailures_ = ignorePartialInvocationFailures_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.streamChunkProcessed_ =
+ streamChunkProcessedBuilder_ == null
+ ? streamChunkProcessed_
+ : streamChunkProcessedBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -592,6 +733,9 @@ public Builder mergeFrom(
if (other.getIgnorePartialInvocationFailures() != false) {
setIgnorePartialInvocationFailures(other.getIgnorePartialInvocationFailures());
}
+ if (other.hasStreamChunkProcessed()) {
+ mergeStreamChunkProcessed(other.getStreamChunkProcessed());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -636,6 +780,14 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 24
+ case 34:
+ {
+ input.readMessage(
+ internalGetStreamChunkProcessedFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -881,6 +1033,220 @@ public Builder clearIgnorePartialInvocationFailures() {
return this;
}
+ private com.google.cloud.modelarmor.v1.DataItem streamChunkProcessed_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.modelarmor.v1.DataItem,
+ com.google.cloud.modelarmor.v1.DataItem.Builder,
+ com.google.cloud.modelarmor.v1.DataItemOrBuilder>
+ streamChunkProcessedBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the streamChunkProcessed field is set.
+ */
+ public boolean hasStreamChunkProcessed() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The streamChunkProcessed.
+ */
+ public com.google.cloud.modelarmor.v1.DataItem getStreamChunkProcessed() {
+ if (streamChunkProcessedBuilder_ == null) {
+ return streamChunkProcessed_ == null
+ ? com.google.cloud.modelarmor.v1.DataItem.getDefaultInstance()
+ : streamChunkProcessed_;
+ } else {
+ return streamChunkProcessedBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setStreamChunkProcessed(com.google.cloud.modelarmor.v1.DataItem value) {
+ if (streamChunkProcessedBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ streamChunkProcessed_ = value;
+ } else {
+ streamChunkProcessedBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setStreamChunkProcessed(
+ com.google.cloud.modelarmor.v1.DataItem.Builder builderForValue) {
+ if (streamChunkProcessedBuilder_ == null) {
+ streamChunkProcessed_ = builderForValue.build();
+ } else {
+ streamChunkProcessedBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeStreamChunkProcessed(com.google.cloud.modelarmor.v1.DataItem value) {
+ if (streamChunkProcessedBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && streamChunkProcessed_ != null
+ && streamChunkProcessed_
+ != com.google.cloud.modelarmor.v1.DataItem.getDefaultInstance()) {
+ getStreamChunkProcessedBuilder().mergeFrom(value);
+ } else {
+ streamChunkProcessed_ = value;
+ }
+ } else {
+ streamChunkProcessedBuilder_.mergeFrom(value);
+ }
+ if (streamChunkProcessed_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearStreamChunkProcessed() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ streamChunkProcessed_ = null;
+ if (streamChunkProcessedBuilder_ != null) {
+ streamChunkProcessedBuilder_.dispose();
+ streamChunkProcessedBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.modelarmor.v1.DataItem.Builder getStreamChunkProcessedBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return internalGetStreamChunkProcessedFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.modelarmor.v1.DataItemOrBuilder getStreamChunkProcessedOrBuilder() {
+ if (streamChunkProcessedBuilder_ != null) {
+ return streamChunkProcessedBuilder_.getMessageOrBuilder();
+ } else {
+ return streamChunkProcessed_ == null
+ ? com.google.cloud.modelarmor.v1.DataItem.getDefaultInstance()
+ : streamChunkProcessed_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The stream chunk processed by the Sanitization service. + *+ * + *
+ * .google.cloud.modelarmor.v1.DataItem stream_chunk_processed = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.modelarmor.v1.DataItem,
+ com.google.cloud.modelarmor.v1.DataItem.Builder,
+ com.google.cloud.modelarmor.v1.DataItemOrBuilder>
+ internalGetStreamChunkProcessedFieldBuilder() {
+ if (streamChunkProcessedBuilder_ == null) {
+ streamChunkProcessedBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.modelarmor.v1.DataItem,
+ com.google.cloud.modelarmor.v1.DataItem.Builder,
+ com.google.cloud.modelarmor.v1.DataItemOrBuilder>(
+ getStreamChunkProcessed(), getParentForChildren(), isClean());
+ streamChunkProcessed_ = null;
+ }
+ return streamChunkProcessedBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.SanitizationResult.SanitizationMetadata)
}
diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequest.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequest.java
index ae7015829490..538140c9a9ee 100644
--- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequest.java
+++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequest.java
@@ -54,6 +54,7 @@ private SanitizeModelResponseRequest(com.google.protobuf.GeneratedMessage.Builde
private SanitizeModelResponseRequest() {
name_ = "";
userPrompt_ = "";
+ streamingMode_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -305,6 +306,65 @@ public boolean hasMultiLanguageDetectionMetadata() {
: multiLanguageDetectionMetadata_;
}
+ public static final int STREAMING_MODE_FIELD_NUMBER = 8;
+ private int streamingMode_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the streamingMode field is set.
+ */
+ @java.lang.Override
+ public boolean hasStreamingMode() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for streamingMode.
+ */
+ @java.lang.Override
+ public int getStreamingModeValue() {
+ return streamingMode_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The streamingMode.
+ */
+ @java.lang.Override
+ public com.google.cloud.modelarmor.v1.StreamingMode getStreamingMode() {
+ com.google.cloud.modelarmor.v1.StreamingMode result =
+ com.google.cloud.modelarmor.v1.StreamingMode.forNumber(streamingMode_);
+ return result == null ? com.google.cloud.modelarmor.v1.StreamingMode.UNRECOGNIZED : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -331,6 +391,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(7, getMultiLanguageDetectionMetadata());
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeEnum(8, streamingMode_);
+ }
getUnknownFields().writeTo(output);
}
@@ -354,6 +417,9 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
7, getMultiLanguageDetectionMetadata());
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, streamingMode_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -382,6 +448,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getMultiLanguageDetectionMetadata().equals(other.getMultiLanguageDetectionMetadata()))
return false;
}
+ if (hasStreamingMode() != other.hasStreamingMode()) return false;
+ if (hasStreamingMode()) {
+ if (streamingMode_ != other.streamingMode_) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -405,6 +475,10 @@ public int hashCode() {
hash = (37 * hash) + MULTI_LANGUAGE_DETECTION_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMultiLanguageDetectionMetadata().hashCode();
}
+ if (hasStreamingMode()) {
+ hash = (37 * hash) + STREAMING_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + streamingMode_;
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -568,6 +642,7 @@ public Builder clear() {
multiLanguageDetectionMetadataBuilder_.dispose();
multiLanguageDetectionMetadataBuilder_ = null;
}
+ streamingMode_ = 0;
return this;
}
@@ -625,6 +700,10 @@ private void buildPartial0(com.google.cloud.modelarmor.v1.SanitizeModelResponseR
: multiLanguageDetectionMetadataBuilder_.build();
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.streamingMode_ = streamingMode_;
+ to_bitField0_ |= 0x00000004;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -657,6 +736,9 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1.SanitizeModelResponseReq
if (other.hasMultiLanguageDetectionMetadata()) {
mergeMultiLanguageDetectionMetadata(other.getMultiLanguageDetectionMetadata());
}
+ if (other.hasStreamingMode()) {
+ setStreamingModeValue(other.getStreamingModeValue());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -710,6 +792,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000008;
break;
} // case 58
+ case 64:
+ {
+ streamingMode_ = input.readEnum();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 64
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1400,6 +1488,129 @@ public Builder clearMultiLanguageDetectionMetadata() {
return multiLanguageDetectionMetadataBuilder_;
}
+ private int streamingMode_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the streamingMode field is set.
+ */
+ @java.lang.Override
+ public boolean hasStreamingMode() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for streamingMode.
+ */
+ @java.lang.Override
+ public int getStreamingModeValue() {
+ return streamingMode_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for streamingMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStreamingModeValue(int value) {
+ streamingMode_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The streamingMode.
+ */
+ @java.lang.Override
+ public com.google.cloud.modelarmor.v1.StreamingMode getStreamingMode() {
+ com.google.cloud.modelarmor.v1.StreamingMode result =
+ com.google.cloud.modelarmor.v1.StreamingMode.forNumber(streamingMode_);
+ return result == null ? com.google.cloud.modelarmor.v1.StreamingMode.UNRECOGNIZED : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The streamingMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStreamingMode(com.google.cloud.modelarmor.v1.StreamingMode value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ streamingMode_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStreamingMode() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ streamingMode_ = 0;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.SanitizeModelResponseRequest)
}
diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequestOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequestOrBuilder.java
index c09b7b5f4213..6cbd3bb3ad16 100644
--- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequestOrBuilder.java
+++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequestOrBuilder.java
@@ -170,4 +170,49 @@ public interface SanitizeModelResponseRequestOrBuilder
*/
com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder
getMultiLanguageDetectionMetadataOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the streamingMode field is set.
+ */
+ boolean hasStreamingMode();
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for streamingMode.
+ */
+ int getStreamingModeValue();
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The streamingMode.
+ */
+ com.google.cloud.modelarmor.v1.StreamingMode getStreamingMode();
}
diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequest.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequest.java
index 2566f9593203..bcca1a40ee72 100644
--- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequest.java
+++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequest.java
@@ -53,6 +53,7 @@ private SanitizeUserPromptRequest(com.google.protobuf.GeneratedMessage.Builder
private SanitizeUserPromptRequest() {
name_ = "";
+ streamingMode_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -251,6 +252,65 @@ public boolean hasMultiLanguageDetectionMetadata() {
: multiLanguageDetectionMetadata_;
}
+ public static final int STREAMING_MODE_FIELD_NUMBER = 7;
+ private int streamingMode_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the streamingMode field is set.
+ */
+ @java.lang.Override
+ public boolean hasStreamingMode() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for streamingMode.
+ */
+ @java.lang.Override
+ public int getStreamingModeValue() {
+ return streamingMode_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The streamingMode.
+ */
+ @java.lang.Override
+ public com.google.cloud.modelarmor.v1.StreamingMode getStreamingMode() {
+ com.google.cloud.modelarmor.v1.StreamingMode result =
+ com.google.cloud.modelarmor.v1.StreamingMode.forNumber(streamingMode_);
+ return result == null ? com.google.cloud.modelarmor.v1.StreamingMode.UNRECOGNIZED : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -274,6 +334,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getMultiLanguageDetectionMetadata());
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeEnum(7, streamingMode_);
+ }
getUnknownFields().writeTo(output);
}
@@ -294,6 +357,9 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
6, getMultiLanguageDetectionMetadata());
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, streamingMode_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -321,6 +387,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getMultiLanguageDetectionMetadata().equals(other.getMultiLanguageDetectionMetadata()))
return false;
}
+ if (hasStreamingMode() != other.hasStreamingMode()) return false;
+ if (hasStreamingMode()) {
+ if (streamingMode_ != other.streamingMode_) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -342,6 +412,10 @@ public int hashCode() {
hash = (37 * hash) + MULTI_LANGUAGE_DETECTION_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMultiLanguageDetectionMetadata().hashCode();
}
+ if (hasStreamingMode()) {
+ hash = (37 * hash) + STREAMING_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + streamingMode_;
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -504,6 +578,7 @@ public Builder clear() {
multiLanguageDetectionMetadataBuilder_.dispose();
multiLanguageDetectionMetadataBuilder_ = null;
}
+ streamingMode_ = 0;
return this;
}
@@ -556,6 +631,10 @@ private void buildPartial0(com.google.cloud.modelarmor.v1.SanitizeUserPromptRequ
: multiLanguageDetectionMetadataBuilder_.build();
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.streamingMode_ = streamingMode_;
+ to_bitField0_ |= 0x00000004;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -583,6 +662,9 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1.SanitizeUserPromptReques
if (other.hasMultiLanguageDetectionMetadata()) {
mergeMultiLanguageDetectionMetadata(other.getMultiLanguageDetectionMetadata());
}
+ if (other.hasStreamingMode()) {
+ setStreamingModeValue(other.getStreamingModeValue());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -630,6 +712,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 50
+ case 56:
+ {
+ streamingMode_ = input.readEnum();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 56
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1209,6 +1297,129 @@ public Builder clearMultiLanguageDetectionMetadata() {
return multiLanguageDetectionMetadataBuilder_;
}
+ private int streamingMode_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the streamingMode field is set.
+ */
+ @java.lang.Override
+ public boolean hasStreamingMode() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for streamingMode.
+ */
+ @java.lang.Override
+ public int getStreamingModeValue() {
+ return streamingMode_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for streamingMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStreamingModeValue(int value) {
+ streamingMode_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The streamingMode.
+ */
+ @java.lang.Override
+ public com.google.cloud.modelarmor.v1.StreamingMode getStreamingMode() {
+ com.google.cloud.modelarmor.v1.StreamingMode result =
+ com.google.cloud.modelarmor.v1.StreamingMode.forNumber(streamingMode_);
+ return result == null ? com.google.cloud.modelarmor.v1.StreamingMode.UNRECOGNIZED : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The streamingMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStreamingMode(com.google.cloud.modelarmor.v1.StreamingMode value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ streamingMode_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStreamingMode() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ streamingMode_ = 0;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.SanitizeUserPromptRequest)
}
diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequestOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequestOrBuilder.java
index f3c2eb3201b2..2551320b06e7 100644
--- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequestOrBuilder.java
+++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequestOrBuilder.java
@@ -144,4 +144,49 @@ public interface SanitizeUserPromptRequestOrBuilder
*/
com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder
getMultiLanguageDetectionMetadataOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the streamingMode field is set.
+ */
+ boolean hasStreamingMode();
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for streamingMode.
+ */
+ int getStreamingModeValue();
+
+ /**
+ *
+ *
+ * + * Optional. Streaming Mode for StreamSanitize* API. + *+ * + *
+ * optional .google.cloud.modelarmor.v1.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The streamingMode.
+ */
+ com.google.cloud.modelarmor.v1.StreamingMode getStreamingMode();
}
diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/StreamingMode.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/StreamingMode.java
new file mode 100644
index 000000000000..7d87a2575edc
--- /dev/null
+++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/StreamingMode.java
@@ -0,0 +1,191 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/modelarmor/v1/service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.modelarmor.v1;
+
+/**
+ *
+ *
+ * + * Streaming Mode for Sanitize* API. + *+ * + * Protobuf enum {@code google.cloud.modelarmor.v1.StreamingMode} + */ +@com.google.protobuf.Generated +public enum StreamingMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Default value. + *+ * + *
STREAMING_MODE_UNSPECIFIED = 0;
+ */
+ STREAMING_MODE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Buffered Streaming mode. + *+ * + *
STREAMING_MODE_BUFFERED = 1;
+ */
+ STREAMING_MODE_BUFFERED(1),
+ /**
+ *
+ *
+ * + * Real Time Streaming mode. + *+ * + *
STREAMING_MODE_REALTIME = 2;
+ */
+ STREAMING_MODE_REALTIME(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "StreamingMode");
+ }
+
+ /**
+ *
+ *
+ * + * Default value. + *+ * + *
STREAMING_MODE_UNSPECIFIED = 0;
+ */
+ public static final int STREAMING_MODE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Buffered Streaming mode. + *+ * + *
STREAMING_MODE_BUFFERED = 1;
+ */
+ public static final int STREAMING_MODE_BUFFERED_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Real Time Streaming mode. + *+ * + *
STREAMING_MODE_REALTIME = 2;
+ */
+ public static final int STREAMING_MODE_REALTIME_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static StreamingMode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static StreamingMode forNumber(int value) {
+ switch (value) {
+ case 0:
+ return STREAMING_MODE_UNSPECIFIED;
+ case 1:
+ return STREAMING_MODE_BUFFERED;
+ case 2:
+ return STREAMING_MODE_REALTIME;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMapListGoldengateDeployments
Lists all the GoldengateDeployments for the given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listGoldengateDeployments(ListGoldengateDeploymentsRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listGoldengateDeployments(LocationName parent) + *
listGoldengateDeployments(String parent) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listGoldengateDeploymentsPagedCallable() + *
listGoldengateDeploymentsCallable() + *
GetGoldengateDeployment
Gets details of a single GoldengateDeployment.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *getGoldengateDeployment(GetGoldengateDeploymentRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getGoldengateDeployment(GoldengateDeploymentName name) + *
getGoldengateDeployment(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *getGoldengateDeploymentCallable() + *
CreateGoldengateDeployment
Creates a new GoldengateDeployment in a given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *createGoldengateDeploymentAsync(CreateGoldengateDeploymentRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *createGoldengateDeploymentAsync(LocationName parent, GoldengateDeployment goldengateDeployment, String goldengateDeploymentId) + *
createGoldengateDeploymentAsync(String parent, GoldengateDeployment goldengateDeployment, String goldengateDeploymentId) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *createGoldengateDeploymentOperationCallable() + *
createGoldengateDeploymentCallable() + *
DeleteGoldengateDeployment
Deletes a single GoldengateDeployment.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *deleteGoldengateDeploymentAsync(DeleteGoldengateDeploymentRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *deleteGoldengateDeploymentAsync(GoldengateDeploymentName name) + *
deleteGoldengateDeploymentAsync(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *deleteGoldengateDeploymentOperationCallable() + *
deleteGoldengateDeploymentCallable() + *
StopGoldengateDeployment
Stops a single GoldengateDeployment.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *stopGoldengateDeploymentAsync(StopGoldengateDeploymentRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *stopGoldengateDeploymentAsync(GoldengateDeploymentName name) + *
stopGoldengateDeploymentAsync(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *stopGoldengateDeploymentOperationCallable() + *
stopGoldengateDeploymentCallable() + *
StartGoldengateDeployment
Starts a single GoldengateDeployment.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *startGoldengateDeploymentAsync(StartGoldengateDeploymentRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *startGoldengateDeploymentAsync(GoldengateDeploymentName name) + *
startGoldengateDeploymentAsync(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *startGoldengateDeploymentOperationCallable() + *
startGoldengateDeploymentCallable() + *
ListGoldengateConnections
Lists all the GoldengateConnections for the given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listGoldengateConnections(ListGoldengateConnectionsRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listGoldengateConnections(LocationName parent) + *
listGoldengateConnections(String parent) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listGoldengateConnectionsPagedCallable() + *
listGoldengateConnectionsCallable() + *
GetGoldengateConnection
Gets details of a single GoldengateConnection.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *getGoldengateConnection(GetGoldengateConnectionRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getGoldengateConnection(GoldengateConnectionName name) + *
getGoldengateConnection(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *getGoldengateConnectionCallable() + *
CreateGoldengateConnection
Creates a new GoldengateConnection in a given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *createGoldengateConnectionAsync(CreateGoldengateConnectionRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *createGoldengateConnectionAsync(LocationName parent, GoldengateConnection goldengateConnection, String goldengateConnectionId) + *
createGoldengateConnectionAsync(String parent, GoldengateConnection goldengateConnection, String goldengateConnectionId) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *createGoldengateConnectionOperationCallable() + *
createGoldengateConnectionCallable() + *
DeleteGoldengateConnection
Deletes a single GoldengateConnection.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *deleteGoldengateConnectionAsync(DeleteGoldengateConnectionRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *deleteGoldengateConnectionAsync(GoldengateConnectionName name) + *
deleteGoldengateConnectionAsync(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *deleteGoldengateConnectionOperationCallable() + *
deleteGoldengateConnectionCallable() + *
GetGoldengateDeploymentVersion
Gets details of a single GoldengateDeploymentVersion.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *getGoldengateDeploymentVersion(GetGoldengateDeploymentVersionRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getGoldengateDeploymentVersion(GoldengateDeploymentVersionName name) + *
getGoldengateDeploymentVersion(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *getGoldengateDeploymentVersionCallable() + *
ListGoldengateDeploymentVersions
Lists GoldengateDeploymentVersions in a given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listGoldengateDeploymentVersions(ListGoldengateDeploymentVersionsRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listGoldengateDeploymentVersions(LocationName parent) + *
listGoldengateDeploymentVersions(String parent) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listGoldengateDeploymentVersionsPagedCallable() + *
listGoldengateDeploymentVersionsCallable() + *
GetGoldengateDeploymentType
Gets details of a single GoldenGateDeploymentType.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *getGoldengateDeploymentType(GetGoldengateDeploymentTypeRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getGoldengateDeploymentType(GoldengateDeploymentTypeName name) + *
getGoldengateDeploymentType(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *getGoldengateDeploymentTypeCallable() + *
ListGoldengateDeploymentTypes
Lists GoldenGateDeploymentTypes in a given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listGoldengateDeploymentTypes(ListGoldengateDeploymentTypesRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listGoldengateDeploymentTypes(LocationName parent) + *
listGoldengateDeploymentTypes(String parent) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listGoldengateDeploymentTypesPagedCallable() + *
listGoldengateDeploymentTypesCallable() + *
GetGoldengateDeploymentEnvironment
Gets details of a single GoldengateDeploymentEnvironment.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *getGoldengateDeploymentEnvironment(GetGoldengateDeploymentEnvironmentRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getGoldengateDeploymentEnvironment(GoldengateDeploymentEnvironmentName name) + *
getGoldengateDeploymentEnvironment(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *getGoldengateDeploymentEnvironmentCallable() + *
ListGoldengateDeploymentEnvironments
Lists GoldengateDeploymentEnvironments in a given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listGoldengateDeploymentEnvironments(ListGoldengateDeploymentEnvironmentsRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listGoldengateDeploymentEnvironments(LocationName parent) + *
listGoldengateDeploymentEnvironments(String parent) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listGoldengateDeploymentEnvironmentsPagedCallable() + *
listGoldengateDeploymentEnvironmentsCallable() + *
GetGoldengateConnectionType
Gets details of a single GoldengateConnectionType.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *getGoldengateConnectionType(GetGoldengateConnectionTypeRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getGoldengateConnectionType(GoldengateConnectionTypeName name) + *
getGoldengateConnectionType(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *getGoldengateConnectionTypeCallable() + *
ListGoldengateConnectionTypes
Lists GoldengateConnectionTypes in a given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listGoldengateConnectionTypes(ListGoldengateConnectionTypesRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listGoldengateConnectionTypes(LocationName parent) + *
listGoldengateConnectionTypes(String parent) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listGoldengateConnectionTypesPagedCallable() + *
listGoldengateConnectionTypesCallable() + *
ListDbVersions
List DbVersions for the given project and location.
ListLocations
Lists information about the supported locations for this service.
ListGoldengateConnectionAssignments
Lists GoldengateConnectionAssignments in a given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*listLocations(ListLocationsRequest request) + *
listGoldengateConnectionAssignments(ListGoldengateConnectionAssignmentsRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listGoldengateConnectionAssignments(LocationName parent) + *
listGoldengateConnectionAssignments(String parent) *
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() + *
listGoldengateConnectionAssignmentsPagedCallable() + *
listGoldengateConnectionAssignmentsCallable() *
GetLocation
Gets information about a location.
GetGoldengateConnectionAssignment
Gets details of a single GoldengateConnectionAssignment.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*getLocation(GetLocationRequest request) + *
getGoldengateConnectionAssignment(GetGoldengateConnectionAssignmentRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getGoldengateConnectionAssignment(GoldengateConnectionAssignmentName name) + *
getGoldengateConnectionAssignment(String name) *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*getLocationCallable() + *
getGoldengateConnectionAssignmentCallable() *
See the individual methods for example code. - * - *
Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * + *
CreateGoldengateConnectionAssignment
Creates a new GoldengateConnectionAssignment in a given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *createGoldengateConnectionAssignmentAsync(CreateGoldengateConnectionAssignmentRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *createGoldengateConnectionAssignmentAsync(LocationName parent, GoldengateConnectionAssignment goldengateConnectionAssignment, String goldengateConnectionAssignmentId) + *
createGoldengateConnectionAssignmentAsync(String parent, GoldengateConnectionAssignment goldengateConnectionAssignment, String goldengateConnectionAssignmentId) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *createGoldengateConnectionAssignmentOperationCallable() + *
createGoldengateConnectionAssignmentCallable() + *
DeleteGoldengateConnectionAssignment
Deletes a single GoldengateConnectionAssignment.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *deleteGoldengateConnectionAssignmentAsync(DeleteGoldengateConnectionAssignmentRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *deleteGoldengateConnectionAssignmentAsync(GoldengateConnectionAssignmentName name) + *
deleteGoldengateConnectionAssignmentAsync(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *deleteGoldengateConnectionAssignmentOperationCallable() + *
deleteGoldengateConnectionAssignmentCallable() + *
TestGoldengateConnectionAssignment
Tests a single GoldengateConnectionAssignment.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *testGoldengateConnectionAssignment(TestGoldengateConnectionAssignmentRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *testGoldengateConnectionAssignment(GoldengateConnectionAssignmentName name) + *
testGoldengateConnectionAssignment(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *testGoldengateConnectionAssignmentCallable() + *
ListLocations
Lists information about the supported locations for this service. + *
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.
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. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * *
This class can be customized by passing in a custom instance of OracleDatabaseSettings to
* create(). For example:
*
@@ -5884,7 +6338,8 @@ public final OperationFuture Sample code:
*
@@ -10546,27 +11008,29 @@ public final UnaryCallable Sample code:
*
@@ -10578,24 +11042,26 @@ public final ListDbVersionsPagedResponse listDbVersions(LocationName parent) {
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (DbVersion element : oracleDatabaseClient.listDbVersions(parent).iterateAll()) {
+ * for (GoldengateDeployment element :
+ * oracleDatabaseClient.listGoldengateDeployments(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. The parent value for the DbVersion resource with the format:
- * projects/{project}/locations/{location}
+ * @param parent Required. The parent value for GoldengateDeployments in the following format:
+ * projects/{project}/locations/{location}.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListDbVersionsPagedResponse listDbVersions(String parent) {
- ListDbVersionsRequest request = ListDbVersionsRequest.newBuilder().setParent(parent).build();
- return listDbVersions(request);
+ public final ListGoldengateDeploymentsPagedResponse listGoldengateDeployments(String parent) {
+ ListGoldengateDeploymentsRequest request =
+ ListGoldengateDeploymentsRequest.newBuilder().setParent(parent).build();
+ return listGoldengateDeployments(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * List DbVersions for the given project and location.
+ * Lists all the GoldengateDeployments for the given project and location.
*
* Sample code:
*
@@ -10606,14 +11072,16 @@ public final ListDbVersionsPagedResponse listDbVersions(String parent) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
- * ListDbVersionsRequest request =
- * ListDbVersionsRequest.newBuilder()
+ * ListGoldengateDeploymentsRequest request =
+ * ListGoldengateDeploymentsRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
* .build();
- * for (DbVersion element : oracleDatabaseClient.listDbVersions(request).iterateAll()) {
+ * for (GoldengateDeployment element :
+ * oracleDatabaseClient.listGoldengateDeployments(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -10622,13 +11090,14 @@ public final ListDbVersionsPagedResponse listDbVersions(String parent) {
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListDbVersionsPagedResponse listDbVersions(ListDbVersionsRequest request) {
- return listDbVersionsPagedCallable().call(request);
+ public final ListGoldengateDeploymentsPagedResponse listGoldengateDeployments(
+ ListGoldengateDeploymentsRequest request) {
+ return listGoldengateDeploymentsPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * List DbVersions for the given project and location.
+ * Lists all the GoldengateDeployments for the given project and location.
*
* Sample code:
*
@@ -10639,30 +11108,32 @@ public final ListDbVersionsPagedResponse listDbVersions(ListDbVersionsRequest re
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
- * ListDbVersionsRequest request =
- * ListDbVersionsRequest.newBuilder()
+ * ListGoldengateDeploymentsRequest request =
+ * ListGoldengateDeploymentsRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
* .build();
- * ApiFuture Sample code:
*
@@ -10673,17 +11144,18 @@ public final ListDbVersionsPagedResponse listDbVersions(ListDbVersionsRequest re
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
- * ListDbVersionsRequest request =
- * ListDbVersionsRequest.newBuilder()
+ * ListGoldengateDeploymentsRequest request =
+ * ListGoldengateDeploymentsRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
* .build();
* while (true) {
- * ListDbVersionsResponse response =
- * oracleDatabaseClient.listDbVersionsCallable().call(request);
- * for (DbVersion element : response.getDbVersionsList()) {
+ * ListGoldengateDeploymentsResponse response =
+ * oracleDatabaseClient.listGoldengateDeploymentsCallable().call(request);
+ * for (GoldengateDeployment element : response.getGoldengateDeploymentsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -10696,14 +11168,14 @@ public final ListDbVersionsPagedResponse listDbVersions(ListDbVersionsRequest re
* }
* }
*/
- public final UnaryCallable Sample code:
*
@@ -10714,30 +11186,27 @@ public final ListDbVersionsPagedResponse listDbVersions(ListDbVersionsRequest re
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * for (DatabaseCharacterSet element :
- * oracleDatabaseClient.listDatabaseCharacterSets(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * GoldengateDeploymentName name =
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]");
+ * GoldengateDeployment response = oracleDatabaseClient.getGoldengateDeployment(name);
* }
* }
*
- * @param parent Required. The parent value for DatabaseCharacterSets in the following format:
- * projects/{project}/locations/{location}.
+ * @param name Required. The name of the GoldengateDeployment in the following format:
+ * projects/{project}/locations/{location}/goldengateDeployments/{goldengate_deployment}.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(
- LocationName parent) {
- ListDatabaseCharacterSetsRequest request =
- ListDatabaseCharacterSetsRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
+ public final GoldengateDeployment getGoldengateDeployment(GoldengateDeploymentName name) {
+ GetGoldengateDeploymentRequest request =
+ GetGoldengateDeploymentRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
.build();
- return listDatabaseCharacterSets(request);
+ return getGoldengateDeployment(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * List DatabaseCharacterSets for the given project and location.
+ * Gets details of a single GoldengateDeployment.
*
* Sample code:
*
@@ -10748,27 +11217,26 @@ public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
- * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (DatabaseCharacterSet element :
- * oracleDatabaseClient.listDatabaseCharacterSets(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * String name =
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString();
+ * GoldengateDeployment response = oracleDatabaseClient.getGoldengateDeployment(name);
* }
* }
*
- * @param parent Required. The parent value for DatabaseCharacterSets in the following format:
- * projects/{project}/locations/{location}.
+ * @param name Required. The name of the GoldengateDeployment in the following format:
+ * projects/{project}/locations/{location}/goldengateDeployments/{goldengate_deployment}.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(String parent) {
- ListDatabaseCharacterSetsRequest request =
- ListDatabaseCharacterSetsRequest.newBuilder().setParent(parent).build();
- return listDatabaseCharacterSets(request);
+ public final GoldengateDeployment getGoldengateDeployment(String name) {
+ GetGoldengateDeploymentRequest request =
+ GetGoldengateDeploymentRequest.newBuilder().setName(name).build();
+ return getGoldengateDeployment(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * List DatabaseCharacterSets for the given project and location.
+ * Gets details of a single GoldengateDeployment.
*
* Sample code:
*
@@ -10779,31 +11247,27 @@ public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(St
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
- * ListDatabaseCharacterSetsRequest request =
- * ListDatabaseCharacterSetsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
+ * GetGoldengateDeploymentRequest request =
+ * GetGoldengateDeploymentRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString())
* .build();
- * for (DatabaseCharacterSet element :
- * oracleDatabaseClient.listDatabaseCharacterSets(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * GoldengateDeployment response = oracleDatabaseClient.getGoldengateDeployment(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(
- ListDatabaseCharacterSetsRequest request) {
- return listDatabaseCharacterSetsPagedCallable().call(request);
+ public final GoldengateDeployment getGoldengateDeployment(
+ GetGoldengateDeploymentRequest request) {
+ return getGoldengateDeploymentCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * List DatabaseCharacterSets for the given project and location.
+ * Gets details of a single GoldengateDeployment.
*
* Sample code:
*
@@ -10814,31 +11278,27 @@ public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
- * ListDatabaseCharacterSetsRequest request =
- * ListDatabaseCharacterSetsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
+ * GetGoldengateDeploymentRequest request =
+ * GetGoldengateDeploymentRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString())
* .build();
- * ApiFuture Sample code:
*
@@ -10849,37 +11309,41 @@ public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
- * ListDatabaseCharacterSetsRequest request =
- * ListDatabaseCharacterSetsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .build();
- * while (true) {
- * ListDatabaseCharacterSetsResponse response =
- * oracleDatabaseClient.listDatabaseCharacterSetsCallable().call(request);
- * for (DatabaseCharacterSet element : response.getDatabaseCharacterSetsList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * GoldengateDeployment goldengateDeployment = GoldengateDeployment.newBuilder().build();
+ * String goldengateDeploymentId = "goldengateDeploymentId489140788";
+ * GoldengateDeployment response =
+ * oracleDatabaseClient
+ * .createGoldengateDeploymentAsync(parent, goldengateDeployment, goldengateDeploymentId)
+ * .get();
* }
* }
+ *
+ * @param parent Required. The value for parent of the GoldengateDeployment in the following
+ * format: projects/{project}/locations/{location}.
+ * @param goldengateDeployment Required. The resource being created.
+ * @param goldengateDeploymentId Required. The ID of the GoldengateDeployment to create. This
+ * value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+ * characters in length. The value must start with a letter and end with a letter or a number.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable Sample code:
*
@@ -10890,29 +11354,39 @@ public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * for (Location element : oracleDatabaseClient.listLocations(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * GoldengateDeployment goldengateDeployment = GoldengateDeployment.newBuilder().build();
+ * String goldengateDeploymentId = "goldengateDeploymentId489140788";
+ * GoldengateDeployment response =
+ * oracleDatabaseClient
+ * .createGoldengateDeploymentAsync(parent, goldengateDeployment, goldengateDeploymentId)
+ * .get();
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param parent Required. The value for parent of the GoldengateDeployment in the following
+ * format: projects/{project}/locations/{location}.
+ * @param goldengateDeployment Required. The resource being created.
+ * @param goldengateDeploymentId Required. The ID of the GoldengateDeployment to create. This
+ * value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+ * characters in length. The value must start with a letter and end with a letter or a number.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
- return listLocationsPagedCallable().call(request);
+ public final OperationFuture Sample code:
*
@@ -10923,30 +11397,29 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * CreateGoldengateDeploymentRequest request =
+ * CreateGoldengateDeploymentRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setGoldengateDeploymentId("goldengateDeploymentId489140788")
+ * .setGoldengateDeployment(GoldengateDeployment.newBuilder().build())
+ * .setRequestId("requestId693933066")
* .build();
- * ApiFuture Sample code:
*
@@ -10957,35 +11430,29 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * CreateGoldengateDeploymentRequest request =
+ * CreateGoldengateDeploymentRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setGoldengateDeploymentId("goldengateDeploymentId489140788")
+ * .setGoldengateDeployment(GoldengateDeployment.newBuilder().build())
+ * .setRequestId("requestId693933066")
* .build();
- * while (true) {
- * ListLocationsResponse response = oracleDatabaseClient.listLocationsCallable().call(request);
- * for (Location element : response.getLocationsList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
+ * OperationFuture Sample code:
*
@@ -10996,21 +11463,123 @@ public final UnaryCallable Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -11021,1737 +11590,5908 @@ public final Location getLocation(GetLocationRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
- * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- * ApiFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * This method lists locations based on the resource scope provided inthe
+ * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field:
+ * ***Global locations**: If `name` is empty, the method lists thepublic
+ * locations available to all projects. * **Project-specificlocations**: If
+ * `name` follows the format`projects/{project}`, the method lists locations visible to
+ * thatspecific project. This includes public, private, or otherproject-specific locations enabled
+ * for the project.
+ *
+ * For gRPC and client library implementations, the resource name ispassed as the `name` field.
+ * For direct service calls, the resourcename isincorporated into the request path based on the
+ * specific serviceimplementation and version.
+ *
+ * Sample code:
+ *
+ * This method lists locations based on the resource scope provided inthe
+ * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field:
+ * ***Global locations**: If `name` is empty, the method lists thepublic
+ * locations available to all projects. * **Project-specificlocations**: If
+ * `name` follows the format`projects/{project}`, the method lists locations visible to
+ * thatspecific project. This includes public, private, or otherproject-specific locations enabled
+ * for the project.
+ *
+ * For gRPC and client library implementations, the resource name ispassed as the `name` field.
+ * For direct service calls, the resourcename isincorporated into the request path based on the
+ * specific serviceimplementation and version.
+ *
+ * Sample code:
+ *
+ * This method lists locations based on the resource scope provided inthe
+ * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field:
+ * ***Global locations**: If `name` is empty, the method lists thepublic
+ * locations available to all projects. * **Project-specificlocations**: If
+ * `name` follows the format`projects/{project}`, the method lists locations visible to
+ * thatspecific project. This includes public, private, or otherproject-specific locations enabled
+ * for the project.
+ *
+ * For gRPC and client library implementations, the resource name ispassed as the `name` field.
+ * For direct service calls, the resourcename isincorporated into the request path based on the
+ * specific serviceimplementation and version.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GoldengateDeploymentName name =
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]");
+ * oracleDatabaseClient.deleteGoldengateDeploymentAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateDeployment in the following format:
+ * projects/{project}/locations/{location}/goldengateDeployments/{goldengate_deployment}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString();
+ * oracleDatabaseClient.deleteGoldengateDeploymentAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateDeployment in the following format:
+ * projects/{project}/locations/{location}/goldengateDeployments/{goldengate_deployment}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteGoldengateDeploymentRequest request =
+ * DeleteGoldengateDeploymentRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * oracleDatabaseClient.deleteGoldengateDeploymentAsync(request).get();
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Location getLocation(GetLocationRequest request) {
- return getLocationCallable().call(request);
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteGoldengateDeploymentRequest request =
+ * DeleteGoldengateDeploymentRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GoldengateDeploymentName name =
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]");
+ * GoldengateDeployment response =
+ * oracleDatabaseClient.stopGoldengateDeploymentAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Goldengate Deployment in the following format:
+ * projects/{project}/locations/{location}/goldengateDeployments/{goldengate_deployment}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString();
+ * GoldengateDeployment response =
+ * oracleDatabaseClient.stopGoldengateDeploymentAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Goldengate Deployment in the following format:
+ * projects/{project}/locations/{location}/goldengateDeployments/{goldengate_deployment}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * StopGoldengateDeploymentRequest request =
+ * StopGoldengateDeploymentRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString())
+ * .build();
+ * GoldengateDeployment response =
+ * oracleDatabaseClient.stopGoldengateDeploymentAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * StopGoldengateDeploymentRequest request =
+ * StopGoldengateDeploymentRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ StopGoldengateDeploymentRequest, GoldengateDeployment, OperationMetadata>
+ stopGoldengateDeploymentOperationCallable() {
+ return stub.stopGoldengateDeploymentOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Stops a single GoldengateDeployment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * StopGoldengateDeploymentRequest request =
+ * StopGoldengateDeploymentRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GoldengateDeploymentName name =
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]");
+ * GoldengateDeployment response =
+ * oracleDatabaseClient.startGoldengateDeploymentAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Goldengate Deployment in the following format:
+ * projects/{project}/locations/{location}/goldengateDeployments/{goldengate_deployment}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString();
+ * GoldengateDeployment response =
+ * oracleDatabaseClient.startGoldengateDeploymentAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Goldengate Deployment in the following format:
+ * projects/{project}/locations/{location}/goldengateDeployments/{goldengate_deployment}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * StartGoldengateDeploymentRequest request =
+ * StartGoldengateDeploymentRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString())
+ * .build();
+ * GoldengateDeployment response =
+ * oracleDatabaseClient.startGoldengateDeploymentAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * StartGoldengateDeploymentRequest request =
+ * StartGoldengateDeploymentRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ StartGoldengateDeploymentRequest, GoldengateDeployment, OperationMetadata>
+ startGoldengateDeploymentOperationCallable() {
+ return stub.startGoldengateDeploymentOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Starts a single GoldengateDeployment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * StartGoldengateDeploymentRequest request =
+ * StartGoldengateDeploymentRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (GoldengateConnection element :
+ * oracleDatabaseClient.listGoldengateConnections(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for GoldengateConnections in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateConnectionsPagedResponse listGoldengateConnections(
+ LocationName parent) {
+ ListGoldengateConnectionsRequest request =
+ ListGoldengateConnectionsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listGoldengateConnections(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the GoldengateConnections for the given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (GoldengateConnection element :
+ * oracleDatabaseClient.listGoldengateConnections(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for GoldengateConnections in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateConnectionsPagedResponse listGoldengateConnections(String parent) {
+ ListGoldengateConnectionsRequest request =
+ ListGoldengateConnectionsRequest.newBuilder().setParent(parent).build();
+ return listGoldengateConnections(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the GoldengateConnections for the given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateConnectionsRequest request =
+ * ListGoldengateConnectionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (GoldengateConnection element :
+ * oracleDatabaseClient.listGoldengateConnections(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateConnectionsPagedResponse listGoldengateConnections(
+ ListGoldengateConnectionsRequest request) {
+ return listGoldengateConnectionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the GoldengateConnections for the given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateConnectionsRequest request =
+ * ListGoldengateConnectionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListGoldengateConnectionsRequest, ListGoldengateConnectionsPagedResponse>
+ listGoldengateConnectionsPagedCallable() {
+ return stub.listGoldengateConnectionsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the GoldengateConnections for the given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateConnectionsRequest request =
+ * ListGoldengateConnectionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListGoldengateConnectionsResponse response =
+ * oracleDatabaseClient.listGoldengateConnectionsCallable().call(request);
+ * for (GoldengateConnection element : response.getGoldengateConnectionsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GoldengateConnectionName name =
+ * GoldengateConnectionName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION]");
+ * GoldengateConnection response = oracleDatabaseClient.getGoldengateConnection(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateConnection in the following format:
+ * projects/{project}/locations/{location}/goldengateConnections/{goldengate_connection}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateConnection getGoldengateConnection(GoldengateConnectionName name) {
+ GetGoldengateConnectionRequest request =
+ GetGoldengateConnectionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getGoldengateConnection(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateConnection.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * GoldengateConnectionName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION]")
+ * .toString();
+ * GoldengateConnection response = oracleDatabaseClient.getGoldengateConnection(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateConnection in the following format:
+ * projects/{project}/locations/{location}/goldengateConnections/{goldengate_connection}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateConnection getGoldengateConnection(String name) {
+ GetGoldengateConnectionRequest request =
+ GetGoldengateConnectionRequest.newBuilder().setName(name).build();
+ return getGoldengateConnection(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateConnection.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetGoldengateConnectionRequest request =
+ * GetGoldengateConnectionRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION]")
+ * .toString())
+ * .build();
+ * GoldengateConnection response = oracleDatabaseClient.getGoldengateConnection(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateConnection getGoldengateConnection(
+ GetGoldengateConnectionRequest request) {
+ return getGoldengateConnectionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateConnection.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetGoldengateConnectionRequest request =
+ * GetGoldengateConnectionRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * GoldengateConnection goldengateConnection = GoldengateConnection.newBuilder().build();
+ * String goldengateConnectionId = "goldengateConnectionId-1745824755";
+ * GoldengateConnection response =
+ * oracleDatabaseClient
+ * .createGoldengateConnectionAsync(parent, goldengateConnection, goldengateConnectionId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The value for parent of the GoldengateConnection in the following
+ * format: projects/{project}/locations/{location}.
+ * @param goldengateConnection Required. The resource being created.
+ * @param goldengateConnectionId Required. The ID of the GoldengateConnection to create. This
+ * value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+ * characters in length. The value must start with a letter and end with a letter or a number.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * GoldengateConnection goldengateConnection = GoldengateConnection.newBuilder().build();
+ * String goldengateConnectionId = "goldengateConnectionId-1745824755";
+ * GoldengateConnection response =
+ * oracleDatabaseClient
+ * .createGoldengateConnectionAsync(parent, goldengateConnection, goldengateConnectionId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The value for parent of the GoldengateConnection in the following
+ * format: projects/{project}/locations/{location}.
+ * @param goldengateConnection Required. The resource being created.
+ * @param goldengateConnectionId Required. The ID of the GoldengateConnection to create. This
+ * value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+ * characters in length. The value must start with a letter and end with a letter or a number.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateGoldengateConnectionRequest request =
+ * CreateGoldengateConnectionRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setGoldengateConnectionId("goldengateConnectionId-1745824755")
+ * .setGoldengateConnection(GoldengateConnection.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * GoldengateConnection response =
+ * oracleDatabaseClient.createGoldengateConnectionAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateGoldengateConnectionRequest request =
+ * CreateGoldengateConnectionRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setGoldengateConnectionId("goldengateConnectionId-1745824755")
+ * .setGoldengateConnection(GoldengateConnection.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ CreateGoldengateConnectionRequest, GoldengateConnection, OperationMetadata>
+ createGoldengateConnectionOperationCallable() {
+ return stub.createGoldengateConnectionOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new GoldengateConnection in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateGoldengateConnectionRequest request =
+ * CreateGoldengateConnectionRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setGoldengateConnectionId("goldengateConnectionId-1745824755")
+ * .setGoldengateConnection(GoldengateConnection.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GoldengateConnectionName name =
+ * GoldengateConnectionName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION]");
+ * oracleDatabaseClient.deleteGoldengateConnectionAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateConnection in the following format:
+ * projects/{project}/locations/{location}/goldengateConnections/{goldengate_connection}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * GoldengateConnectionName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION]")
+ * .toString();
+ * oracleDatabaseClient.deleteGoldengateConnectionAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateConnection in the following format:
+ * projects/{project}/locations/{location}/goldengateConnections/{goldengate_connection}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteGoldengateConnectionRequest request =
+ * DeleteGoldengateConnectionRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * oracleDatabaseClient.deleteGoldengateConnectionAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteGoldengateConnectionRequest request =
+ * DeleteGoldengateConnectionRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteGoldengateConnectionRequest request =
+ * DeleteGoldengateConnectionRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GoldengateDeploymentVersionName name =
+ * GoldengateDeploymentVersionName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]");
+ * GoldengateDeploymentVersion response =
+ * oracleDatabaseClient.getGoldengateDeploymentVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateDeploymentVersion to retrieve. Format:
+ * projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateDeploymentVersion getGoldengateDeploymentVersion(
+ GoldengateDeploymentVersionName name) {
+ GetGoldengateDeploymentVersionRequest request =
+ GetGoldengateDeploymentVersionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getGoldengateDeploymentVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateDeploymentVersion.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * GoldengateDeploymentVersionName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]")
+ * .toString();
+ * GoldengateDeploymentVersion response =
+ * oracleDatabaseClient.getGoldengateDeploymentVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateDeploymentVersion to retrieve. Format:
+ * projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateDeploymentVersion getGoldengateDeploymentVersion(String name) {
+ GetGoldengateDeploymentVersionRequest request =
+ GetGoldengateDeploymentVersionRequest.newBuilder().setName(name).build();
+ return getGoldengateDeploymentVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateDeploymentVersion.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetGoldengateDeploymentVersionRequest request =
+ * GetGoldengateDeploymentVersionRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentVersionName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]")
+ * .toString())
+ * .build();
+ * GoldengateDeploymentVersion response =
+ * oracleDatabaseClient.getGoldengateDeploymentVersion(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateDeploymentVersion getGoldengateDeploymentVersion(
+ GetGoldengateDeploymentVersionRequest request) {
+ return getGoldengateDeploymentVersionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateDeploymentVersion.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetGoldengateDeploymentVersionRequest request =
+ * GetGoldengateDeploymentVersionRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentVersionName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (GoldengateDeploymentVersion element :
+ * oracleDatabaseClient.listGoldengateDeploymentVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListGoldengateDeploymentVersionsRequest Format:
+ * projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateDeploymentVersionsPagedResponse listGoldengateDeploymentVersions(
+ LocationName parent) {
+ ListGoldengateDeploymentVersionsRequest request =
+ ListGoldengateDeploymentVersionsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listGoldengateDeploymentVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateDeploymentVersions in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (GoldengateDeploymentVersion element :
+ * oracleDatabaseClient.listGoldengateDeploymentVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListGoldengateDeploymentVersionsRequest Format:
+ * projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateDeploymentVersionsPagedResponse listGoldengateDeploymentVersions(
+ String parent) {
+ ListGoldengateDeploymentVersionsRequest request =
+ ListGoldengateDeploymentVersionsRequest.newBuilder().setParent(parent).build();
+ return listGoldengateDeploymentVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateDeploymentVersions in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateDeploymentVersionsRequest request =
+ * ListGoldengateDeploymentVersionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (GoldengateDeploymentVersion element :
+ * oracleDatabaseClient.listGoldengateDeploymentVersions(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateDeploymentVersionsPagedResponse listGoldengateDeploymentVersions(
+ ListGoldengateDeploymentVersionsRequest request) {
+ return listGoldengateDeploymentVersionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateDeploymentVersions in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateDeploymentVersionsRequest request =
+ * ListGoldengateDeploymentVersionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsPagedResponse>
+ listGoldengateDeploymentVersionsPagedCallable() {
+ return stub.listGoldengateDeploymentVersionsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateDeploymentVersions in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateDeploymentVersionsRequest request =
+ * ListGoldengateDeploymentVersionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * while (true) {
+ * ListGoldengateDeploymentVersionsResponse response =
+ * oracleDatabaseClient.listGoldengateDeploymentVersionsCallable().call(request);
+ * for (GoldengateDeploymentVersion element : response.getGoldengateDeploymentVersionsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse>
+ listGoldengateDeploymentVersionsCallable() {
+ return stub.listGoldengateDeploymentVersionsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldenGateDeploymentType.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GoldengateDeploymentTypeName name =
+ * GoldengateDeploymentTypeName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]");
+ * GoldengateDeploymentType response = oracleDatabaseClient.getGoldengateDeploymentType(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateDeploymentType to retrieve. Format:
+ * projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateDeploymentType getGoldengateDeploymentType(
+ GoldengateDeploymentTypeName name) {
+ GetGoldengateDeploymentTypeRequest request =
+ GetGoldengateDeploymentTypeRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getGoldengateDeploymentType(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldenGateDeploymentType.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * GoldengateDeploymentTypeName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]")
+ * .toString();
+ * GoldengateDeploymentType response = oracleDatabaseClient.getGoldengateDeploymentType(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateDeploymentType to retrieve. Format:
+ * projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateDeploymentType getGoldengateDeploymentType(String name) {
+ GetGoldengateDeploymentTypeRequest request =
+ GetGoldengateDeploymentTypeRequest.newBuilder().setName(name).build();
+ return getGoldengateDeploymentType(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldenGateDeploymentType.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetGoldengateDeploymentTypeRequest request =
+ * GetGoldengateDeploymentTypeRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentTypeName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]")
+ * .toString())
+ * .build();
+ * GoldengateDeploymentType response = oracleDatabaseClient.getGoldengateDeploymentType(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateDeploymentType getGoldengateDeploymentType(
+ GetGoldengateDeploymentTypeRequest request) {
+ return getGoldengateDeploymentTypeCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldenGateDeploymentType.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetGoldengateDeploymentTypeRequest request =
+ * GetGoldengateDeploymentTypeRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentTypeName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (GoldengateDeploymentType element :
+ * oracleDatabaseClient.listGoldengateDeploymentTypes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource. Format: projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateDeploymentTypesPagedResponse listGoldengateDeploymentTypes(
+ LocationName parent) {
+ ListGoldengateDeploymentTypesRequest request =
+ ListGoldengateDeploymentTypesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listGoldengateDeploymentTypes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldenGateDeploymentTypes in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (GoldengateDeploymentType element :
+ * oracleDatabaseClient.listGoldengateDeploymentTypes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource. Format: projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateDeploymentTypesPagedResponse listGoldengateDeploymentTypes(
+ String parent) {
+ ListGoldengateDeploymentTypesRequest request =
+ ListGoldengateDeploymentTypesRequest.newBuilder().setParent(parent).build();
+ return listGoldengateDeploymentTypes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldenGateDeploymentTypes in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateDeploymentTypesRequest request =
+ * ListGoldengateDeploymentTypesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (GoldengateDeploymentType element :
+ * oracleDatabaseClient.listGoldengateDeploymentTypes(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateDeploymentTypesPagedResponse listGoldengateDeploymentTypes(
+ ListGoldengateDeploymentTypesRequest request) {
+ return listGoldengateDeploymentTypesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldenGateDeploymentTypes in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateDeploymentTypesRequest request =
+ * ListGoldengateDeploymentTypesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesPagedResponse>
+ listGoldengateDeploymentTypesPagedCallable() {
+ return stub.listGoldengateDeploymentTypesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldenGateDeploymentTypes in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateDeploymentTypesRequest request =
+ * ListGoldengateDeploymentTypesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListGoldengateDeploymentTypesResponse response =
+ * oracleDatabaseClient.listGoldengateDeploymentTypesCallable().call(request);
+ * for (GoldengateDeploymentType element : response.getGoldengateDeploymentTypesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesResponse>
+ listGoldengateDeploymentTypesCallable() {
+ return stub.listGoldengateDeploymentTypesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateDeploymentEnvironment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GoldengateDeploymentEnvironmentName name =
+ * GoldengateDeploymentEnvironmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]");
+ * GoldengateDeploymentEnvironment response =
+ * oracleDatabaseClient.getGoldengateDeploymentEnvironment(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource with the format:
+ * projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateDeploymentEnvironment getGoldengateDeploymentEnvironment(
+ GoldengateDeploymentEnvironmentName name) {
+ GetGoldengateDeploymentEnvironmentRequest request =
+ GetGoldengateDeploymentEnvironmentRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getGoldengateDeploymentEnvironment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateDeploymentEnvironment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * GoldengateDeploymentEnvironmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]")
+ * .toString();
+ * GoldengateDeploymentEnvironment response =
+ * oracleDatabaseClient.getGoldengateDeploymentEnvironment(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource with the format:
+ * projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateDeploymentEnvironment getGoldengateDeploymentEnvironment(String name) {
+ GetGoldengateDeploymentEnvironmentRequest request =
+ GetGoldengateDeploymentEnvironmentRequest.newBuilder().setName(name).build();
+ return getGoldengateDeploymentEnvironment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateDeploymentEnvironment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetGoldengateDeploymentEnvironmentRequest request =
+ * GetGoldengateDeploymentEnvironmentRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentEnvironmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]")
+ * .toString())
+ * .build();
+ * GoldengateDeploymentEnvironment response =
+ * oracleDatabaseClient.getGoldengateDeploymentEnvironment(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateDeploymentEnvironment getGoldengateDeploymentEnvironment(
+ GetGoldengateDeploymentEnvironmentRequest request) {
+ return getGoldengateDeploymentEnvironmentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateDeploymentEnvironment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetGoldengateDeploymentEnvironmentRequest request =
+ * GetGoldengateDeploymentEnvironmentRequest.newBuilder()
+ * .setName(
+ * GoldengateDeploymentEnvironmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ GetGoldengateDeploymentEnvironmentRequest, GoldengateDeploymentEnvironment>
+ getGoldengateDeploymentEnvironmentCallable() {
+ return stub.getGoldengateDeploymentEnvironmentCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateDeploymentEnvironments in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (GoldengateDeploymentEnvironment element :
+ * oracleDatabaseClient.listGoldengateDeploymentEnvironments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of
+ * GoldengateDeploymentEnvironments. Format: projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateDeploymentEnvironmentsPagedResponse
+ listGoldengateDeploymentEnvironments(LocationName parent) {
+ ListGoldengateDeploymentEnvironmentsRequest request =
+ ListGoldengateDeploymentEnvironmentsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listGoldengateDeploymentEnvironments(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateDeploymentEnvironments in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (GoldengateDeploymentEnvironment element :
+ * oracleDatabaseClient.listGoldengateDeploymentEnvironments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of
+ * GoldengateDeploymentEnvironments. Format: projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateDeploymentEnvironmentsPagedResponse
+ listGoldengateDeploymentEnvironments(String parent) {
+ ListGoldengateDeploymentEnvironmentsRequest request =
+ ListGoldengateDeploymentEnvironmentsRequest.newBuilder().setParent(parent).build();
+ return listGoldengateDeploymentEnvironments(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateDeploymentEnvironments in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateDeploymentEnvironmentsRequest request =
+ * ListGoldengateDeploymentEnvironmentsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (GoldengateDeploymentEnvironment element :
+ * oracleDatabaseClient.listGoldengateDeploymentEnvironments(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateDeploymentEnvironmentsPagedResponse
+ listGoldengateDeploymentEnvironments(ListGoldengateDeploymentEnvironmentsRequest request) {
+ return listGoldengateDeploymentEnvironmentsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateDeploymentEnvironments in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateDeploymentEnvironmentsRequest request =
+ * ListGoldengateDeploymentEnvironmentsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListGoldengateDeploymentEnvironmentsRequest,
+ ListGoldengateDeploymentEnvironmentsPagedResponse>
+ listGoldengateDeploymentEnvironmentsPagedCallable() {
+ return stub.listGoldengateDeploymentEnvironmentsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateDeploymentEnvironments in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateDeploymentEnvironmentsRequest request =
+ * ListGoldengateDeploymentEnvironmentsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListGoldengateDeploymentEnvironmentsResponse response =
+ * oracleDatabaseClient.listGoldengateDeploymentEnvironmentsCallable().call(request);
+ * for (GoldengateDeploymentEnvironment element :
+ * response.getGoldengateDeploymentEnvironmentsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse>
+ listGoldengateDeploymentEnvironmentsCallable() {
+ return stub.listGoldengateDeploymentEnvironmentsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateConnectionType.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GoldengateConnectionTypeName name =
+ * GoldengateConnectionTypeName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]");
+ * GoldengateConnectionType response = oracleDatabaseClient.getGoldengateConnectionType(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource in the format:
+ * projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateConnectionType getGoldengateConnectionType(
+ GoldengateConnectionTypeName name) {
+ GetGoldengateConnectionTypeRequest request =
+ GetGoldengateConnectionTypeRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getGoldengateConnectionType(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateConnectionType.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * GoldengateConnectionTypeName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]")
+ * .toString();
+ * GoldengateConnectionType response = oracleDatabaseClient.getGoldengateConnectionType(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource in the format:
+ * projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateConnectionType getGoldengateConnectionType(String name) {
+ GetGoldengateConnectionTypeRequest request =
+ GetGoldengateConnectionTypeRequest.newBuilder().setName(name).build();
+ return getGoldengateConnectionType(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateConnectionType.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetGoldengateConnectionTypeRequest request =
+ * GetGoldengateConnectionTypeRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionTypeName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]")
+ * .toString())
+ * .build();
+ * GoldengateConnectionType response = oracleDatabaseClient.getGoldengateConnectionType(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateConnectionType getGoldengateConnectionType(
+ GetGoldengateConnectionTypeRequest request) {
+ return getGoldengateConnectionTypeCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateConnectionType.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetGoldengateConnectionTypeRequest request =
+ * GetGoldengateConnectionTypeRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionTypeName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (GoldengateConnectionType element :
+ * oracleDatabaseClient.listGoldengateConnectionTypes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListGoldengateConnectionTypesRequest Format:
+ * projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateConnectionTypesPagedResponse listGoldengateConnectionTypes(
+ LocationName parent) {
+ ListGoldengateConnectionTypesRequest request =
+ ListGoldengateConnectionTypesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listGoldengateConnectionTypes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateConnectionTypes in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (GoldengateConnectionType element :
+ * oracleDatabaseClient.listGoldengateConnectionTypes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListGoldengateConnectionTypesRequest Format:
+ * projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateConnectionTypesPagedResponse listGoldengateConnectionTypes(
+ String parent) {
+ ListGoldengateConnectionTypesRequest request =
+ ListGoldengateConnectionTypesRequest.newBuilder().setParent(parent).build();
+ return listGoldengateConnectionTypes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateConnectionTypes in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateConnectionTypesRequest request =
+ * ListGoldengateConnectionTypesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (GoldengateConnectionType element :
+ * oracleDatabaseClient.listGoldengateConnectionTypes(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateConnectionTypesPagedResponse listGoldengateConnectionTypes(
+ ListGoldengateConnectionTypesRequest request) {
+ return listGoldengateConnectionTypesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateConnectionTypes in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateConnectionTypesRequest request =
+ * ListGoldengateConnectionTypesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListGoldengateConnectionTypesRequest, ListGoldengateConnectionTypesPagedResponse>
+ listGoldengateConnectionTypesPagedCallable() {
+ return stub.listGoldengateConnectionTypesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateConnectionTypes in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateConnectionTypesRequest request =
+ * ListGoldengateConnectionTypesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * while (true) {
+ * ListGoldengateConnectionTypesResponse response =
+ * oracleDatabaseClient.listGoldengateConnectionTypesCallable().call(request);
+ * for (GoldengateConnectionType element : response.getGoldengateConnectionTypesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListGoldengateConnectionTypesRequest, ListGoldengateConnectionTypesResponse>
+ listGoldengateConnectionTypesCallable() {
+ return stub.listGoldengateConnectionTypesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List DbVersions for the given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (DbVersion element : oracleDatabaseClient.listDbVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for the DbVersion resource with the format:
+ * projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDbVersionsPagedResponse listDbVersions(LocationName parent) {
+ ListDbVersionsRequest request =
+ ListDbVersionsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listDbVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List DbVersions for the given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (DbVersion element : oracleDatabaseClient.listDbVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for the DbVersion resource with the format:
+ * projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDbVersionsPagedResponse listDbVersions(String parent) {
+ ListDbVersionsRequest request = ListDbVersionsRequest.newBuilder().setParent(parent).build();
+ return listDbVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List DbVersions for the given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDbVersionsRequest request =
+ * ListDbVersionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (DbVersion element : oracleDatabaseClient.listDbVersions(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDbVersionsPagedResponse listDbVersions(ListDbVersionsRequest request) {
+ return listDbVersionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List DbVersions for the given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDbVersionsRequest request =
+ * ListDbVersionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDbVersionsRequest request =
+ * ListDbVersionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * while (true) {
+ * ListDbVersionsResponse response =
+ * oracleDatabaseClient.listDbVersionsCallable().call(request);
+ * for (DbVersion element : response.getDbVersionsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (DatabaseCharacterSet element :
+ * oracleDatabaseClient.listDatabaseCharacterSets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for DatabaseCharacterSets in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(
+ LocationName parent) {
+ ListDatabaseCharacterSetsRequest request =
+ ListDatabaseCharacterSetsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listDatabaseCharacterSets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List DatabaseCharacterSets for the given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (DatabaseCharacterSet element :
+ * oracleDatabaseClient.listDatabaseCharacterSets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for DatabaseCharacterSets in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(String parent) {
+ ListDatabaseCharacterSetsRequest request =
+ ListDatabaseCharacterSetsRequest.newBuilder().setParent(parent).build();
+ return listDatabaseCharacterSets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List DatabaseCharacterSets for the given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDatabaseCharacterSetsRequest request =
+ * ListDatabaseCharacterSetsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (DatabaseCharacterSet element :
+ * oracleDatabaseClient.listDatabaseCharacterSets(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(
+ ListDatabaseCharacterSetsRequest request) {
+ return listDatabaseCharacterSetsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List DatabaseCharacterSets for the given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDatabaseCharacterSetsRequest request =
+ * ListDatabaseCharacterSetsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListDatabaseCharacterSetsRequest, ListDatabaseCharacterSetsPagedResponse>
+ listDatabaseCharacterSetsPagedCallable() {
+ return stub.listDatabaseCharacterSetsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List DatabaseCharacterSets for the given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDatabaseCharacterSetsRequest request =
+ * ListDatabaseCharacterSetsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * while (true) {
+ * ListDatabaseCharacterSetsResponse response =
+ * oracleDatabaseClient.listDatabaseCharacterSetsCallable().call(request);
+ * for (DatabaseCharacterSet element : response.getDatabaseCharacterSetsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (GoldengateConnectionAssignment element :
+ * oracleDatabaseClient.listGoldengateConnectionAssignments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for the GoldengateConnectionAssignments. Format:
+ * projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateConnectionAssignmentsPagedResponse listGoldengateConnectionAssignments(
+ LocationName parent) {
+ ListGoldengateConnectionAssignmentsRequest request =
+ ListGoldengateConnectionAssignmentsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listGoldengateConnectionAssignments(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateConnectionAssignments in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (GoldengateConnectionAssignment element :
+ * oracleDatabaseClient.listGoldengateConnectionAssignments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for the GoldengateConnectionAssignments. Format:
+ * projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateConnectionAssignmentsPagedResponse listGoldengateConnectionAssignments(
+ String parent) {
+ ListGoldengateConnectionAssignmentsRequest request =
+ ListGoldengateConnectionAssignmentsRequest.newBuilder().setParent(parent).build();
+ return listGoldengateConnectionAssignments(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateConnectionAssignments in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateConnectionAssignmentsRequest request =
+ * ListGoldengateConnectionAssignmentsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (GoldengateConnectionAssignment element :
+ * oracleDatabaseClient.listGoldengateConnectionAssignments(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGoldengateConnectionAssignmentsPagedResponse listGoldengateConnectionAssignments(
+ ListGoldengateConnectionAssignmentsRequest request) {
+ return listGoldengateConnectionAssignmentsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateConnectionAssignments in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateConnectionAssignmentsRequest request =
+ * ListGoldengateConnectionAssignmentsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListGoldengateConnectionAssignmentsRequest,
+ ListGoldengateConnectionAssignmentsPagedResponse>
+ listGoldengateConnectionAssignmentsPagedCallable() {
+ return stub.listGoldengateConnectionAssignmentsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists GoldengateConnectionAssignments in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGoldengateConnectionAssignmentsRequest request =
+ * ListGoldengateConnectionAssignmentsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListGoldengateConnectionAssignmentsResponse response =
+ * oracleDatabaseClient.listGoldengateConnectionAssignmentsCallable().call(request);
+ * for (GoldengateConnectionAssignment element :
+ * response.getGoldengateConnectionAssignmentsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListGoldengateConnectionAssignmentsRequest, ListGoldengateConnectionAssignmentsResponse>
+ listGoldengateConnectionAssignmentsCallable() {
+ return stub.listGoldengateConnectionAssignmentsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateConnectionAssignment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GoldengateConnectionAssignmentName name =
+ * GoldengateConnectionAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_ASSIGNMENT]");
+ * GoldengateConnectionAssignment response =
+ * oracleDatabaseClient.getGoldengateConnectionAssignment(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateConnectionAssignment to retrieve. Format:
+ * projects/{project}/locations/{location}/goldengateConnectionAssignments/{goldengate_connection_assignment}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateConnectionAssignment getGoldengateConnectionAssignment(
+ GoldengateConnectionAssignmentName name) {
+ GetGoldengateConnectionAssignmentRequest request =
+ GetGoldengateConnectionAssignmentRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getGoldengateConnectionAssignment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateConnectionAssignment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * GoldengateConnectionAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_ASSIGNMENT]")
+ * .toString();
+ * GoldengateConnectionAssignment response =
+ * oracleDatabaseClient.getGoldengateConnectionAssignment(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateConnectionAssignment to retrieve. Format:
+ * projects/{project}/locations/{location}/goldengateConnectionAssignments/{goldengate_connection_assignment}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateConnectionAssignment getGoldengateConnectionAssignment(String name) {
+ GetGoldengateConnectionAssignmentRequest request =
+ GetGoldengateConnectionAssignmentRequest.newBuilder().setName(name).build();
+ return getGoldengateConnectionAssignment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateConnectionAssignment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetGoldengateConnectionAssignmentRequest request =
+ * GetGoldengateConnectionAssignmentRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_ASSIGNMENT]")
+ * .toString())
+ * .build();
+ * GoldengateConnectionAssignment response =
+ * oracleDatabaseClient.getGoldengateConnectionAssignment(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoldengateConnectionAssignment getGoldengateConnectionAssignment(
+ GetGoldengateConnectionAssignmentRequest request) {
+ return getGoldengateConnectionAssignmentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single GoldengateConnectionAssignment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetGoldengateConnectionAssignmentRequest request =
+ * GetGoldengateConnectionAssignmentRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_ASSIGNMENT]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ GetGoldengateConnectionAssignmentRequest, GoldengateConnectionAssignment>
+ getGoldengateConnectionAssignmentCallable() {
+ return stub.getGoldengateConnectionAssignmentCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new GoldengateConnectionAssignment in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * GoldengateConnectionAssignment goldengateConnectionAssignment =
+ * GoldengateConnectionAssignment.newBuilder().build();
+ * String goldengateConnectionAssignmentId = "goldengateConnectionAssignmentId-1362669254";
+ * GoldengateConnectionAssignment response =
+ * oracleDatabaseClient
+ * .createGoldengateConnectionAssignmentAsync(
+ * parent, goldengateConnectionAssignment, goldengateConnectionAssignmentId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this GoldengateConnectionAssignment will be
+ * created. Format: projects/{project}/locations/{location}
+ * @param goldengateConnectionAssignment Required. The GoldengateConnectionAssignment to create.
+ * @param goldengateConnectionAssignmentId Required. The ID of the GoldengateConnectionAssignment
+ * to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * GoldengateConnectionAssignment goldengateConnectionAssignment =
+ * GoldengateConnectionAssignment.newBuilder().build();
+ * String goldengateConnectionAssignmentId = "goldengateConnectionAssignmentId-1362669254";
+ * GoldengateConnectionAssignment response =
+ * oracleDatabaseClient
+ * .createGoldengateConnectionAssignmentAsync(
+ * parent, goldengateConnectionAssignment, goldengateConnectionAssignmentId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this GoldengateConnectionAssignment will be
+ * created. Format: projects/{project}/locations/{location}
+ * @param goldengateConnectionAssignment Required. The GoldengateConnectionAssignment to create.
+ * @param goldengateConnectionAssignmentId Required. The ID of the GoldengateConnectionAssignment
+ * to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateGoldengateConnectionAssignmentRequest request =
+ * CreateGoldengateConnectionAssignmentRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setGoldengateConnectionAssignmentId("goldengateConnectionAssignmentId-1362669254")
+ * .setGoldengateConnectionAssignment(
+ * GoldengateConnectionAssignment.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * GoldengateConnectionAssignment response =
+ * oracleDatabaseClient.createGoldengateConnectionAssignmentAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateGoldengateConnectionAssignmentRequest request =
+ * CreateGoldengateConnectionAssignmentRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setGoldengateConnectionAssignmentId("goldengateConnectionAssignmentId-1362669254")
+ * .setGoldengateConnectionAssignment(
+ * GoldengateConnectionAssignment.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ CreateGoldengateConnectionAssignmentRequest,
+ GoldengateConnectionAssignment,
+ OperationMetadata>
+ createGoldengateConnectionAssignmentOperationCallable() {
+ return stub.createGoldengateConnectionAssignmentOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new GoldengateConnectionAssignment in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateGoldengateConnectionAssignmentRequest request =
+ * CreateGoldengateConnectionAssignmentRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setGoldengateConnectionAssignmentId("goldengateConnectionAssignmentId-1362669254")
+ * .setGoldengateConnectionAssignment(
+ * GoldengateConnectionAssignment.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GoldengateConnectionAssignmentName name =
+ * GoldengateConnectionAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_ASSIGNMENT]");
+ * oracleDatabaseClient.deleteGoldengateConnectionAssignmentAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateConnectionAssignment to delete. Format:
+ * projects/{project}/locations/{location}/goldengateConnectionAssignments/{goldengate_connection_assignment}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * GoldengateConnectionAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_ASSIGNMENT]")
+ * .toString();
+ * oracleDatabaseClient.deleteGoldengateConnectionAssignmentAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the GoldengateConnectionAssignment to delete. Format:
+ * projects/{project}/locations/{location}/goldengateConnectionAssignments/{goldengate_connection_assignment}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteGoldengateConnectionAssignmentRequest request =
+ * DeleteGoldengateConnectionAssignmentRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_ASSIGNMENT]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * oracleDatabaseClient.deleteGoldengateConnectionAssignmentAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteGoldengateConnectionAssignmentRequest request =
+ * DeleteGoldengateConnectionAssignmentRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_ASSIGNMENT]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ DeleteGoldengateConnectionAssignmentRequest, Empty, OperationMetadata>
+ deleteGoldengateConnectionAssignmentOperationCallable() {
+ return stub.deleteGoldengateConnectionAssignmentOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single GoldengateConnectionAssignment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteGoldengateConnectionAssignmentRequest request =
+ * DeleteGoldengateConnectionAssignmentRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_ASSIGNMENT]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GoldengateConnectionAssignmentName name =
+ * GoldengateConnectionAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_ASSIGNMENT]");
+ * TestGoldengateConnectionAssignmentResponse response =
+ * oracleDatabaseClient.testGoldengateConnectionAssignment(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the connection assignment for which to test connection.
+ * projects/{project}/locations/{region}/goldengateConnectionAssignments/{goldengate_connection_assignment}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestGoldengateConnectionAssignmentResponse testGoldengateConnectionAssignment(
+ GoldengateConnectionAssignmentName name) {
+ TestGoldengateConnectionAssignmentRequest request =
+ TestGoldengateConnectionAssignmentRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return testGoldengateConnectionAssignment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Tests a single GoldengateConnectionAssignment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * GoldengateConnectionAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_ASSIGNMENT]")
+ * .toString();
+ * TestGoldengateConnectionAssignmentResponse response =
+ * oracleDatabaseClient.testGoldengateConnectionAssignment(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the connection assignment for which to test connection.
+ * projects/{project}/locations/{region}/goldengateConnectionAssignments/{goldengate_connection_assignment}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestGoldengateConnectionAssignmentResponse testGoldengateConnectionAssignment(
+ String name) {
+ TestGoldengateConnectionAssignmentRequest request =
+ TestGoldengateConnectionAssignmentRequest.newBuilder().setName(name).build();
+ return testGoldengateConnectionAssignment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Tests a single GoldengateConnectionAssignment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * TestGoldengateConnectionAssignmentRequest request =
+ * TestGoldengateConnectionAssignmentRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_ASSIGNMENT]")
+ * .toString())
+ * .build();
+ * TestGoldengateConnectionAssignmentResponse response =
+ * oracleDatabaseClient.testGoldengateConnectionAssignment(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestGoldengateConnectionAssignmentResponse testGoldengateConnectionAssignment(
+ TestGoldengateConnectionAssignmentRequest request) {
+ return testGoldengateConnectionAssignmentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Tests a single GoldengateConnectionAssignment.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * TestGoldengateConnectionAssignmentRequest request =
+ * TestGoldengateConnectionAssignmentRequest.newBuilder()
+ * .setName(
+ * GoldengateConnectionAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_ASSIGNMENT]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ TestGoldengateConnectionAssignmentRequest, TestGoldengateConnectionAssignmentResponse>
+ testGoldengateConnectionAssignmentCallable() {
+ return stub.testGoldengateConnectionAssignmentCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : oracleDatabaseClient.listLocations(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
+ return listLocationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response = oracleDatabaseClient.listLocationsCallable().call(request);
+ * for (Location element : response.getLocationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = oracleDatabaseClient.getLocation(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Location getLocation(GetLocationRequest request) {
+ return getLocationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture
+ */
+ public final UnaryCallable