From f8371bd14a15ba49e499f192900fdca5b8986063 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 14 Aug 2026 04:56:02 +0000 Subject: [PATCH 1/2] chore: update googleapis commitish to 37c83e2 --- librarian.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librarian.yaml b/librarian.yaml index 3706fa5b0a52..1a16a6fbf6e4 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.36.0 repo: googleapis/google-cloud-java sources: googleapis: - commit: 240b58fe7058f6fff77cba02f51d600170b6c421 - sha256: ca03f2c93b8f1e92fd75c87b2568992c96a2ecc37fde750c5bf83129fa17b407 + commit: 37c83e244b70c6bfa1a527be976950226b2ee5b2 + sha256: ec976458dd681ba43f982b8939bf04dadd411ec41df10e7408f4fa92af9fb3fb showcase: commit: f97fd357084b9e85ef5dd02ba084551c3f85191c sha256: b5d293831e6895ca139d9a0a92eec75a82e73398978b140af8f7c5e91c7c969a From 8a9028214b4609c638b3054dc43beed12f26289d Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 14 Aug 2026 04:56:03 +0000 Subject: [PATCH 2/2] chore: generate libraries --- .../reflect-config.json | 36 + .../AlloyDBAdminClientHttpJsonTest.java | 17 + .../v1beta/AlloyDBAdminClientTest.java | 15 + .../cloud/alloydb/v1beta/ConnectionInfo.java | 222 +- .../v1beta/ConnectionInfoOrBuilder.java | 36 +- .../google/cloud/alloydb/v1beta/Database.java | 8 +- .../alloydb/v1beta/DatabaseOrBuilder.java | 2 +- .../google/cloud/alloydb/v1beta/Instance.java | 2845 +++++++++++-- .../alloydb/v1beta/InstanceOrBuilder.java | 50 +- .../cloud/alloydb/v1beta/ResourcesProto.java | 171 +- .../cloud/alloydb/v1beta/resources.proto | 71 +- .../cloud/auditmanager/v1/AuditReport.java | 14 +- .../auditmanager/v1/AuditReportOrBuilder.java | 4 +- .../v1/GenerateAuditReportRequest.java | 60 +- .../GenerateAuditReportRequestOrBuilder.java | 15 +- .../v1/ResourceEnrollmentStatus.java | 8 +- .../v1/ResourceEnrollmentStatusOrBuilder.java | 2 +- .../cloud/auditmanager/v1/auditmanager.proto | 15 +- .../storage/v1/BigQueryWriteClient.java | 1 + .../reflect-config.json | 54 + .../v1/BaseBigQueryReadClientTest.java | 1 + .../storage/v1/BigQueryWriteClientTest.java | 2 + .../storage/v1/AppendRowsRequest.java | 312 +- .../v1/AppendRowsRequestOrBuilder.java | 43 + .../bigquery/storage/v1/ClientStats.java | 3632 +++++++++++++++++ .../storage/v1/ClientStatsOrBuilder.java | 114 + .../bigquery/storage/v1/ReadRowsRequest.java | 462 +++ .../storage/v1/ReadRowsRequestOrBuilder.java | 53 + .../bigquery/storage/v1/ReadRowsResponse.java | 165 + .../storage/v1/ReadRowsResponseOrBuilder.java | 36 + .../bigquery/storage/v1/StorageProto.java | 470 ++- .../cloud/bigquery/storage/v1/arrow.proto | 2 +- .../cloud/bigquery/storage/v1/avro.proto | 2 +- .../cloud/bigquery/storage/v1/protobuf.proto | 2 +- .../cloud/bigquery/storage/v1/storage.proto | 91 +- .../cloud/bigquery/storage/v1/stream.proto | 2 +- .../cloud/bigquery/storage/v1/table.proto | 2 +- .../com/google/chat/v1/ChatServiceClient.java | 8 + .../chat/v1/stub/ChatServiceStubSettings.java | 3 + .../chat/v1/stub/HttpJsonChatServiceStub.java | 4 + .../com.google.chat.v1/reflect-config.json | 9 + .../v1/ChatServiceClientHttpJsonTest.java | 7 + .../google/chat/v1/ChatServiceClientTest.java | 5 + .../java/com/google/chat/v1/CardWithId.java | 24 +- .../com/google/chat/v1/ChatServiceProto.java | 101 +- .../google/chat/v1/CreateMessageRequest.java | 14 +- .../v1/CreateMessageRequestOrBuilder.java | 4 +- .../com/google/chat/v1/GetMessageRequest.java | 174 + .../chat/v1/GetMessageRequestOrBuilder.java | 30 + .../google/chat/v1/ListMessagesRequest.java | 174 + .../chat/v1/ListMessagesRequestOrBuilder.java | 30 + .../java/com/google/chat/v1/MarkupSyntax.java | 208 + .../com/google/chat/v1/MarkupSyntaxProto.java | 68 + .../main/java/com/google/chat/v1/Message.java | 383 +- .../com/google/chat/v1/MessageOrBuilder.java | 77 +- .../java/com/google/chat/v1/MessageProto.java | 84 +- .../google/chat/v1/SearchMessagesRequest.java | 182 +- .../v1/SearchMessagesRequestOrBuilder.java | 30 + .../google/chat/v1/SearchSpacesRequest.java | 7 + .../chat/v1/SearchSpacesRequestOrBuilder.java | 2 + .../proto/google/chat/v1/chat_service.proto | 3 + .../proto/google/chat/v1/markup_syntax.proto | 47 + .../main/proto/google/chat/v1/message.proto | 38 +- .../src/main/proto/google/chat/v1/space.proto | 1 + .../getmessage/AsyncGetMessage.java | 2 + .../getmessage/SyncGetMessage.java | 2 + .../listmessages/AsyncListMessages.java | 2 + .../listmessages/AsyncListMessagesPaged.java | 2 + .../listmessages/SyncListMessages.java | 2 + .../searchmessages/AsyncSearchMessages.java | 2 + .../AsyncSearchMessagesPaged.java | 2 + .../searchmessages/SyncSearchMessages.java | 2 + .../google/cloudbuild/v1/BuildOptions.java | 14 +- .../cloudbuild/v1/BuildOptionsOrBuilder.java | 4 +- .../com/google/cloudbuild/v1/Cloudbuild.java | 464 ++- .../com/google/cloudbuild/v1/Dependency.java | 125 + .../cloudbuild/v1/GitHubEventsConfig.java | 8 +- .../v1/GitHubEventsConfigOrBuilder.java | 2 +- .../devtools/cloudbuild/v1/cloudbuild.proto | 6 + .../support/v2/SupportEventSubscription.java | 26 + .../v2/support_event_subscription.proto | 13 + .../v2beta/SupportEventSubscription.java | 26 + .../v2beta/support_event_subscription.proto | 13 + 83 files changed, 10509 insertions(+), 962 deletions(-) create mode 100644 java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStats.java create mode 100644 java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStatsOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntax.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntaxProto.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/markup_syntax.proto diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json index a3979ea7f7db..cf325d99a88d 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json +++ b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json @@ -1925,6 +1925,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$PscAutoDnsState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1beta.Instance$PscInstanceConfig", "queryAllDeclaredConstructors": true, @@ -1943,6 +1952,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$PscInstanceConfig$PscAutoConnectionPolicyState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$PscInstanceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$PscInstanceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1beta.Instance$PscInterfaceConfig", "queryAllDeclaredConstructors": true, diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientHttpJsonTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientHttpJsonTest.java index b18c75ae88ca..2a6638fe4240 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientHttpJsonTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientHttpJsonTest.java @@ -1802,6 +1802,7 @@ public void getInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1875,6 +1876,7 @@ public void getInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1950,6 +1952,7 @@ public void createInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2032,6 +2035,7 @@ public void createInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2114,6 +2118,7 @@ public void createSecondaryInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2197,6 +2202,7 @@ public void createSecondaryInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2339,6 +2345,7 @@ public void updateInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2380,6 +2387,7 @@ public void updateInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2441,6 +2449,7 @@ public void updateInstanceExceptionTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2575,6 +2584,7 @@ public void failoverInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2653,6 +2663,7 @@ public void failoverInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2733,6 +2744,7 @@ public void injectFaultTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2813,6 +2825,7 @@ public void injectFaultTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2895,6 +2908,7 @@ public void restartInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2973,6 +2987,7 @@ public void restartInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -3926,6 +3941,7 @@ public void getConnectionInfoTest() throws Exception { .addAllPemCertificateChain(new ArrayList()) .setInstanceUid("instanceUid-2102004869") .setPscDnsName("pscDnsName1984562292") + .setPscAutoDnsName("pscAutoDnsName1815362501") .build(); mockService.addResponse(expectedResponse); @@ -3975,6 +3991,7 @@ public void getConnectionInfoTest2() throws Exception { .addAllPemCertificateChain(new ArrayList()) .setInstanceUid("instanceUid-2102004869") .setPscDnsName("pscDnsName1984562292") + .setPscAutoDnsName("pscAutoDnsName1815362501") .build(); mockService.addResponse(expectedResponse); diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientTest.java index 06b7f7ce689c..66b3213bdb05 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientTest.java @@ -1687,6 +1687,7 @@ public void getInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1754,6 +1755,7 @@ public void getInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1821,6 +1823,7 @@ public void createInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1902,6 +1905,7 @@ public void createInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1983,6 +1987,7 @@ public void createSecondaryInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2066,6 +2071,7 @@ public void createSecondaryInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2208,6 +2214,7 @@ public void updateInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2370,6 +2377,7 @@ public void failoverInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2445,6 +2453,7 @@ public void failoverInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2520,6 +2529,7 @@ public void injectFaultTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2598,6 +2608,7 @@ public void injectFaultTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2676,6 +2687,7 @@ public void restartInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2751,6 +2763,7 @@ public void restartInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -3591,6 +3604,7 @@ public void getConnectionInfoTest() throws Exception { .addAllPemCertificateChain(new ArrayList()) .setInstanceUid("instanceUid-2102004869") .setPscDnsName("pscDnsName1984562292") + .setPscAutoDnsName("pscAutoDnsName1815362501") .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -3634,6 +3648,7 @@ public void getConnectionInfoTest2() throws Exception { .addAllPemCertificateChain(new ArrayList()) .setInstanceUid("instanceUid-2102004869") .setPscDnsName("pscDnsName1984562292") + .setPscAutoDnsName("pscAutoDnsName1815362501") .build(); mockAlloyDBAdmin.addResponse(expectedResponse); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java index 4ed0fca9bbfc..e4a9755a7447 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java @@ -59,6 +59,7 @@ private ConnectionInfo() { pemCertificateChain_ = com.google.protobuf.LazyStringArrayList.emptyList(); instanceUid_ = ""; pscDnsName_ = ""; + pscAutoDnsName_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -270,7 +271,7 @@ public com.google.protobuf.ByteString getPublicIpAddressBytes() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -291,7 +292,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -312,7 +313,7 @@ public int getPemCertificateChainCount() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -334,7 +335,7 @@ public java.lang.String getPemCertificateChain(int index) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -449,6 +450,61 @@ public com.google.protobuf.ByteString getPscDnsNameBytes() { } } + public static final int PSC_AUTO_DNS_NAME_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscAutoDnsName_ = ""; + + /** + * + * + *
+   * Output only. Specifies the DNS name to use with PSC service automation for
+   * the Instance.
+   * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscAutoDnsName. + */ + @java.lang.Override + public java.lang.String getPscAutoDnsName() { + java.lang.Object ref = pscAutoDnsName_; + 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(); + pscAutoDnsName_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Specifies the DNS name to use with PSC service automation for
+   * the Instance.
+   * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscAutoDnsName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscAutoDnsNameBytes() { + java.lang.Object ref = pscAutoDnsName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscAutoDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -481,6 +537,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pscDnsName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, pscDnsName_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pscAutoDnsName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, pscAutoDnsName_); + } getUnknownFields().writeTo(output); } @@ -513,6 +572,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pscDnsName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, pscDnsName_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pscAutoDnsName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, pscAutoDnsName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -535,6 +597,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPemCertificateChainList().equals(other.getPemCertificateChainList())) return false; if (!getInstanceUid().equals(other.getInstanceUid())) return false; if (!getPscDnsName().equals(other.getPscDnsName())) return false; + if (!getPscAutoDnsName().equals(other.getPscAutoDnsName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -560,6 +623,8 @@ public int hashCode() { hash = (53 * hash) + getInstanceUid().hashCode(); hash = (37 * hash) + PSC_DNS_NAME_FIELD_NUMBER; hash = (53 * hash) + getPscDnsName().hashCode(); + hash = (37 * hash) + PSC_AUTO_DNS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPscAutoDnsName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -707,6 +772,7 @@ public Builder clear() { pemCertificateChain_ = com.google.protobuf.LazyStringArrayList.emptyList(); instanceUid_ = ""; pscDnsName_ = ""; + pscAutoDnsName_ = ""; return this; } @@ -762,6 +828,9 @@ private void buildPartial0(com.google.cloud.alloydb.v1beta.ConnectionInfo result if (((from_bitField0_ & 0x00000020) != 0)) { result.pscDnsName_ = pscDnsName_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pscAutoDnsName_ = pscAutoDnsName_; + } } @java.lang.Override @@ -811,6 +880,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.ConnectionInfo other) { bitField0_ |= 0x00000020; onChanged(); } + if (!other.getPscAutoDnsName().isEmpty()) { + pscAutoDnsName_ = other.pscAutoDnsName_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -874,6 +948,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 74: + { + pscAutoDnsName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1289,7 +1369,7 @@ private void ensurePemCertificateChainIsMutable() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -1311,7 +1391,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -1332,7 +1412,7 @@ public int getPemCertificateChainCount() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -1354,7 +1434,7 @@ public java.lang.String getPemCertificateChain(int index) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -1376,7 +1456,7 @@ public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param index The index to set the value at. * @param value The pemCertificateChain to set. * @return This builder for chaining. @@ -1406,7 +1486,7 @@ public Builder setPemCertificateChain(int index, java.lang.String value) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param value The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1435,7 +1515,7 @@ public Builder addPemCertificateChain(java.lang.String value) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param values The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1461,7 +1541,7 @@ public Builder addAllPemCertificateChain(java.lang.Iterable va * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1486,7 +1566,7 @@ public Builder clearPemCertificateChain() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param value The bytes of the pemCertificateChain to add. * @return This builder for chaining. */ @@ -1725,6 +1805,122 @@ public Builder setPscDnsNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object pscAutoDnsName_ = ""; + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscAutoDnsName. + */ + public java.lang.String getPscAutoDnsName() { + java.lang.Object ref = pscAutoDnsName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscAutoDnsName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscAutoDnsName. + */ + public com.google.protobuf.ByteString getPscAutoDnsNameBytes() { + java.lang.Object ref = pscAutoDnsName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscAutoDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The pscAutoDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscAutoDnsName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPscAutoDnsName() { + pscAutoDnsName_ = getDefaultInstance().getPscAutoDnsName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for pscAutoDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscAutoDnsName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.ConnectionInfo) } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java index 8f91da0d6637..b3b0546704fa 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java @@ -133,7 +133,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -152,7 +152,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -171,7 +171,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -191,7 +191,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -249,4 +249,32 @@ public interface ConnectionInfoOrBuilder * @return The bytes for pscDnsName. */ com.google.protobuf.ByteString getPscDnsNameBytes(); + + /** + * + * + *
+   * Output only. Specifies the DNS name to use with PSC service automation for
+   * the Instance.
+   * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscAutoDnsName. + */ + java.lang.String getPscAutoDnsName(); + + /** + * + * + *
+   * Output only. Specifies the DNS name to use with PSC service automation for
+   * the Instance.
+   * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscAutoDnsName. + */ + com.google.protobuf.ByteString getPscAutoDnsNameBytes(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Database.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Database.java index c161199984ee..6a3b79985f44 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Database.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Database.java @@ -327,7 +327,7 @@ public com.google.protobuf.ByteString getCharacterTypeBytes() { * bool is_template = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1772 + * google/cloud/alloydb/v1beta/resources.proto;l=1841 * @return The isTemplate. */ @java.lang.Override @@ -1409,7 +1409,7 @@ public Builder setCharacterTypeBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1772 + * google/cloud/alloydb/v1beta/resources.proto;l=1841 * @return The isTemplate. */ @java.lang.Override @@ -1430,7 +1430,7 @@ public boolean getIsTemplate() { * * * @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1772 + * google/cloud/alloydb/v1beta/resources.proto;l=1841 * @param value The isTemplate to set. * @return This builder for chaining. */ @@ -1455,7 +1455,7 @@ public Builder setIsTemplate(boolean value) { * * * @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1772 + * google/cloud/alloydb/v1beta/resources.proto;l=1841 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseOrBuilder.java index 11c870c67988..a8e704e8c202 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseOrBuilder.java @@ -167,7 +167,7 @@ public interface DatabaseOrBuilder * bool is_template = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1772 + * google/cloud/alloydb/v1beta/resources.proto;l=1841 * @return The isTemplate. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java index 9d315c0dddaa..58cbb5e48678 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java @@ -796,6 +796,183 @@ private AvailabilityType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1beta.Instance.AvailabilityType) } + /** + * + * + *
+   * The state of the PSC auto DNS.
+   * 
+ * + * Protobuf enum {@code google.cloud.alloydb.v1beta.Instance.PscAutoDnsState} + */ + public enum PscAutoDnsState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state is unspecified. For old instances, this means the PSC auto DNS
+     * is disabled. For new instances, this means the PSC auto DNS is enabled
+     * by default. Use `effective_psc_auto_dns_enabled` to check the
+     * effective state of the PSC auto DNS.
+     * 
+ * + * PSC_AUTO_DNS_STATE_UNSPECIFIED = 0; + */ + PSC_AUTO_DNS_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Enables the PSC auto DNS for the instance.
+     * 
+ * + * PSC_AUTO_DNS_STATE_ENABLED = 1; + */ + PSC_AUTO_DNS_STATE_ENABLED(1), + /** + * + * + *
+     * Disables the PSC auto DNS for the instance.
+     * 
+ * + * PSC_AUTO_DNS_STATE_DISABLED = 2; + */ + PSC_AUTO_DNS_STATE_DISABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PscAutoDnsState"); + } + + /** + * + * + *
+     * The state is unspecified. For old instances, this means the PSC auto DNS
+     * is disabled. For new instances, this means the PSC auto DNS is enabled
+     * by default. Use `effective_psc_auto_dns_enabled` to check the
+     * effective state of the PSC auto DNS.
+     * 
+ * + * PSC_AUTO_DNS_STATE_UNSPECIFIED = 0; + */ + public static final int PSC_AUTO_DNS_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Enables the PSC auto DNS for the instance.
+     * 
+ * + * PSC_AUTO_DNS_STATE_ENABLED = 1; + */ + public static final int PSC_AUTO_DNS_STATE_ENABLED_VALUE = 1; + + /** + * + * + *
+     * Disables the PSC auto DNS for the instance.
+     * 
+ * + * PSC_AUTO_DNS_STATE_DISABLED = 2; + */ + public static final int PSC_AUTO_DNS_STATE_DISABLED_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 PscAutoDnsState 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 PscAutoDnsState forNumber(int value) { + switch (value) { + case 0: + return PSC_AUTO_DNS_STATE_UNSPECIFIED; + case 1: + return PSC_AUTO_DNS_STATE_ENABLED; + case 2: + return PSC_AUTO_DNS_STATE_DISABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PscAutoDnsState findValueByNumber(int number) { + return PscAutoDnsState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.Instance.getDescriptor().getEnumTypes().get(3); + } + + private static final PscAutoDnsState[] VALUES = values(); + + public static PscAutoDnsState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PscAutoDnsState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1beta.Instance.PscAutoDnsState) + } + /** * * @@ -942,7 +1119,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.alloydb.v1beta.Instance.getDescriptor().getEnumTypes().get(3); + return com.google.cloud.alloydb.v1beta.Instance.getDescriptor().getEnumTypes().get(4); } private static final ActivationPolicy[] VALUES = values(); @@ -10980,6 +11157,69 @@ com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig getPscAutoConne */ com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder getPscAutoConnectionsOrBuilder(int index); + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto DNS for the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoDnsState. + */ + int getPscAutoDnsStateValue(); + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto DNS for the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoDnsState. + */ + com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState getPscAutoDnsState(); + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto connection for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoConnectionPolicyState. + */ + int getPscAutoConnectionPolicyStateValue(); + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto connection for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoConnectionPolicyState. + */ + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + getPscAutoConnectionPolicyState(); } /** @@ -11019,6 +11259,8 @@ private PscInstanceConfig() { pscDnsName_ = ""; pscInterfaceConfigs_ = java.util.Collections.emptyList(); pscAutoConnections_ = java.util.Collections.emptyList(); + pscAutoDnsState_ = 0; + pscAutoConnectionPolicyState_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -11036,58 +11278,237 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.Builder.class); } - public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object serviceAttachmentLink_ = ""; - /** * * *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * The state of the PSC auto connection policy.
      * 
* - * - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The serviceAttachmentLink. + * Protobuf enum {@code + * google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState} */ - @java.lang.Override - public java.lang.String getServiceAttachmentLink() { - java.lang.Object ref = serviceAttachmentLink_; - 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(); - serviceAttachmentLink_ = s; - return s; + public enum PscAutoConnectionPolicyState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The state is unspecified. For old instances, this means the PSC auto
+       * connection is disabled. For new instances, this means the PSC auto
+       * connection is enabled by default.
+       * 
+ * + * PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED = 0; + */ + PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED(0), + /** + * + * + *
+       * Enables the PSC auto connection for the instance.
+       * 
+ * + * ENABLED = 1; + */ + ENABLED(1), + /** + * + * + *
+       * Disables the PSC auto connection for the instance.
+       * 
+ * + * DISABLED = 2; + */ + DISABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PscAutoConnectionPolicyState"); } - } - /** - * - * - *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
-     * 
- * - * - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for serviceAttachmentLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { + /** + * + * + *
+       * The state is unspecified. For old instances, this means the PSC auto
+       * connection is disabled. For new instances, this means the PSC auto
+       * connection is enabled by default.
+       * 
+ * + * PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED = 0; + */ + public static final int PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Enables the PSC auto connection for the instance.
+       * 
+ * + * ENABLED = 1; + */ + public static final int ENABLED_VALUE = 1; + + /** + * + * + *
+       * Disables the PSC auto connection for the instance.
+       * 
+ * + * DISABLED = 2; + */ + public static final int DISABLED_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 PscAutoConnectionPolicyState 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 PscAutoConnectionPolicyState forNumber(int value) { + switch (value) { + case 0: + return PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return DISABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PscAutoConnectionPolicyState findValueByNumber(int number) { + return PscAutoConnectionPolicyState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PscAutoConnectionPolicyState[] VALUES = values(); + + public static PscAutoConnectionPolicyState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PscAutoConnectionPolicyState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState) + } + + public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachmentLink_ = ""; + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachmentLink. + */ + @java.lang.Override + public java.lang.String getServiceAttachmentLink() { + java.lang.Object ref = serviceAttachmentLink_; + 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(); + serviceAttachmentLink_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachmentLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { java.lang.Object ref = serviceAttachmentLink_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = @@ -11431,6 +11852,98 @@ public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig getPscAu return pscAutoConnections_.get(index); } + public static final int PSC_AUTO_DNS_STATE_FIELD_NUMBER = 11; + private int pscAutoDnsState_ = 0; + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto DNS for the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoDnsState. + */ + @java.lang.Override + public int getPscAutoDnsStateValue() { + return pscAutoDnsState_; + } + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto DNS for the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoDnsState. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState getPscAutoDnsState() { + com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState result = + com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState.forNumber(pscAutoDnsState_); + return result == null + ? com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState.UNRECOGNIZED + : result; + } + + public static final int PSC_AUTO_CONNECTION_POLICY_STATE_FIELD_NUMBER = 13; + private int pscAutoConnectionPolicyState_ = 0; + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto connection for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoConnectionPolicyState. + */ + @java.lang.Override + public int getPscAutoConnectionPolicyStateValue() { + return pscAutoConnectionPolicyState_; + } + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto connection for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoConnectionPolicyState. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + getPscAutoConnectionPolicyState() { + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + result = + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig + .PscAutoConnectionPolicyState.forNumber(pscAutoConnectionPolicyState_); + return result == null + ? com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + .UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -11461,6 +11974,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < pscAutoConnections_.size(); i++) { output.writeMessage(9, pscAutoConnections_.get(i)); } + if (pscAutoDnsState_ + != com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState.PSC_AUTO_DNS_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, pscAutoDnsState_); + } + if (pscAutoConnectionPolicyState_ + != com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + .PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, pscAutoConnectionPolicyState_); + } getUnknownFields().writeTo(output); } @@ -11493,6 +12017,19 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, pscAutoConnections_.get(i)); } + if (pscAutoDnsState_ + != com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState.PSC_AUTO_DNS_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, pscAutoDnsState_); + } + if (pscAutoConnectionPolicyState_ + != com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + .PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 13, pscAutoConnectionPolicyState_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -11515,6 +12052,8 @@ public boolean equals(final java.lang.Object obj) { if (!getPscDnsName().equals(other.getPscDnsName())) return false; if (!getPscInterfaceConfigsList().equals(other.getPscInterfaceConfigsList())) return false; if (!getPscAutoConnectionsList().equals(other.getPscAutoConnectionsList())) return false; + if (pscAutoDnsState_ != other.pscAutoDnsState_) return false; + if (pscAutoConnectionPolicyState_ != other.pscAutoConnectionPolicyState_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11542,6 +12081,10 @@ public int hashCode() { hash = (37 * hash) + PSC_AUTO_CONNECTIONS_FIELD_NUMBER; hash = (53 * hash) + getPscAutoConnectionsList().hashCode(); } + hash = (37 * hash) + PSC_AUTO_DNS_STATE_FIELD_NUMBER; + hash = (53 * hash) + pscAutoDnsState_; + hash = (37 * hash) + PSC_AUTO_CONNECTION_POLICY_STATE_FIELD_NUMBER; + hash = (53 * hash) + pscAutoConnectionPolicyState_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -11701,6 +12244,8 @@ public Builder clear() { pscAutoConnectionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); + pscAutoDnsState_ = 0; + pscAutoConnectionPolicyState_ = 0; return this; } @@ -11772,6 +12317,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.pscDnsName_ = pscDnsName_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.pscAutoDnsState_ = pscAutoDnsState_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pscAutoConnectionPolicyState_ = pscAutoConnectionPolicyState_; + } } @java.lang.Override @@ -11862,6 +12413,12 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance.PscInstanceCon } } } + if (other.pscAutoDnsState_ != 0) { + setPscAutoDnsStateValue(other.getPscAutoDnsStateValue()); + } + if (other.pscAutoConnectionPolicyState_ != 0) { + setPscAutoConnectionPolicyStateValue(other.getPscAutoConnectionPolicyStateValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -11935,6 +12492,18 @@ public Builder mergeFrom( } break; } // case 74 + case 88: + { + pscAutoDnsState_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 88 + case 104: + { + pscAutoConnectionPolicyState_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -13104,24 +13673,1478 @@ public Builder addPscAutoConnections( * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscAutoConnections( + int index, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + builderForValue) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(index, builderForValue.build()); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPscAutoConnections( + java.lang.Iterable< + ? extends com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig> + values) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscAutoConnections_); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPscAutoConnections() { + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + pscAutoConnectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePscAutoConnections(int index) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.remove(index); + onChanged(); + } else { + pscAutoConnectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + getPscAutoConnectionsBuilder(int index) { + return internalGetPscAutoConnectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder + getPscAutoConnectionsOrBuilder(int index) { + if (pscAutoConnectionsBuilder_ == null) { + return pscAutoConnections_.get(index); + } else { + return pscAutoConnectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsOrBuilderList() { + if (pscAutoConnectionsBuilder_ != null) { + return pscAutoConnectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pscAutoConnections_); + } + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + addPscAutoConnectionsBuilder() { + return internalGetPscAutoConnectionsFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig + .getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + addPscAutoConnectionsBuilder(int index) { + return internalGetPscAutoConnectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig + .getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder> + getPscAutoConnectionsBuilderList() { + return internalGetPscAutoConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder> + internalGetPscAutoConnectionsFieldBuilder() { + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder>( + pscAutoConnections_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + pscAutoConnections_ = null; + } + return pscAutoConnectionsBuilder_; + } + + private int pscAutoDnsState_ = 0; + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoDnsState. + */ + @java.lang.Override + public int getPscAutoDnsStateValue() { + return pscAutoDnsState_; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for pscAutoDnsState to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsStateValue(int value) { + pscAutoDnsState_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoDnsState. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState getPscAutoDnsState() { + com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState result = + com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState.forNumber(pscAutoDnsState_); + return result == null + ? com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The pscAutoDnsState to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsState( + com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + pscAutoDnsState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPscAutoDnsState() { + bitField0_ = (bitField0_ & ~0x00000020); + pscAutoDnsState_ = 0; + onChanged(); + return this; + } + + private int pscAutoConnectionPolicyState_ = 0; + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoConnectionPolicyState. + */ + @java.lang.Override + public int getPscAutoConnectionPolicyStateValue() { + return pscAutoConnectionPolicyState_; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for pscAutoConnectionPolicyState to set. + * @return This builder for chaining. + */ + public Builder setPscAutoConnectionPolicyStateValue(int value) { + pscAutoConnectionPolicyState_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoConnectionPolicyState. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + getPscAutoConnectionPolicyState() { + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + result = + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig + .PscAutoConnectionPolicyState.forNumber(pscAutoConnectionPolicyState_); + return result == null + ? com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig + .PscAutoConnectionPolicyState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The pscAutoConnectionPolicyState to set. + * @return This builder for chaining. + */ + public Builder setPscAutoConnectionPolicyState( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + pscAutoConnectionPolicyState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPscAutoConnectionPolicyState() { + bitField0_ = (bitField0_ & ~0x00000040); + pscAutoConnectionPolicyState_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + private static final com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig(); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PscInstanceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The effective state of the PSC auto DNS for the instance.
+     * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoDnsEnabled. + */ + boolean getEffectivePscAutoDnsEnabled(); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the pscAutoDnsNames. + */ + java.util.List getPscAutoDnsNamesList(); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of pscAutoDnsNames. + */ + int getPscAutoDnsNamesCount(); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The pscAutoDnsNames at the given index. + */ + java.lang.String getPscAutoDnsNames(int index); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pscAutoDnsNames at the given index. + */ + com.google.protobuf.ByteString getPscAutoDnsNamesBytes(int index); + + /** + * + * + *
+     * Output only. Indicates if the PSC auto connection policy is enabled for
+     * the instance. For older instances, this will be off by default, but for
+     * newer instances, this will be auto-enabled.
+     * 
+ * + * + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoConnectionPolicy. + */ + boolean getEffectivePscAutoConnectionPolicy(); + + /** + * + * + *
+     * Output only. The PSC service connection policy name. The format is
+     * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
+     * 
+ * + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceConnectionPolicy. + */ + java.lang.String getServiceConnectionPolicy(); + + /** + * + * + *
+     * Output only. The PSC service connection policy name. The format is
+     * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
+     * 
+ * + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceConnectionPolicy. + */ + com.google.protobuf.ByteString getServiceConnectionPolicyBytes(); + } + + /** + * + * + *
+   * Information about the Private Service Connect (PSC) for the instance.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInstanceInfo} + */ + public static final class PscInstanceInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) + PscInstanceInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PscInstanceInfo"); + } + + // Use PscInstanceInfo.newBuilder() to construct. + private PscInstanceInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PscInstanceInfo() { + pscAutoDnsNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceConnectionPolicy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.class, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder.class); + } + + public static final int EFFECTIVE_PSC_AUTO_DNS_ENABLED_FIELD_NUMBER = 1; + private boolean effectivePscAutoDnsEnabled_ = false; + + /** + * + * + *
+     * Output only. The effective state of the PSC auto DNS for the instance.
+     * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoDnsEnabled. + */ + @java.lang.Override + public boolean getEffectivePscAutoDnsEnabled() { + return effectivePscAutoDnsEnabled_; + } + + public static final int PSC_AUTO_DNS_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pscAutoDnsNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the pscAutoDnsNames. + */ + public com.google.protobuf.ProtocolStringList getPscAutoDnsNamesList() { + return pscAutoDnsNames_; + } + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of pscAutoDnsNames. + */ + public int getPscAutoDnsNamesCount() { + return pscAutoDnsNames_.size(); + } + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The pscAutoDnsNames at the given index. + */ + public java.lang.String getPscAutoDnsNames(int index) { + return pscAutoDnsNames_.get(index); + } + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pscAutoDnsNames at the given index. + */ + public com.google.protobuf.ByteString getPscAutoDnsNamesBytes(int index) { + return pscAutoDnsNames_.getByteString(index); + } + + public static final int EFFECTIVE_PSC_AUTO_CONNECTION_POLICY_FIELD_NUMBER = 3; + private boolean effectivePscAutoConnectionPolicy_ = false; + + /** + * + * + *
+     * Output only. Indicates if the PSC auto connection policy is enabled for
+     * the instance. For older instances, this will be off by default, but for
+     * newer instances, this will be auto-enabled.
+     * 
+ * + * + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoConnectionPolicy. + */ + @java.lang.Override + public boolean getEffectivePscAutoConnectionPolicy() { + return effectivePscAutoConnectionPolicy_; + } + + public static final int SERVICE_CONNECTION_POLICY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceConnectionPolicy_ = ""; + + /** + * + * + *
+     * Output only. The PSC service connection policy name. The format is
+     * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
+     * 
+ * + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceConnectionPolicy. + */ + @java.lang.Override + public java.lang.String getServiceConnectionPolicy() { + java.lang.Object ref = serviceConnectionPolicy_; + 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(); + serviceConnectionPolicy_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The PSC service connection policy name. The format is
+     * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
+     * 
+ * + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceConnectionPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceConnectionPolicyBytes() { + java.lang.Object ref = serviceConnectionPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceConnectionPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (effectivePscAutoDnsEnabled_ != false) { + output.writeBool(1, effectivePscAutoDnsEnabled_); + } + for (int i = 0; i < pscAutoDnsNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pscAutoDnsNames_.getRaw(i)); + } + if (effectivePscAutoConnectionPolicy_ != false) { + output.writeBool(3, effectivePscAutoConnectionPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceConnectionPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, serviceConnectionPolicy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (effectivePscAutoDnsEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, effectivePscAutoDnsEnabled_); + } + { + int dataSize = 0; + for (int i = 0; i < pscAutoDnsNames_.size(); i++) { + dataSize += computeStringSizeNoTag(pscAutoDnsNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getPscAutoDnsNamesList().size(); + } + if (effectivePscAutoConnectionPolicy_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, effectivePscAutoConnectionPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceConnectionPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, serviceConnectionPolicy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo other = + (com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) obj; + + if (getEffectivePscAutoDnsEnabled() != other.getEffectivePscAutoDnsEnabled()) return false; + if (!getPscAutoDnsNamesList().equals(other.getPscAutoDnsNamesList())) return false; + if (getEffectivePscAutoConnectionPolicy() != other.getEffectivePscAutoConnectionPolicy()) + return false; + if (!getServiceConnectionPolicy().equals(other.getServiceConnectionPolicy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EFFECTIVE_PSC_AUTO_DNS_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEffectivePscAutoDnsEnabled()); + if (getPscAutoDnsNamesCount() > 0) { + hash = (37 * hash) + PSC_AUTO_DNS_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getPscAutoDnsNamesList().hashCode(); + } + hash = (37 * hash) + EFFECTIVE_PSC_AUTO_CONNECTION_POLICY_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEffectivePscAutoConnectionPolicy()); + hash = (37 * hash) + SERVICE_CONNECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getServiceConnectionPolicy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Information about the Private Service Connect (PSC) for the instance.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInstanceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.class, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + effectivePscAutoDnsEnabled_ = false; + pscAutoDnsNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + effectivePscAutoConnectionPolicy_ = false; + serviceConnectionPolicy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo build() { + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo buildPartial() { + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo result = + new com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.effectivePscAutoDnsEnabled_ = effectivePscAutoDnsEnabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + pscAutoDnsNames_.makeImmutable(); + result.pscAutoDnsNames_ = pscAutoDnsNames_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.effectivePscAutoConnectionPolicy_ = effectivePscAutoConnectionPolicy_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceConnectionPolicy_ = serviceConnectionPolicy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) { + return mergeFrom((com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo other) { + if (other == com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance()) + return this; + if (other.getEffectivePscAutoDnsEnabled() != false) { + setEffectivePscAutoDnsEnabled(other.getEffectivePscAutoDnsEnabled()); + } + if (!other.pscAutoDnsNames_.isEmpty()) { + if (pscAutoDnsNames_.isEmpty()) { + pscAutoDnsNames_ = other.pscAutoDnsNames_; + bitField0_ |= 0x00000002; + } else { + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.addAll(other.pscAutoDnsNames_); + } + onChanged(); + } + if (other.getEffectivePscAutoConnectionPolicy() != false) { + setEffectivePscAutoConnectionPolicy(other.getEffectivePscAutoConnectionPolicy()); + } + if (!other.getServiceConnectionPolicy().isEmpty()) { + serviceConnectionPolicy_ = other.serviceConnectionPolicy_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + effectivePscAutoDnsEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.add(s); + break; + } // case 18 + case 24: + { + effectivePscAutoConnectionPolicy_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + serviceConnectionPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean effectivePscAutoDnsEnabled_; + + /** + * + * + *
+       * Output only. The effective state of the PSC auto DNS for the instance.
+       * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoDnsEnabled. + */ + @java.lang.Override + public boolean getEffectivePscAutoDnsEnabled() { + return effectivePscAutoDnsEnabled_; + } + + /** + * + * + *
+       * Output only. The effective state of the PSC auto DNS for the instance.
+       * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The effectivePscAutoDnsEnabled to set. + * @return This builder for chaining. + */ + public Builder setEffectivePscAutoDnsEnabled(boolean value) { + + effectivePscAutoDnsEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The effective state of the PSC auto DNS for the instance.
+       * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectivePscAutoDnsEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + effectivePscAutoDnsEnabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList pscAutoDnsNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePscAutoDnsNamesIsMutable() { + if (!pscAutoDnsNames_.isModifiable()) { + pscAutoDnsNames_ = new com.google.protobuf.LazyStringArrayList(pscAutoDnsNames_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the pscAutoDnsNames. + */ + public com.google.protobuf.ProtocolStringList getPscAutoDnsNamesList() { + pscAutoDnsNames_.makeImmutable(); + return pscAutoDnsNames_; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of pscAutoDnsNames. + */ + public int getPscAutoDnsNamesCount() { + return pscAutoDnsNames_.size(); + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The pscAutoDnsNames at the given index. + */ + public java.lang.String getPscAutoDnsNames(int index) { + return pscAutoDnsNames_.get(index); + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pscAutoDnsNames at the given index. + */ + public com.google.protobuf.ByteString getPscAutoDnsNamesBytes(int index) { + return pscAutoDnsNames_.getByteString(index); + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The pscAutoDnsNames to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The pscAutoDnsNames to add. + * @return This builder for chaining. + */ + public Builder addPscAutoDnsNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The pscAutoDnsNames to add. + * @return This builder for chaining. + */ + public Builder addAllPscAutoDnsNames(java.lang.Iterable values) { + ensurePscAutoDnsNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscAutoDnsNames_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public Builder addPscAutoConnections( - int index, - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder - builderForValue) { - if (pscAutoConnectionsBuilder_ == null) { - ensurePscAutoConnectionsIsMutable(); - pscAutoConnections_.add(index, builderForValue.build()); - onChanged(); - } else { - pscAutoConnectionsBuilder_.addMessage(index, builderForValue.build()); - } + public Builder clearPscAutoDnsNames() { + pscAutoDnsNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); return this; } @@ -13129,68 +15152,70 @@ public Builder addPscAutoConnections( * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. Specifies the auto DNS names for the instance.
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The bytes of the pscAutoDnsNames to add. + * @return This builder for chaining. */ - public Builder addAllPscAutoConnections( - java.lang.Iterable< - ? extends com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig> - values) { - if (pscAutoConnectionsBuilder_ == null) { - ensurePscAutoConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscAutoConnections_); - onChanged(); - } else { - pscAutoConnectionsBuilder_.addAllMessages(values); + public Builder addPscAutoDnsNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); return this; } + private boolean effectivePscAutoConnectionPolicy_; + /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. Indicates if the PSC auto connection policy is enabled for
+       * the instance. For older instances, this will be off by default, but for
+       * newer instances, this will be auto-enabled.
        * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The effectivePscAutoConnectionPolicy. */ - public Builder clearPscAutoConnections() { - if (pscAutoConnectionsBuilder_ == null) { - pscAutoConnections_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - pscAutoConnectionsBuilder_.clear(); - } - return this; + @java.lang.Override + public boolean getEffectivePscAutoConnectionPolicy() { + return effectivePscAutoConnectionPolicy_; } /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. Indicates if the PSC auto connection policy is enabled for
+       * the instance. For older instances, this will be off by default, but for
+       * newer instances, this will be auto-enabled.
        * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The effectivePscAutoConnectionPolicy to set. + * @return This builder for chaining. */ - public Builder removePscAutoConnections(int index) { - if (pscAutoConnectionsBuilder_ == null) { - ensurePscAutoConnectionsIsMutable(); - pscAutoConnections_.remove(index); - onChanged(); - } else { - pscAutoConnectionsBuilder_.remove(index); - } + public Builder setEffectivePscAutoConnectionPolicy(boolean value) { + + effectivePscAutoConnectionPolicy_ = value; + bitField0_ |= 0x00000004; + onChanged(); return this; } @@ -13198,35 +15223,48 @@ public Builder removePscAutoConnections(int index) { * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. Indicates if the PSC auto connection policy is enabled for
+       * the instance. For older instances, this will be off by default, but for
+       * newer instances, this will be auto-enabled.
        * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder - getPscAutoConnectionsBuilder(int index) { - return internalGetPscAutoConnectionsFieldBuilder().getBuilder(index); + public Builder clearEffectivePscAutoConnectionPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + effectivePscAutoConnectionPolicy_ = false; + onChanged(); + return this; } + private java.lang.Object serviceConnectionPolicy_ = ""; + /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The serviceConnectionPolicy. */ - public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder - getPscAutoConnectionsOrBuilder(int index) { - if (pscAutoConnectionsBuilder_ == null) { - return pscAutoConnections_.get(index); + public java.lang.String getServiceConnectionPolicy() { + java.lang.Object ref = serviceConnectionPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceConnectionPolicy_ = s; + return s; } else { - return pscAutoConnectionsBuilder_.getMessageOrBuilder(index); + return (java.lang.String) ref; } } @@ -13234,20 +15272,24 @@ public Builder removePscAutoConnections(int index) { * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The bytes for serviceConnectionPolicy. */ - public java.util.List< - ? extends com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder> - getPscAutoConnectionsOrBuilderList() { - if (pscAutoConnectionsBuilder_ != null) { - return pscAutoConnectionsBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.ByteString getServiceConnectionPolicyBytes() { + java.lang.Object ref = serviceConnectionPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceConnectionPolicy_ = b; + return b; } else { - return java.util.Collections.unmodifiableList(pscAutoConnections_); + return (com.google.protobuf.ByteString) ref; } } @@ -13255,97 +15297,89 @@ public Builder removePscAutoConnections(int index) { * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The serviceConnectionPolicy to set. + * @return This builder for chaining. */ - public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder - addPscAutoConnectionsBuilder() { - return internalGetPscAutoConnectionsFieldBuilder() - .addBuilder( - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig - .getDefaultInstance()); + public Builder setServiceConnectionPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceConnectionPolicy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder - addPscAutoConnectionsBuilder(int index) { - return internalGetPscAutoConnectionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig - .getDefaultInstance()); + public Builder clearServiceConnectionPolicy() { + serviceConnectionPolicy_ = getDefaultInstance().getServiceConnectionPolicy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; } /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The bytes for serviceConnectionPolicy to set. + * @return This builder for chaining. */ - public java.util.List< - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder> - getPscAutoConnectionsBuilderList() { - return internalGetPscAutoConnectionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig, - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder> - internalGetPscAutoConnectionsFieldBuilder() { - if (pscAutoConnectionsBuilder_ == null) { - pscAutoConnectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig, - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder>( - pscAutoConnections_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - pscAutoConnections_ = null; + public Builder setServiceConnectionPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return pscAutoConnectionsBuilder_; + checkByteStringIsUtf8(value); + serviceConnectionPolicy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) } - // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) - private static final com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig - DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) + private static final com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig(); + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo(); } - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getDefaultInstance() { + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public PscInstanceConfig parsePartialFrom( + public PscInstanceInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -13365,17 +15399,17 @@ public PscInstanceConfig parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getDefaultInstanceForType() { + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -18647,6 +20681,69 @@ public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getPscInstance : pscInstanceConfig_; } + public static final int PSC_INSTANCE_INFO_FIELD_NUMBER = 46; + private com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo pscInstanceInfo_; + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pscInstanceInfo field is set. + */ + @java.lang.Override + public boolean hasPscInstanceInfo() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscInstanceInfo. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo getPscInstanceInfo() { + return pscInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance() + : pscInstanceInfo_; + } + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder + getPscInstanceInfoOrBuilder() { + return pscInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance() + : pscInstanceInfo_; + } + public static final int NETWORK_CONFIG_FIELD_NUMBER = 29; private com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig networkConfig_; @@ -18665,7 +20762,7 @@ public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getPscInstance */ @java.lang.Override public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -18723,13 +20820,13 @@ public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig getNetwork *
* * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1325 + * google/cloud/alloydb/v1beta/resources.proto;l=1390 * @return Whether the geminiConfig field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasGeminiConfig() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -18745,7 +20842,7 @@ public boolean hasGeminiConfig() { *
* * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1325 + * google/cloud/alloydb/v1beta/resources.proto;l=1390 * @return The geminiConfig. */ @java.lang.Override @@ -18925,7 +21022,7 @@ public com.google.cloud.alloydb.v1beta.Instance.ActivationPolicy getActivationPo */ @java.lang.Override public boolean hasConnectionPoolConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -18985,7 +21082,7 @@ public com.google.cloud.alloydb.v1beta.Instance.ConnectionPoolConfig getConnecti */ @java.lang.Override public boolean hasGcaConfig() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -19122,10 +21219,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeMessage(29, getNetworkConfig()); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(33, getGeminiConfig()); } for (int i = 0; i < outboundPublicIpAddresses_.size(); i++) { @@ -19137,12 +21234,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(35, activationPolicy_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeMessage(37, getConnectionPoolConfig()); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { output.writeMessage(38, getGcaConfig()); } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(46, getPscInstanceInfo()); + } getUnknownFields().writeTo(output); } @@ -19261,10 +21361,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig()); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getGeminiConfig()); } { @@ -19280,13 +21380,16 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, activationPolicy_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getConnectionPoolConfig()); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getGcaConfig()); } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, getPscInstanceInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -19362,6 +21465,10 @@ public boolean equals(final java.lang.Object obj) { if (hasPscInstanceConfig()) { if (!getPscInstanceConfig().equals(other.getPscInstanceConfig())) return false; } + if (hasPscInstanceInfo() != other.hasPscInstanceInfo()) return false; + if (hasPscInstanceInfo()) { + if (!getPscInstanceInfo().equals(other.getPscInstanceInfo())) return false; + } if (hasNetworkConfig() != other.hasNetworkConfig()) return false; if (hasNetworkConfig()) { if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; @@ -19476,6 +21583,10 @@ public int hashCode() { hash = (37 * hash) + PSC_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPscInstanceConfig().hashCode(); } + if (hasPscInstanceInfo()) { + hash = (37 * hash) + PSC_INSTANCE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getPscInstanceInfo().hashCode(); + } if (hasNetworkConfig()) { hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getNetworkConfig().hashCode(); @@ -19682,6 +21793,7 @@ private void maybeForceBuilderInitialization() { internalGetUpdatePolicyFieldBuilder(); internalGetClientConnectionConfigFieldBuilder(); internalGetPscInstanceConfigFieldBuilder(); + internalGetPscInstanceInfoFieldBuilder(); internalGetNetworkConfigFieldBuilder(); internalGetGeminiConfigFieldBuilder(); internalGetConnectionPoolConfigFieldBuilder(); @@ -19771,6 +21883,11 @@ public Builder clear() { pscInstanceConfigBuilder_.dispose(); pscInstanceConfigBuilder_ = null; } + pscInstanceInfo_ = null; + if (pscInstanceInfoBuilder_ != null) { + pscInstanceInfoBuilder_.dispose(); + pscInstanceInfoBuilder_ = null; + } networkConfig_ = null; if (networkConfigBuilder_ != null) { networkConfigBuilder_.dispose(); @@ -19955,28 +22072,26 @@ private void buildPartial0(com.google.cloud.alloydb.v1beta.Instance result) { to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x08000000) != 0)) { - result.networkConfig_ = - networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); + result.pscInstanceInfo_ = + pscInstanceInfoBuilder_ == null ? pscInstanceInfo_ : pscInstanceInfoBuilder_.build(); to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x10000000) != 0)) { - result.geminiConfig_ = - geminiConfigBuilder_ == null ? geminiConfig_ : geminiConfigBuilder_.build(); + result.networkConfig_ = + networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x20000000) != 0)) { - outboundPublicIpAddresses_.makeImmutable(); - result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; + result.geminiConfig_ = + geminiConfigBuilder_ == null ? geminiConfig_ : geminiConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x40000000) != 0)) { - result.activationPolicy_ = activationPolicy_; + outboundPublicIpAddresses_.makeImmutable(); + result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; } if (((from_bitField0_ & 0x80000000) != 0)) { - result.connectionPoolConfig_ = - connectionPoolConfigBuilder_ == null - ? connectionPoolConfig_ - : connectionPoolConfigBuilder_.build(); - to_bitField0_ |= 0x00002000; + result.activationPolicy_ = activationPolicy_; } result.bitField0_ |= to_bitField0_; } @@ -19985,9 +22100,16 @@ private void buildPartial1(com.google.cloud.alloydb.v1beta.Instance result) { int from_bitField1_ = bitField1_; int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000001) != 0)) { - result.gcaConfig_ = gcaConfigBuilder_ == null ? gcaConfig_ : gcaConfigBuilder_.build(); + result.connectionPoolConfig_ = + connectionPoolConfigBuilder_ == null + ? connectionPoolConfig_ + : connectionPoolConfigBuilder_.build(); to_bitField0_ |= 0x00004000; } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.gcaConfig_ = gcaConfigBuilder_ == null ? gcaConfig_ : gcaConfigBuilder_.build(); + to_bitField0_ |= 0x00008000; + } result.bitField0_ |= to_bitField0_; } @@ -20119,6 +22241,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance other) { if (other.hasPscInstanceConfig()) { mergePscInstanceConfig(other.getPscInstanceConfig()); } + if (other.hasPscInstanceInfo()) { + mergePscInstanceInfo(other.getPscInstanceInfo()); + } if (other.hasNetworkConfig()) { mergeNetworkConfig(other.getNetworkConfig()); } @@ -20128,7 +22253,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance other) { if (!other.outboundPublicIpAddresses_.isEmpty()) { if (outboundPublicIpAddresses_.isEmpty()) { outboundPublicIpAddresses_ = other.outboundPublicIpAddresses_; - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; } else { ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.addAll(other.outboundPublicIpAddresses_); @@ -20373,14 +22498,14 @@ public Builder mergeFrom( { input.readMessage( internalGetNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; break; } // case 234 case 266: { input.readMessage( internalGetGeminiConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; break; } // case 266 case 274: @@ -20393,23 +22518,30 @@ public Builder mergeFrom( case 280: { activationPolicy_ = input.readEnum(); - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; break; } // case 280 case 298: { input.readMessage( internalGetConnectionPoolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; break; } // case 298 case 306: { input.readMessage( internalGetGcaConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; break; } // case 306 + case 370: + { + input.readMessage( + internalGetPscInstanceInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 370 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -25218,6 +27350,233 @@ public Builder clearPscInstanceConfig() { return pscInstanceConfigBuilder_; } + private com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo pscInstanceInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder> + pscInstanceInfoBuilder_; + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pscInstanceInfo field is set. + */ + public boolean hasPscInstanceInfo() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscInstanceInfo. + */ + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo getPscInstanceInfo() { + if (pscInstanceInfoBuilder_ == null) { + return pscInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance() + : pscInstanceInfo_; + } else { + return pscInstanceInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPscInstanceInfo( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo value) { + if (pscInstanceInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pscInstanceInfo_ = value; + } else { + pscInstanceInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPscInstanceInfo( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder builderForValue) { + if (pscInstanceInfoBuilder_ == null) { + pscInstanceInfo_ = builderForValue.build(); + } else { + pscInstanceInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePscInstanceInfo( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo value) { + if (pscInstanceInfoBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) + && pscInstanceInfo_ != null + && pscInstanceInfo_ + != com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance()) { + getPscInstanceInfoBuilder().mergeFrom(value); + } else { + pscInstanceInfo_ = value; + } + } else { + pscInstanceInfoBuilder_.mergeFrom(value); + } + if (pscInstanceInfo_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPscInstanceInfo() { + bitField0_ = (bitField0_ & ~0x08000000); + pscInstanceInfo_ = null; + if (pscInstanceInfoBuilder_ != null) { + pscInstanceInfoBuilder_.dispose(); + pscInstanceInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder + getPscInstanceInfoBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return internalGetPscInstanceInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder + getPscInstanceInfoOrBuilder() { + if (pscInstanceInfoBuilder_ != null) { + return pscInstanceInfoBuilder_.getMessageOrBuilder(); + } else { + return pscInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance() + : pscInstanceInfo_; + } + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder> + internalGetPscInstanceInfoFieldBuilder() { + if (pscInstanceInfoBuilder_ == null) { + pscInstanceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder>( + getPscInstanceInfo(), getParentForChildren(), isClean()); + pscInstanceInfo_ = null; + } + return pscInstanceInfoBuilder_; + } + private com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig networkConfig_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig, @@ -25239,7 +27598,7 @@ public Builder clearPscInstanceConfig() { * @return Whether the networkConfig field is set. */ public boolean hasNetworkConfig() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -25286,7 +27645,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(value); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -25309,7 +27668,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -25328,7 +27687,7 @@ public Builder setNetworkConfig( public Builder mergeNetworkConfig( com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig value) { if (networkConfigBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) + if (((bitField0_ & 0x10000000) != 0) && networkConfig_ != null && networkConfig_ != com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig @@ -25341,7 +27700,7 @@ public Builder mergeNetworkConfig( networkConfigBuilder_.mergeFrom(value); } if (networkConfig_ != null) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -25359,7 +27718,7 @@ public Builder mergeNetworkConfig( *
*/ public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x10000000); networkConfig_ = null; if (networkConfigBuilder_ != null) { networkConfigBuilder_.dispose(); @@ -25382,7 +27741,7 @@ public Builder clearNetworkConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return internalGetNetworkConfigFieldBuilder().getBuilder(); } @@ -25457,12 +27816,12 @@ public Builder clearNetworkConfig() { *
* * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1325 + * google/cloud/alloydb/v1beta/resources.proto;l=1390 * @return Whether the geminiConfig field is set. */ @java.lang.Deprecated public boolean hasGeminiConfig() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** @@ -25478,7 +27837,7 @@ public boolean hasGeminiConfig() { *
* * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1325 + * google/cloud/alloydb/v1beta/resources.proto;l=1390 * @return The geminiConfig. */ @java.lang.Deprecated @@ -25514,7 +27873,7 @@ public Builder setGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceCon } else { geminiConfigBuilder_.setMessage(value); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -25539,7 +27898,7 @@ public Builder setGeminiConfig( } else { geminiConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -25559,7 +27918,7 @@ public Builder setGeminiConfig( @java.lang.Deprecated public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceConfig value) { if (geminiConfigBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) + if (((bitField0_ & 0x20000000) != 0) && geminiConfig_ != null && geminiConfig_ != com.google.cloud.alloydb.v1beta.GeminiInstanceConfig.getDefaultInstance()) { @@ -25571,7 +27930,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceC geminiConfigBuilder_.mergeFrom(value); } if (geminiConfig_ != null) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); } return this; @@ -25591,7 +27950,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceC */ @java.lang.Deprecated public Builder clearGeminiConfig() { - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x20000000); geminiConfig_ = null; if (geminiConfigBuilder_ != null) { geminiConfigBuilder_.dispose(); @@ -25615,7 +27974,7 @@ public Builder clearGeminiConfig() { */ @java.lang.Deprecated public com.google.cloud.alloydb.v1beta.GeminiInstanceConfig.Builder getGeminiConfigBuilder() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return internalGetGeminiConfigFieldBuilder().getBuilder(); } @@ -25681,7 +28040,7 @@ private void ensureOutboundPublicIpAddressesIsMutable() { outboundPublicIpAddresses_ = new com.google.protobuf.LazyStringArrayList(outboundPublicIpAddresses_); } - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; } /** @@ -25776,7 +28135,7 @@ public Builder setOutboundPublicIpAddresses(int index, java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.set(index, value); - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -25801,7 +28160,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.add(value); - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -25823,7 +28182,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable values) { ensureOutboundPublicIpAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outboundPublicIpAddresses_); - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -25843,7 +28202,7 @@ public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable */ public Builder clearConnectionPoolConfig() { - bitField0_ = (bitField0_ & ~0x80000000); + bitField1_ = (bitField1_ & ~0x00000001); connectionPoolConfig_ = null; if (connectionPoolConfigBuilder_ != null) { connectionPoolConfigBuilder_.dispose(); @@ -26177,7 +28536,7 @@ public Builder clearConnectionPoolConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.ConnectionPoolConfig.Builder getConnectionPoolConfigBuilder() { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; onChanged(); return internalGetConnectionPoolConfigFieldBuilder().getBuilder(); } @@ -26253,7 +28612,7 @@ public Builder clearConnectionPoolConfig() { * @return Whether the gcaConfig field is set. */ public boolean hasGcaConfig() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField1_ & 0x00000002) != 0); } /** @@ -26299,7 +28658,7 @@ public Builder setGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig va } else { gcaConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -26322,7 +28681,7 @@ public Builder setGcaConfig( } else { gcaConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -26340,7 +28699,7 @@ public Builder setGcaConfig( */ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig value) { if (gcaConfigBuilder_ == null) { - if (((bitField1_ & 0x00000001) != 0) + if (((bitField1_ & 0x00000002) != 0) && gcaConfig_ != null && gcaConfig_ != com.google.cloud.alloydb.v1beta.GCAInstanceConfig.getDefaultInstance()) { @@ -26352,7 +28711,7 @@ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig gcaConfigBuilder_.mergeFrom(value); } if (gcaConfig_ != null) { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); } return this; @@ -26370,7 +28729,7 @@ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig * */ public Builder clearGcaConfig() { - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000002); gcaConfig_ = null; if (gcaConfigBuilder_ != null) { gcaConfigBuilder_.dispose(); @@ -26392,7 +28751,7 @@ public Builder clearGcaConfig() { * */ public com.google.cloud.alloydb.v1beta.GCAInstanceConfig.Builder getGcaConfigBuilder() { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); return internalGetGcaConfigFieldBuilder().getBuilder(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java index ba02ac869473..fafdceaf22a4 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java @@ -1188,6 +1188,52 @@ java.lang.String getAnnotationsOrDefault( com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfigOrBuilder getPscInstanceConfigOrBuilder(); + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pscInstanceInfo field is set. + */ + boolean hasPscInstanceInfo(); + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscInstanceInfo. + */ + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo getPscInstanceInfo(); + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder getPscInstanceInfoOrBuilder(); + /** * * @@ -1245,7 +1291,7 @@ java.lang.String getAnnotationsOrDefault( * * * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1325 + * google/cloud/alloydb/v1beta/resources.proto;l=1390 * @return Whether the geminiConfig field is set. */ @java.lang.Deprecated @@ -1264,7 +1310,7 @@ java.lang.String getAnnotationsOrDefault( * * * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1325 + * google/cloud/alloydb/v1beta/resources.proto;l=1390 * @return The geminiConfig. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java index 66777c5d35ae..85ff547cd0dc 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java @@ -196,6 +196,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -500,7 +504,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSECONDARY\020\002:u\352Ar\n" + "\036alloydb.googleapis.com/Cluster\022:projects/{proje" + "ct}/locations/{location}/clusters/{cluster}*\010clusters2\007clusterR\001\001B\010\n" - + "\006source\"\242)\n" + + "\006source\"\371.\n" + "\010Instance\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -543,17 +547,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\001(\0132<.google.cloud.alloydb.v1beta.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r" + "satisfies_pzs\030\030 \001(\010B\003\340A\003\022Y\n" + "\023psc_instance_config\030\034" - + " \001(\01327.google.cloud.alloydb.v1beta.Instance.PscInstanceConfigB\003\340A\001\022X\n" - + "\016network_config\030\035 \001(\0132;.google.cloud.alloydb.v1b" - + "eta.Instance.InstanceNetworkConfigB\003\340A\001\022O\n\r" - + "gemini_config\030! \001(\01321.google.cloud.al" - + "loydb.v1beta.GeminiInstanceConfigB\005\030\001\340A\001\0221\n" + + " \001(\01327.google.cloud.alloydb.v1beta.Instance.PscInstanceConfigB\003\340A\001\022U\n" + + "\021psc_instance_info\030." + + " \001(\01325.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoB\003\340A\003\022X\n" + + "\016network_config\030\035 \001(\0132;.google.cloud.allo" + + "ydb.v1beta.Instance.InstanceNetworkConfigB\003\340A\001\022O\n\r" + + "gemini_config\030! \001(\01321.google.c" + + "loud.alloydb.v1beta.GeminiInstanceConfigB\005\030\001\340A\001\0221\n" + "\034outbound_public_ip_addresses\030\" \003(" + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022V\n" - + "\021activation_policy\030# \001(\01626" - + ".google.cloud.alloydb.v1beta.Instance.ActivationPolicyB\003\340A\001\022_\n" - + "\026connection_pool_config\030%" - + " \001(\0132:.google.cloud.alloydb.v1beta.Instance.ConnectionPoolConfigB\003\340A\001\022G\n\n" + + "\021activation_policy\030#" + + " \001(\01626.google.cloud.alloydb.v1beta.Instance.ActivationPolicyB\003\340A\001\022_\n" + + "\026connection_pool_config\030% \001(\0132:.google.cloud.alloyd" + + "b.v1beta.Instance.ConnectionPoolConfigB\003\340A\001\022G\n\n" + "gca_config\030&" + " \001(\0132..google.cloud.alloydb.v1beta.GCAInstanceConfigB\003\340A\003\0328\n\r" + "MachineConfig\022\021\n" @@ -613,10 +619,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033network_attachment_resource\030\001 \001(\t\032\251\001\n" + "\027PscAutoConnectionConfig\022\030\n" + "\020consumer_project\030\001 \001(\t\022\030\n" - + "\020consumer_network\030\002 \001(\t\022\037\n\n" + + "\020consumer_network\030\002 \001(\t\022\037\n" + + "\n" + "ip_address\030\003 \001(\tB\013\340A\003\342\214\317\327\010\002\010\002\022\023\n" + "\006status\030\004 \001(\tB\003\340A\003\022$\n" - + "\027consumer_network_status\030\005 \001(\tB\003\340A\003\032\351\002\n" + + "\027consumer_network_status\030\005 \001(\tB\003\340A\003\032\264\005\n" + "\021PscInstanceConfig\022Q\n" + "\027service_attachment_link\030\001 \001(\tB0\340A\003\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022&\n" @@ -624,11 +631,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014psc_dns_name\030\007 \001(\tB\003\340A\003\022\\\n" + "\025psc_interface_configs\030\010" + " \003(\01328.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigB\003\340A\001\022`\n" - + "\024psc_auto_connections\030\t \003(\0132=.google.cloud.alloyd" - + "b.v1beta.Instance.PscAutoConnectionConfigB\003\340A\001\032\356\002\n" + + "\024psc_auto_connections\030\t \003(\0132=.google.cloud" + + ".alloydb.v1beta.Instance.PscAutoConnectionConfigB\003\340A\001\022V\n" + + "\022psc_auto_dns_state\030\013 \001(" + + "\01625.google.cloud.alloydb.v1beta.Instance.PscAutoDnsStateB\003\340A\001\022\203\001\n" + + " psc_auto_connection_policy_state\030\r" + + " \001(\0162T.google.cloud." + + "alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyStateB\003\340A\001\"k\n" + + "\034PscAutoConnectionPolicyState\0220\n" + + ",PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED\020\000\022\013\n" + + "\007ENABLED\020\001\022\014\n" + + "\010DISABLED\020\002\032\272\001\n" + + "\017PscInstanceInfo\022+\n" + + "\036effective_psc_auto_dns_enabled\030\001 \001(\010B\003\340A\003\022\037\n" + + "\022psc_auto_dns_names\030\002 \003(\tB\003\340A\003\0221\n" + + "$effective_psc_auto_connection_policy\030\003 \001(\010B\003\340A\003\022&\n" + + "\031service_connection_policy\030\004 \001(\tB\003\340A\003\032\356\002\n" + "\025InstanceNetworkConfig\022x\n" - + "\034authorized_external_networks\030\001 \003(\0132M.google." - + "cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + + "\034authorized_external_networks\030\001 \003(\0132M." + + "google.cloud.alloydb.v1beta.Instance.Ins" + + "tanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + "\020enable_public_ip\030\002 \001(\010B\003\340A\001\022&\n" + "\031enable_outbound_public_ip\030\003 \001(\010B\003\340A\001\0227\n" + "\007network\030\004 \001(\tB&\340A\003\372A \n" @@ -639,8 +661,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024ConnectionPoolConfig\022\024\n" + "\007enabled\030\014 \001(\010B\003\340A\001\022Y\n" + "\005flags\030\r" - + " \003(\0132E." - + "google.cloud.alloydb.v1beta.Instance.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n" + + " \003(\0132E.google.cloud.alloydb.v1beta.Insta" + + "nce.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n" + "\014pooler_count\030\016 \001(\005B\003\340A\003\032,\n\n" + "FlagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -672,14 +694,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020AvailabilityType\022!\n" + "\035AVAILABILITY_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005ZONAL\020\001\022\014\n" - + "\010REGIONAL\020\002\"L\n" + + "\010REGIONAL\020\002\"v\n" + + "\017PscAutoDnsState\022\"\n" + + "\036PSC_AUTO_DNS_STATE_UNSPECIFIED\020\000\022\036\n" + + "\032PSC_AUTO_DNS_STATE_ENABLED\020\001\022\037\n" + + "\033PSC_AUTO_DNS_STATE_DISABLED\020\002\"L\n" + "\020ActivationPolicy\022!\n" + "\035ACTIVATION_POLICY_UNSPECIFIED\020\000\022\n\n" + "\006ALWAYS\020\001\022\t\n" + "\005NEVER\020\002:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Instance\022Oprojects/{project}/loca" - + "tions/{location}/clusters/{cluster}/instances/{instance}*" - + "\tinstances2\010instanceR\001\001\"\352\002\n" + + "\037alloydb.googleapis.com/Instance\022Oprojects/{projec" + + "t}/locations/{location}/clusters/{cluster}/instances/{instance}*" + + "\tinstances2\010instanceR\001\001\"\212\003\n" + "\016ConnectionInfo\022\014\n" + "\004name\030\001 \001(\t\022\027\n\n" + "ip_address\030\002 \001(\tB\003\340A\003\022&\n" @@ -687,10 +713,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022$\n" + "\025pem_certificate_chain\030\003 \003(\tB\005\030\001\340A\003\022\031\n" + "\014instance_uid\030\004 \001(\tB\003\340A\003\022\031\n" - + "\014psc_dns_name\030\006 \001(\tB\003\340A\003:\254\001\352A\250\001\n" - + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/locations/{location}/cl" - + "usters/{cluster}/instances/{instance}/co" - + "nnectionInfo*\017connectionInfos2\016connectionInfo\"\251\r\n" + + "\014psc_dns_name\030\006 \001(\tB\003\340A\003\022\036\n" + + "\021psc_auto_dns_name\030\t \001(\tB\003\340A\003:\254\001\352A\250\001\n" + + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/locations/{location}/clu" + + "sters/{cluster}/instances/{instance}/con" + + "nectionInfo*\017connectionInfos2\016connectionInfo\"\251\r\n" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -722,8 +749,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017expiry_quantity\030\024" + " \001(\01327.google.cloud.alloydb.v1beta.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + "satisfies_pzs\030\025 \001(\010B\003\340A\003\022K\n" - + "\020database_version\030\026" - + " \001(\0162,.google.cloud.alloydb.v1beta.DatabaseVersionB\003\340A\003\022F\n" + + "\020database_version\030\026 " + + "\001(\0162,.google.cloud.alloydb.v1beta.DatabaseVersionB\003\340A\003\022F\n" + "\004tags\030\031 \003(\0132-.google.cloud.alloydb.v1beta.Backup.TagsEntryB" + "\t\340A\004\340A\005\340A\001\032W\n" + "\023QuantityBasedExpiry\022\034\n" @@ -749,32 +776,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tON_DEMAND\020\001\022\r\n" + "\tAUTOMATED\020\002\022\016\n\n" + "CONTINUOUS\020\003:p\352Am\n" - + "\035alloydb.googleapis.com/Backup\0228pro" - + "jects/{project}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\220" + + "\035alloydb.googleapis.com/Backup\0228proj" + + "ects/{project}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\220" + "\t\n" + "\025SupportedDatabaseFlag\022d\n" - + "\023string_restrictions\030\007 \001(\0132E.google.cloud.alloydb.v1beta.S" - + "upportedDatabaseFlag.StringRestrictionsH\000\022f\n" - + "\024integer_restrictions\030\010 \001(\0132F.google" - + ".cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n" + + "\023string_restrictions\030\007 \001(\0132E.google.cloud.alloydb.v1beta.Su" + + "pportedDatabaseFlag.StringRestrictionsH\000\022f\n" + + "\024integer_restrictions\030\010 \001(\0132F.google." + + "cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n" + "\030recommended_string_value\030\n" + " \001(\tH\001\022@\n" + "\031recommended_integer_value\030\013" + " \001(\0132\033.google.protobuf.Int64ValueH\001\022\014\n" + "\004name\030\001 \001(\t\022\021\n" + "\tflag_name\030\002 \001(\t\022P\n\n" - + "value_type\030\003 \001(\0162<.google.cloud.allo" - + "ydb.v1beta.SupportedDatabaseFlag.ValueType\022\037\n" + + "value_type\030\003 \001(\0162<.google.cloud.alloy" + + "db.v1beta.SupportedDatabaseFlag.ValueType\022\037\n" + "\027accepts_multiple_values\030\004 \001(\010\022K\n" + "\025supported_db_versions\030\005" + " \003(\0162,.google.cloud.alloydb.v1beta.DatabaseVersion\022\033\n" + "\023requires_db_restart\030\006 \001(\010\022G\n" - + "\005scope\030\t \001(\01628.g" - + "oogle.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope\032,\n" + + "\005scope\030\t \001(\01628.go" + + "ogle.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope\032,\n" + "\022StringRestrictions\022\026\n" + "\016allowed_values\030\001 \003(\t\032u\n" + "\023IntegerRestrictions\022.\n" - + "\tmin_value\030\001 \001(\0132\033.google.protobuf.Int64Value\022.\n" + + "\tmin_value\030\001 \001(\0132\033.google.protobuf.", + "Int64Value\022.\n" + "\tmax_value\030\002 \001(\0132\033.google.protobuf.Int64Value\"U\n" + "\tValueType\022\032\n" + "\026VALUE_TYPE_UNSPECIFIED\020\000\022\n\n" @@ -786,9 +814,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021SCOPE_UNSPECIFIED\020\000\022\014\n" + "\010DATABASE\020\001\022\023\n" + "\017CONNECTION_POOL\020\002:\227\001\352A\223\001\n" - + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{pr" - + "oject}/locations/{location}/flags/{flag}" - + "*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{pro" + + "ject}/locations/{location}/flags/{flag}*" + + "\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + "\014restrictionsB\023\n" + "\021recommended_value\"\376\002\n" + "\004User\022\021\n" @@ -802,9 +830,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025USER_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020ALLOYDB_BUILT_IN\020\001\022\024\n" + "\020ALLOYDB_IAM_USER\020\002:y\352Av\n" - + "\033alloydb.googleapis.com/User\022Gprojects/{project}" - + "/locations/{location}/clusters/{cluster}", - "/users/{user}*\005users2\004userR\001\001\"\202\003\n" + + "\033alloydb.googleapis.com/User\022Gprojects/{project}/" + + "locations/{location}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\202\003\n" + "\010Database\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\027\n" + "\007charset\030\002 \001(\tB\006\340A\001\340A\005\022\031\n" @@ -814,8 +841,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021database_template\030\006 \001(\tB\006\340A\004\340A\005\022&\n" + "\024is_template_database\030\007" + " \001(\010B\003\340A\001H\000\210\001\001:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/locations/{" - + "location}/clusters/{cluster}/databases/{database}*" + + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/locations/{l" + + "ocation}/clusters/{cluster}/databases/{database}*" + "\tdatabases2\010databaseR\001\001B\027\n" + "\025_is_template_database*^\n" + "\014InstanceView\022\035\n" @@ -838,18 +865,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SUBSCRIPTION_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\t\n" + "\005TRIAL\020\002B\273\005\n" - + "\037com.google.cloud.alloydb.v1betaB\016ResourcesProtoP\001Z9cloud" - + ".google.com/go/alloydb/apiv1beta/alloydb" - + "pb;alloydbpb\252\002\033Google.Cloud.AlloyDb.V1Be" - + "ta\312\002\033Google\\Cloud\\AlloyDb\\V1beta\352\002\036Google::Cloud::AlloyDB::V1beta\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zproject" - + "s/{project}/locations/{location}/keyRing" - + "s/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" - + "\036compute.googleapis.com/Network\022,projects/{project}/global/networks/{network}\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations/{location}/keyR" - + "ings/{key_ring}/cryptoKeys/{crypto_key}\352Aw\n" - + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project}/regions/{region" - + "}/serviceAttachments/{service_attachment}b\006proto3" + + "\037com.google.cloud.alloydb.v1betaB\016ResourcesProtoP\001Z9cloud." + + "google.com/go/alloydb/apiv1beta/alloydbp" + + "b;alloydbpb\252\002\033Google.Cloud.AlloyDb.V1Bet" + + "a\312\002\033Google\\Cloud\\AlloyDb\\V1beta\352\002\036Google::Cloud::AlloyDB::V1beta\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects" + + "/{project}/locations/{location}/keyRings" + + "/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" + + "\036c" + + "ompute.googleapis.com/Network\022,projects/{project}/global/networks/{network}\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations/{location}/keyRi" + + "ngs/{key_ring}/cryptoKeys/{crypto_key}\352Aw\n" + + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project}/regions/{region}" + + "/serviceAttachments/{service_attachment}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1176,6 +1204,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ClientConnectionConfig", "SatisfiesPzs", "PscInstanceConfig", + "PscInstanceInfo", "NetworkConfig", "GeminiConfig", "OutboundPublicIpAddresses", @@ -1278,9 +1307,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PscDnsName", "PscInterfaceConfigs", "PscAutoConnections", + "PscAutoDnsState", + "PscAutoConnectionPolicyState", }); - internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor = + internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_descriptor = internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(10); + internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_descriptor, + new java.lang.String[] { + "EffectivePscAutoDnsEnabled", + "PscAutoDnsNames", + "EffectivePscAutoConnectionPolicy", + "ServiceConnectionPolicy", + }); + internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor = + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(11); internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor, @@ -1301,7 +1343,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CidrRange", }); internal_static_google_cloud_alloydb_v1beta_Instance_ConnectionPoolConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(11); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(12); internal_static_google_cloud_alloydb_v1beta_Instance_ConnectionPoolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_ConnectionPoolConfig_descriptor, @@ -1318,7 +1360,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(12); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(13); internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_descriptor, @@ -1326,7 +1368,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(13); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(14); internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_descriptor, @@ -1334,7 +1376,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(14); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(15); internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_descriptor, @@ -1353,6 +1395,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PemCertificateChain", "InstanceUid", "PscDnsName", + "PscAutoDnsName", }); internal_static_google_cloud_alloydb_v1beta_Backup_descriptor = getDescriptor().getMessageType(15); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto index 7b3ef0259b13..31cbb902f9ab 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -1006,6 +1006,20 @@ message Instance { // PscInstanceConfig contains PSC related configuration at an // instance level. message PscInstanceConfig { + // The state of the PSC auto connection policy. + enum PscAutoConnectionPolicyState { + // The state is unspecified. For old instances, this means the PSC auto + // connection is disabled. For new instances, this means the PSC auto + // connection is enabled by default. + PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED = 0; + + // Enables the PSC auto connection for the instance. + ENABLED = 1; + + // Disables the PSC auto connection for the instance. + DISABLED = 2; + } + // Output only. The service attachment created when Private // Service Connect (PSC) is enabled for the instance. // The name of the resource will be in the format of @@ -1036,6 +1050,37 @@ message Instance { // Optional. Configurations for setting up PSC service automation. repeated PscAutoConnectionConfig psc_auto_connections = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for setting up PSC auto DNS for the instance. + PscAutoDnsState psc_auto_dns_state = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for setting up PSC auto connection for the + // instance. + PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Information about the Private Service Connect (PSC) for the instance. + message PscInstanceInfo { + // Output only. The effective state of the PSC auto DNS for the instance. + bool effective_psc_auto_dns_enabled = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Specifies the auto DNS names for the instance. + repeated string psc_auto_dns_names = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates if the PSC auto connection policy is enabled for + // the instance. For older instances, this will be off by default, but for + // newer instances, this will be auto-enabled. + bool effective_psc_auto_connection_policy = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The PSC service connection policy name. The format is + // "projects//regions//serviceConnectionPolicies/" + string service_connection_policy = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Metadata related to instance-level network configuration. @@ -1165,6 +1210,21 @@ message Instance { REGIONAL = 2; } + // The state of the PSC auto DNS. + enum PscAutoDnsState { + // The state is unspecified. For old instances, this means the PSC auto DNS + // is disabled. For new instances, this means the PSC auto DNS is enabled + // by default. Use `effective_psc_auto_dns_enabled` to check the + // effective state of the PSC auto DNS. + PSC_AUTO_DNS_STATE_UNSPECIFIED = 0; + + // Enables the PSC auto DNS for the instance. + PSC_AUTO_DNS_STATE_ENABLED = 1; + + // Disables the PSC auto DNS for the instance. + PSC_AUTO_DNS_STATE_DISABLED = 2; + } + // Specifies whether an instance needs to spin up. enum ActivationPolicy { // The policy is not specified. @@ -1317,6 +1377,11 @@ message Instance { PscInstanceConfig psc_instance_config = 28 [(google.api.field_behavior) = OPTIONAL]; + // Output only. Information about the Private Service Connect (PSC) for the + // instance. + PscInstanceInfo psc_instance_info = 46 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Instance-level network configuration. InstanceNetworkConfig network_config = 29 [(google.api.field_behavior) = OPTIONAL]; @@ -1388,6 +1453,10 @@ message ConnectionInfo { // Output only. The DNS name to use with PSC for the Instance. string psc_dns_name = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Specifies the DNS name to use with PSC service automation for + // the Instance. + string psc_auto_dns_name = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Message describing Backup object diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReport.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReport.java index d6236f01d10f..ba9bffcbb6fa 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReport.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReport.java @@ -559,7 +559,7 @@ public com.google.cloud.auditmanager.v1.DestinationDetails getDestinationDetails * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return The complianceStandard. */ @java.lang.Override @@ -590,7 +590,7 @@ public java.lang.String getComplianceStandard() { * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return The bytes for complianceStandard. */ @java.lang.Override @@ -2309,7 +2309,7 @@ public Builder clearDestinationDetails() { * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return The complianceStandard. */ @java.lang.Deprecated @@ -2339,7 +2339,7 @@ public java.lang.String getComplianceStandard() { * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return The bytes for complianceStandard. */ @java.lang.Deprecated @@ -2369,7 +2369,7 @@ public com.google.protobuf.ByteString getComplianceStandardBytes() { * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @param value The complianceStandard to set. * @return This builder for chaining. */ @@ -2398,7 +2398,7 @@ public Builder setComplianceStandard(java.lang.String value) { * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2423,7 +2423,7 @@ public Builder clearComplianceStandard() { * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @param value The bytes for complianceStandard to set. * @return This builder for chaining. */ diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportOrBuilder.java index 636061fd2163..b034f0896ab3 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportOrBuilder.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportOrBuilder.java @@ -189,7 +189,7 @@ public interface AuditReportOrBuilder * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return The complianceStandard. */ @java.lang.Deprecated @@ -209,7 +209,7 @@ public interface AuditReportOrBuilder * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return The bytes for complianceStandard. */ @java.lang.Deprecated diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequest.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequest.java index 3967f5c193f8..ae86fda107ca 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequest.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequest.java @@ -588,8 +588,19 @@ public com.google.protobuf.ByteString getComplianceFrameworkBytes() { * * *
-   * Optional. If `true`, only validate the request and don't generate the audit
-   * report.
+   * Optional. If `true`, only validates the request and does not generate the
+   * audit report. This executes standard request validation (such as schema,
+   * framework existence, scope, and IAM checks) and skips the apply phase.
+   *
+   * Use this field for the following purposes:
+   * * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
+   * dry-run mutations (e.g., `terraform plan`) without creating real
+   * resources or incurring costs.
+   * * **User Interface Validation**: Enable real-time form and permission
+   * validation in custom UIs before submitting requests.
+   * * **CI/CD & Automation**: Test your scripts, permissions, and parameters
+   * safely without triggering expensive Long-Running Operations (LROs) or
+   * consuming resource quotas.
    * 
* * bool validate_only = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1742,8 +1753,19 @@ public Builder setComplianceFrameworkBytes(com.google.protobuf.ByteString value) * * *
-     * Optional. If `true`, only validate the request and don't generate the audit
-     * report.
+     * Optional. If `true`, only validates the request and does not generate the
+     * audit report. This executes standard request validation (such as schema,
+     * framework existence, scope, and IAM checks) and skips the apply phase.
+     *
+     * Use this field for the following purposes:
+     * * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
+     * dry-run mutations (e.g., `terraform plan`) without creating real
+     * resources or incurring costs.
+     * * **User Interface Validation**: Enable real-time form and permission
+     * validation in custom UIs before submitting requests.
+     * * **CI/CD & Automation**: Test your scripts, permissions, and parameters
+     * safely without triggering expensive Long-Running Operations (LROs) or
+     * consuming resource quotas.
      * 
* * bool validate_only = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1759,8 +1781,19 @@ public boolean getValidateOnly() { * * *
-     * Optional. If `true`, only validate the request and don't generate the audit
-     * report.
+     * Optional. If `true`, only validates the request and does not generate the
+     * audit report. This executes standard request validation (such as schema,
+     * framework existence, scope, and IAM checks) and skips the apply phase.
+     *
+     * Use this field for the following purposes:
+     * * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
+     * dry-run mutations (e.g., `terraform plan`) without creating real
+     * resources or incurring costs.
+     * * **User Interface Validation**: Enable real-time form and permission
+     * validation in custom UIs before submitting requests.
+     * * **CI/CD & Automation**: Test your scripts, permissions, and parameters
+     * safely without triggering expensive Long-Running Operations (LROs) or
+     * consuming resource quotas.
      * 
* * bool validate_only = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1780,8 +1813,19 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If `true`, only validate the request and don't generate the audit
-     * report.
+     * Optional. If `true`, only validates the request and does not generate the
+     * audit report. This executes standard request validation (such as schema,
+     * framework existence, scope, and IAM checks) and skips the apply phase.
+     *
+     * Use this field for the following purposes:
+     * * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
+     * dry-run mutations (e.g., `terraform plan`) without creating real
+     * resources or incurring costs.
+     * * **User Interface Validation**: Enable real-time form and permission
+     * validation in custom UIs before submitting requests.
+     * * **CI/CD & Automation**: Test your scripts, permissions, and parameters
+     * safely without triggering expensive Long-Running Operations (LROs) or
+     * consuming resource quotas.
      * 
* * bool validate_only = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequestOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequestOrBuilder.java index aa7b92623845..90571ca5df8f 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequestOrBuilder.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequestOrBuilder.java @@ -209,8 +209,19 @@ public interface GenerateAuditReportRequestOrBuilder * * *
-   * Optional. If `true`, only validate the request and don't generate the audit
-   * report.
+   * Optional. If `true`, only validates the request and does not generate the
+   * audit report. This executes standard request validation (such as schema,
+   * framework existence, scope, and IAM checks) and skips the apply phase.
+   *
+   * Use this field for the following purposes:
+   * * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
+   * dry-run mutations (e.g., `terraform plan`) without creating real
+   * resources or incurring costs.
+   * * **User Interface Validation**: Enable real-time form and permission
+   * validation in custom UIs before submitting requests.
+   * * **CI/CD & Automation**: Test your scripts, permissions, and parameters
+   * safely without triggering expensive Long-Running Operations (LROs) or
+   * consuming resource quotas.
    * 
* * bool validate_only = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatus.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatus.java index 86e348e79295..4ad2343346a7 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatus.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatus.java @@ -410,7 +410,7 @@ public com.google.cloud.auditmanager.v1.EnrollmentOrBuilder getEnrollmentOrBuild * bool enrolled = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=682 + * google/cloud/auditmanager/v1/auditmanager.proto;l=693 * @return The enrolled. */ @java.lang.Override @@ -1319,7 +1319,7 @@ public com.google.cloud.auditmanager.v1.EnrollmentOrBuilder getEnrollmentOrBuild * * * @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=682 + * google/cloud/auditmanager/v1/auditmanager.proto;l=693 * @return The enrolled. */ @java.lang.Override @@ -1340,7 +1340,7 @@ public boolean getEnrolled() { * * * @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=682 + * google/cloud/auditmanager/v1/auditmanager.proto;l=693 * @param value The enrolled to set. * @return This builder for chaining. */ @@ -1365,7 +1365,7 @@ public Builder setEnrolled(boolean value) { * * * @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=682 + * google/cloud/auditmanager/v1/auditmanager.proto;l=693 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusOrBuilder.java index 6886e551ccb2..c598c8bbe303 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusOrBuilder.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusOrBuilder.java @@ -119,7 +119,7 @@ public interface ResourceEnrollmentStatusOrBuilder * bool enrolled = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=682 + * google/cloud/auditmanager/v1/auditmanager.proto;l=693 * @return The enrolled. */ @java.lang.Deprecated diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/auditmanager.proto b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/auditmanager.proto index 446a25ff6738..4a9f789d0359 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/auditmanager.proto +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/auditmanager.proto @@ -367,8 +367,19 @@ message GenerateAuditReportRequest { // `NIST_800_53`. string compliance_framework = 5 [(google.api.field_behavior) = REQUIRED]; - // Optional. If `true`, only validate the request and don't generate the audit - // report. + // Optional. If `true`, only validates the request and does not generate the + // audit report. This executes standard request validation (such as schema, + // framework existence, scope, and IAM checks) and skips the apply phase. + // + // Use this field for the following purposes: + // * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run + // dry-run mutations (e.g., `terraform plan`) without creating real + // resources or incurring costs. + // * **User Interface Validation**: Enable real-time form and permission + // validation in custom UIs before submitting requests. + // * **CI/CD & Automation**: Test your scripts, permissions, and parameters + // safely without triggering expensive Long-Running Operations (LROs) or + // consuming resource quotas. bool validate_only = 8 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java index e63d755a4311..387d8400aab0 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java @@ -463,6 +463,7 @@ public final UnaryCallable createWriteStr * .setTraceId("traceId-1067401920") * .putAllMissingValueInterpretations( * new HashMap()) + * .setClientStats(ClientStats.newBuilder().build()) * .build(); * bidiStream.send(request); * for (AppendRowsResponse response : bidiStream) { diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1/reflect-config.json b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1/reflect-config.json index 7ffc1c980c55..17b0eb4e3a86 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1/reflect-config.json +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1/reflect-config.json @@ -746,6 +746,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.storage.v1.ClientStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1.ClientStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1.ClientStats$RequestStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1.ClientStats$RequestStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1.ClientStats$WindowStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1.ClientStats$WindowStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest", "queryAllDeclaredConstructors": true, diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java index 8ffcc57baba2..04f4a8032727 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java @@ -197,6 +197,7 @@ public void readRowsTest() throws Exception { .setStats(StreamStats.newBuilder().build()) .setThrottleState(ThrottleState.newBuilder().build()) .setUncompressedByteSize(-2094376525) + .setTotalEstimatedRowCount(-1623220052) .build(); mockBigQueryRead.addResponse(expectedResponse); ReadRowsRequest request = diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java index 005b8b0ab0dd..7c0a743041b2 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java @@ -191,6 +191,7 @@ public void appendRowsTest() throws Exception { .setTraceId("traceId-1067401920") .putAllMissingValueInterpretations( new HashMap()) + .setClientStats(ClientStats.newBuilder().build()) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); @@ -220,6 +221,7 @@ public void appendRowsExceptionTest() throws Exception { .setTraceId("traceId-1067401920") .putAllMissingValueInterpretations( new HashMap()) + .setClientStats(ClientStats.newBuilder().build()) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java index 7a8d773e1a10..067073d5ffd8 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java @@ -31,7 +31,7 @@ * switching table destinations. You can also switch table destinations within * the same connection for the default stream. * - * The size of a single AppendRowsRequest must be less than 10 MB in size. + * The size of a single AppendRowsRequest must be less than 20 MB in size. * Requests larger than this return an error, typically `INVALID_ARGUMENT`. * * @@ -3342,6 +3342,65 @@ public int getDefaultMissingValueInterpretationValue() { : result; } + public static final int CLIENT_STATS_FIELD_NUMBER = 9; + private com.google.cloud.bigquery.storage.v1.ClientStats clientStats_; + + /** + * + * + *
+   * Optional. Stats and telemetry data gathered on the client side.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientStats field is set. + */ + @java.lang.Override + public boolean hasClientStats() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Stats and telemetry data gathered on the client side.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientStats. + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats getClientStats() { + return clientStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance() + : clientStats_; + } + + /** + * + * + *
+   * Optional. Stats and telemetry data gathered on the client side.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder getClientStatsOrBuilder() { + return clientStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance() + : clientStats_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3390,6 +3449,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(8, defaultMissingValueInterpretation_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getClientStats()); + } getUnknownFields().writeTo(output); } @@ -3439,6 +3501,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeEnumSize( 8, defaultMissingValueInterpretation_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getClientStats()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3465,6 +3530,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.internalGetMissingValueInterpretations())) return false; if (defaultMissingValueInterpretation_ != other.defaultMissingValueInterpretation_) return false; + if (hasClientStats() != other.hasClientStats()) return false; + if (hasClientStats()) { + if (!getClientStats().equals(other.getClientStats())) return false; + } if (!getRowsCase().equals(other.getRowsCase())) return false; switch (rowsCase_) { case 4: @@ -3501,6 +3570,10 @@ public int hashCode() { } hash = (37 * hash) + DEFAULT_MISSING_VALUE_INTERPRETATION_FIELD_NUMBER; hash = (53 * hash) + defaultMissingValueInterpretation_; + if (hasClientStats()) { + hash = (37 * hash) + CLIENT_STATS_FIELD_NUMBER; + hash = (53 * hash) + getClientStats().hashCode(); + } switch (rowsCase_) { case 4: hash = (37 * hash) + PROTO_ROWS_FIELD_NUMBER; @@ -3626,7 +3699,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * switching table destinations. You can also switch table destinations within * the same connection for the default stream. * - * The size of a single AppendRowsRequest must be less than 10 MB in size. + * The size of a single AppendRowsRequest must be less than 20 MB in size. * Requests larger than this return an error, typically `INVALID_ARGUMENT`. * * @@ -3686,6 +3759,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetOffsetFieldBuilder(); + internalGetClientStatsFieldBuilder(); } } @@ -3708,6 +3782,11 @@ public Builder clear() { traceId_ = ""; internalGetMutableMissingValueInterpretations().clear(); defaultMissingValueInterpretation_ = 0; + clientStats_ = null; + if (clientStatsBuilder_ != null) { + clientStatsBuilder_.dispose(); + clientStatsBuilder_ = null; + } rowsCase_ = 0; rows_ = null; return this; @@ -3765,6 +3844,11 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsReques if (((from_bitField0_ & 0x00000040) != 0)) { result.defaultMissingValueInterpretation_ = defaultMissingValueInterpretation_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.clientStats_ = + clientStatsBuilder_ == null ? clientStats_ : clientStatsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -3812,6 +3896,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsRequest setDefaultMissingValueInterpretationValue( other.getDefaultMissingValueInterpretationValue()); } + if (other.hasClientStats()) { + mergeClientStats(other.getClientStats()); + } switch (other.getRowsCase()) { case PROTO_ROWS: { @@ -3913,6 +4000,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 64 + case 74: + { + input.readMessage( + internalGetClientStatsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5702,6 +5796,220 @@ public Builder clearDefaultMissingValueInterpretation() { return this; } + private com.google.cloud.bigquery.storage.v1.ClientStats clientStats_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats, + com.google.cloud.bigquery.storage.v1.ClientStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder> + clientStatsBuilder_; + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientStats field is set. + */ + public boolean hasClientStats() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientStats. + */ + public com.google.cloud.bigquery.storage.v1.ClientStats getClientStats() { + if (clientStatsBuilder_ == null) { + return clientStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance() + : clientStats_; + } else { + return clientStatsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClientStats(com.google.cloud.bigquery.storage.v1.ClientStats value) { + if (clientStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientStats_ = value; + } else { + clientStatsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClientStats( + com.google.cloud.bigquery.storage.v1.ClientStats.Builder builderForValue) { + if (clientStatsBuilder_ == null) { + clientStats_ = builderForValue.build(); + } else { + clientStatsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeClientStats(com.google.cloud.bigquery.storage.v1.ClientStats value) { + if (clientStatsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && clientStats_ != null + && clientStats_ + != com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance()) { + getClientStatsBuilder().mergeFrom(value); + } else { + clientStats_ = value; + } + } else { + clientStatsBuilder_.mergeFrom(value); + } + if (clientStats_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearClientStats() { + bitField0_ = (bitField0_ & ~0x00000080); + clientStats_ = null; + if (clientStatsBuilder_ != null) { + clientStatsBuilder_.dispose(); + clientStatsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.Builder getClientStatsBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetClientStatsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder getClientStatsOrBuilder() { + if (clientStatsBuilder_ != null) { + return clientStatsBuilder_.getMessageOrBuilder(); + } else { + return clientStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance() + : clientStats_; + } + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats, + com.google.cloud.bigquery.storage.v1.ClientStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder> + internalGetClientStatsFieldBuilder() { + if (clientStatsBuilder_ == null) { + clientStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats, + com.google.cloud.bigquery.storage.v1.ClientStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder>( + getClientStats(), getParentForChildren(), isClean()); + clientStats_ = null; + } + return clientStatsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AppendRowsRequest) } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java index 0ce0dfc8a869..fb092d67cd72 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java @@ -574,5 +574,48 @@ public interface AppendRowsRequestOrBuilder com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getDefaultMissingValueInterpretation(); + /** + * + * + *
+   * Optional. Stats and telemetry data gathered on the client side.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientStats field is set. + */ + boolean hasClientStats(); + + /** + * + * + *
+   * Optional. Stats and telemetry data gathered on the client side.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientStats. + */ + com.google.cloud.bigquery.storage.v1.ClientStats getClientStats(); + + /** + * + * + *
+   * Optional. Stats and telemetry data gathered on the client side.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder getClientStatsOrBuilder(); + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.RowsCase getRowsCase(); } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStats.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStats.java new file mode 100644 index 000000000000..a5dcf01d0424 --- /dev/null +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStats.java @@ -0,0 +1,3632 @@ +/* + * 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/bigquery/storage/v1/storage.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.bigquery.storage.v1; + +/** + * + * + *
+ * Stats and telemetry data gathered on the client side about requests
+ * being sent to the BigQuery Storage service, for internal use only.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.ClientStats} + */ +@com.google.protobuf.Generated +public final class ClientStats extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ClientStats) + ClientStatsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ClientStats"); + } + + // Use ClientStats.newBuilder() to construct. + private ClientStats(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ClientStats() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1.ClientStats.class, + com.google.cloud.bigquery.storage.v1.ClientStats.Builder.class); + } + + public interface RequestStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ClientStats.RequestStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Timestamp indicating when the request was sent over the
+     * network, expressed in epoch milliseconds.
+     * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sendTimeMillis field is set. + */ + boolean hasSendTimeMillis(); + + /** + * + * + *
+     * Optional. Timestamp indicating when the request was sent over the
+     * network, expressed in epoch milliseconds.
+     * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sendTimeMillis. + */ + long getSendTimeMillis(); + + /** + * + * + *
+     * Optional. Number of pending requests at the moment this request was sent.
+     * This includes requests waiting to be sent, and those that are inflight.
+     * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queuedRequestsCount field is set. + */ + boolean hasQueuedRequestsCount(); + + /** + * + * + *
+     * Optional. Number of pending requests at the moment this request was sent.
+     * This includes requests waiting to be sent, and those that are inflight.
+     * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queuedRequestsCount. + */ + long getQueuedRequestsCount(); + } + + /** + * + * + *
+   * Stats and telemetry data gathered on the client side about a single
+   * request.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.ClientStats.RequestStats} + */ + public static final class RequestStats extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ClientStats.RequestStats) + RequestStatsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RequestStats"); + } + + // Use RequestStats.newBuilder() to construct. + private RequestStats(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RequestStats() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.class, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder.class); + } + + private int bitField0_; + public static final int SEND_TIME_MILLIS_FIELD_NUMBER = 1; + private long sendTimeMillis_ = 0L; + + /** + * + * + *
+     * Optional. Timestamp indicating when the request was sent over the
+     * network, expressed in epoch milliseconds.
+     * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sendTimeMillis field is set. + */ + @java.lang.Override + public boolean hasSendTimeMillis() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Timestamp indicating when the request was sent over the
+     * network, expressed in epoch milliseconds.
+     * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sendTimeMillis. + */ + @java.lang.Override + public long getSendTimeMillis() { + return sendTimeMillis_; + } + + public static final int QUEUED_REQUESTS_COUNT_FIELD_NUMBER = 2; + private long queuedRequestsCount_ = 0L; + + /** + * + * + *
+     * Optional. Number of pending requests at the moment this request was sent.
+     * This includes requests waiting to be sent, and those that are inflight.
+     * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queuedRequestsCount field is set. + */ + @java.lang.Override + public boolean hasQueuedRequestsCount() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Number of pending requests at the moment this request was sent.
+     * This includes requests waiting to be sent, and those that are inflight.
+     * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queuedRequestsCount. + */ + @java.lang.Override + public long getQueuedRequestsCount() { + return queuedRequestsCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(1, sendTimeMillis_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, queuedRequestsCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, sendTimeMillis_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, queuedRequestsCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats)) { + return super.equals(obj); + } + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats other = + (com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats) obj; + + if (hasSendTimeMillis() != other.hasSendTimeMillis()) return false; + if (hasSendTimeMillis()) { + if (getSendTimeMillis() != other.getSendTimeMillis()) return false; + } + if (hasQueuedRequestsCount() != other.hasQueuedRequestsCount()) return false; + if (hasQueuedRequestsCount()) { + if (getQueuedRequestsCount() != other.getQueuedRequestsCount()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSendTimeMillis()) { + hash = (37 * hash) + SEND_TIME_MILLIS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSendTimeMillis()); + } + if (hasQueuedRequestsCount()) { + hash = (37 * hash) + QUEUED_REQUESTS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getQueuedRequestsCount()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Stats and telemetry data gathered on the client side about a single
+     * request.
+     * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.ClientStats.RequestStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ClientStats.RequestStats) + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.class, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder.class); + } + + // Construct using com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sendTimeMillis_ = 0L; + queuedRequestsCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats build() { + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats buildPartial() { + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats result = + new com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sendTimeMillis_ = sendTimeMillis_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queuedRequestsCount_ = queuedRequestsCount_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats) { + return mergeFrom((com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats other) { + if (other + == com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.getDefaultInstance()) + return this; + if (other.hasSendTimeMillis()) { + setSendTimeMillis(other.getSendTimeMillis()); + } + if (other.hasQueuedRequestsCount()) { + setQueuedRequestsCount(other.getQueuedRequestsCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + sendTimeMillis_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + queuedRequestsCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long sendTimeMillis_; + + /** + * + * + *
+       * Optional. Timestamp indicating when the request was sent over the
+       * network, expressed in epoch milliseconds.
+       * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sendTimeMillis field is set. + */ + @java.lang.Override + public boolean hasSendTimeMillis() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. Timestamp indicating when the request was sent over the
+       * network, expressed in epoch milliseconds.
+       * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sendTimeMillis. + */ + @java.lang.Override + public long getSendTimeMillis() { + return sendTimeMillis_; + } + + /** + * + * + *
+       * Optional. Timestamp indicating when the request was sent over the
+       * network, expressed in epoch milliseconds.
+       * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sendTimeMillis to set. + * @return This builder for chaining. + */ + public Builder setSendTimeMillis(long value) { + + sendTimeMillis_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Timestamp indicating when the request was sent over the
+       * network, expressed in epoch milliseconds.
+       * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSendTimeMillis() { + bitField0_ = (bitField0_ & ~0x00000001); + sendTimeMillis_ = 0L; + onChanged(); + return this; + } + + private long queuedRequestsCount_; + + /** + * + * + *
+       * Optional. Number of pending requests at the moment this request was sent.
+       * This includes requests waiting to be sent, and those that are inflight.
+       * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queuedRequestsCount field is set. + */ + @java.lang.Override + public boolean hasQueuedRequestsCount() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. Number of pending requests at the moment this request was sent.
+       * This includes requests waiting to be sent, and those that are inflight.
+       * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queuedRequestsCount. + */ + @java.lang.Override + public long getQueuedRequestsCount() { + return queuedRequestsCount_; + } + + /** + * + * + *
+       * Optional. Number of pending requests at the moment this request was sent.
+       * This includes requests waiting to be sent, and those that are inflight.
+       * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The queuedRequestsCount to set. + * @return This builder for chaining. + */ + public Builder setQueuedRequestsCount(long value) { + + queuedRequestsCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Number of pending requests at the moment this request was sent.
+       * This includes requests waiting to be sent, and those that are inflight.
+       * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearQueuedRequestsCount() { + bitField0_ = (bitField0_ & ~0x00000002); + queuedRequestsCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ClientStats.RequestStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ClientStats.RequestStats) + private static final com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats(); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface WindowStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ClientStats.WindowStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The maximum response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maxResponseLatencyMillis field is set. + */ + boolean hasMaxResponseLatencyMillis(); + + /** + * + * + *
+     * Optional. The maximum response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxResponseLatencyMillis. + */ + long getMaxResponseLatencyMillis(); + + /** + * + * + *
+     * Optional. The average response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avgResponseLatencyMillis field is set. + */ + boolean hasAvgResponseLatencyMillis(); + + /** + * + * + *
+     * Optional. The average response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avgResponseLatencyMillis. + */ + long getAvgResponseLatencyMillis(); + + /** + * + * + *
+     * Optional. The longest time spent waiting without receiving a response in
+     * the window. This could exceed max_response_latency_millis because the
+     * latter is evaluated only when a response is received. Expressed in
+     * milliseconds.
+     * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the longestWaitNoResponseMillis field is set. + */ + boolean hasLongestWaitNoResponseMillis(); + + /** + * + * + *
+     * Optional. The longest time spent waiting without receiving a response in
+     * the window. This could exceed max_response_latency_millis because the
+     * latter is evaluated only when a response is received. Expressed in
+     * milliseconds.
+     * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The longestWaitNoResponseMillis. + */ + long getLongestWaitNoResponseMillis(); + + /** + * + * + *
+     * Optional. How many requests were sent in the window.
+     * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestsSentCount field is set. + */ + boolean hasRequestsSentCount(); + + /** + * + * + *
+     * Optional. How many requests were sent in the window.
+     * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestsSentCount. + */ + long getRequestsSentCount(); + + /** + * + * + *
+     * Optional. How many responses were received in the window.
+     * 
+ * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the responsesReceivedCount field is set. + */ + boolean hasResponsesReceivedCount(); + + /** + * + * + *
+     * Optional. How many responses were received in the window.
+     * 
+ * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responsesReceivedCount. + */ + long getResponsesReceivedCount(); + + /** + * + * + *
+     * Optional. How many bytes were sent in the window.
+     * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the bytesSentCount field is set. + */ + boolean hasBytesSentCount(); + + /** + * + * + *
+     * Optional. How many bytes were sent in the window.
+     * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytesSentCount. + */ + long getBytesSentCount(); + + /** + * + * + *
+     * Optional. Start time of the window interval for which these stats are
+     * aggregated, expressed in epoch milliseconds.
+     * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the windowStartTimeEpochMillis field is set. + */ + boolean hasWindowStartTimeEpochMillis(); + + /** + * + * + *
+     * Optional. Start time of the window interval for which these stats are
+     * aggregated, expressed in epoch milliseconds.
+     * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The windowStartTimeEpochMillis. + */ + long getWindowStartTimeEpochMillis(); + + /** + * + * + *
+     * Optional. Duration of the window interval for which these stats are
+     * aggregated, expressed in milliseconds.
+     * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the windowMillis field is set. + */ + boolean hasWindowMillis(); + + /** + * + * + *
+     * Optional. Duration of the window interval for which these stats are
+     * aggregated, expressed in milliseconds.
+     * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The windowMillis. + */ + long getWindowMillis(); + } + + /** + * + * + *
+   * Aggregate connection metrics over a window interval.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.ClientStats.WindowStats} + */ + public static final class WindowStats extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ClientStats.WindowStats) + WindowStatsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "WindowStats"); + } + + // Use WindowStats.newBuilder() to construct. + private WindowStats(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private WindowStats() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.class, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder.class); + } + + private int bitField0_; + public static final int MAX_RESPONSE_LATENCY_MILLIS_FIELD_NUMBER = 1; + private long maxResponseLatencyMillis_ = 0L; + + /** + * + * + *
+     * Optional. The maximum response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maxResponseLatencyMillis field is set. + */ + @java.lang.Override + public boolean hasMaxResponseLatencyMillis() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The maximum response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxResponseLatencyMillis. + */ + @java.lang.Override + public long getMaxResponseLatencyMillis() { + return maxResponseLatencyMillis_; + } + + public static final int AVG_RESPONSE_LATENCY_MILLIS_FIELD_NUMBER = 2; + private long avgResponseLatencyMillis_ = 0L; + + /** + * + * + *
+     * Optional. The average response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avgResponseLatencyMillis field is set. + */ + @java.lang.Override + public boolean hasAvgResponseLatencyMillis() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The average response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avgResponseLatencyMillis. + */ + @java.lang.Override + public long getAvgResponseLatencyMillis() { + return avgResponseLatencyMillis_; + } + + public static final int LONGEST_WAIT_NO_RESPONSE_MILLIS_FIELD_NUMBER = 3; + private long longestWaitNoResponseMillis_ = 0L; + + /** + * + * + *
+     * Optional. The longest time spent waiting without receiving a response in
+     * the window. This could exceed max_response_latency_millis because the
+     * latter is evaluated only when a response is received. Expressed in
+     * milliseconds.
+     * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the longestWaitNoResponseMillis field is set. + */ + @java.lang.Override + public boolean hasLongestWaitNoResponseMillis() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. The longest time spent waiting without receiving a response in
+     * the window. This could exceed max_response_latency_millis because the
+     * latter is evaluated only when a response is received. Expressed in
+     * milliseconds.
+     * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The longestWaitNoResponseMillis. + */ + @java.lang.Override + public long getLongestWaitNoResponseMillis() { + return longestWaitNoResponseMillis_; + } + + public static final int REQUESTS_SENT_COUNT_FIELD_NUMBER = 4; + private long requestsSentCount_ = 0L; + + /** + * + * + *
+     * Optional. How many requests were sent in the window.
+     * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestsSentCount field is set. + */ + @java.lang.Override + public boolean hasRequestsSentCount() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. How many requests were sent in the window.
+     * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestsSentCount. + */ + @java.lang.Override + public long getRequestsSentCount() { + return requestsSentCount_; + } + + public static final int RESPONSES_RECEIVED_COUNT_FIELD_NUMBER = 5; + private long responsesReceivedCount_ = 0L; + + /** + * + * + *
+     * Optional. How many responses were received in the window.
+     * 
+ * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the responsesReceivedCount field is set. + */ + @java.lang.Override + public boolean hasResponsesReceivedCount() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. How many responses were received in the window.
+     * 
+ * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responsesReceivedCount. + */ + @java.lang.Override + public long getResponsesReceivedCount() { + return responsesReceivedCount_; + } + + public static final int BYTES_SENT_COUNT_FIELD_NUMBER = 6; + private long bytesSentCount_ = 0L; + + /** + * + * + *
+     * Optional. How many bytes were sent in the window.
+     * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the bytesSentCount field is set. + */ + @java.lang.Override + public boolean hasBytesSentCount() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. How many bytes were sent in the window.
+     * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytesSentCount. + */ + @java.lang.Override + public long getBytesSentCount() { + return bytesSentCount_; + } + + public static final int WINDOW_START_TIME_EPOCH_MILLIS_FIELD_NUMBER = 7; + private long windowStartTimeEpochMillis_ = 0L; + + /** + * + * + *
+     * Optional. Start time of the window interval for which these stats are
+     * aggregated, expressed in epoch milliseconds.
+     * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the windowStartTimeEpochMillis field is set. + */ + @java.lang.Override + public boolean hasWindowStartTimeEpochMillis() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. Start time of the window interval for which these stats are
+     * aggregated, expressed in epoch milliseconds.
+     * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The windowStartTimeEpochMillis. + */ + @java.lang.Override + public long getWindowStartTimeEpochMillis() { + return windowStartTimeEpochMillis_; + } + + public static final int WINDOW_MILLIS_FIELD_NUMBER = 8; + private long windowMillis_ = 0L; + + /** + * + * + *
+     * Optional. Duration of the window interval for which these stats are
+     * aggregated, expressed in milliseconds.
+     * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the windowMillis field is set. + */ + @java.lang.Override + public boolean hasWindowMillis() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. Duration of the window interval for which these stats are
+     * aggregated, expressed in milliseconds.
+     * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The windowMillis. + */ + @java.lang.Override + public long getWindowMillis() { + return windowMillis_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(1, maxResponseLatencyMillis_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, avgResponseLatencyMillis_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, longestWaitNoResponseMillis_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, requestsSentCount_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt64(5, responsesReceivedCount_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeInt64(6, bytesSentCount_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt64(7, windowStartTimeEpochMillis_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeInt64(8, windowMillis_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxResponseLatencyMillis_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(2, avgResponseLatencyMillis_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(3, longestWaitNoResponseMillis_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, requestsSentCount_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, responsesReceivedCount_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, bytesSentCount_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(7, windowStartTimeEpochMillis_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, windowMillis_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats)) { + return super.equals(obj); + } + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats other = + (com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats) obj; + + if (hasMaxResponseLatencyMillis() != other.hasMaxResponseLatencyMillis()) return false; + if (hasMaxResponseLatencyMillis()) { + if (getMaxResponseLatencyMillis() != other.getMaxResponseLatencyMillis()) return false; + } + if (hasAvgResponseLatencyMillis() != other.hasAvgResponseLatencyMillis()) return false; + if (hasAvgResponseLatencyMillis()) { + if (getAvgResponseLatencyMillis() != other.getAvgResponseLatencyMillis()) return false; + } + if (hasLongestWaitNoResponseMillis() != other.hasLongestWaitNoResponseMillis()) return false; + if (hasLongestWaitNoResponseMillis()) { + if (getLongestWaitNoResponseMillis() != other.getLongestWaitNoResponseMillis()) + return false; + } + if (hasRequestsSentCount() != other.hasRequestsSentCount()) return false; + if (hasRequestsSentCount()) { + if (getRequestsSentCount() != other.getRequestsSentCount()) return false; + } + if (hasResponsesReceivedCount() != other.hasResponsesReceivedCount()) return false; + if (hasResponsesReceivedCount()) { + if (getResponsesReceivedCount() != other.getResponsesReceivedCount()) return false; + } + if (hasBytesSentCount() != other.hasBytesSentCount()) return false; + if (hasBytesSentCount()) { + if (getBytesSentCount() != other.getBytesSentCount()) return false; + } + if (hasWindowStartTimeEpochMillis() != other.hasWindowStartTimeEpochMillis()) return false; + if (hasWindowStartTimeEpochMillis()) { + if (getWindowStartTimeEpochMillis() != other.getWindowStartTimeEpochMillis()) return false; + } + if (hasWindowMillis() != other.hasWindowMillis()) return false; + if (hasWindowMillis()) { + if (getWindowMillis() != other.getWindowMillis()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMaxResponseLatencyMillis()) { + hash = (37 * hash) + MAX_RESPONSE_LATENCY_MILLIS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxResponseLatencyMillis()); + } + if (hasAvgResponseLatencyMillis()) { + hash = (37 * hash) + AVG_RESPONSE_LATENCY_MILLIS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAvgResponseLatencyMillis()); + } + if (hasLongestWaitNoResponseMillis()) { + hash = (37 * hash) + LONGEST_WAIT_NO_RESPONSE_MILLIS_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashLong(getLongestWaitNoResponseMillis()); + } + if (hasRequestsSentCount()) { + hash = (37 * hash) + REQUESTS_SENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestsSentCount()); + } + if (hasResponsesReceivedCount()) { + hash = (37 * hash) + RESPONSES_RECEIVED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResponsesReceivedCount()); + } + if (hasBytesSentCount()) { + hash = (37 * hash) + BYTES_SENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBytesSentCount()); + } + if (hasWindowStartTimeEpochMillis()) { + hash = (37 * hash) + WINDOW_START_TIME_EPOCH_MILLIS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWindowStartTimeEpochMillis()); + } + if (hasWindowMillis()) { + hash = (37 * hash) + WINDOW_MILLIS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWindowMillis()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Aggregate connection metrics over a window interval.
+     * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.ClientStats.WindowStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ClientStats.WindowStats) + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.class, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder.class); + } + + // Construct using com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxResponseLatencyMillis_ = 0L; + avgResponseLatencyMillis_ = 0L; + longestWaitNoResponseMillis_ = 0L; + requestsSentCount_ = 0L; + responsesReceivedCount_ = 0L; + bytesSentCount_ = 0L; + windowStartTimeEpochMillis_ = 0L; + windowMillis_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats build() { + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats buildPartial() { + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats result = + new com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxResponseLatencyMillis_ = maxResponseLatencyMillis_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.avgResponseLatencyMillis_ = avgResponseLatencyMillis_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.longestWaitNoResponseMillis_ = longestWaitNoResponseMillis_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestsSentCount_ = requestsSentCount_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.responsesReceivedCount_ = responsesReceivedCount_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.bytesSentCount_ = bytesSentCount_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.windowStartTimeEpochMillis_ = windowStartTimeEpochMillis_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.windowMillis_ = windowMillis_; + to_bitField0_ |= 0x00000080; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats) { + return mergeFrom((com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats other) { + if (other + == com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.getDefaultInstance()) + return this; + if (other.hasMaxResponseLatencyMillis()) { + setMaxResponseLatencyMillis(other.getMaxResponseLatencyMillis()); + } + if (other.hasAvgResponseLatencyMillis()) { + setAvgResponseLatencyMillis(other.getAvgResponseLatencyMillis()); + } + if (other.hasLongestWaitNoResponseMillis()) { + setLongestWaitNoResponseMillis(other.getLongestWaitNoResponseMillis()); + } + if (other.hasRequestsSentCount()) { + setRequestsSentCount(other.getRequestsSentCount()); + } + if (other.hasResponsesReceivedCount()) { + setResponsesReceivedCount(other.getResponsesReceivedCount()); + } + if (other.hasBytesSentCount()) { + setBytesSentCount(other.getBytesSentCount()); + } + if (other.hasWindowStartTimeEpochMillis()) { + setWindowStartTimeEpochMillis(other.getWindowStartTimeEpochMillis()); + } + if (other.hasWindowMillis()) { + setWindowMillis(other.getWindowMillis()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + maxResponseLatencyMillis_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + avgResponseLatencyMillis_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + longestWaitNoResponseMillis_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + requestsSentCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + responsesReceivedCount_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + bytesSentCount_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + windowStartTimeEpochMillis_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + windowMillis_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long maxResponseLatencyMillis_; + + /** + * + * + *
+       * Optional. The maximum response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maxResponseLatencyMillis field is set. + */ + @java.lang.Override + public boolean hasMaxResponseLatencyMillis() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. The maximum response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxResponseLatencyMillis. + */ + @java.lang.Override + public long getMaxResponseLatencyMillis() { + return maxResponseLatencyMillis_; + } + + /** + * + * + *
+       * Optional. The maximum response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The maxResponseLatencyMillis to set. + * @return This builder for chaining. + */ + public Builder setMaxResponseLatencyMillis(long value) { + + maxResponseLatencyMillis_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The maximum response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMaxResponseLatencyMillis() { + bitField0_ = (bitField0_ & ~0x00000001); + maxResponseLatencyMillis_ = 0L; + onChanged(); + return this; + } + + private long avgResponseLatencyMillis_; + + /** + * + * + *
+       * Optional. The average response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avgResponseLatencyMillis field is set. + */ + @java.lang.Override + public boolean hasAvgResponseLatencyMillis() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. The average response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avgResponseLatencyMillis. + */ + @java.lang.Override + public long getAvgResponseLatencyMillis() { + return avgResponseLatencyMillis_; + } + + /** + * + * + *
+       * Optional. The average response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The avgResponseLatencyMillis to set. + * @return This builder for chaining. + */ + public Builder setAvgResponseLatencyMillis(long value) { + + avgResponseLatencyMillis_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The average response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAvgResponseLatencyMillis() { + bitField0_ = (bitField0_ & ~0x00000002); + avgResponseLatencyMillis_ = 0L; + onChanged(); + return this; + } + + private long longestWaitNoResponseMillis_; + + /** + * + * + *
+       * Optional. The longest time spent waiting without receiving a response in
+       * the window. This could exceed max_response_latency_millis because the
+       * latter is evaluated only when a response is received. Expressed in
+       * milliseconds.
+       * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the longestWaitNoResponseMillis field is set. + */ + @java.lang.Override + public boolean hasLongestWaitNoResponseMillis() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Optional. The longest time spent waiting without receiving a response in
+       * the window. This could exceed max_response_latency_millis because the
+       * latter is evaluated only when a response is received. Expressed in
+       * milliseconds.
+       * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The longestWaitNoResponseMillis. + */ + @java.lang.Override + public long getLongestWaitNoResponseMillis() { + return longestWaitNoResponseMillis_; + } + + /** + * + * + *
+       * Optional. The longest time spent waiting without receiving a response in
+       * the window. This could exceed max_response_latency_millis because the
+       * latter is evaluated only when a response is received. Expressed in
+       * milliseconds.
+       * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The longestWaitNoResponseMillis to set. + * @return This builder for chaining. + */ + public Builder setLongestWaitNoResponseMillis(long value) { + + longestWaitNoResponseMillis_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The longest time spent waiting without receiving a response in
+       * the window. This could exceed max_response_latency_millis because the
+       * latter is evaluated only when a response is received. Expressed in
+       * milliseconds.
+       * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearLongestWaitNoResponseMillis() { + bitField0_ = (bitField0_ & ~0x00000004); + longestWaitNoResponseMillis_ = 0L; + onChanged(); + return this; + } + + private long requestsSentCount_; + + /** + * + * + *
+       * Optional. How many requests were sent in the window.
+       * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestsSentCount field is set. + */ + @java.lang.Override + public boolean hasRequestsSentCount() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Optional. How many requests were sent in the window.
+       * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestsSentCount. + */ + @java.lang.Override + public long getRequestsSentCount() { + return requestsSentCount_; + } + + /** + * + * + *
+       * Optional. How many requests were sent in the window.
+       * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The requestsSentCount to set. + * @return This builder for chaining. + */ + public Builder setRequestsSentCount(long value) { + + requestsSentCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. How many requests were sent in the window.
+       * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRequestsSentCount() { + bitField0_ = (bitField0_ & ~0x00000008); + requestsSentCount_ = 0L; + onChanged(); + return this; + } + + private long responsesReceivedCount_; + + /** + * + * + *
+       * Optional. How many responses were received in the window.
+       * 
+ * + * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the responsesReceivedCount field is set. + */ + @java.lang.Override + public boolean hasResponsesReceivedCount() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+       * Optional. How many responses were received in the window.
+       * 
+ * + * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responsesReceivedCount. + */ + @java.lang.Override + public long getResponsesReceivedCount() { + return responsesReceivedCount_; + } + + /** + * + * + *
+       * Optional. How many responses were received in the window.
+       * 
+ * + * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The responsesReceivedCount to set. + * @return This builder for chaining. + */ + public Builder setResponsesReceivedCount(long value) { + + responsesReceivedCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. How many responses were received in the window.
+       * 
+ * + * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearResponsesReceivedCount() { + bitField0_ = (bitField0_ & ~0x00000010); + responsesReceivedCount_ = 0L; + onChanged(); + return this; + } + + private long bytesSentCount_; + + /** + * + * + *
+       * Optional. How many bytes were sent in the window.
+       * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the bytesSentCount field is set. + */ + @java.lang.Override + public boolean hasBytesSentCount() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+       * Optional. How many bytes were sent in the window.
+       * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytesSentCount. + */ + @java.lang.Override + public long getBytesSentCount() { + return bytesSentCount_; + } + + /** + * + * + *
+       * Optional. How many bytes were sent in the window.
+       * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytesSentCount to set. + * @return This builder for chaining. + */ + public Builder setBytesSentCount(long value) { + + bytesSentCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. How many bytes were sent in the window.
+       * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBytesSentCount() { + bitField0_ = (bitField0_ & ~0x00000020); + bytesSentCount_ = 0L; + onChanged(); + return this; + } + + private long windowStartTimeEpochMillis_; + + /** + * + * + *
+       * Optional. Start time of the window interval for which these stats are
+       * aggregated, expressed in epoch milliseconds.
+       * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the windowStartTimeEpochMillis field is set. + */ + @java.lang.Override + public boolean hasWindowStartTimeEpochMillis() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+       * Optional. Start time of the window interval for which these stats are
+       * aggregated, expressed in epoch milliseconds.
+       * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The windowStartTimeEpochMillis. + */ + @java.lang.Override + public long getWindowStartTimeEpochMillis() { + return windowStartTimeEpochMillis_; + } + + /** + * + * + *
+       * Optional. Start time of the window interval for which these stats are
+       * aggregated, expressed in epoch milliseconds.
+       * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The windowStartTimeEpochMillis to set. + * @return This builder for chaining. + */ + public Builder setWindowStartTimeEpochMillis(long value) { + + windowStartTimeEpochMillis_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Start time of the window interval for which these stats are
+       * aggregated, expressed in epoch milliseconds.
+       * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearWindowStartTimeEpochMillis() { + bitField0_ = (bitField0_ & ~0x00000040); + windowStartTimeEpochMillis_ = 0L; + onChanged(); + return this; + } + + private long windowMillis_; + + /** + * + * + *
+       * Optional. Duration of the window interval for which these stats are
+       * aggregated, expressed in milliseconds.
+       * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the windowMillis field is set. + */ + @java.lang.Override + public boolean hasWindowMillis() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+       * Optional. Duration of the window interval for which these stats are
+       * aggregated, expressed in milliseconds.
+       * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The windowMillis. + */ + @java.lang.Override + public long getWindowMillis() { + return windowMillis_; + } + + /** + * + * + *
+       * Optional. Duration of the window interval for which these stats are
+       * aggregated, expressed in milliseconds.
+       * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The windowMillis to set. + * @return This builder for chaining. + */ + public Builder setWindowMillis(long value) { + + windowMillis_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Duration of the window interval for which these stats are
+       * aggregated, expressed in milliseconds.
+       * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWindowMillis() { + bitField0_ = (bitField0_ & ~0x00000080); + windowMillis_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ClientStats.WindowStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ClientStats.WindowStats) + private static final com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats(); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WindowStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int REQUEST_STATS_FIELD_NUMBER = 1; + private com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats requestStats_; + + /** + * + * + *
+   * Optional. Per-request stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestStats field is set. + */ + @java.lang.Override + public boolean hasRequestStats() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Per-request stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestStats. + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats getRequestStats() { + return requestStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.getDefaultInstance() + : requestStats_; + } + + /** + * + * + *
+   * Optional. Per-request stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder + getRequestStatsOrBuilder() { + return requestStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.getDefaultInstance() + : requestStats_; + } + + public static final int WINDOW_STATS_FIELD_NUMBER = 2; + private com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats windowStats_; + + /** + * + * + *
+   * Optional. Windowed stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the windowStats field is set. + */ + @java.lang.Override + public boolean hasWindowStats() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Windowed stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The windowStats. + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats getWindowStats() { + return windowStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.getDefaultInstance() + : windowStats_; + } + + /** + * + * + *
+   * Optional. Windowed stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder + getWindowStatsOrBuilder() { + return windowStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.getDefaultInstance() + : windowStats_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRequestStats()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getWindowStats()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRequestStats()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWindowStats()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ClientStats)) { + return super.equals(obj); + } + com.google.cloud.bigquery.storage.v1.ClientStats other = + (com.google.cloud.bigquery.storage.v1.ClientStats) obj; + + if (hasRequestStats() != other.hasRequestStats()) return false; + if (hasRequestStats()) { + if (!getRequestStats().equals(other.getRequestStats())) return false; + } + if (hasWindowStats() != other.hasWindowStats()) return false; + if (hasWindowStats()) { + if (!getWindowStats().equals(other.getWindowStats())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequestStats()) { + hash = (37 * hash) + REQUEST_STATS_FIELD_NUMBER; + hash = (53 * hash) + getRequestStats().hashCode(); + } + if (hasWindowStats()) { + hash = (37 * hash) + WINDOW_STATS_FIELD_NUMBER; + hash = (53 * hash) + getWindowStats().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ClientStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Stats and telemetry data gathered on the client side about requests
+   * being sent to the BigQuery Storage service, for internal use only.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.ClientStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ClientStats) + com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1.ClientStats.class, + com.google.cloud.bigquery.storage.v1.ClientStats.Builder.class); + } + + // Construct using com.google.cloud.bigquery.storage.v1.ClientStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRequestStatsFieldBuilder(); + internalGetWindowStatsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + requestStats_ = null; + if (requestStatsBuilder_ != null) { + requestStatsBuilder_.dispose(); + requestStatsBuilder_ = null; + } + windowStats_ = null; + if (windowStatsBuilder_ != null) { + windowStatsBuilder_.dispose(); + windowStatsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats build() { + com.google.cloud.bigquery.storage.v1.ClientStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats buildPartial() { + com.google.cloud.bigquery.storage.v1.ClientStats result = + new com.google.cloud.bigquery.storage.v1.ClientStats(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.storage.v1.ClientStats result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.requestStats_ = + requestStatsBuilder_ == null ? requestStats_ : requestStatsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.windowStats_ = + windowStatsBuilder_ == null ? windowStats_ : windowStatsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1.ClientStats) { + return mergeFrom((com.google.cloud.bigquery.storage.v1.ClientStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ClientStats other) { + if (other == com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance()) + return this; + if (other.hasRequestStats()) { + mergeRequestStats(other.getRequestStats()); + } + if (other.hasWindowStats()) { + mergeWindowStats(other.getWindowStats()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetRequestStatsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetWindowStatsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats requestStats_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder> + requestStatsBuilder_; + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestStats field is set. + */ + public boolean hasRequestStats() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestStats. + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats getRequestStats() { + if (requestStatsBuilder_ == null) { + return requestStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.getDefaultInstance() + : requestStats_; + } else { + return requestStatsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRequestStats( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats value) { + if (requestStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestStats_ = value; + } else { + requestStatsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRequestStats( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder builderForValue) { + if (requestStatsBuilder_ == null) { + requestStats_ = builderForValue.build(); + } else { + requestStatsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRequestStats( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats value) { + if (requestStatsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && requestStats_ != null + && requestStats_ + != com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats + .getDefaultInstance()) { + getRequestStatsBuilder().mergeFrom(value); + } else { + requestStats_ = value; + } + } else { + requestStatsBuilder_.mergeFrom(value); + } + if (requestStats_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRequestStats() { + bitField0_ = (bitField0_ & ~0x00000001); + requestStats_ = null; + if (requestStatsBuilder_ != null) { + requestStatsBuilder_.dispose(); + requestStatsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder + getRequestStatsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetRequestStatsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder + getRequestStatsOrBuilder() { + if (requestStatsBuilder_ != null) { + return requestStatsBuilder_.getMessageOrBuilder(); + } else { + return requestStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.getDefaultInstance() + : requestStats_; + } + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder> + internalGetRequestStatsFieldBuilder() { + if (requestStatsBuilder_ == null) { + requestStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder>( + getRequestStats(), getParentForChildren(), isClean()); + requestStats_ = null; + } + return requestStatsBuilder_; + } + + private com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats windowStats_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder> + windowStatsBuilder_; + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the windowStats field is set. + */ + public boolean hasWindowStats() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The windowStats. + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats getWindowStats() { + if (windowStatsBuilder_ == null) { + return windowStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.getDefaultInstance() + : windowStats_; + } else { + return windowStatsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWindowStats( + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats value) { + if (windowStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + windowStats_ = value; + } else { + windowStatsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWindowStats( + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder builderForValue) { + if (windowStatsBuilder_ == null) { + windowStats_ = builderForValue.build(); + } else { + windowStatsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeWindowStats( + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats value) { + if (windowStatsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && windowStats_ != null + && windowStats_ + != com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats + .getDefaultInstance()) { + getWindowStatsBuilder().mergeFrom(value); + } else { + windowStats_ = value; + } + } else { + windowStatsBuilder_.mergeFrom(value); + } + if (windowStats_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearWindowStats() { + bitField0_ = (bitField0_ & ~0x00000002); + windowStats_ = null; + if (windowStatsBuilder_ != null) { + windowStatsBuilder_.dispose(); + windowStatsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder + getWindowStatsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetWindowStatsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder + getWindowStatsOrBuilder() { + if (windowStatsBuilder_ != null) { + return windowStatsBuilder_.getMessageOrBuilder(); + } else { + return windowStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.getDefaultInstance() + : windowStats_; + } + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder> + internalGetWindowStatsFieldBuilder() { + if (windowStatsBuilder_ == null) { + windowStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder>( + getWindowStats(), getParentForChildren(), isClean()); + windowStats_ = null; + } + return windowStatsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ClientStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ClientStats) + private static final com.google.cloud.bigquery.storage.v1.ClientStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ClientStats(); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStatsOrBuilder.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStatsOrBuilder.java new file mode 100644 index 000000000000..bde87406fc62 --- /dev/null +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStatsOrBuilder.java @@ -0,0 +1,114 @@ +/* + * 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/bigquery/storage/v1/storage.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.bigquery.storage.v1; + +@com.google.protobuf.Generated +public interface ClientStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ClientStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Per-request stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestStats field is set. + */ + boolean hasRequestStats(); + + /** + * + * + *
+   * Optional. Per-request stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestStats. + */ + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats getRequestStats(); + + /** + * + * + *
+   * Optional. Per-request stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder getRequestStatsOrBuilder(); + + /** + * + * + *
+   * Optional. Windowed stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the windowStats field is set. + */ + boolean hasWindowStats(); + + /** + * + * + *
+   * Optional. Windowed stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The windowStats. + */ + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats getWindowStats(); + + /** + * + * + *
+   * Optional. Windowed stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder getWindowStatsOrBuilder(); +} diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java index 20600dd1ba66..3a1827886b55 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java @@ -70,6 +70,53 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.bigquery.storage.v1.ReadRowsRequest.Builder.class); } + private int outputFormatSerializationOptionsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object outputFormatSerializationOptions_; + + public enum OutputFormatSerializationOptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ARROW_SERIALIZATION_OPTIONS(5), + OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET(0); + private final int value; + + private OutputFormatSerializationOptionsCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputFormatSerializationOptionsCase valueOf(int value) { + return forNumber(value); + } + + public static OutputFormatSerializationOptionsCase forNumber(int value) { + switch (value) { + case 5: + return ARROW_SERIALIZATION_OPTIONS; + case 0: + return OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OutputFormatSerializationOptionsCase getOutputFormatSerializationOptionsCase() { + return OutputFormatSerializationOptionsCase.forNumber(outputFormatSerializationOptionsCase_); + } + public static final int READ_STREAM_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -148,6 +195,76 @@ public long getOffset() { return offset_; } + public static final int ARROW_SERIALIZATION_OPTIONS_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. Options specific to the Apache Arrow output format.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the arrowSerializationOptions field is set. + */ + @java.lang.Override + public boolean hasArrowSerializationOptions() { + return outputFormatSerializationOptionsCase_ == 5; + } + + /** + * + * + *
+   * Optional. Options specific to the Apache Arrow output format.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The arrowSerializationOptions. + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + getArrowSerializationOptions() { + if (outputFormatSerializationOptionsCase_ == 5) { + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_; + } + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Options specific to the Apache Arrow output format.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder + getArrowSerializationOptionsOrBuilder() { + if (outputFormatSerializationOptionsCase_ == 5) { + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_; + } + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -168,6 +285,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (offset_ != 0L) { output.writeInt64(2, offset_); } + if (outputFormatSerializationOptionsCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_); + } getUnknownFields().writeTo(output); } @@ -183,6 +306,13 @@ public int getSerializedSize() { if (offset_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, offset_); } + if (outputFormatSerializationOptionsCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -201,6 +331,16 @@ public boolean equals(final java.lang.Object obj) { if (!getReadStream().equals(other.getReadStream())) return false; if (getOffset() != other.getOffset()) return false; + if (!getOutputFormatSerializationOptionsCase() + .equals(other.getOutputFormatSerializationOptionsCase())) return false; + switch (outputFormatSerializationOptionsCase_) { + case 5: + if (!getArrowSerializationOptions().equals(other.getArrowSerializationOptions())) + return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -216,6 +356,14 @@ public int hashCode() { hash = (53 * hash) + getReadStream().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + switch (outputFormatSerializationOptionsCase_) { + case 5: + hash = (37 * hash) + ARROW_SERIALIZATION_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getArrowSerializationOptions().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -358,6 +506,11 @@ public Builder clear() { bitField0_ = 0; readStream_ = ""; offset_ = 0L; + if (arrowSerializationOptionsBuilder_ != null) { + arrowSerializationOptionsBuilder_.clear(); + } + outputFormatSerializationOptionsCase_ = 0; + outputFormatSerializationOptions_ = null; return this; } @@ -388,6 +541,7 @@ public com.google.cloud.bigquery.storage.v1.ReadRowsRequest buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -402,6 +556,14 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadRowsRequest } } + private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.ReadRowsRequest result) { + result.outputFormatSerializationOptionsCase_ = outputFormatSerializationOptionsCase_; + result.outputFormatSerializationOptions_ = this.outputFormatSerializationOptions_; + if (outputFormatSerializationOptionsCase_ == 5 && arrowSerializationOptionsBuilder_ != null) { + result.outputFormatSerializationOptions_ = arrowSerializationOptionsBuilder_.build(); + } + } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ReadRowsRequest) { @@ -423,6 +585,17 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadRowsRequest ot if (other.getOffset() != 0L) { setOffset(other.getOffset()); } + switch (other.getOutputFormatSerializationOptionsCase()) { + case ARROW_SERIALIZATION_OPTIONS: + { + mergeArrowSerializationOptions(other.getArrowSerializationOptions()); + break; + } + case OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -461,6 +634,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 42: + { + input.readMessage( + internalGetArrowSerializationOptionsFieldBuilder().getBuilder(), + extensionRegistry); + outputFormatSerializationOptionsCase_ = 5; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -478,6 +659,20 @@ public Builder mergeFrom( return this; } + private int outputFormatSerializationOptionsCase_ = 0; + private java.lang.Object outputFormatSerializationOptions_; + + public OutputFormatSerializationOptionsCase getOutputFormatSerializationOptionsCase() { + return OutputFormatSerializationOptionsCase.forNumber(outputFormatSerializationOptionsCase_); + } + + public Builder clearOutputFormatSerializationOptions() { + outputFormatSerializationOptionsCase_ = 0; + outputFormatSerializationOptions_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object readStream_ = ""; @@ -663,6 +858,273 @@ public Builder clearOffset() { return this; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder> + arrowSerializationOptionsBuilder_; + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the arrowSerializationOptions field is set. + */ + @java.lang.Override + public boolean hasArrowSerializationOptions() { + return outputFormatSerializationOptionsCase_ == 5; + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The arrowSerializationOptions. + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + getArrowSerializationOptions() { + if (arrowSerializationOptionsBuilder_ == null) { + if (outputFormatSerializationOptionsCase_ == 5) { + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_; + } + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + } else { + if (outputFormatSerializationOptionsCase_ == 5) { + return arrowSerializationOptionsBuilder_.getMessage(); + } + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArrowSerializationOptions( + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions value) { + if (arrowSerializationOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputFormatSerializationOptions_ = value; + onChanged(); + } else { + arrowSerializationOptionsBuilder_.setMessage(value); + } + outputFormatSerializationOptionsCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArrowSerializationOptions( + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder builderForValue) { + if (arrowSerializationOptionsBuilder_ == null) { + outputFormatSerializationOptions_ = builderForValue.build(); + onChanged(); + } else { + arrowSerializationOptionsBuilder_.setMessage(builderForValue.build()); + } + outputFormatSerializationOptionsCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeArrowSerializationOptions( + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions value) { + if (arrowSerializationOptionsBuilder_ == null) { + if (outputFormatSerializationOptionsCase_ == 5 + && outputFormatSerializationOptions_ + != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + .getDefaultInstance()) { + outputFormatSerializationOptions_ = + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.newBuilder( + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + outputFormatSerializationOptions_ = value; + } + onChanged(); + } else { + if (outputFormatSerializationOptionsCase_ == 5) { + arrowSerializationOptionsBuilder_.mergeFrom(value); + } else { + arrowSerializationOptionsBuilder_.setMessage(value); + } + } + outputFormatSerializationOptionsCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearArrowSerializationOptions() { + if (arrowSerializationOptionsBuilder_ == null) { + if (outputFormatSerializationOptionsCase_ == 5) { + outputFormatSerializationOptionsCase_ = 0; + outputFormatSerializationOptions_ = null; + onChanged(); + } + } else { + if (outputFormatSerializationOptionsCase_ == 5) { + outputFormatSerializationOptionsCase_ = 0; + outputFormatSerializationOptions_ = null; + } + arrowSerializationOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder + getArrowSerializationOptionsBuilder() { + return internalGetArrowSerializationOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder + getArrowSerializationOptionsOrBuilder() { + if ((outputFormatSerializationOptionsCase_ == 5) + && (arrowSerializationOptionsBuilder_ != null)) { + return arrowSerializationOptionsBuilder_.getMessageOrBuilder(); + } else { + if (outputFormatSerializationOptionsCase_ == 5) { + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_; + } + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder> + internalGetArrowSerializationOptionsFieldBuilder() { + if (arrowSerializationOptionsBuilder_ == null) { + if (!(outputFormatSerializationOptionsCase_ == 5)) { + outputFormatSerializationOptions_ = + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + } + arrowSerializationOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder>( + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_, + getParentForChildren(), + isClean()); + outputFormatSerializationOptions_ = null; + } + outputFormatSerializationOptionsCase_ = 5; + onChanged(); + return arrowSerializationOptionsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadRowsRequest) } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java index 2865a96a8b55..ece641524a11 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java @@ -70,4 +70,57 @@ public interface ReadRowsRequestOrBuilder * @return The offset. */ long getOffset(); + + /** + * + * + *
+   * Optional. Options specific to the Apache Arrow output format.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the arrowSerializationOptions field is set. + */ + boolean hasArrowSerializationOptions(); + + /** + * + * + *
+   * Optional. Options specific to the Apache Arrow output format.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The arrowSerializationOptions. + */ + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getArrowSerializationOptions(); + + /** + * + * + *
+   * Optional. Options specific to the Apache Arrow output format.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder + getArrowSerializationOptionsOrBuilder(); + + com.google.cloud.bigquery.storage.v1.ReadRowsRequest.OutputFormatSerializationOptionsCase + getOutputFormatSerializationOptionsCase(); } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java index c5e3e3e03f28..a8005550cf9d 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java @@ -590,6 +590,51 @@ public long getUncompressedByteSize() { return uncompressedByteSize_; } + public static final int TOTAL_ESTIMATED_ROW_COUNT_FIELD_NUMBER = 10; + private long totalEstimatedRowCount_ = 0L; + + /** + * + * + *
+   * Output only. The total estimated number of rows in the query results.
+   * Only populated when reading data from a BigQuery job.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the totalEstimatedRowCount field is set. + */ + @java.lang.Override + public boolean hasTotalEstimatedRowCount() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The total estimated number of rows in the query results.
+   * Only populated when reading data from a BigQuery job.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalEstimatedRowCount. + */ + @java.lang.Override + public long getTotalEstimatedRowCount() { + return totalEstimatedRowCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -628,6 +673,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(9, uncompressedByteSize_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(10, totalEstimatedRowCount_); + } getUnknownFields().writeTo(output); } @@ -669,6 +717,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, uncompressedByteSize_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, totalEstimatedRowCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -698,6 +749,10 @@ public boolean equals(final java.lang.Object obj) { if (hasUncompressedByteSize()) { if (getUncompressedByteSize() != other.getUncompressedByteSize()) return false; } + if (hasTotalEstimatedRowCount() != other.hasTotalEstimatedRowCount()) return false; + if (hasTotalEstimatedRowCount()) { + if (getTotalEstimatedRowCount() != other.getTotalEstimatedRowCount()) return false; + } if (!getRowsCase().equals(other.getRowsCase())) return false; switch (rowsCase_) { case 3: @@ -745,6 +800,10 @@ public int hashCode() { hash = (37 * hash) + UNCOMPRESSED_BYTE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUncompressedByteSize()); } + if (hasTotalEstimatedRowCount()) { + hash = (37 * hash) + TOTAL_ESTIMATED_ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalEstimatedRowCount()); + } switch (rowsCase_) { case 3: hash = (37 * hash) + AVRO_ROWS_FIELD_NUMBER; @@ -945,6 +1004,7 @@ public Builder clear() { arrowSchemaBuilder_.clear(); } uncompressedByteSize_ = 0L; + totalEstimatedRowCount_ = 0L; rowsCase_ = 0; rows_ = null; schemaCase_ = 0; @@ -1003,6 +1063,10 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadRowsResponse result.uncompressedByteSize_ = uncompressedByteSize_; to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.totalEstimatedRowCount_ = totalEstimatedRowCount_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1050,6 +1114,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadRowsResponse o if (other.hasUncompressedByteSize()) { setUncompressedByteSize(other.getUncompressedByteSize()); } + if (other.hasTotalEstimatedRowCount()) { + setTotalEstimatedRowCount(other.getTotalEstimatedRowCount()); + } switch (other.getRowsCase()) { case AVRO_ROWS: { @@ -1161,6 +1228,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 72 + case 80: + { + totalEstimatedRowCount_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2705,6 +2778,98 @@ public Builder clearUncompressedByteSize() { return this; } + private long totalEstimatedRowCount_; + + /** + * + * + *
+     * Output only. The total estimated number of rows in the query results.
+     * Only populated when reading data from a BigQuery job.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the totalEstimatedRowCount field is set. + */ + @java.lang.Override + public boolean hasTotalEstimatedRowCount() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. The total estimated number of rows in the query results.
+     * Only populated when reading data from a BigQuery job.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalEstimatedRowCount. + */ + @java.lang.Override + public long getTotalEstimatedRowCount() { + return totalEstimatedRowCount_; + } + + /** + * + * + *
+     * Output only. The total estimated number of rows in the query results.
+     * Only populated when reading data from a BigQuery job.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The totalEstimatedRowCount to set. + * @return This builder for chaining. + */ + public Builder setTotalEstimatedRowCount(long value) { + + totalEstimatedRowCount_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The total estimated number of rows in the query results.
+     * Only populated when reading data from a BigQuery job.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTotalEstimatedRowCount() { + bitField0_ = (bitField0_ & ~0x00000100); + totalEstimatedRowCount_ = 0L; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadRowsResponse) } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java index 01de60e462d9..7fd437fded79 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java @@ -330,6 +330,42 @@ public interface ReadRowsResponseOrBuilder */ long getUncompressedByteSize(); + /** + * + * + *
+   * Output only. The total estimated number of rows in the query results.
+   * Only populated when reading data from a BigQuery job.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the totalEstimatedRowCount field is set. + */ + boolean hasTotalEstimatedRowCount(); + + /** + * + * + *
+   * Output only. The total estimated number of rows in the query results.
+   * Only populated when reading data from a BigQuery job.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalEstimatedRowCount. + */ + long getTotalEstimatedRowCount(); + com.google.cloud.bigquery.storage.v1.ReadRowsResponse.RowsCase getRowsCase(); com.google.cloud.bigquery.storage.v1.ReadRowsResponse.SchemaCase getSchemaCase(); diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java index b0a5b90615fc..ff0467f71217 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java @@ -136,6 +136,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ClientStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -145,197 +157,249 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n.google/cloud/bigquery/storage/v1/stora" - + "ge.proto\022 google.cloud.bigquery.storage." + "\n" + + ".google/cloud/bigquery/storage/v1/storage.proto\022 google.cloud.bigquery.storage." + "v1\032\034google/api/annotations.proto\032\027google" + "/api/client.proto\032\037google/api/field_beha" + "vior.proto\032\031google/api/resource.proto\032,g" - + "oogle/cloud/bigquery/storage/v1/arrow.pr" - + "oto\032+google/cloud/bigquery/storage/v1/av" - + "ro.proto\032/google/cloud/bigquery/storage/" - + "v1/protobuf.proto\032-google/cloud/bigquery" + + "oogle/cloud/bigquery/storage/v1/arrow.proto\032+google/cloud/bigquery/storage/v1/av" + + "ro.proto\032/google/cloud/bigquery/storage/v1/protobuf.proto\032-google/cloud/bigquery" + "/storage/v1/stream.proto\032,google/cloud/b" + "igquery/storage/v1/table.proto\032\037google/p" + "rotobuf/timestamp.proto\032\036google/protobuf" - + "/wrappers.proto\032\027google/rpc/status.proto" - + "\"\347\001\n\030CreateReadSessionRequest\022C\n\006parent\030" - + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" - + "leapis.com/Project\022H\n\014read_session\030\002 \001(\013" - + "2-.google.cloud.bigquery.storage.v1.Read" - + "SessionB\003\340A\002\022\030\n\020max_stream_count\030\003 \001(\005\022\"" - + "\n\032preferred_min_stream_count\030\004 \001(\005\"i\n\017Re" - + "adRowsRequest\022F\n\013read_stream\030\001 \001(\tB1\340A\002\372" - + "A+\n)bigquerystorage.googleapis.com/ReadS" - + "tream\022\016\n\006offset\030\002 \001(\003\")\n\rThrottleState\022\030" - + "\n\020throttle_percent\030\001 \001(\005\"\227\001\n\013StreamStats" - + "\022H\n\010progress\030\002 \001(\01326.google.cloud.bigque" - + "ry.storage.v1.StreamStats.Progress\032>\n\010Pr" - + "ogress\022\031\n\021at_response_start\030\001 \001(\001\022\027\n\017at_" - + "response_end\030\002 \001(\001\"\254\004\n\020ReadRowsResponse\022" - + "?\n\tavro_rows\030\003 \001(\0132*.google.cloud.bigque" - + "ry.storage.v1.AvroRowsH\000\022P\n\022arrow_record" - + "_batch\030\004 \001(\01322.google.cloud.bigquery.sto" - + "rage.v1.ArrowRecordBatchH\000\022\021\n\trow_count\030" - + "\006 \001(\003\022<\n\005stats\030\002 \001(\0132-.google.cloud.bigq" - + "uery.storage.v1.StreamStats\022G\n\016throttle_" - + "state\030\005 \001(\0132/.google.cloud.bigquery.stor" - + "age.v1.ThrottleState\022H\n\013avro_schema\030\007 \001(" - + "\0132,.google.cloud.bigquery.storage.v1.Avr" - + "oSchemaB\003\340A\003H\001\022J\n\014arrow_schema\030\010 \001(\0132-.g" - + "oogle.cloud.bigquery.storage.v1.ArrowSch" - + "emaB\003\340A\003H\001\022(\n\026uncompressed_byte_size\030\t \001" - + "(\003B\003\340A\001H\002\210\001\001B\006\n\004rowsB\010\n\006schemaB\031\n\027_uncom" - + "pressed_byte_size\"k\n\026SplitReadStreamRequ" - + "est\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)bigquerystora" - + "ge.googleapis.com/ReadStream\022\020\n\010fraction" - + "\030\002 \001(\001\"\247\001\n\027SplitReadStreamResponse\022D\n\016pr" - + "imary_stream\030\001 \001(\0132,.google.cloud.bigque" - + "ry.storage.v1.ReadStream\022F\n\020remainder_st" - + "ream\030\002 \001(\0132,.google.cloud.bigquery.stora" - + "ge.v1.ReadStream\"\233\001\n\030CreateWriteStreamRe" - + "quest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035bigquery." - + "googleapis.com/Table\022H\n\014write_stream\030\002 \001" - + "(\0132-.google.cloud.bigquery.storage.v1.Wr" - + "iteStreamB\003\340A\002\"\370\010\n\021AppendRowsRequest\022H\n\014" - + "write_stream\030\001 \001(\tB2\340A\002\372A,\n*bigquerystor" - + "age.googleapis.com/WriteStream\022+\n\006offset" - + "\030\002 \001(\0132\033.google.protobuf.Int64Value\022S\n\np" - + "roto_rows\030\004 \001(\0132=.google.cloud.bigquery." - + "storage.v1.AppendRowsRequest.ProtoDataH\000" - + "\022S\n\narrow_rows\030\005 \001(\0132=.google.cloud.bigq" - + "uery.storage.v1.AppendRowsRequest.ArrowD" - + "ataH\000\022\020\n\010trace_id\030\006 \001(\t\022{\n\035missing_value" - + "_interpretations\030\007 \003(\0132T.google.cloud.bi" - + "gquery.storage.v1.AppendRowsRequest.Miss" - + "ingValueInterpretationsEntry\022\201\001\n$default" - + "_missing_value_interpretation\030\010 \001(\0162N.go" - + "ogle.cloud.bigquery.storage.v1.AppendRow" - + "sRequest.MissingValueInterpretationB\003\340A\001" - + "\032\223\001\n\tArrowData\022D\n\rwriter_schema\030\001 \001(\0132-." - + "google.cloud.bigquery.storage.v1.ArrowSc" - + "hema\022@\n\004rows\030\002 \001(\01322.google.cloud.bigque" - + "ry.storage.v1.ArrowRecordBatch\032\214\001\n\tProto" - + "Data\022D\n\rwriter_schema\030\001 \001(\0132-.google.clo" - + "ud.bigquery.storage.v1.ProtoSchema\0229\n\004ro" - + "ws\030\002 \001(\0132+.google.cloud.bigquery.storage" - + ".v1.ProtoRows\032\222\001\n MissingValueInterpreta" - + "tionsEntry\022\013\n\003key\030\001 \001(\t\022]\n\005value\030\002 \001(\0162N" - + ".google.cloud.bigquery.storage.v1.Append" - + "RowsRequest.MissingValueInterpretation:\002" - + "8\001\"m\n\032MissingValueInterpretation\022,\n(MISS" - + "ING_VALUE_INTERPRETATION_UNSPECIFIED\020\000\022\016" - + "\n\nNULL_VALUE\020\001\022\021\n\rDEFAULT_VALUE\020\002B\006\n\004row" - + "s\"\373\002\n\022AppendRowsResponse\022Z\n\rappend_resul" - + "t\030\001 \001(\0132A.google.cloud.bigquery.storage." - + "v1.AppendRowsResponse.AppendResultH\000\022#\n\005" - + "error\030\002 \001(\0132\022.google.rpc.StatusH\000\022E\n\016upd" - + "ated_schema\030\003 \001(\0132-.google.cloud.bigquer" - + "y.storage.v1.TableSchema\022>\n\nrow_errors\030\004" - + " \003(\0132*.google.cloud.bigquery.storage.v1." - + "RowError\022\024\n\014write_stream\030\005 \001(\t\032;\n\014Append" - + "Result\022+\n\006offset\030\001 \001(\0132\033.google.protobuf" - + ".Int64ValueB\n\n\010response\"\232\001\n\025GetWriteStre" - + "amRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*bigquer" - + "ystorage.googleapis.com/WriteStream\022?\n\004v" - + "iew\030\003 \001(\01621.google.cloud.bigquery.storag" - + "e.v1.WriteStreamView\"s\n\036BatchCommitWrite" - + "StreamsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035" - + "bigquery.googleapis.com/Table\022\032\n\rwrite_s" - + "treams\030\002 \003(\tB\003\340A\002\"\231\001\n\037BatchCommitWriteSt" - + "reamsResponse\022/\n\013commit_time\030\001 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022E\n\rstream_errors\030" - + "\002 \003(\0132..google.cloud.bigquery.storage.v1" - + ".StorageError\"^\n\032FinalizeWriteStreamRequ" - + "est\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*bigquerystora" - + "ge.googleapis.com/WriteStream\"0\n\033Finaliz" - + "eWriteStreamResponse\022\021\n\trow_count\030\001 \001(\003\"" - + "\211\001\n\020FlushRowsRequest\022H\n\014write_stream\030\001 \001" - + "(\tB2\340A\002\372A,\n*bigquerystorage.googleapis.c" - + "om/WriteStream\022+\n\006offset\030\002 \001(\0132\033.google." - + "protobuf.Int64Value\"#\n\021FlushRowsResponse" - + "\022\016\n\006offset\030\001 \001(\003\"\244\004\n\014StorageError\022M\n\004cod" - + "e\030\001 \001(\0162?.google.cloud.bigquery.storage." - + "v1.StorageError.StorageErrorCode\022\016\n\006enti" - + "ty\030\002 \001(\t\022\025\n\rerror_message\030\003 \001(\t\"\235\003\n\020Stor" - + "ageErrorCode\022\"\n\036STORAGE_ERROR_CODE_UNSPE" - + "CIFIED\020\000\022\023\n\017TABLE_NOT_FOUND\020\001\022\034\n\030STREAM_" - + "ALREADY_COMMITTED\020\002\022\024\n\020STREAM_NOT_FOUND\020" - + "\003\022\027\n\023INVALID_STREAM_TYPE\020\004\022\030\n\024INVALID_ST" - + "REAM_STATE\020\005\022\024\n\020STREAM_FINALIZED\020\006\022 \n\034SC" - + "HEMA_MISMATCH_EXTRA_FIELDS\020\007\022\031\n\025OFFSET_A" - + "LREADY_EXISTS\020\010\022\027\n\023OFFSET_OUT_OF_RANGE\020\t" - + "\022\025\n\021CMEK_NOT_PROVIDED\020\n\022\031\n\025INVALID_CMEK_" - + "PROVIDED\020\013\022\031\n\025CMEK_ENCRYPTION_ERROR\020\014\022\025\n" - + "\021KMS_SERVICE_ERROR\020\r\022\031\n\025KMS_PERMISSION_D" - + "ENIED\020\016\"\263\001\n\010RowError\022\r\n\005index\030\001 \001(\003\022E\n\004c" - + "ode\030\002 \001(\01627.google.cloud.bigquery.storag" - + "e.v1.RowError.RowErrorCode\022\017\n\007message\030\003 " - + "\001(\t\"@\n\014RowErrorCode\022\036\n\032ROW_ERROR_CODE_UN" - + "SPECIFIED\020\000\022\020\n\014FIELDS_ERROR\020\0012\222\006\n\014BigQue" - + "ryRead\022\351\001\n\021CreateReadSession\022:.google.cl" - + "oud.bigquery.storage.v1.CreateReadSessio" - + "nRequest\032-.google.cloud.bigquery.storage" - + ".v1.ReadSession\"i\332A$parent,read_session," - + "max_stream_count\202\323\344\223\002<\"7/v1/{read_sessio" - + "n.table=projects/*/datasets/*/tables/*}:" - + "\001*\022\317\001\n\010ReadRows\0221.google.cloud.bigquery." - + "storage.v1.ReadRowsRequest\0322.google.clou" - + "d.bigquery.storage.v1.ReadRowsResponse\"Z" - + "\332A\022read_stream,offset\202\323\344\223\002?\022=/v1/{read_s" - + "tream=projects/*/locations/*/sessions/*/" - + "streams/*}0\001\022\306\001\n\017SplitReadStream\0228.googl" - + "e.cloud.bigquery.storage.v1.SplitReadStr" - + "eamRequest\0329.google.cloud.bigquery.stora" - + "ge.v1.SplitReadStreamResponse\">\202\323\344\223\0028\0226/" - + "v1/{name=projects/*/locations/*/sessions" - + "/*/streams/*}\032{\312A\036bigquerystorage.google" - + "apis.com\322AWhttps://www.googleapis.com/au" - + "th/bigquery,https://www.googleapis.com/a" - + "uth/cloud-platform2\274\013\n\rBigQueryWrite\022\327\001\n" - + "\021CreateWriteStream\022:.google.cloud.bigque" - + "ry.storage.v1.CreateWriteStreamRequest\032-" + + "/wrappers.proto\032\027google/rpc/status.proto\"\347\001\n" + + "\030CreateReadSessionRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022H\n" + + "\014read_session\030\002 \001(\013" + + "2-.google.cloud.bigquery.storage.v1.ReadSessionB\003\340A\002\022\030\n" + + "\020max_stream_count\030\003 \001(\005\022\"\n" + + "\032preferred_min_stream_count\030\004 \001(\005\"\371\001\n" + + "\017ReadRowsRequest\022F\n" + + "\013read_stream\030\001 \001(\tB1\340A\002\372A+\n" + + ")bigquerystorage.googleapis.com/ReadStream\022\016\n" + + "\006offset\030\002 \001(\003\022g\n" + + "\033arrow_serialization_options\030\005 \001(\0132;.google.cloud.bigqu" + + "ery.storage.v1.ArrowSerializationOptionsB\003\340A\001H\000B%\n" + + "#output_format_serialization_options\")\n\r" + + "ThrottleState\022\030\n" + + "\020throttle_percent\030\001 \001(\005\"\227\001\n" + + "\013StreamStats\022H\n" + + "\010progress\030\002 " + + "\001(\01326.google.cloud.bigquery.storage.v1.StreamStats.Progress\032>\n" + + "\010Progress\022\031\n" + + "\021at_response_start\030\001 \001(\001\022\027\n" + + "\017at_response_end\030\002 \001(\001\"\367\004\n" + + "\020ReadRowsResponse\022?\n" + + "\tavro_rows\030\003 \001(\0132*.google.cloud.bigquery.storage.v1.AvroRowsH\000\022P\n" + + "\022arrow_record_batch\030\004 \001(\01322." + + "google.cloud.bigquery.storage.v1.ArrowRecordBatchH\000\022\021\n" + + "\trow_count\030\006 \001(\003\022<\n" + + "\005stats\030\002 \001(\0132-.google.cloud.bigquery.storage.v1.StreamStats\022G\n" + + "\016throttle_state\030\005 \001(\0132/.g" + + "oogle.cloud.bigquery.storage.v1.ThrottleState\022H\n" + + "\013avro_schema\030\007 \001(\0132,.google.clou" + + "d.bigquery.storage.v1.AvroSchemaB\003\340A\003H\001\022J\n" + + "\014arrow_schema\030\010" + + " \001(\0132-.google.cloud.bigquery.storage.v1.ArrowSchemaB\003\340A\003H\001\022(\n" + + "\026uncompressed_byte_size\030\t \001(\003B\003\340A\001H\002\210\001\001\022+\n" + + "\031total_estimated_row_count\030\n" + + " \001(\003B\003\340A\003H\003\210\001\001B\006\n" + + "\004rowsB\010\n" + + "\006schemaB\031\n" + + "\027_uncompressed_byte_sizeB\034\n" + + "\032_total_estimated_row_count\"k\n" + + "\026SplitReadStreamRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")bigquerystorage.googleapis.com/ReadStream\022\020\n" + + "\010fraction\030\002 \001(\001\"\247\001\n" + + "\027SplitReadStreamResponse\022D\n" + + "\016primary_stream\030\001 \001(\0132," + + ".google.cloud.bigquery.storage.v1.ReadStream\022F\n" + + "\020remainder_stream\030\002" + + " \001(\0132,.google.cloud.bigquery.storage.v1.ReadStream\"\233\001\n" + + "\030CreateWriteStreamRequest\0225\n" + + "\006parent\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035bigquery.googleapis.com/Table\022H\n" + + "\014write_stream\030\002" + + " \001(\0132-.google.cloud.bigquery.storage.v1.WriteStreamB\003\340A\002\"\302\t\n" + + "\021AppendRowsRequest\022H\n" + + "\014write_stream\030\001 \001(\tB2\340A\002\372A,\n" + + "*bigquerystorage.googleapis.com/WriteStream\022+\n" + + "\006offset\030\002 \001(\0132\033.google.protobuf.Int64Value\022S\n\n" + + "proto_rows\030\004 \001(\0132=.go" + + "ogle.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataH\000\022S\n\n" + + "arrow_rows\030\005 \001(\013" + + "2=.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowDataH\000\022\020\n" + + "\010trace_id\030\006 \001(\t\022{\n" + + "\035missing_value_interpretations\030\007 \003" + + "(\0132T.google.cloud.bigquery.storage.v1.Ap" + + "pendRowsRequest.MissingValueInterpretationsEntry\022\201\001\n" + + "$default_missing_value_interpretation\030\010 \001(\0162N.google.cloud.bigquery." + + "storage.v1.AppendRowsRequest.MissingValueInterpretationB\003\340A\001\022H\n" + + "\014client_stats\030\t \001" + + "(\0132-.google.cloud.bigquery.storage.v1.ClientStatsB\003\340A\001\032\223\001\n" + + "\tArrowData\022D\n\r" + + "writer_schema\030\001 \001(\0132-.google.cloud.bigquery.storage.v1.ArrowSchema\022@\n" + + "\004rows\030\002 \001(\01322.googl" + + "e.cloud.bigquery.storage.v1.ArrowRecordBatch\032\214\001\n" + + "\tProtoData\022D\n\r" + + "writer_schema\030\001 \001(\0132-.google.cloud.bigquery.storage.v1.ProtoSchema\0229\n" + + "\004rows\030\002 \001(\0132+.google.cloud.bigquery.storage.v1.ProtoRows\032\222\001\n" + + " MissingValueInterpretationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022]\n" + + "\005value\030\002 \001(\0162N.google.cloud.bigquery.sto" + + "rage.v1.AppendRowsRequest.MissingValueInterpretation:\0028\001\"m\n" + + "\032MissingValueInterpretation\022,\n" + + "(MISSING_VALUE_INTERPRETATION_UNSPECIFIED\020\000\022\016\n\n" + + "NULL_VALUE\020\001\022\021\n\r" + + "DEFAULT_VALUE\020\002B\006\n" + + "\004rows\"\373\002\n" + + "\022AppendRowsResponse\022Z\n\r" + + "append_result\030\001 \001(\0132A.google.cloud.big" + + "query.storage.v1.AppendRowsResponse.AppendResultH\000\022#\n" + + "\005error\030\002 \001(\0132\022.google.rpc.StatusH\000\022E\n" + + "\016updated_schema\030\003 \001(\0132-.google" + + ".cloud.bigquery.storage.v1.TableSchema\022>\n\n" + + "row_errors\030\004 \003(\0132*.google.cloud.bigquery.storage.v1.RowError\022\024\n" + + "\014write_stream\030\005 \001(\t\032;\n" + + "\014AppendResult\022+\n" + + "\006offset\030\001 \001(\0132\033.google.protobuf.Int64ValueB\n\n" + + "\010response\"\232\001\n" + + "\025GetWriteStreamRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*bigquerystorage.googleapis.com/WriteStream\022?\n" + + "\004view\030\003 \001(\01621.google.cloud.bigquery.storage.v1.WriteStreamView\"s\n" + + "\036BatchCommitWriteStreamsRequest\0225\n" + + "\006parent\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035bigquery.googleapis.com/Table\022\032\n\r" + + "write_streams\030\002 \003(\tB\003\340A\002\"\231\001\n" + + "\037BatchCommitWriteStreamsResponse\022/\n" + + "\013commit_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022E\n\r" + + "stream_errors\030\002 \003(\0132..google.cloud.bigquery.storage.v1.StorageError\"^\n" + + "\032FinalizeWriteStreamRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*bigquerystorage.googleapis.com/WriteStream\"0\n" + + "\033FinalizeWriteStreamResponse\022\021\n" + + "\trow_count\030\001 \001(\003\"\211\001\n" + + "\020FlushRowsRequest\022H\n" + + "\014write_stream\030\001 \001(\tB2\340A\002\372A,\n" + + "*bigquerystorage.googleapis.com/WriteStream\022+\n" + + "\006offset\030\002 \001(\0132\033.google.protobuf.Int64Value\"#\n" + + "\021FlushRowsResponse\022\016\n" + + "\006offset\030\001 \001(\003\"\244\004\n" + + "\014StorageError\022M\n" + + "\004code\030\001 \001(\0162?.google.cloud.big" + + "query.storage.v1.StorageError.StorageErrorCode\022\016\n" + + "\006entity\030\002 \001(\t\022\025\n\r" + + "error_message\030\003 \001(\t\"\235\003\n" + + "\020StorageErrorCode\022\"\n" + + "\036STORAGE_ERROR_CODE_UNSPECIFIED\020\000\022\023\n" + + "\017TABLE_NOT_FOUND\020\001\022\034\n" + + "\030STREAM_ALREADY_COMMITTED\020\002\022\024\n" + + "\020STREAM_NOT_FOUND\020\003\022\027\n" + + "\023INVALID_STREAM_TYPE\020\004\022\030\n" + + "\024INVALID_STREAM_STATE\020\005\022\024\n" + + "\020STREAM_FINALIZED\020\006\022 \n" + + "\034SCHEMA_MISMATCH_EXTRA_FIELDS\020\007\022\031\n" + + "\025OFFSET_ALREADY_EXISTS\020\010\022\027\n" + + "\023OFFSET_OUT_OF_RANGE\020\t\022\025\n" + + "\021CMEK_NOT_PROVIDED\020\n" + + "\022\031\n" + + "\025INVALID_CMEK_PROVIDED\020\013\022\031\n" + + "\025CMEK_ENCRYPTION_ERROR\020\014\022\025\n" + + "\021KMS_SERVICE_ERROR\020\r" + + "\022\031\n" + + "\025KMS_PERMISSION_DENIED\020\016\"\263\001\n" + + "\010RowError\022\r\n" + + "\005index\030\001 \001(\003\022E\n" + + "\004code\030\002 \001(\01627.google.cloud.b" + + "igquery.storage.v1.RowError.RowErrorCode\022\017\n" + + "\007message\030\003 \001(\t\"@\n" + + "\014RowErrorCode\022\036\n" + + "\032ROW_ERROR_CODE_UNSPECIFIED\020\000\022\020\n" + + "\014FIELDS_ERROR\020\001\"\226\007\n" + + "\013ClientStats\022V\n\r" + + "request_stats\030\001 \001" + + "(\0132:.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsB\003\340A\001\022T\n" + + "\014window_stats\030\002" + + " \001(\01329.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsB\003\340A\001\032\212\001\n" + + "\014RequestStats\022\"\n" + + "\020send_time_millis\030\001 \001(\003B\003\340A\001H\000\210\001\001\022\'\n" + + "\025queued_requests_count\030\002 \001(\003B\003\340A\001H\001\210\001\001B\023\n" + + "\021_send_time_millisB\030\n" + + "\026_queued_requests_count\032\313\004\n" + + "\013WindowStats\022-\n" + + "\033max_response_latency_millis\030\001" + + " \001(\003B\003\340A\001H\000\210\001\001\022-\n" + + "\033avg_response_latency_millis\030\002" + + " \001(\003B\003\340A\001H\001\210\001\001\0221\n" + + "\037longest_wait_no_response_millis\030\003" + + " \001(\003B\003\340A\001H\002\210\001\001\022%\n" + + "\023requests_sent_count\030\004 \001(\003B\003\340A\001H\003\210\001\001\022*\n" + + "\030responses_received_count\030\005 \001(\003B\003\340A\001H\004\210\001\001\022\"\n" + + "\020bytes_sent_count\030\006 \001(\003B\003\340A\001H\005\210\001\001\0220\n" + + "\036window_start_time_epoch_millis\030\007" + + " \001(\003B\003\340A\001H\006\210\001\001\022\037\n\r" + + "window_millis\030\010 \001(\003B\003\340A\001H\007\210\001\001B\036\n" + + "\034_max_response_latency_millisB\036\n" + + "\034_avg_response_latency_millisB\"\n" + + " _longest_wait_no_response_millisB\026\n" + + "\024_requests_sent_countB\033\n" + + "\031_responses_received_countB\023\n" + + "\021_bytes_sent_countB!\n" + + "\037_window_start_time_epoch_millisB\020\n" + + "\016_window_millis2\222\006\n" + + "\014BigQueryRead\022\351\001\n" + + "\021CreateReadSession\022:.google.cloud.bigquery.storage.v1.C" + + "reateReadSessionRequest\032-.google.cloud.b" + + "igquery.storage.v1.ReadSession\"i\332A$paren" + + "t,read_session,max_stream_count\202\323\344\223\002<\"7/" + + "v1/{read_session.table=projects/*/datasets/*/tables/*}:\001*\022\317\001\n" + + "\010ReadRows\0221.google.cloud.bigquery.storage.v1.ReadRowsReques" + + "t\0322.google.cloud.bigquery.storage.v1.Rea" + + "dRowsResponse\"Z\332A\022read_stream,offset\202\323\344\223" + + "\002?\022=/v1/{read_stream=projects/*/locations/*/sessions/*/streams/*}0\001\022\306\001\n" + + "\017SplitReadStream\0228.google.cloud.bigquery.storage." + + "v1.SplitReadStreamRequest\0329.google.cloud.bigquery.storage.v1.SplitReadStreamResp" + + "onse\">\202\323\344\223\0028\0226/v1/{name=projects/*/locat" + + "ions/*/sessions/*/streams/*}\032{\312A\036bigquer" + + "ystorage.googleapis.com\322AWhttps://www.go" + + "ogleapis.com/auth/bigquery,https://www.googleapis.com/auth/cloud-platform2\274\013\n\r" + + "BigQueryWrite\022\327\001\n" + + "\021CreateWriteStream\022:.google.cloud.bigquery.storage.v1.CreateWrite" + + "StreamRequest\032-.google.cloud.bigquery.st" + + "orage.v1.WriteStream\"W\332A\023parent,write_st" + + "ream\202\323\344\223\002;\"+/v1/{parent=projects/*/datasets/*/tables/*}:\014write_stream\022\322\001\n\n" + + "AppendRows\0223.google.cloud.bigquery.storage.v1." + + "AppendRowsRequest\0324.google.cloud.bigquer" + + "y.storage.v1.AppendRowsResponse\"U\332A\014writ" + + "e_stream\202\323\344\223\002@\";/v1/{write_stream=projec" + + "ts/*/datasets/*/tables/*/streams/*}:\001*(\0010\001\022\277\001\n" + + "\016GetWriteStream\0227.google.cloud.bigquery.storage.v1.GetWriteStreamRequest\032-" + ".google.cloud.bigquery.storage.v1.WriteS" - + "tream\"W\332A\023parent,write_stream\202\323\344\223\002;\"+/v1" - + "/{parent=projects/*/datasets/*/tables/*}" - + ":\014write_stream\022\322\001\n\nAppendRows\0223.google.c" - + "loud.bigquery.storage.v1.AppendRowsReque" - + "st\0324.google.cloud.bigquery.storage.v1.Ap" - + "pendRowsResponse\"U\332A\014write_stream\202\323\344\223\002@\"" - + ";/v1/{write_stream=projects/*/datasets/*" - + "/tables/*/streams/*}:\001*(\0010\001\022\277\001\n\016GetWrite" - + "Stream\0227.google.cloud.bigquery.storage.v" - + "1.GetWriteStreamRequest\032-.google.cloud.b" - + "igquery.storage.v1.WriteStream\"E\332A\004name\202" - + "\323\344\223\0028\"3/v1/{name=projects/*/datasets/*/t" - + "ables/*/streams/*}:\001*\022\331\001\n\023FinalizeWriteS" - + "tream\022<.google.cloud.bigquery.storage.v1" - + ".FinalizeWriteStreamRequest\032=.google.clo" - + "ud.bigquery.storage.v1.FinalizeWriteStre" - + "amResponse\"E\332A\004name\202\323\344\223\0028\"3/v1/{name=pro" - + "jects/*/datasets/*/tables/*/streams/*}:\001" - + "*\022\334\001\n\027BatchCommitWriteStreams\022@.google.c" - + "loud.bigquery.storage.v1.BatchCommitWrit" - + "eStreamsRequest\032A.google.cloud.bigquery." - + "storage.v1.BatchCommitWriteStreamsRespon" - + "se\"<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=project" - + "s/*/datasets/*/tables/*}\022\313\001\n\tFlushRows\0222" - + ".google.cloud.bigquery.storage.v1.FlushR" - + "owsRequest\0323.google.cloud.bigquery.stora" - + "ge.v1.FlushRowsResponse\"U\332A\014write_stream" - + "\202\323\344\223\002@\";/v1/{write_stream=projects/*/dat" - + "asets/*/tables/*/streams/*}:\001*\032\260\001\312A\036bigq" - + "uerystorage.googleapis.com\322A\213\001https://ww" - + "w.googleapis.com/auth/bigquery,https://w" - + "ww.googleapis.com/auth/bigquery.insertda" - + "ta,https://www.googleapis.com/auth/cloud" - + "-platformB\224\002\n$com.google.cloud.bigquery." - + "storage.v1B\014StorageProtoP\001Z>cloud.google" - + ".com/go/bigquery/storage/apiv1/storagepb" - + ";storagepb\252\002 Google.Cloud.BigQuery.Stora" - + "ge.V1\312\002 Google\\Cloud\\BigQuery\\Storage\\V1" - + "\352AU\n\035bigquery.googleapis.com/Table\0224proj" - + "ects/{project}/datasets/{dataset}/tables" - + "/{table}b\006proto3" + + "tream\"E\332A\004name\202\323\344\223\0028\"3/v1/{name=projects/*/datasets/*/tables/*/streams/*}:\001*\022\331\001\n" + + "\023FinalizeWriteStream\022<.google.cloud.bigquery.storage.v1.FinalizeWriteStreamReque" + + "st\032=.google.cloud.bigquery.storage.v1.Fi" + + "nalizeWriteStreamResponse\"E\332A\004name\202\323\344\223\0028" + + "\"3/v1/{name=projects/*/datasets/*/tables/*/streams/*}:\001*\022\334\001\n" + + "\027BatchCommitWriteStreams\022@.google.cloud.bigquery.storage.v1." + + "BatchCommitWriteStreamsRequest\032A.google.cloud.bigquery.storage.v1.BatchCommitWri" + + "teStreamsResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1/" + + "{parent=projects/*/datasets/*/tables/*}\022\313\001\n" + + "\tFlushRows\0222.google.cloud.bigquery.storage.v1.FlushRowsRequest\0323.google.cloud" + + ".bigquery.storage.v1.FlushRowsResponse\"U" + + "\332A\014write_stream\202\323\344\223\002@\";/v1/{write_stream" + + "=projects/*/datasets/*/tables/*/streams/" + + "*}:\001*\032\260\001\312A\036bigquerystorage.googleapis.co" + + "m\322A\213\001https://www.googleapis.com/auth/big" + + "query,https://www.googleapis.com/auth/bi" + + "gquery.insertdata,https://www.googleapis.com/auth/cloud-platformB\224\002\n" + + "$com.google.cloud.bigquery.storage.v1B\014StorageProtoP" + + "\001Z>cloud.google.com/go/bigquery/storage/apiv1/storagepb;storagepb\252\002" + + " Google.Cloud.BigQuery.Storage.V1\312\002 Google\\Cloud\\BigQuery\\Storage\\V1\352AU\n" + + "\035bigquery.googleapis.com/Table\0224projects/{project}/datasets/{" + + "dataset}/tables/{table}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -368,7 +432,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor, new java.lang.String[] { - "ReadStream", "Offset", + "ReadStream", + "Offset", + "ArrowSerializationOptions", + "OutputFormatSerializationOptions", }); internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor = getDescriptor().getMessageType(2); @@ -408,6 +475,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AvroSchema", "ArrowSchema", "UncompressedByteSize", + "TotalEstimatedRowCount", "Rows", "Schema", }); @@ -448,6 +516,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TraceId", "MissingValueInterpretations", "DefaultMissingValueInterpretation", + "ClientStats", "Rows", }); internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ArrowData_descriptor = @@ -566,6 +635,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Index", "Code", "Message", }); + internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_bigquery_storage_v1_ClientStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor, + new java.lang.String[] { + "RequestStats", "WindowStats", + }); + internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_descriptor = + internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor.getNestedType(0); + internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_descriptor, + new java.lang.String[] { + "SendTimeMillis", "QueuedRequestsCount", + }); + internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_descriptor = + internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor.getNestedType(1); + internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_descriptor, + new java.lang.String[] { + "MaxResponseLatencyMillis", + "AvgResponseLatencyMillis", + "LongestWaitNoResponseMillis", + "RequestsSentCount", + "ResponsesReceivedCount", + "BytesSentCount", + "WindowStartTimeEpochMillis", + "WindowMillis", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto index 0132aab1935b..d676930eb286 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto index 6082fa58d86e..f4bede896014 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto index 2713e057839f..130673efa015 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto index dc0ae7f9f4d8..9b709dac33d6 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. @@ -279,6 +279,18 @@ message ReadRowsRequest { // Requesting a larger offset is undefined. If not specified, start reading // from offset zero. int64 offset = 2; + + // Specifies output serialization options. Only job _default streams are + // supported. + // + // This feature is not yet available. + oneof output_format_serialization_options { + // Optional. Options specific to the Apache Arrow output format. + // + // This feature is not yet available. + ArrowSerializationOptions arrow_serialization_options = 5 + [(google.api.field_behavior) = OPTIONAL]; + } } // Information on if the current connection is being throttled. @@ -365,6 +377,13 @@ message ReadRowsResponse { // greater than 0, the client should skip decompression. optional int64 uncompressed_byte_size = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The total estimated number of rows in the query results. + // Only populated when reading data from a BigQuery job. + // + // This feature is not yet available. + optional int64 total_estimated_row_count = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for `SplitReadStream`. @@ -419,7 +438,7 @@ message CreateWriteStreamRequest { // switching table destinations. You can also switch table destinations within // the same connection for the default stream. // -// The size of a single AppendRowsRequest must be less than 10 MB in size. +// The size of a single AppendRowsRequest must be less than 20 MB in size. // Requests larger than this return an error, typically `INVALID_ARGUMENT`. message AppendRowsRequest { // Arrow schema and data. @@ -559,6 +578,9 @@ message AppendRowsRequest { // time, set `missing_value_interpretations` to `NULL_VALUE` on those columns. MissingValueInterpretation default_missing_value_interpretation = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Stats and telemetry data gathered on the client side. + ClientStats client_stats = 9 [(google.api.field_behavior) = OPTIONAL]; } // Response message for `AppendRows`. @@ -784,3 +806,68 @@ message RowError { // Description of the issue encountered when processing the row. string message = 3; } + +// Stats and telemetry data gathered on the client side about requests +// being sent to the BigQuery Storage service, for internal use only. +message ClientStats { + // Stats and telemetry data gathered on the client side about a single + // request. + message RequestStats { + // Optional. Timestamp indicating when the request was sent over the + // network, expressed in epoch milliseconds. + optional int64 send_time_millis = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of pending requests at the moment this request was sent. + // This includes requests waiting to be sent, and those that are inflight. + optional int64 queued_requests_count = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Aggregate connection metrics over a window interval. + message WindowStats { + // Optional. The maximum response latency observed in the window, expressed + // in milliseconds. + optional int64 max_response_latency_millis = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The average response latency observed in the window, expressed + // in milliseconds. + optional int64 avg_response_latency_millis = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The longest time spent waiting without receiving a response in + // the window. This could exceed max_response_latency_millis because the + // latter is evaluated only when a response is received. Expressed in + // milliseconds. + optional int64 longest_wait_no_response_millis = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How many requests were sent in the window. + optional int64 requests_sent_count = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How many responses were received in the window. + optional int64 responses_received_count = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How many bytes were sent in the window. + optional int64 bytes_sent_count = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Start time of the window interval for which these stats are + // aggregated, expressed in epoch milliseconds. + optional int64 window_start_time_epoch_millis = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Duration of the window interval for which these stats are + // aggregated, expressed in milliseconds. + optional int64 window_millis = 8 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Per-request stats. + RequestStats request_stats = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Windowed stats. + WindowStats window_stats = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto index f0d1dfef5c3e..f70816e6f354 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto index 30c30228c27c..a25c4c442a46 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// 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. diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java index cd247c0a553c..f7ff426a02d4 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java @@ -1696,6 +1696,7 @@ public final ListMessagesPagedResponse listMessages(String parent) { * .setFilter("filter-1274492040") * .setOrderBy("orderBy-1207110587") * .setShowDeleted(true) + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * for (Message element : chatServiceClient.listMessages(request).iterateAll()) { * // doThingsWith(element); @@ -1752,6 +1753,7 @@ public final ListMessagesPagedResponse listMessages(ListMessagesRequest request) * .setFilter("filter-1274492040") * .setOrderBy("orderBy-1207110587") * .setShowDeleted(true) + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * ApiFuture future = chatServiceClient.listMessagesPagedCallable().futureCall(request); * // Do something. @@ -1808,6 +1810,7 @@ public final ListMessagesPagedResponse listMessages(ListMessagesRequest request) * .setFilter("filter-1274492040") * .setOrderBy("orderBy-1207110587") * .setShowDeleted(true) + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * while (true) { * ListMessagesResponse response = chatServiceClient.listMessagesCallable().call(request); @@ -2488,6 +2491,7 @@ public final Message getMessage(String name) { * GetMessageRequest request = * GetMessageRequest.newBuilder() * .setName(MessageName.of("[SPACE]", "[MESSAGE]").toString()) + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * Message response = chatServiceClient.getMessage(request); * } @@ -2538,6 +2542,7 @@ public final Message getMessage(GetMessageRequest request) { * GetMessageRequest request = * GetMessageRequest.newBuilder() * .setName(MessageName.of("[SPACE]", "[MESSAGE]").toString()) + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * ApiFuture future = chatServiceClient.getMessageCallable().futureCall(request); * // Do something. @@ -3199,6 +3204,7 @@ public final SearchMessagesPagedResponse searchMessages(String parent, String fi * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * for (SearchMessageResult element : chatServiceClient.searchMessages(request).iterateAll()) { * // doThingsWith(element); @@ -3255,6 +3261,7 @@ public final SearchMessagesPagedResponse searchMessages(SearchMessagesRequest re * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * ApiFuture future = * chatServiceClient.searchMessagesPagedCallable().futureCall(request); @@ -3312,6 +3319,7 @@ public final SearchMessagesPagedResponse searchMessages(SearchMessagesRequest re * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * while (true) { * SearchMessagesResponse response = chatServiceClient.searchMessagesCallable().call(request); diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java index 10c4917165bc..1682446e1d32 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java @@ -207,6 +207,9 @@ public class ChatServiceStubSettings extends StubSettings serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam( + fields, "markupSyntax", request.getMarkupSyntaxValue()); serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); @@ -323,6 +325,8 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "markupSyntax", request.getMarkupSyntaxValue()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json index e8dcee982f4f..aaeb71985837 100644 --- a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json +++ b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json @@ -3023,6 +3023,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.MarkupSyntax", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.MatchedUrl", "queryAllDeclaredConstructors": true, diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java index 8573d297a97f..d70c3f2f465a 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java @@ -120,6 +120,7 @@ public void createMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -194,6 +195,7 @@ public void createMessageTest2() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -560,6 +562,7 @@ public void getMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -630,6 +633,7 @@ public void getMessageTest2() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -700,6 +704,7 @@ public void updateMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -732,6 +737,7 @@ public void updateMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -790,6 +796,7 @@ public void updateMessageExceptionTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateMessage(message, updateMask); diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java index 73b39d3e206f..72336cfa4a72 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java @@ -123,6 +123,7 @@ public void createMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); @@ -193,6 +194,7 @@ public void createMessageTest2() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); @@ -519,6 +521,7 @@ public void getMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); @@ -583,6 +586,7 @@ public void getMessageTest2() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); @@ -647,6 +651,7 @@ public void updateMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithId.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithId.java index 9d7553c44c7c..fa9569493621 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithId.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithId.java @@ -28,9 +28,17 @@ * [card](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards) * in a Google Chat message. * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the message can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. + * + * To learn how to create a message that contains cards, see [Send a + * message](https://developers.google.com/workspace/chat/create-messages). * * [Card builder](https://addons.gsuite.google.com/uikit/builder) * @@ -361,9 +369,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * [card](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards) * in a Google Chat message. * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the message can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. + * + * To learn how to create a message that contains cards, see [Send a + * message](https://developers.google.com/workspace/chat/create-messages). * * [Card builder](https://addons.gsuite.google.com/uikit/builder) * diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java index 586fcfc45236..0bb68e601132 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java @@ -61,7 +61,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ing.proto\032%google/chat/v1/space_read_sta" + "te.proto\032 google/chat/v1/space_setup.pro" + "to\032&google/chat/v1/thread_read_state.pro" - + "to\032\033google/protobuf/empty.proto2\352H\n\013Chat" + + "to\032\033google/protobuf/empty.proto2\250J\n\013Chat" + "Service\022\233\001\n\rCreateMessage\022$.google.chat." + "v1.CreateMessageRequest\032\027.google.chat.v1" + ".Message\"K\332A\031parent,message,message_id\202\323" @@ -245,8 +245,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "veSectionItemRequest\032\'.google.chat.v1.Mo" + "veSectionItemResponse\"K\332A\023name,target_se" + "ction\202\323\344\223\002/\"*/v1/{name=users/*/sections/" - + "*/items/*}:move:\001*\032\267\017\312A\023chat.googleapis." - + "com\322A\235\017https://www.googleapis.com/auth/c" + + "*/items/*}:move:\001*\032\365\020\312A\023chat.googleapis." + + "com\322A\333\020https://www.googleapis.com/auth/c" + "hat.admin.delete,https://www.googleapis." + "com/auth/chat.admin.memberships,https://" + "www.googleapis.com/auth/chat.admin.membe" @@ -254,52 +254,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "om/auth/chat.admin.spaces,https://www.go" + "ogleapis.com/auth/chat.admin.spaces.read" + "only,https://www.googleapis.com/auth/cha" - + "t.app.delete,https://www.googleapis.com/" - + "auth/chat.app.memberships,https://www.go" - + "ogleapis.com/auth/chat.app.memberships.r" - + "eadonly,https://www.googleapis.com/auth/" - + "chat.app.messages.readonly,https://www.g" - + "oogleapis.com/auth/chat.app.spaces,https" - + "://www.googleapis.com/auth/chat.app.spac" - + "es.create,https://www.googleapis.com/aut" - + "h/chat.app.spaces.readonly,https://www.g" - + "oogleapis.com/auth/chat.bot,https://www." - + "googleapis.com/auth/chat.customemojis,ht" - + "tps://www.googleapis.com/auth/chat.custo" - + "memojis.readonly,https://www.googleapis." - + "com/auth/chat.delete,https://www.googlea" - + "pis.com/auth/chat.import,https://www.goo" - + "gleapis.com/auth/chat.memberships,https:" - + "//www.googleapis.com/auth/chat.membershi" - + "ps.app,https://www.googleapis.com/auth/c" - + "hat.memberships.readonly,https://www.goo" - + "gleapis.com/auth/chat.messages,https://w" - + "ww.googleapis.com/auth/chat.messages.cre" - + "ate,https://www.googleapis.com/auth/chat" - + ".messages.reactions,https://www.googleap" - + "is.com/auth/chat.messages.reactions.crea" + + "t.app.all.memberships.readonly,https://w" + + "ww.googleapis.com/auth/chat.app.all.mess" + + "ages.readonly,https://www.googleapis.com" + + "/auth/chat.app.all.spaces.readonly,https" + + "://www.googleapis.com/auth/chat.app.dele" + "te,https://www.googleapis.com/auth/chat." - + "messages.reactions.readonly,https://www." - + "googleapis.com/auth/chat.messages.readon" - + "ly,https://www.googleapis.com/auth/chat." - + "spaces,https://www.googleapis.com/auth/c" - + "hat.spaces.create,https://www.googleapis" - + ".com/auth/chat.spaces.readonly,https://w" - + "ww.googleapis.com/auth/chat.users.availa" - + "bility,https://www.googleapis.com/auth/c" - + "hat.users.availability.readonly,https://" - + "www.googleapis.com/auth/chat.users.reads" - + "tate,https://www.googleapis.com/auth/cha" - + "t.users.readstate.readonly,https://www.g" - + "oogleapis.com/auth/chat.users.sections,h" - + "ttps://www.googleapis.com/auth/chat.user" - + "s.sections.readonly,https://www.googleap" - + "is.com/auth/chat.users.spacesettingsB\251\001\n" - + "\022com.google.chat.v1B\020ChatServiceProtoP\001Z" - + ",cloud.google.com/go/chat/apiv1/chatpb;c" - + "hatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V" - + "1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::" - + "Chat::V1b\006proto3" + + "app.memberships,https://www.googleapis.c" + + "om/auth/chat.app.memberships.readonly,ht" + + "tps://www.googleapis.com/auth/chat.app.m" + + "essages.readonly,https://www.googleapis." + + "com/auth/chat.app.spaces,https://www.goo" + + "gleapis.com/auth/chat.app.spaces.create," + + "https://www.googleapis.com/auth/chat.app" + + ".spaces.readonly,https://www.googleapis." + + "com/auth/chat.bot,https://www.googleapis" + + ".com/auth/chat.customemojis,https://www." + + "googleapis.com/auth/chat.customemojis.re" + + "adonly,https://www.googleapis.com/auth/c" + + "hat.delete,https://www.googleapis.com/au" + + "th/chat.import,https://www.googleapis.co" + + "m/auth/chat.memberships,https://www.goog" + + "leapis.com/auth/chat.memberships.app,htt" + + "ps://www.googleapis.com/auth/chat.member" + + "ships.readonly,https://www.googleapis.co" + + "m/auth/chat.messages,https://www.googlea" + + "pis.com/auth/chat.messages.create,https:" + + "//www.googleapis.com/auth/chat.messages." + + "reactions,https://www.googleapis.com/aut" + + "h/chat.messages.reactions.create,https:/" + + "/www.googleapis.com/auth/chat.messages.r" + + "eactions.readonly,https://www.googleapis" + + ".com/auth/chat.messages.readonly,https:/" + + "/www.googleapis.com/auth/chat.spaces,htt" + + "ps://www.googleapis.com/auth/chat.spaces" + + ".create,https://www.googleapis.com/auth/" + + "chat.spaces.readonly,https://www.googlea" + + "pis.com/auth/chat.users.availability,htt" + + "ps://www.googleapis.com/auth/chat.users." + + "availability.readonly,https://www.google" + + "apis.com/auth/chat.users.readstate,https" + + "://www.googleapis.com/auth/chat.users.re" + + "adstate.readonly,https://www.googleapis." + + "com/auth/chat.users.sections,https://www" + + ".googleapis.com/auth/chat.users.sections" + + ".readonly,https://www.googleapis.com/aut" + + "h/chat.users.spacesettingsB\251\001\n\022com.googl" + + "e.chat.v1B\020ChatServiceProtoP\001Z,cloud.goo" + + "gle.com/go/chat/apiv1/chatpb;chatpb\242\002\013DY" + + "NAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023Google" + + "\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java index dcec5d02f0d1..517a7ae7992e 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java @@ -398,7 +398,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return The threadKey. */ @java.lang.Override @@ -432,7 +432,7 @@ public java.lang.String getThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return The bytes for threadKey. */ @java.lang.Override @@ -1543,7 +1543,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return The threadKey. */ @java.lang.Deprecated @@ -1576,7 +1576,7 @@ public java.lang.String getThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return The bytes for threadKey. */ @java.lang.Deprecated @@ -1609,7 +1609,7 @@ public com.google.protobuf.ByteString getThreadKeyBytes() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @param value The threadKey to set. * @return This builder for chaining. */ @@ -1641,7 +1641,7 @@ public Builder setThreadKey(java.lang.String value) { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1669,7 +1669,7 @@ public Builder clearThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @param value The bytes for threadKey to set. * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java index ac7a995833ad..5d7a3938a4cb 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java @@ -114,7 +114,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return The threadKey. */ @java.lang.Deprecated @@ -137,7 +137,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return The bytes for threadKey. */ @java.lang.Deprecated diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequest.java index 97f6243e9f79..b00ee8ef28b2 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequest.java @@ -53,6 +53,7 @@ private GetMessageRequest(com.google.protobuf.GeneratedMessage.Builder builde private GetMessageRequest() { name_ = ""; + markupSyntax_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -141,6 +142,47 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int MARKUP_SYNTAX_FIELD_NUMBER = 3; + private int markupSyntax_ = 0; + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -158,6 +200,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + output.writeEnum(3, markupSyntax_); + } getUnknownFields().writeTo(output); } @@ -170,6 +215,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, markupSyntax_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -186,6 +234,7 @@ public boolean equals(final java.lang.Object obj) { com.google.chat.v1.GetMessageRequest other = (com.google.chat.v1.GetMessageRequest) obj; if (!getName().equals(other.getName())) return false; + if (markupSyntax_ != other.markupSyntax_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,6 +248,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MARKUP_SYNTAX_FIELD_NUMBER; + hash = (53 * hash) + markupSyntax_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -339,6 +390,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + markupSyntax_ = 0; return this; } @@ -377,6 +429,9 @@ private void buildPartial0(com.google.chat.v1.GetMessageRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.markupSyntax_ = markupSyntax_; + } } @java.lang.Override @@ -396,6 +451,9 @@ public Builder mergeFrom(com.google.chat.v1.GetMessageRequest other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.markupSyntax_ != 0) { + setMarkupSyntaxValue(other.getMarkupSyntaxValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -428,6 +486,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 24: + { + markupSyntax_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -603,6 +667,116 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private int markupSyntax_ = 0; + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntaxValue(int value) { + markupSyntax_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntax(com.google.chat.v1.MarkupSyntax value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + markupSyntax_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMarkupSyntax() { + bitField0_ = (bitField0_ & ~0x00000002); + markupSyntax_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.chat.v1.GetMessageRequest) } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequestOrBuilder.java index cc3ce25f83a2..1f8863b10653 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequestOrBuilder.java @@ -69,4 +69,34 @@ public interface GetMessageRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + int getMarkupSyntaxValue(); + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + com.google.chat.v1.MarkupSyntax getMarkupSyntax(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequest.java index 3c435771ac32..906f192e9e1a 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequest.java @@ -56,6 +56,7 @@ private ListMessagesRequest() { pageToken_ = ""; filter_ = ""; orderBy_ = ""; + markupSyntax_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -437,6 +438,47 @@ public boolean getShowDeleted() { return showDeleted_; } + public static final int MARKUP_SYNTAX_FIELD_NUMBER = 9; + private int markupSyntax_ = 0; + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -469,6 +511,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (showDeleted_ != false) { output.writeBool(6, showDeleted_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + output.writeEnum(9, markupSyntax_); + } getUnknownFields().writeTo(output); } @@ -496,6 +541,9 @@ public int getSerializedSize() { if (showDeleted_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, showDeleted_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, markupSyntax_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -517,6 +565,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFilter().equals(other.getFilter())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; if (getShowDeleted() != other.getShowDeleted()) return false; + if (markupSyntax_ != other.markupSyntax_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -540,6 +589,8 @@ public int hashCode() { hash = (53 * hash) + getOrderBy().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (37 * hash) + MARKUP_SYNTAX_FIELD_NUMBER; + hash = (53 * hash) + markupSyntax_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -686,6 +737,7 @@ public Builder clear() { filter_ = ""; orderBy_ = ""; showDeleted_ = false; + markupSyntax_ = 0; return this; } @@ -740,6 +792,9 @@ private void buildPartial0(com.google.chat.v1.ListMessagesRequest result) { if (((from_bitField0_ & 0x00000020) != 0)) { result.showDeleted_ = showDeleted_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.markupSyntax_ = markupSyntax_; + } } @java.lang.Override @@ -780,6 +835,9 @@ public Builder mergeFrom(com.google.chat.v1.ListMessagesRequest other) { if (other.getShowDeleted() != false) { setShowDeleted(other.getShowDeleted()); } + if (other.markupSyntax_ != 0) { + setMarkupSyntaxValue(other.getMarkupSyntaxValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -842,6 +900,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 72: + { + markupSyntax_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1707,6 +1771,116 @@ public Builder clearShowDeleted() { return this; } + private int markupSyntax_ = 0; + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntaxValue(int value) { + markupSyntax_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntax(com.google.chat.v1.MarkupSyntax value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + markupSyntax_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMarkupSyntax() { + bitField0_ = (bitField0_ & ~0x00000040); + markupSyntax_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.chat.v1.ListMessagesRequest) } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequestOrBuilder.java index 6c87a913c19a..108b9e1d070a 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequestOrBuilder.java @@ -269,4 +269,34 @@ public interface ListMessagesRequestOrBuilder * @return The showDeleted. */ boolean getShowDeleted(); + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + int getMarkupSyntaxValue(); + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + com.google.chat.v1.MarkupSyntax getMarkupSyntax(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntax.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntax.java new file mode 100644 index 000000000000..20542c0d9f60 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntax.java @@ -0,0 +1,208 @@ +/* + * 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/chat/v1/markup_syntax.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +/** + * + * + *
+ * Specifies the markup syntax used to format the Chat message text.
+ * Applies to the `text` field of the `Message` resource.
+ * 
+ * + * Protobuf enum {@code google.chat.v1.MarkupSyntax} + */ +@com.google.protobuf.Generated +public enum MarkupSyntax implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Represents the unspecified value.
+   * 
+ * + * MARKUP_SYNTAX_UNSPECIFIED = 0; + */ + MARKUP_SYNTAX_UNSPECIFIED(0), + /** + * + * + *
+   * Uses Google Chat's markup syntax.
+   * See
+   * https://developers.google.com/workspace/chat/format-messages#format-texts
+   * for more information.
+   * 
+ * + * MARKUP_SYNTAX_CHAT = 1; + */ + MARKUP_SYNTAX_CHAT(1), + /** + * + * + *
+   * Uses Markdown syntax. This syntax is based on the
+   * [CommonMark](https://commonmark.org/help/) specification, with additional
+   * extensions.
+   * See
+   * https://developers.google.com/workspace/chat/format-messages#format-texts
+   * for more information.
+   * 
+ * + * MARKUP_SYNTAX_MARKDOWN = 2; + */ + MARKUP_SYNTAX_MARKDOWN(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MarkupSyntax"); + } + + /** + * + * + *
+   * Represents the unspecified value.
+   * 
+ * + * MARKUP_SYNTAX_UNSPECIFIED = 0; + */ + public static final int MARKUP_SYNTAX_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Uses Google Chat's markup syntax.
+   * See
+   * https://developers.google.com/workspace/chat/format-messages#format-texts
+   * for more information.
+   * 
+ * + * MARKUP_SYNTAX_CHAT = 1; + */ + public static final int MARKUP_SYNTAX_CHAT_VALUE = 1; + + /** + * + * + *
+   * Uses Markdown syntax. This syntax is based on the
+   * [CommonMark](https://commonmark.org/help/) specification, with additional
+   * extensions.
+   * See
+   * https://developers.google.com/workspace/chat/format-messages#format-texts
+   * for more information.
+   * 
+ * + * MARKUP_SYNTAX_MARKDOWN = 2; + */ + public static final int MARKUP_SYNTAX_MARKDOWN_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 MarkupSyntax 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 MarkupSyntax forNumber(int value) { + switch (value) { + case 0: + return MARKUP_SYNTAX_UNSPECIFIED; + case 1: + return MARKUP_SYNTAX_CHAT; + case 2: + return MARKUP_SYNTAX_MARKDOWN; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MarkupSyntax findValueByNumber(int number) { + return MarkupSyntax.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.chat.v1.MarkupSyntaxProto.getDescriptor().getEnumTypes().get(0); + } + + private static final MarkupSyntax[] VALUES = values(); + + public static MarkupSyntax valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MarkupSyntax(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.chat.v1.MarkupSyntax) +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntaxProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntaxProto.java new file mode 100644 index 000000000000..6a5eec96ec48 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntaxProto.java @@ -0,0 +1,68 @@ +/* + * 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/chat/v1/markup_syntax.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public final class MarkupSyntaxProto extends com.google.protobuf.GeneratedFile { + private MarkupSyntaxProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MarkupSyntaxProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\"google/chat/v1/markup_syntax.proto\022\016go" + + "ogle.chat.v1*a\n\014MarkupSyntax\022\035\n\031MARKUP_S" + + "YNTAX_UNSPECIFIED\020\000\022\026\n\022MARKUP_SYNTAX_CHA" + + "T\020\001\022\032\n\026MARKUP_SYNTAX_MARKDOWN\020\002B\252\001\n\022com." + + "google.chat.v1B\021MarkupSyntaxProtoP\001Z,clo" + + "ud.google.com/go/chat/apiv1/chatpb;chatp" + + "b\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023" + + "Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat" + + "::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java index c45f8ecd1cdd..fe22f7680d4b 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java @@ -65,6 +65,7 @@ private Message() { emojiReactionSummaries_ = java.util.Collections.emptyList(); attachedGifs_ = java.util.Collections.emptyList(); accessoryWidgets_ = java.util.Collections.emptyList(); + markupSyntax_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -703,9 +704,14 @@ public com.google.chat.v1.ContextualAddOnMarkup.CardOrBuilder getCardsOrBuilder( * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -729,9 +735,14 @@ public java.util.List getCardsV2List() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -756,9 +767,14 @@ public java.util.List getCardsV2List() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -782,9 +798,14 @@ public int getCardsV2Count() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -808,9 +829,14 @@ public com.google.chat.v1.CardWithId getCardsV2(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -2060,6 +2086,49 @@ public com.google.chat.v1.AccessoryWidgetOrBuilder getAccessoryWidgetsOrBuilder( return accessoryWidgets_.get(index); } + public static final int MARKUP_SYNTAX_FIELD_NUMBER = 47; + private int markupSyntax_ = 0; + + /** + * + * + *
+   * Optional. Specifies how the server interprets the message `text` field
+   * content.
+   * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+   * Optional. Specifies how the server interprets the message `text` field
+   * content.
+   * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2155,6 +2224,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (silent_ != false) { output.writeBool(46, silent_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + output.writeEnum(47, markupSyntax_); + } getUnknownFields().writeTo(output); } @@ -2250,6 +2322,9 @@ public int getSerializedSize() { if (silent_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(46, silent_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(47, markupSyntax_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2329,6 +2404,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getAttachedGifsList().equals(other.getAttachedGifsList())) return false; if (!getAccessoryWidgetsList().equals(other.getAccessoryWidgetsList())) return false; + if (markupSyntax_ != other.markupSyntax_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2432,6 +2508,8 @@ public int hashCode() { hash = (37 * hash) + ACCESSORY_WIDGETS_FIELD_NUMBER; hash = (53 * hash) + getAccessoryWidgetsList().hashCode(); } + hash = (37 * hash) + MARKUP_SYNTAX_FIELD_NUMBER; + hash = (53 * hash) + markupSyntax_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2713,6 +2791,7 @@ public Builder clear() { accessoryWidgetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x04000000); + markupSyntax_ = 0; return this; } @@ -2897,6 +2976,9 @@ private void buildPartial0(com.google.chat.v1.Message result) { : quotedMessageMetadataBuilder_.build(); to_bitField0_ |= 0x00000800; } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.markupSyntax_ = markupSyntax_; + } result.bitField0_ |= to_bitField0_; } @@ -3173,6 +3255,9 @@ public Builder mergeFrom(com.google.chat.v1.Message other) { } } } + if (other.markupSyntax_ != 0) { + setMarkupSyntaxValue(other.getMarkupSyntaxValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3415,6 +3500,12 @@ public Builder mergeFrom( bitField0_ |= 0x00080000; break; } // case 368 + case 376: + { + markupSyntax_ = input.readEnum(); + bitField0_ |= 0x08000000; + break; + } // case 376 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5454,9 +5545,14 @@ private void ensureCardsV2IsMutable() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5483,9 +5579,14 @@ public java.util.List getCardsV2List() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5512,9 +5613,14 @@ public int getCardsV2Count() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5541,9 +5647,14 @@ public com.google.chat.v1.CardWithId getCardsV2(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5576,9 +5687,14 @@ public Builder setCardsV2(int index, com.google.chat.v1.CardWithId value) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5608,9 +5724,14 @@ public Builder setCardsV2(int index, com.google.chat.v1.CardWithId.Builder build * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5643,9 +5764,14 @@ public Builder addCardsV2(com.google.chat.v1.CardWithId value) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5678,9 +5804,14 @@ public Builder addCardsV2(int index, com.google.chat.v1.CardWithId value) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5710,9 +5841,14 @@ public Builder addCardsV2(com.google.chat.v1.CardWithId.Builder builderForValue) * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5742,9 +5878,14 @@ public Builder addCardsV2(int index, com.google.chat.v1.CardWithId.Builder build * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5775,9 +5916,14 @@ public Builder addAllCardsV2( * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5807,9 +5953,14 @@ public Builder clearCardsV2() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5839,9 +5990,14 @@ public Builder removeCardsV2(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5864,9 +6020,14 @@ public com.google.chat.v1.CardWithId.Builder getCardsV2Builder(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5893,9 +6054,14 @@ public com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5923,9 +6089,14 @@ public com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5949,9 +6120,14 @@ public com.google.chat.v1.CardWithId.Builder addCardsV2Builder() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5975,9 +6151,14 @@ public com.google.chat.v1.CardWithId.Builder addCardsV2Builder(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -10636,6 +10817,116 @@ public com.google.chat.v1.AccessoryWidget.Builder addAccessoryWidgetsBuilder(int return accessoryWidgetsBuilder_; } + private int markupSyntax_ = 0; + + /** + * + * + *
+     * Optional. Specifies how the server interprets the message `text` field
+     * content.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+     * Optional. Specifies how the server interprets the message `text` field
+     * content.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntaxValue(int value) { + markupSyntax_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies how the server interprets the message `text` field
+     * content.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. Specifies how the server interprets the message `text` field
+     * content.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntax(com.google.chat.v1.MarkupSyntax value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x08000000; + markupSyntax_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies how the server interprets the message `text` field
+     * content.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMarkupSyntax() { + bitField0_ = (bitField0_ & ~0x08000000); + markupSyntax_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.chat.v1.Message) } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java index 32b87c9a6932..317a98f74808 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java @@ -491,9 +491,14 @@ public interface MessageOrBuilder * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -514,9 +519,14 @@ public interface MessageOrBuilder * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -537,9 +547,14 @@ public interface MessageOrBuilder * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -560,9 +575,14 @@ public interface MessageOrBuilder * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -583,9 +603,14 @@ public interface MessageOrBuilder * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -1518,4 +1543,36 @@ public interface MessageOrBuilder * */ com.google.chat.v1.AccessoryWidgetOrBuilder getAccessoryWidgetsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Specifies how the server interprets the message `text` field
+   * content.
+   * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + int getMarkupSyntaxValue(); + + /** + * + * + *
+   * Optional. Specifies how the server interprets the message `text` field
+   * content.
+   * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + com.google.chat.v1.MarkupSyntax getMarkupSyntax(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java index 46c021ffb966..7a555b118e82 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java @@ -149,18 +149,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "n_status.proto\032\037google/chat/v1/annotatio" + "n.proto\032\037google/chat/v1/attachment.proto" + "\032%google/chat/v1/contextual_addon.proto\032" - + "&google/chat/v1/deletion_metadata.proto\032" - + " google/chat/v1/matched_url.proto\032\035googl" - + "e/chat/v1/reaction.proto\032\"google/chat/v1" - + "/slash_command.proto\032\032google/chat/v1/spa" - + "ce.proto\032/google/chat/v1/space_notificat" - + "ion_setting.proto\032\031google/chat/v1/user.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\351\n\n" + + "&google/chat/v1/deletion_metadata.proto\032\"google/chat/v1/markup_syntax.proto\032" + + " google/chat/v1/matched_url.proto\032\035google/ch" + + "at/v1/reaction.proto\032\"google/chat/v1/sla" + + "sh_command.proto\032\032google/chat/v1/space.p" + + "roto\032/google/chat/v1/space_notification_" + + "setting.proto\032\031google/chat/v1/user.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\243\013\n" + "\007Message\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022)\n" + "\006sender\030\002 \001(\0132\024.google.chat.v1.UserB\003\340A\003\0227\n" - + "\013create_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\006\340A\005\340A\001\0229\n" + + "\013create_time\030\003 \001" + + "(\0132\032.google.protobuf.TimestampB\006\340A\005\340A\001\0229\n" + "\020last_update_time\030\027" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013delete_time\030\032" @@ -197,7 +197,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132%.google.chat.v1.QuotedMessageMetadataB\003\340A\001\0227\n\r" + "attached_gifs\030* \003(\0132\033.google.chat.v1.AttachedGifB\003\340A\003\022?\n" + "\021accessory_widgets\030," - + " \003(\0132\037.google.chat.v1.AccessoryWidgetB\003\340A\001:C\352A@\n" + + " \003(\0132\037.google.chat.v1.AccessoryWidgetB\003\340A\001\0228\n\r" + + "markup_syntax\030/ \001(\0162\034.google.chat.v1.MarkupSyntaxB\003\340A\001:C\352A@\n" + "\033chat.googleapis.com/Message\022!spaces/{space}/messages/{message}\"\037\n" + "\013AttachedGif\022\020\n" + "\003uri\030\001 \001(\tB\003\340A\003\"\245\004\n" @@ -216,8 +217,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026QUOTE_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005REPLY\020\001\022\013\n" + "\007FORWARD\020\002:\201\001\352A~\n" - + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces/{space}/messages/{message}/quo" - + "tedMessageMetadata/{quoted_message_metadata}\"\310\001\n" + + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces/{space}/messages" + + "/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\310\001\n" + "\025QuotedMessageSnapshot\022\023\n" + "\006sender\030\001 \001(\tB\003\340A\003\022\021\n" + "\004text\030\002 \001(\tB\003\340A\003\022\033\n" @@ -233,18 +234,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "thread_key\030\003 \001(\tB\003\340A\001:@\352A=\n" + "\032chat.googleapis.com/Thread\022\037spaces/{space}/threads/{thread}\"\322\004\n" + "\016ActionResponse\022>\n" - + "\004type\030\001" - + " \001(\0162+.google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n" + + "\004type\030\001 \001(\0162+" + + ".google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n" + "\003url\030\002 \001(\tB\003\340A\004\0228\n\r" + "dialog_action\030\003 \001(\0132\034.google.chat.v1.DialogActionB\003\340A\004\022I\n" - + "\016updated_widget\030\004" - + " \001(\0132,.google.chat.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n" + + "\016updated_widget\030\004 \001(\0132,.google.ch" + + "at.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n" + "\016SelectionItems\022@\n" - + "\005items\030\001" - + " \003(\01321.google.apps.card.v1.SelectionInput.SelectionItem\032w\n\r" + + "\005items\030\001 \003(\01321.googl" + + "e.apps.card.v1.SelectionInput.SelectionItem\032w\n\r" + "UpdatedWidget\022D\n" - + "\013suggestions\030\001" - + " \001(\0132-.google.chat.v1.ActionResponse.SelectionItemsH\000\022\016\n" + + "\013suggestions\030\001 \001(" + + "\0132-.google.chat.v1.ActionResponse.SelectionItemsH\000\022\016\n" + "\006widget\030\002 \001(\tB\020\n" + "\016updated_widget\"\233\001\n" + "\014ResponseType\022\024\n" @@ -257,10 +258,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "UPDATE_WIDGET\020\007\"S\n" + "\017AccessoryWidget\0226\n" + "\013button_list\030\001 \001(\0132\037.google.apps.card.v1.ButtonListH\000B\010\n" - + "\006action\"F\n" + + "\006action\"\200\001\n" + "\021GetMessageRequest\0221\n" + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" - + "\033chat.googleapis.com/Message\"]\n" + + "\033chat.googleapis.com/Message\0228\n\r" + + "markup_syntax\030\003 \001(\0162\034.google.chat.v1.MarkupSyntaxB\003\340A\001\"]\n" + "\024DeleteMessageRequest\0221\n" + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + "\033chat.googleapis.com/Message\022\022\n" @@ -276,8 +278,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007message\030\004 \001(\0132\027.google.chat.v1.MessageB\003\340A\002\022\031\n\n" + "thread_key\030\006 \001(\tB\005\030\001\340A\001\022\027\n\n" + "request_id\030\007 \001(\tB\003\340A\001\022Z\n" - + "\024message_reply_option\030\010 \001(" - + "\01627.google.chat.v1.CreateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n" + + "\024message_reply_option\030\010 \001(\01627.goo" + + "gle.chat.v1.CreateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n" + "message_id\030\t \001(\tB\003\340A\001\022b\n" + "#create_message_notification_options\030\n" + " \001(\01320.google.chat.v1.CreateMessageNotificationOptionsB\003\340A\001\"\177\n" @@ -286,12 +288,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD\020\001\022\031\n" + "\025REPLY_MESSAGE_OR_FAIL\020\002\"\362\001\n" + " CreateMessageNotificationOptions\022\\\n" - + "\021notification_type\030\001 \001(\0162A.google.chat.v1.C" - + "reateMessageNotificationOptions.NotificationType\"p\n" + + "\021notification_type\030\001 \001(\0162A.google.chat.v1.CreateMe" + + "ssageNotificationOptions.NotificationType\"p\n" + "\020NotificationType\022\032\n" + "\026NOTIFICATION_TYPE_NONE\020\000\022\"\n" + "\036NOTIFICATION_TYPE_FORCE_NOTIFY\020\002\022\034\n" - + "\030NOTIFICATION_TYPE_SILENT\020\003\"\302\001\n" + + "\030NOTIFICATION_TYPE_SILENT\020\003\"\374\001\n" + "\023ListMessagesRequest\0223\n" + "\006parent\030\001 \001(" + "\tB#\340A\002\372A\035\022\033chat.googleapis.com/Message\022\026\n" @@ -299,7 +301,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\022\031\n" - + "\014show_deleted\030\006 \001(\010B\003\340A\001\"Z\n" + + "\014show_deleted\030\006 \001(\010B\003\340A\001\0228\n\r" + + "markup_syntax\030\t \001(\0162\034.google.chat.v1.MarkupSyntaxB\003\340A\001\"Z\n" + "\024ListMessagesResponse\022)\n" + "\010messages\030\001 \003(\0132\027.google.chat.v1.Message\022\027\n" + "\017next_page_token\030\002 \001(\t\"\201\001\n" @@ -311,16 +314,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004body\030\001 \001(\0132\031.google.apps.card.v1.CardB\003\340A\004\"F\n\n" + "CardWithId\022\017\n" + "\007card_id\030\001 \001(\t\022\'\n" - + "\004card\030\002 \001(\0132\031.google.apps.card.v1.Card\"\357\002\n" + + "\004card\030\002 \001(\0132\031.google.apps.card.v1.Card\"\251\003\n" + "\025SearchMessagesRequest\0221\n" + "\006parent\030\001 \001(\tB!\340A\002\372A\033\n" + "\031chat.googleapis.com/Space\022\023\n" + "\006filter\030\002 \001(\tB\003\340A\002\022\026\n" + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\004 \001(\tB\003\340A\001\022\025\n" - + "\010order_by\030\005 \001(\tB\003\340A\001\022K\n" - + "\004view\030\007 \001(\01628.google.chat.v1.SearchM" - + "essagesRequest.SearchMessagesViewB\003\340A\001\"y\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\0228\n\r" + + "markup_syntax\030\006 \001(\0162\034.google.chat.v1.MarkupSyntaxB\003\340A\001\022K\n" + + "\004view\030\007" + + " \001(\01628.google.chat.v1.SearchMessagesRequest.SearchMessagesViewB\003\340A\001\"y\n" + "\022SearchMessagesView\022$\n" + " SEARCH_MESSAGES_VIEW_UNSPECIFIED\020\000\022\036\n" + "\032SEARCH_MESSAGES_VIEW_BASIC\020\001\022\035\n" @@ -334,9 +338,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022space_mute_setting\030\004" + " \001(\01624.google.chat.v1.SpaceNotificationSetting.MuteSettingB\007\n" + "\005_readB\245\001\n" - + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/go/chat/apiv1/chatpb" - + ";chatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat" - + ".V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.go" + + "ogle.com/go/chat/apiv1/chatpb;chatpb\242\002\013D" + + "YNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023Googl" + + "e\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -350,6 +355,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.chat.v1.AttachmentProto.getDescriptor(), com.google.chat.v1.ContextualAddOnProto.getDescriptor(), com.google.chat.v1.DeletionMetadataProto.getDescriptor(), + com.google.chat.v1.MarkupSyntaxProto.getDescriptor(), com.google.chat.v1.MatchedUrlProto.getDescriptor(), com.google.chat.v1.ReactionProto.getDescriptor(), com.google.chat.v1.SlashCommandProto.getDescriptor(), @@ -391,6 +397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QuotedMessageMetadata", "AttachedGifs", "AccessoryWidgets", + "MarkupSyntax", }); internal_static_google_chat_v1_AttachedGif_descriptor = getDescriptor().getMessageType(1); internal_static_google_chat_v1_AttachedGif_fieldAccessorTable = @@ -464,7 +471,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_GetMessageRequest_descriptor, new java.lang.String[] { - "Name", + "Name", "MarkupSyntax", }); internal_static_google_chat_v1_DeleteMessageRequest_descriptor = getDescriptor().getMessageType(9); @@ -510,7 +517,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_ListMessagesRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "ShowDeleted", + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "ShowDeleted", "MarkupSyntax", }); internal_static_google_chat_v1_ListMessagesResponse_descriptor = getDescriptor().getMessageType(14); @@ -547,7 +554,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_SearchMessagesRequest_descriptor, new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "View", + "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "MarkupSyntax", "View", }); internal_static_google_chat_v1_SearchMessagesResponse_descriptor = getDescriptor().getMessageType(19); @@ -574,6 +581,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.chat.v1.AttachmentProto.getDescriptor(); com.google.chat.v1.ContextualAddOnProto.getDescriptor(); com.google.chat.v1.DeletionMetadataProto.getDescriptor(); + com.google.chat.v1.MarkupSyntaxProto.getDescriptor(); com.google.chat.v1.MatchedUrlProto.getDescriptor(); com.google.chat.v1.ReactionProto.getDescriptor(); com.google.chat.v1.SlashCommandProto.getDescriptor(); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequest.java index 0a46e12262a8..c4e6c38f393b 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequest.java @@ -56,6 +56,7 @@ private SearchMessagesRequest() { filter_ = ""; pageToken_ = ""; orderBy_ = ""; + markupSyntax_ = 0; view_ = 0; } @@ -785,6 +786,47 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } + public static final int MARKUP_SYNTAX_FIELD_NUMBER = 6; + private int markupSyntax_ = 0; + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + public static final int VIEW_FIELD_NUMBER = 7; private int view_ = 0; @@ -859,6 +901,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + output.writeEnum(6, markupSyntax_); + } if (view_ != com.google.chat.v1.SearchMessagesRequest.SearchMessagesView .SEARCH_MESSAGES_VIEW_UNSPECIFIED @@ -889,6 +934,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, markupSyntax_); + } if (view_ != com.google.chat.v1.SearchMessagesRequest.SearchMessagesView .SEARCH_MESSAGES_VIEW_UNSPECIFIED @@ -915,6 +963,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; + if (markupSyntax_ != other.markupSyntax_) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -937,6 +986,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + MARKUP_SYNTAX_FIELD_NUMBER; + hash = (53 * hash) + markupSyntax_; hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + view_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1084,6 +1135,7 @@ public Builder clear() { pageSize_ = 0; pageToken_ = ""; orderBy_ = ""; + markupSyntax_ = 0; view_ = 0; return this; } @@ -1137,6 +1189,9 @@ private void buildPartial0(com.google.chat.v1.SearchMessagesRequest result) { result.orderBy_ = orderBy_; } if (((from_bitField0_ & 0x00000020) != 0)) { + result.markupSyntax_ = markupSyntax_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.view_ = view_; } } @@ -1176,6 +1231,9 @@ public Builder mergeFrom(com.google.chat.v1.SearchMessagesRequest other) { bitField0_ |= 0x00000010; onChanged(); } + if (other.markupSyntax_ != 0) { + setMarkupSyntaxValue(other.getMarkupSyntaxValue()); + } if (other.view_ != 0) { setViewValue(other.getViewValue()); } @@ -1235,10 +1293,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 48: + { + markupSyntax_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 case 56: { view_ = input.readEnum(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 56 default: @@ -2518,6 +2582,116 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } + private int markupSyntax_ = 0; + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntaxValue(int value) { + markupSyntax_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntax(com.google.chat.v1.MarkupSyntax value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + markupSyntax_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMarkupSyntax() { + bitField0_ = (bitField0_ & ~0x00000020); + markupSyntax_ = 0; + onChanged(); + return this; + } + private int view_ = 0; /** @@ -2556,7 +2730,7 @@ public int getViewValue() { */ public Builder setViewValue(int value) { view_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2603,7 +2777,7 @@ public Builder setView(com.google.chat.v1.SearchMessagesRequest.SearchMessagesVi if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; view_ = value.getNumber(); onChanged(); return this; @@ -2624,7 +2798,7 @@ public Builder setView(com.google.chat.v1.SearchMessagesRequest.SearchMessagesVi * @return This builder for chaining. */ public Builder clearView() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); view_ = 0; onChanged(); return this; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequestOrBuilder.java index 6ccfab3902f0..99dd999b5a46 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequestOrBuilder.java @@ -445,6 +445,36 @@ public interface SearchMessagesRequestOrBuilder */ com.google.protobuf.ByteString getOrderByBytes(); + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + int getMarkupSyntaxValue(); + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + com.google.chat.v1.MarkupSyntax getMarkupSyntax(); + /** * * diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequest.java index f54934d5760d..61d7b5002f13 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequest.java @@ -469,6 +469,7 @@ public com.google.protobuf.ByteString getQueryBytes() { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -525,6 +526,7 @@ public java.lang.String getOrderBy() { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1852,6 +1854,7 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1907,6 +1910,7 @@ public java.lang.String getOrderBy() { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1962,6 +1966,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2016,6 +2021,7 @@ public Builder setOrderBy(java.lang.String value) { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2066,6 +2072,7 @@ public Builder clearOrderBy() { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequestOrBuilder.java index 047701828a8f..ecbf9d79a93a 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequestOrBuilder.java @@ -352,6 +352,7 @@ public interface SearchSpacesRequestOrBuilder * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -397,6 +398,7 @@ public interface SearchSpacesRequestOrBuilder * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto index a2fd4a9526e0..455ba073ced7 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto @@ -51,6 +51,9 @@ service ChatService { "https://www.googleapis.com/auth/chat.admin.memberships.readonly," "https://www.googleapis.com/auth/chat.admin.spaces," "https://www.googleapis.com/auth/chat.admin.spaces.readonly," + "https://www.googleapis.com/auth/chat.app.all.memberships.readonly," + "https://www.googleapis.com/auth/chat.app.all.messages.readonly," + "https://www.googleapis.com/auth/chat.app.all.spaces.readonly," "https://www.googleapis.com/auth/chat.app.delete," "https://www.googleapis.com/auth/chat.app.memberships," "https://www.googleapis.com/auth/chat.app.memberships.readonly," diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/markup_syntax.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/markup_syntax.proto new file mode 100644 index 000000000000..d3ef44ceb6ff --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/markup_syntax.proto @@ -0,0 +1,47 @@ +// 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 +// +// http://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. + +syntax = "proto3"; + +package google.chat.v1; + +option csharp_namespace = "Google.Apps.Chat.V1"; +option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb"; +option java_multiple_files = true; +option java_outer_classname = "MarkupSyntaxProto"; +option java_package = "com.google.chat.v1"; +option objc_class_prefix = "DYNAPIProto"; +option php_namespace = "Google\\Apps\\Chat\\V1"; +option ruby_package = "Google::Apps::Chat::V1"; + +// Specifies the markup syntax used to format the Chat message text. +// Applies to the `text` field of the `Message` resource. +enum MarkupSyntax { + // Represents the unspecified value. + MARKUP_SYNTAX_UNSPECIFIED = 0; + + // Uses Google Chat's markup syntax. + // See + // https://developers.google.com/workspace/chat/format-messages#format-texts + // for more information. + MARKUP_SYNTAX_CHAT = 1; + + // Uses Markdown syntax. This syntax is based on the + // [CommonMark](https://commonmark.org/help/) specification, with additional + // extensions. + // See + // https://developers.google.com/workspace/chat/format-messages#format-texts + // for more information. + MARKUP_SYNTAX_MARKDOWN = 2; +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto index 22d53f09d3d6..37a07c0b9f41 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto @@ -24,6 +24,7 @@ import "google/chat/v1/annotation.proto"; import "google/chat/v1/attachment.proto"; import "google/chat/v1/contextual_addon.proto"; import "google/chat/v1/deletion_metadata.proto"; +import "google/chat/v1/markup_syntax.proto"; import "google/chat/v1/matched_url.proto"; import "google/chat/v1/reaction.proto"; import "google/chat/v1/slash_command.proto"; @@ -145,9 +146,14 @@ message Message { // Optional. An array of // [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). // - // Only Chat apps can create cards. If your Chat app [authenticates as a + // Chat apps can create cards with [app + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + // As part of the [Developer Preview + // Program](https://developers.google.com/workspace/preview), if your Chat app + // [authenticates as a // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - // the messages can't contain cards. + // it can create card messages. If your Chat app is not part of Developer + // Preview Program, it can't create cards with user authentication. // // To learn how to create a message that contains cards, see [Send a // message](https://developers.google.com/workspace/chat/create-messages). @@ -272,6 +278,10 @@ message Message { // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). repeated AccessoryWidget accessory_widgets = 44 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies how the server interprets the message `text` field + // content. + MarkupSyntax markup_syntax = 47 [(google.api.field_behavior) = OPTIONAL]; } // A GIF image that's specified by a URL. @@ -512,6 +522,10 @@ message GetMessageRequest { (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "chat.googleapis.com/Message" } ]; + + // Optional. Specifies the desired output syntax for the Chat message + // `formatted_text` field. + MarkupSyntax markup_syntax = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request to delete a message. @@ -775,6 +789,10 @@ message ListMessagesRequest { // deleted time and metadata about their deletion, but message content is // unavailable. bool show_deleted = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the desired output syntax for the Chat message + // `formatted_text` field. + MarkupSyntax markup_syntax = 9 [(google.api.field_behavior) = OPTIONAL]; } // Response message for listing messages. @@ -818,9 +836,17 @@ message Dialog { // [card](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards) // in a Google Chat message. // -// Only Chat apps can create cards. If your Chat app [authenticates as a +// Chat apps can create cards with [app +// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). +// As part of the [Developer Preview +// Program](https://developers.google.com/workspace/preview), if your Chat app +// [authenticates as a // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), -// the message can't contain cards. +// it can create card messages. If your Chat app is not part of Developer +// Preview Program, it can't create cards with user authentication. +// +// To learn how to create a message that contains cards, see [Send a +// message](https://developers.google.com/workspace/chat/create-messages). // // [Card builder](https://addons.gsuite.google.com/uikit/builder) message CardWithId { @@ -1019,6 +1045,10 @@ message SearchMessagesRequest { // is supported, and it must be specified after the order attribute. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Specifies the desired output syntax for the Chat message + // `formatted_text` field. + MarkupSyntax markup_syntax = 6 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Specifies what kind of search results view to return. The default // is `SEARCH_MESSAGES_VIEW_BASIC`. SearchMessagesView view = 7 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto index b2750239eaa1..8c3cf641fd8e 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto @@ -916,6 +916,7 @@ message SearchSpacesRequest { // // - `create_time DESC` // - `relevance DESC` + // [Developer Preview](https://developers.google.com/workspace/preview). string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/AsyncGetMessage.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/AsyncGetMessage.java index 1e3ffd1053b4..622e1d3669cb 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/AsyncGetMessage.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/AsyncGetMessage.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.chat.v1.ChatServiceClient; import com.google.chat.v1.GetMessageRequest; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.Message; import com.google.chat.v1.MessageName; @@ -39,6 +40,7 @@ public static void asyncGetMessage() throws Exception { GetMessageRequest request = GetMessageRequest.newBuilder() .setName(MessageName.of("[SPACE]", "[MESSAGE]").toString()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); ApiFuture future = chatServiceClient.getMessageCallable().futureCall(request); // Do something. diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/SyncGetMessage.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/SyncGetMessage.java index 06eed56f843e..33cc5556ae82 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/SyncGetMessage.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/SyncGetMessage.java @@ -19,6 +19,7 @@ // [START chat_v1_generated_ChatService_GetMessage_sync] import com.google.chat.v1.ChatServiceClient; import com.google.chat.v1.GetMessageRequest; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.Message; import com.google.chat.v1.MessageName; @@ -38,6 +39,7 @@ public static void syncGetMessage() throws Exception { GetMessageRequest request = GetMessageRequest.newBuilder() .setName(MessageName.of("[SPACE]", "[MESSAGE]").toString()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); Message response = chatServiceClient.getMessage(request); } diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessages.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessages.java index f797b23cf126..11cd206c1d6f 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessages.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessages.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.chat.v1.ChatServiceClient; import com.google.chat.v1.ListMessagesRequest; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.Message; import com.google.chat.v1.SpaceName; @@ -44,6 +45,7 @@ public static void asyncListMessages() throws Exception { .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .setShowDeleted(true) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); ApiFuture future = chatServiceClient.listMessagesPagedCallable().futureCall(request); // Do something. diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessagesPaged.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessagesPaged.java index 6cd8d46c69be..adf719fe5616 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessagesPaged.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessagesPaged.java @@ -20,6 +20,7 @@ import com.google.chat.v1.ChatServiceClient; import com.google.chat.v1.ListMessagesRequest; import com.google.chat.v1.ListMessagesResponse; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.Message; import com.google.chat.v1.SpaceName; import com.google.common.base.Strings; @@ -45,6 +46,7 @@ public static void asyncListMessagesPaged() throws Exception { .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .setShowDeleted(true) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); while (true) { ListMessagesResponse response = chatServiceClient.listMessagesCallable().call(request); diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/SyncListMessages.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/SyncListMessages.java index 91d39fabd629..2251889a301b 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/SyncListMessages.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/SyncListMessages.java @@ -19,6 +19,7 @@ // [START chat_v1_generated_ChatService_ListMessages_sync] import com.google.chat.v1.ChatServiceClient; import com.google.chat.v1.ListMessagesRequest; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.Message; import com.google.chat.v1.SpaceName; @@ -43,6 +44,7 @@ public static void syncListMessages() throws Exception { .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .setShowDeleted(true) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); for (Message element : chatServiceClient.listMessages(request).iterateAll()) { // doThingsWith(element); diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessages.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessages.java index 2f107a6d6f6d..d78aa5080b3e 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessages.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessages.java @@ -19,6 +19,7 @@ // [START chat_v1_generated_ChatService_SearchMessages_async] import com.google.api.core.ApiFuture; import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.SearchMessageResult; import com.google.chat.v1.SearchMessagesRequest; import com.google.chat.v1.SpaceName; @@ -43,6 +44,7 @@ public static void asyncSearchMessages() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOrderBy("orderBy-1207110587") + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); ApiFuture future = chatServiceClient.searchMessagesPagedCallable().futureCall(request); diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessagesPaged.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessagesPaged.java index ebc8f22f57d1..a06d965d8088 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessagesPaged.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessagesPaged.java @@ -18,6 +18,7 @@ // [START chat_v1_generated_ChatService_SearchMessages_Paged_async] import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.SearchMessageResult; import com.google.chat.v1.SearchMessagesRequest; import com.google.chat.v1.SearchMessagesResponse; @@ -44,6 +45,7 @@ public static void asyncSearchMessagesPaged() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOrderBy("orderBy-1207110587") + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); while (true) { SearchMessagesResponse response = chatServiceClient.searchMessagesCallable().call(request); diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessages.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessages.java index 18276a2f9be3..4654791d770a 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessages.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessages.java @@ -18,6 +18,7 @@ // [START chat_v1_generated_ChatService_SearchMessages_sync] import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.SearchMessageResult; import com.google.chat.v1.SearchMessagesRequest; import com.google.chat.v1.SpaceName; @@ -42,6 +43,7 @@ public static void syncSearchMessages() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOrderBy("orderBy-1207110587") + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); for (SearchMessageResult element : chatServiceClient.searchMessages(request).iterateAll()) { // doThingsWith(element); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java index d1d08daf5f2d..bedb53d67b64 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java @@ -2252,7 +2252,7 @@ public com.google.cloudbuild.v1.BuildOptions.LogStreamingOption getLogStreamingO * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @return The workerPool. */ @java.lang.Override @@ -2279,7 +2279,7 @@ public java.lang.String getWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @return The bytes for workerPool. */ @java.lang.Override @@ -4441,7 +4441,7 @@ public Builder clearLogStreamingOption() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @return The workerPool. */ @java.lang.Deprecated @@ -4467,7 +4467,7 @@ public java.lang.String getWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @return The bytes for workerPool. */ @java.lang.Deprecated @@ -4493,7 +4493,7 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @param value The workerPool to set. * @return This builder for chaining. */ @@ -4518,7 +4518,7 @@ public Builder setWorkerPool(java.lang.String value) { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4539,7 +4539,7 @@ public Builder clearWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @param value The bytes for workerPool to set. * @return This builder for chaining. */ diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java index 866640428d2d..1a6152862333 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java @@ -272,7 +272,7 @@ public interface BuildOptionsOrBuilder * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @return The workerPool. */ @java.lang.Deprecated @@ -288,7 +288,7 @@ public interface BuildOptionsOrBuilder * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @return The bytes for workerPool. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java index ddf5f442606d..ade37c0b4a34 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java @@ -664,18 +664,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\007\022\013\n" + "\007EXPIRED\020\t:\217\001\352A\213\001\n" + "\037cloudbuild.googleapis.com/Build\022!projects/{project}/builds/{build}\0226pro" - + "jects/{project}/locations/{location}/builds/{build}*\006builds2\005build\"\325\003\n\n" + + "jects/{project}/locations/{location}/builds/{build}*\006builds2\005build\"\356\003\n\n" + "Dependency\022\017\n" + "\005empty\030\001 \001(\010H\000\022S\n\n" + "git_source\030\002 \001(\0132=" - + ".google.devtools.cloudbuild.v1.Dependency.GitSourceDependencyH\000\032\321\001\n" + + ".google.devtools.cloudbuild.v1.Dependency.GitSourceDependencyH\000\032\352\001\n" + "\023GitSourceDependency\022V\n\n" + "repository\030\001 \001(\0132=.google.dev" + "tools.cloudbuild.v1.Dependency.GitSourceRepositoryB\003\340A\002\022\025\n" + "\010revision\030\002 \001(\tB\003\340A\002\022\037\n" + "\022recurse_submodules\030\003 \001(\010B\003\340A\001\022\022\n" + "\005depth\030\004 \001(\003B\003\340A\001\022\026\n" - + "\tdest_path\030\005 \001(\tB\003\340A\002\032\205\001\n" + + "\tdest_path\030\005 \001(\tB\003\340A\002\022\027\n\n" + + "fetch_tags\030\006 \001(\010B\003\340A\001\032\205\001\n" + "\023GitSourceRepository\022\r\n" + "\003url\030\001 \001(\tH\000\022S\n" + "\021developer_connect\030\002 \001(\tB6\372A3\n" @@ -683,28 +684,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010repotypeB\005\n" + "\003dep\"\260\001\n" + "\tGitConfig\022A\n" - + "\004http\030\001" - + " \001(\01323.google.devtools.cloudbuild.v1.GitConfig.HttpConfig\032`\n\n" + + "\004http\030\001 \001(\01323.google" + + ".devtools.cloudbuild.v1.GitConfig.HttpConfig\032`\n\n" + "HttpConfig\022R\n" + "\031proxy_secret_version_name\030\001 \001(\tB/\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\"\264\007\n" + "\tArtifacts\022\016\n" + "\006images\030\001 \003(\t\022I\n" - + "\007objects\030\002" - + " \001(\01328.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects\022O\n" - + "\017maven_artifacts\030\003" - + " \003(\01326.google.devtools.cloudbuild.v1.Artifacts.MavenArtifact\022J\n\n" - + "go_modules\030\004 " - + "\003(\01321.google.devtools.cloudbuild.v1.Artifacts.GoModuleB\003\340A\001\022O\n" - + "\017python_packages\030\005" - + " \003(\01326.google.devtools.cloudbuild.v1.Artifacts.PythonPackage\022I\n" - + "\014npm_packages\030\006 \003" - + "(\01323.google.devtools.cloudbuild.v1.Artifacts.NpmPackage\032p\n" + + "\007objects\030\002 \001(\01328.google.d" + + "evtools.cloudbuild.v1.Artifacts.ArtifactObjects\022O\n" + + "\017maven_artifacts\030\003 \003(\01326.googl" + + "e.devtools.cloudbuild.v1.Artifacts.MavenArtifact\022J\n\n" + + "go_modules\030\004 \003(\01321.google.de" + + "vtools.cloudbuild.v1.Artifacts.GoModuleB\003\340A\001\022O\n" + + "\017python_packages\030\005 \003(\01326.google.d" + + "evtools.cloudbuild.v1.Artifacts.PythonPackage\022I\n" + + "\014npm_packages\030\006 \003(\01323.google.dev" + + "tools.cloudbuild.v1.Artifacts.NpmPackage\032p\n" + "\017ArtifactObjects\022\020\n" + "\010location\030\001 \001(\t\022\r\n" + "\005paths\030\002 \003(\t\022<\n" - + "\006timing\030\003 " - + "\001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\032n\n\r" + + "\006timing\030\003" + + " \001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\032n\n\r" + "MavenArtifact\022\022\n\n" + "repository\030\001 \001(\t\022\021\n" + "\004path\030\002 \001(\tB\003\340A\001\022\023\n" @@ -718,7 +719,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013source_path\030\004 \001(\tB\003\340A\001\022\030\n" + "\013module_path\030\005 \001(\tB\003\340A\001\022\033\n" + "\016module_version\030\006 \001(\tB\003\340A\001\0322\n\r" - + "PythonPackage\022\022\n\n" + + "PythonPackage\022\022\n" + + "\n" + "repository\030\001 \001(\t\022\r\n" + "\005paths\030\002 \003(\t\032;\n\n" + "NpmPackage\022\022\n\n" @@ -734,18 +736,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132,.google.devtools.cloudbuild.v1.StorageSource\022G\n" + "\024resolved_repo_source\030\006" + " \001(\0132).google.devtools.cloudbuild.v1.RepoSource\022^\n" - + " resolved_storage_source_manifest\030\t \001(\01324.google.de" - + "vtools.cloudbuild.v1.StorageSourceManifest\022^\n" + + " resolved_storage_source_manifest\030\t" + + " \001(\01324.google.devtools.cloudbuild.v1.StorageSourceManifest\022^\n" + "\035resolved_connected_repository\030\n" + " \001(\01322.google.devtools.cloudbuild.v1.ConnectedRepositoryB\003\340A\003\022J\n" - + "\023resolved_git_source\030\013" - + " \001(\0132(.google.devtools.cloudbuild.v1.GitSourceB\003\340A\003\022Y\n" - + "\013file_hashes\030\004 \003(\0132?.go" - + "ogle.devtools.cloudbuild.v1.SourceProvenance.FileHashesEntryB\003\340A\003\032\\\n" + + "\023resolved_git_source\030\013 \001(\0132(.googl" + + "e.devtools.cloudbuild.v1.GitSourceB\003\340A\003\022Y\n" + + "\013file_hashes\030\004 \003(\0132?.google.devtools.c" + + "loudbuild.v1.SourceProvenance.FileHashesEntryB\003\340A\003\032\\\n" + "\017FileHashesEntry\022\013\n" + "\003key\030\001 \001(\t\0228\n" - + "\005value\030\002 \001(\0132).googl" - + "e.devtools.cloudbuild.v1.FileHashes:\0028\001\"D\n\n" + + "\005value\030\002" + + " \001(\0132).google.devtools.cloudbuild.v1.FileHashes:\0028\001\"D\n\n" + "FileHashes\0226\n" + "\tfile_hash\030\001 \003(\0132#.google.devtools.cloudbuild.v1.Hash\"\232\001\n" + "\004Hash\022:\n" @@ -764,8 +766,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014InlineSecret\022<\n" + "\014kms_key_name\030\001 \001(\tB&\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022H\n" - + "\007env_map\030\002 \003(\01327.google" - + ".devtools.cloudbuild.v1.InlineSecret.EnvMapEntry\032-\n" + + "\007env_map\030\002" + + " \003(\01327.google.devtools.cloudbuild.v1.InlineSecret.EnvMapEntry\032-\n" + "\013EnvMapEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\014:\0028\001\"i\n" @@ -775,8 +777,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003env\030\002 \001(\t\"\232\001\n" + "\006Secret\022\024\n" + "\014kms_key_name\030\001 \001(\t\022H\n\n" - + "secret_env\030\003" - + " \003(\01324.google.devtools.cloudbuild.v1.Secret.SecretEnvEntry\0320\n" + + "secret_env\030\003 \003(\013" + + "24.google.devtools.cloudbuild.v1.Secret.SecretEnvEntry\0320\n" + "\016SecretEnvEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\014:\0028\001\"\235\001\n" @@ -805,15 +807,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\002 \001(\tB\003\340A\002\"p\n" + "\023ApproveBuildRequest\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022F\n" - + "\017approval_result\030\002 \001(\0132-.googl" - + "e.devtools.cloudbuild.v1.ApprovalResult\"\267\002\n\r" + + "\017approval_result\030\002" + + " \001(\0132-.google.devtools.cloudbuild.v1.ApprovalResult\"\267\002\n\r" + "BuildApproval\022F\n" - + "\005state\030\001 \001(\01622.googl" - + "e.devtools.cloudbuild.v1.BuildApproval.StateB\003\340A\003\022B\n" + + "\005state\030\001" + + " \001(\01622.google.devtools.cloudbuild.v1.BuildApproval.StateB\003\340A\003\022B\n" + "\006config\030\002" + " \001(\0132-.google.devtools.cloudbuild.v1.ApprovalConfigB\003\340A\003\022B\n" - + "\006result\030\003" - + " \001(\0132-.google.devtools.cloudbuild.v1.ApprovalResultB\003\340A\003\"V\n" + + "\006result\030\003 \001(\0132-" + + ".google.devtools.cloudbuild.v1.ApprovalResultB\003\340A\003\"V\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007PENDING\020\001\022\014\n" @@ -825,8 +827,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ApprovalResult\022\035\n" + "\020approver_account\030\002 \001(\tB\003\340A\003\0226\n\r" + "approval_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n" - + "\010decision\030\004 \001" - + "(\01626.google.devtools.cloudbuild.v1.ApprovalResult.DecisionB\003\340A\002\022\024\n" + + "\010decision\030\004 \001(\01626.google.dev" + + "tools.cloudbuild.v1.ApprovalResult.DecisionB\003\340A\002\022\024\n" + "\007comment\030\005 \001(\tB\003\340A\001\022\020\n" + "\003url\030\006 \001(\tB\003\340A\001\"@\n" + "\010Decision\022\030\n" @@ -838,8 +840,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "repository\030\006 \001(\tB)\372A&\n" + "$cloudbuild.googleapis.com/RepositoryH\000\022\013\n" + "\003ref\030\002 \001(\t\022H\n" - + "\trepo_type\030\003" - + " \001(\01625.google.devtools.cloudbuild.v1.GitFileSource.RepoType\022Y\n" + + "\trepo_type\030\003 \001" + + "(\01625.google.devtools.cloudbuild.v1.GitFileSource.RepoType\022Y\n" + "\030github_enterprise_config\030\004 \001(\tB5\372A2\n" + "0cloudbuild.googleapis.com/GithubEnterpriseConfigH\001B\010\n" + "\006sourceB\023\n" @@ -849,8 +851,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003uri\030\002 \001(\t\022?\n\n" + "repository\030\007 \001(\tB)\372A&\n" + "$cloudbuild.googleapis.com/RepositoryH\000\022H\n" - + "\trepo_type\030\003 " - + "\001(\01625.google.devtools.cloudbuild.v1.GitFileSource.RepoType\022\020\n" + + "\trepo_type\030\003 \001(\01625.google.de" + + "vtools.cloudbuild.v1.GitFileSource.RepoType\022\020\n" + "\010revision\030\004 \001(\t\022Y\n" + "\030github_enterprise_config\030\005 \001(\tB5\372A2\n" + "0cloudbuild.googleapis.com/GithubEnterpriseConfigH\001\"d\n" @@ -862,8 +864,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006GITLAB\020\004B\010\n" + "\006sourceB\023\n" + "\021enterprise_config\"\322\t\n" - + "\014BuildTrigger\022\025\n" - + "\r" + + "\014BuildTrigger\022\025\n\r" + "resource_name\030\" \001(\t\022\017\n" + "\002id\030\001 \001(\tB\003\340A\003\022\023\n" + "\013description\030\n" @@ -875,18 +876,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006github\030\r" + " \001(\01321.google.devtools.cloudbuild.v1.GitHubEventsConfig\022B\n\r" + "pubsub_config\030\035 \001(\0132+.google.devtools.cloudbuild.v1.PubsubConfig\022D\n" - + "\016webhook_config\030\037 \001(\0132,.goo" - + "gle.devtools.cloudbuild.v1.WebhookConfig\022\024\n\n" + + "\016webhook_config\030\037" + + " \001(\0132,.google.devtools.cloudbuild.v1.WebhookConfig\022\024\n\n" + "autodetect\030\022 \001(\010H\000\0225\n" + "\005build\030\004 \001(\0132$.google.devtools.cloudbuild.v1.BuildH\000\022\022\n" + "\010filename\030\010 \001(\tH\000\022G\n" - + "\017git_file_source\030\030 \001" - + "(\0132,.google.devtools.cloudbuild.v1.GitFileSourceH\000\0224\n" + + "\017git_file_source\030\030" + + " \001(\0132,.google.devtools.cloudbuild.v1.GitFileSourceH\000\0224\n" + "\013create_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\020\n" + "\010disabled\030\t \001(\010\022U\n\r" - + "substitutions\030\013 \003(\0132>.google.devto" - + "ols.cloudbuild.v1.BuildTrigger.SubstitutionsEntry\022\025\n\r" + + "substitutions\030\013" + + " \003(\0132>.google.devtools.cloudbuild.v1.BuildTrigger.SubstitutionsEntry\022\025\n\r" + "ignored_files\030\017 \003(\t\022\026\n" + "\016included_files\030\020 \003(\t\022\023\n" + "\006filter\030\036 \001(\tB\003\340A\001\022E\n" @@ -894,22 +895,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132,.google.devtools.cloudbuild.v1.GitRepoSource\022?\n" + "\017service_account\030! \001(\tB&\372A#\n" + "!iam.googleapis.com/ServiceAccount\022U\n" - + "\027repository_event_config\030\'" - + " \001(\01324.google.devtools.cloudbuild.v1.RepositoryEventConfig\0324\n" + + "\027repository_event_config\030\' \001(\01324.google" + + ".devtools.cloudbuild.v1.RepositoryEventConfig\0324\n" + "\022SubstitutionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\242\001\352A\236\001\n" - + "&cloudbuild.googleapis.com/BuildTrigger\022%projects/{project}/triggers/{trigger}" - + "\022:projects/{project}/locations/{location" - + "}/triggers/{trigger}*\010triggers2\007triggerB\020\n" + + "&cloudbuild.googleapis.com/BuildTrigger\022%projects/{pr" + + "oject}/triggers/{trigger}\022:projects/{pro" + + "ject}/locations/{location}/triggers/{trigger}*\010triggers2\007triggerB\020\n" + "\016build_template\"\265\003\n" + "\025RepositoryEventConfig\022=\n\n" + "repository\030\001 \001(\tB)\372A&\n" + "$cloudbuild.googleapis.com/Repository\022a\n" - + "\017repository_type\030\002 \001(\0162C.google.devtools.cloudbuild" - + ".v1.RepositoryEventConfig.RepositoryTypeB\003\340A\003\022H\n" - + "\014pull_request\030\003 \001(\01320.google.dev" - + "tools.cloudbuild.v1.PullRequestFilterH\000\0229\n" + + "\017repository_type\030\002 \001(\0162C.g" + + "oogle.devtools.cloudbuild.v1.RepositoryEventConfig.RepositoryTypeB\003\340A\003\022H\n" + + "\014pull_request\030\003" + + " \001(\01320.google.devtools.cloudbuild.v1.PullRequestFilterH\000\0229\n" + "\004push\030\004 \001(\0132).google.devtools.cloudbuild.v1.PushFilterH\000\"k\n" + "\016RepositoryType\022\037\n" + "\033REPOSITORY_TYPE_UNSPECIFIED\020\000\022\n\n" @@ -921,8 +922,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017installation_id\030\001 \001(\003B\002\030\001\022\r\n" + "\005owner\030\006 \001(\t\022\014\n" + "\004name\030\007 \001(\t\022H\n" - + "\014pull_request\030\004 \001(\013" - + "20.google.devtools.cloudbuild.v1.PullRequestFilterH\000\0229\n" + + "\014pull_request\030\004" + + " \001(\01320.google.devtools.cloudbuild.v1.PullRequestFilterH\000\0229\n" + "\004push\030\005 \001(\0132).google.devtools.cloudbuild.v1.PushFilterH\000B\007\n" + "\005event\"\202\003\n" + "\014PubsubConfig\022@\n" @@ -950,8 +951,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013auth_method\"\224\002\n" + "\021PullRequestFilter\022\020\n" + "\006branch\030\002 \001(\tH\000\022X\n" - + "\017comment_control\030\005" - + " \001(\0162?.google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl\022\024\n" + + "\017comment_control\030\005 \001(\0162?.google.d" + + "evtools.cloudbuild.v1.PullRequestFilter.CommentControl\022\024\n" + "\014invert_regex\030\006 \001(\010\"r\n" + "\016CommentControl\022\025\n" + "\021COMMENTS_DISABLED\020\000\022\024\n" @@ -967,8 +968,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\003 \001(" + "\tB+\372A(\022&cloudbuild.googleapis.com/BuildTrigger\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022A\n" - + "\007trigger\030\002 \001(\0132+.google" - + ".devtools.cloudbuild.v1.BuildTriggerB\003\340A\002\"\205\001\n" + + "\007trigger\030\002" + + " \001(\0132+.google.devtools.cloudbuild.v1.BuildTriggerB\003\340A\002\"\205\001\n" + "\026GetBuildTriggerRequest\0229\n" + "\004name\030\003 \001(\tB+\372A(\n" + "&cloudbuild.googleapis.com/BuildTrigger\022\027\n\n" @@ -983,8 +984,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ListBuildTriggersResponse\022=\n" + "\010triggers\030\001 \003(\0132+.google.devtools.cloudbuild.v1.BuildTrigger\022\027\n" + "\017next_page_token\030\002 \001(\t\"\210\001\n" - + "\031DeleteBuildTriggerRequest\0229", - "\n" + + "\031De", + "leteBuildTriggerRequest\0229\n" + "\004name\030\003 \001(\tB+\372A(\n" + "&cloudbuild.googleapis.com/BuildTrigger\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\027\n\n" @@ -992,34 +993,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031UpdateBuildTriggerRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\027\n\n" + "trigger_id\030\002 \001(\tB\003\340A\002\022A\n" - + "\007trigger\030\003" - + " \001(\0132+.google.devtools.cloudbuild.v1.BuildTriggerB\003\340A\002\022/\n" + + "\007trigger\030\003 \001(\0132+.google.d" + + "evtools.cloudbuild.v1.BuildTriggerB\003\340A\002\022/\n" + "\013update_mask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\276\014\n" + "\014BuildOptions\022L\n" - + "\026source_provenance_hash\030\001 \003(\0162,.googl" - + "e.devtools.cloudbuild.v1.Hash.HashType\022Y\n" - + "\027requested_verify_option\030\002 \001(\01628.google" - + ".devtools.cloudbuild.v1.BuildOptions.VerifyOption\022M\n" - + "\014machine_type\030\003 \001(\01627.google" - + ".devtools.cloudbuild.v1.BuildOptions.MachineType\022\024\n" + + "\026source_provenance_hash\030\001" + + " \003(\0162,.google.devtools.cloudbuild.v1.Hash.HashType\022Y\n" + + "\027requested_verify_option\030\002" + + " \001(\01628.google.devtools.cloudbuild.v1.BuildOptions.VerifyOption\022M\n" + + "\014machine_type\030\003" + + " \001(\01627.google.devtools.cloudbuild.v1.BuildOptions.MachineType\022\024\n" + "\014disk_size_gb\030\006 \001(\003\022[\n" - + "\023substitution_option\030\004 \001(\0162>.google.devtools.cl" - + "oudbuild.v1.BuildOptions.SubstitutionOption\022\035\n" + + "\023substitution_option\030\004" + + " \001(\0162>.google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption\022\035\n" + "\025dynamic_substitutions\030\021 \001(\010\022\035\n" + "\025automap_substitutions\030\026 \001(\010\022\\\n" - + "\024log_streaming_option\030\005 \001(\0162>.google.devtools.cloudb" - + "uild.v1.BuildOptions.LogStreamingOption\022\027\n" + + "\024log_streaming_option\030\005 \001(\016" + + "2>.google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption\022\027\n" + "\013worker_pool\030\007 \001(\tB\002\030\001\022I\n" - + "\004pool\030\023 \001(\01326" - + ".google.devtools.cloudbuild.v1.BuildOptions.PoolOptionB\003\340A\001\022H\n" - + "\007logging\030\013 \001(\01627.g" - + "oogle.devtools.cloudbuild.v1.BuildOptions.LoggingMode\022\013\n" + + "\004pool\030\023 \001(\01326.google.devtool" + + "s.cloudbuild.v1.BuildOptions.PoolOptionB\003\340A\001\022H\n" + + "\007logging\030\013 \001(\01627.google.devtools." + + "cloudbuild.v1.BuildOptions.LoggingMode\022\013\n" + "\003env\030\014 \003(\t\022\022\n\n" + "secret_env\030\r" + " \003(\t\0226\n" + "\007volumes\030\016 \003(\0132%.google.devtools.cloudbuild.v1.Volume\022p\n" - + "\034default_logs_bucket_behavior\030\025 \001(\0162E.google.devtools.c" - + "loudbuild.v1.BuildOptions.DefaultLogsBucketBehaviorB\003\340A\001\022&\n" + + "\034default_logs_bucket_behavior\030\025 \001(\0162E.google.devtools.cloudbuild.v1.Bu" + + "ildOptions.DefaultLogsBucketBehaviorB\003\340A\001\022&\n" + "\031enable_structured_logging\030\027 \001(\010B\003\340A\001\032E\n\n" + "PoolOption\0227\n" + "\004name\030\001 \001(\tB)\372A&\n" @@ -1070,13 +1071,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016peered_network\030\t \001(\tB&\340A\001\372A \n" + "\036compute.googleapis.com/Network\022L\n" + "\007secrets\030\n" - + " \001(\01326.google.d" - + "evtools.cloudbuild.v1.GitHubEnterpriseSecretsB\003\340A\001\022\031\n" + + " \001(\01326.google.devtools.cloudbuild.v1.GitHubEnterpriseSecretsB\003\340A\001\022\031\n" + "\014display_name\030\013 \001(\tB\003\340A\001\022\023\n" + "\006ssl_ca\030\014 \001(\tB\003\340A\001:\265\001\352A\261\001\n" - + "0cloudbuild.googleapis.com/GithubEnterpriseConfig\0223pro" - + "jects/{project}/githubEnterpriseConfigs/{config}\022Hprojects/{project}/locations/{" - + "location}/githubEnterpriseConfigs/{config}\"\355\002\n" + + "0cloudbuild.googleapis.com/GithubEnterpriseConfig\0223projects/{project}" + + "/githubEnterpriseConfigs/{config}\022Hproje" + + "cts/{project}/locations/{location}/githubEnterpriseConfigs/{config}\"\355\002\n" + "\027GitHubEnterpriseSecrets\022Q\n" + "\030private_key_version_name\030\005 \001(\tB/\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022T\n" @@ -1090,15 +1090,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" + "\003uid\030\003 \001(\tB\003\340A\003\022O\n" - + "\013annotations\030\004 \003(\0132:.google.devto" - + "ols.cloudbuild.v1.WorkerPool.AnnotationsEntry\0224\n" + + "\013annotations\030\004" + + " \003(\0132:.google.devtools.cloudbuild.v1.WorkerPool.AnnotationsEntry\0224\n" + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013delete_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C\n" + "\005state\030\010" + " \001(\0162/.google.devtools.cloudbuild.v1.WorkerPool.StateB\003\340A\003\022T\n" - + "\026private_pool_v1_config\030\014 \001(\01322.google.de" - + "vtools.cloudbuild.v1.PrivatePoolV1ConfigH\000\022\021\n" + + "\026private_pool_v1_config\030\014" + + " \001(\01322.google.devtools.cloudbuild.v1.PrivatePoolV1ConfigH\000\022\021\n" + "\004etag\030\013 \001(\tB\003\340A\003\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -1110,18 +1110,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DELETING\020\003\022\013\n" + "\007DELETED\020\004\022\014\n" + "\010UPDATING\020\005:\211\001\352A\205\001\n" - + "$cloudbuild.googleapis.com/WorkerPool\022Aprojects/{project}/l" - + "ocations/{location}/workerPools/{worker_pool}*\013workerPools2\n" + + "$cloudbuild.googleapis.com/WorkerPool\022Aprojects/{project}/locations/{locat" + + "ion}/workerPools/{worker_pool}*\013workerPools2\n" + "workerPoolR\001\001B\010\n" + "\006config\"\272\007\n" + "\023PrivatePoolV1Config\022V\n\r" - + "worker_config\030\001" - + " \001(\0132?.google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig\022X\n" - + "\016network_config\030\002 \001(\0132@.google.devtools.cl" - + "oudbuild.v1.PrivatePoolV1Config.NetworkConfig\022n\n" - + "\027private_service_connect\030\005 \001(\0132H" - + ".google.devtools.cloudbuild.v1.PrivatePo" - + "olV1Config.PrivateServiceConnectB\003\340A\005\032\220\001\n" + + "worker_config\030\001 \001(\0132?.go" + + "ogle.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig\022X\n" + + "\016network_config\030\002" + + " \001(\0132@.google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig\022n\n" + + "\027private_service_connect\030\005 \001(\0132H.google.devtool" + + "s.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnectB\003\340A\005\032\220\001\n" + "\014WorkerConfig\022\031\n" + "\014machine_type\030\001 \001(\tB\003\340A\001\022\024\n" + "\014disk_size_gb\030\002 \001(\003\022.\n" @@ -1131,8 +1130,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "NetworkConfig\022A\n" + "\016peered_network\030\001 \001(\tB)\340A\005\340A\002\372A \n" + "\036compute.googleapis.com/Network\022d\n\r" - + "egress_option\030\002 \001(\0162M.google.devtools.cloudbuil" - + "d.v1.PrivatePoolV1Config.NetworkConfig.EgressOption\022$\n" + + "egress_option\030\002 \001(\0162M." + + "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption\022$\n" + "\027peered_network_ip_range\030\003 \001(\tB\003\340A\005\"V\n" + "\014EgressOption\022\035\n" + "\031EGRESS_OPTION_UNSPECIFIED\020\000\022\024\n" @@ -1160,8 +1159,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "allow_missing\030\003 \001(\010\022\025\n\r" + "validate_only\030\004 \001(\010\"\253\001\n" + "\027UpdateWorkerPoolRequest\022C\n" - + "\013worker_pool\030\001" - + " \001(\0132).google.devtools.cloudbuild.v1.WorkerPoolB\003\340A\002\0224\n" + + "\013worker_pool\030\001 \001" + + "(\0132).google.devtools.cloudbuild.v1.WorkerPoolB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\025\n\r" + "validate_only\030\004 \001(\010\"z\n" @@ -1171,8 +1170,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"s\n" + "\027ListWorkerPoolsResponse\022?\n" - + "\014worker_pools\030\001 \003(\0132).go" - + "ogle.devtools.cloudbuild.v1.WorkerPool\022\027\n" + + "\014worker_pools\030\001" + + " \003(\0132).google.devtools.cloudbuild.v1.WorkerPool\022\027\n" + "\017next_page_token\030\002 \001(\t\"\307\001\n" + "!CreateWorkerPoolOperationMetadata\022>\n" + "\013worker_pool\030\001 \001(\tB)\372A&\n" @@ -1190,148 +1189,147 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\002 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" + "complete_time\030\003 \001(\0132\032.google.protobuf.Timestamp2\371-\n\n" + "CloudBuild\022\267\002\n" - + "\013CreateBuild\0221.google.devtools.c" - + "loudbuild.v1.CreateBuildRequest\032\035.google.longrunning.Operation\"\325\001\312A\037\n" - + "\005Build\022\026Bui" - + "ldOperationMetadata\332A\020project_id,build\332A\006parent\202\323\344\223\002^\"" - + " /v1/projects/{project_id}" - + "/builds:\005buildZ3\"*/v1/{parent=projects/*/locations/*}/builds:\005build\212\323\344\223\002-\022+\n" + + "\013CreateBuild\0221.google.devtools.cloudbuild.v1.Cr" + + "eateBuildRequest\032\035.google.longrunning.Operation\"\325\001\312A\037\n" + + "\005Build\022\026BuildOperationMetadata\332A\020project_id,build\332A\006parent\202\323\344\223\002^\"" + + " /v1/projects/{project_id}/builds:\005buildZ" + + "3\"*/v1/{parent=projects/*/locations/*}/builds:\005build\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\217\002\n" - + "\010GetBuild\022..google.devtools.cloudbuild" - + ".v1.GetBuildRequest\032$.google.devtools.cloudbuild.v1.Build\"\254\001\332A\r" - + "project_id,id\332A\004name\202\323\344\223\002U\022%/v1/projects/{project_id}/bui" - + "lds/{id}Z,\022*/v1/{name=projects/*/locations/*/builds/*}\212\323\344\223\0024\0222\n" + + "\010GetBuild\022..google.devtools.cloudbuild.v1.GetBuildReq" + + "uest\032$.google.devtools.cloudbuild.v1.Build\"\254\001\332A\r" + + "project_id,id\332A\004name\202\323\344\223\002U\022%/v1/" + + "projects/{project_id}/builds/{id}Z,\022*/v1" + + "/{name=projects/*/locations/*/builds/*}\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\221\002\n\n" - + "ListBuilds\0220.google.devtools.cloudbuild.v1." - + "ListBuildsRequest\0321.google.devtools.clou" - + "dbuild.v1.ListBuildsResponse\"\235\001\332A\021project_id,filter\202\323\344\223\002P\022" - + " /v1/projects/{project" - + "_id}/buildsZ,\022*/v1/{parent=projects/*/locations/*}/builds\212\323\344\223\002-\022+\n" + + "ListBuilds\0220.google.devtools.cloudbuild.v1.ListBuildsReque" + + "st\0321.google.devtools.cloudbuild.v1.ListB" + + "uildsResponse\"\235\001\332A\021project_id,filter\202\323\344\223\002P\022" + + " /v1/projects/{project_id}/buildsZ,\022*" + + "/v1/{parent=projects/*/locations/*}/builds\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\251\002\n" - + "\013CancelBuild\0221.google.devtools.cloudbuild.v1.Can" - + "celBuildRequest\032$.google.devtools.cloudbuild.v1.Build\"\300\001\332A\r" - + "project_id,id\332A\004name\202\323\344\223\002i\",/v1/projects/{project_id}/builds/" - + "{id}:cancel:\001*Z6\"1/v1/{name=projects/*/locations/*/builds/*}:cancel:\001*\212\323\344\223\0024\0222\n" + + "\013CancelBuild\0221.google.devtools.cloudbuild.v1.CancelBuildRequest" + + "\032$.google.devtools.cloudbuild.v1.Build\"\300\001\332A\r" + + "project_id,id\332A\004name\202\323\344\223\002i\",/v1/proj" + + "ects/{project_id}/builds/{id}:cancel:\001*Z" + + "6\"1/v1/{name=projects/*/locations/*/builds/*}:cancel:\001*\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\300\002\n\n" - + "RetryBuild\0220.google.devtool" - + "s.cloudbuild.v1.RetryBuildRequest\032\035.google.longrunning.Operation\"\340\001\312A\037\n" + + "RetryBuild\0220.google.devtools.cloudbuild.v1" + + ".RetryBuildRequest\032\035.google.longrunning.Operation\"\340\001\312A\037\n" + "\005Build\022\026BuildOperationMetadata\332A\r" - + "project_id,id\332A\004name\202\323\344\223\002g\"+/v1/projects/{project_id}/bu" - + "ilds/{id}:retry:\001*Z5\"0/v1/{name=projects" - + "/*/locations/*/builds/*}:retry:\001*\212\323\344\223\0024\0222\n" + + "project_id,id\332A\004name\202\323\344\223\002g\"+/v1" + + "/projects/{project_id}/builds/{id}:retry" + + ":\001*Z5\"0/v1/{name=projects/*/locations/*/builds/*}:retry:\001*\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\301\002\n" - + "\014ApproveBuild\0222.google.de" - + "vtools.cloudbuild.v1.ApproveBuildRequest\032\035.google.longrunning.Operation\"\335\001\312A\037\n" - + "\005Build\022\026BuildOperationMetadata\332A\024name,appr" - + "oval_result\202\323\344\223\002d\"&/v1/{name=projects/*/" - + "builds/*}:approve:\001*Z7\"2/v1/{name=projec" - + "ts/*/locations/*/builds/*}:approve:\001*\212\323\344\223\0024\0222\n" + + "\014ApproveBuild\0222.google.devtools.cloudbui" + + "ld.v1.ApproveBuildRequest\032\035.google.longrunning.Operation\"\335\001\312A\037\n" + + "\005Build\022\026BuildOperationMetadata\332A\024name,approval_result\202\323\344\223" + + "\002d\"&/v1/{name=projects/*/builds/*}:appro" + + "ve:\001*Z7\"2/v1/{name=projects/*/locations/*/builds/*}:approve:\001*\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\273\002\n" - + "\022CreateBuildTrigger\0228.google.devtools.cloudbuild.v1.CreateBui" - + "ldTriggerRequest\032+.google.devtools.cloud" - + "build.v1.BuildTrigger\"\275\001\332A\022project_id,tr" - + "igger\332A\006parent\202\323\344\223\002f\"\"/v1/projects/{proj" - + "ect_id}/triggers:\007triggerZ7\",/v1/{parent" - + "=projects/*/locations/*}/triggers:\007trigger\212\323\344\223\002-\022+\n" + + "\022CreateBuildTrigger\0228.google.devtools.cloudbuild.v1.CreateBuildTriggerReques" + + "t\032+.google.devtools.cloudbuild.v1.BuildT" + + "rigger\"\275\001\332A\022project_id,trigger\332A\006parent\202" + + "\323\344\223\002f\"\"/v1/projects/{project_id}/trigger" + + "s:\007triggerZ7\",/v1/{parent=projects/*/locations/*}/triggers:\007trigger\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\272\002\n" - + "\017GetBuildTrigger\0225.google.devtools.cloudbuild.v1.GetBuildTrigge" - + "rRequest\032+.google.devtools.cloudbuild.v1" - + ".BuildTrigger\"\302\001\332A\025project_id,trigger_id" - + "\332A\004name\202\323\344\223\002a\022//v1/projects/{project_id}" - + "/triggers/{trigger_id}Z.\022,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + + "\017GetBuildTrigger\0225.google.devtools.clo" + + "udbuild.v1.GetBuildTriggerRequest\032+.goog" + + "le.devtools.cloudbuild.v1.BuildTrigger\"\302" + + "\001\332A\025project_id,trigger_id\332A\004name\202\323\344\223\002a\022/" + + "/v1/projects/{project_id}/triggers/{trig" + + "ger_id}Z.\022,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\243\002\n" - + "\021ListBuildTriggers\0227.google.devtools.cloudbuild.v1.ListBuildTrigge" - + "rsRequest\0328.google.devtools.cloudbuild.v1.ListBuildTriggersResponse\"\232\001\332A\n" - + "project_id\202\323\344\223\002T\022\"/v1/projects/{project_id}/tri" - + "ggersZ.\022,/v1/{parent=projects/*/locations/*}/triggers\212\323\344\223\002-\022+\n" + + "\021ListBuildTriggers\0227.google.devtools.clou" + + "dbuild.v1.ListBuildTriggersRequest\0328.goo" + + "gle.devtools.cloudbuild.v1.ListBuildTriggersResponse\"\232\001\332A\n" + + "project_id\202\323\344\223\002T\022\"/v1/projects/{project_id}/triggersZ.\022,/v1/{p" + + "arent=projects/*/locations/*}/triggers\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\253\002\n" - + "\022DeleteBuildTrigger\0228.google.devtools.cloudbuild.v1." - + "DeleteBuildTriggerRequest\032\026.google.proto" - + "buf.Empty\"\302\001\332A\025project_id,trigger_id\332A\004n" - + "ame\202\323\344\223\002a*//v1/projects/{project_id}/tri" - + "ggers/{trigger_id}Z.*,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + + "\022DeleteBuildTrigger\0228.google.devtools.cloudbuild.v1.DeleteBuildTrig" + + "gerRequest\032\026.google.protobuf.Empty\"\302\001\332A\025" + + "project_id,trigger_id\332A\004name\202\323\344\223\002a*//v1/" + + "projects/{project_id}/triggers/{trigger_" + + "id}Z.*,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\366\002\n" - + "\022UpdateBuildTrigger\0228.google.devtools.cloudbuild.v1.UpdateBuildTrigger" - + "Request\032+.google.devtools.cloudbuild.v1." - + "BuildTrigger\"\370\001\332A\035project_id,trigger_id," - + "trigger\202\323\344\223\002\204\0012//v1/projects/{project_id" - + "}/triggers/{trigger_id}:\007triggerZH2=/v1/" - + "{trigger.resource_name=projects/*/locations/*/triggers/*}:\007trigger\212\323\344\223\002G\022E\n" - + "\025trig" - + "ger.resource_name\022,projects/*/locations/{location=*}/triggers/*\022\341\002\n" - + "\017RunBuildTrigger\0225.google.devtools.cloudbuild.v1.RunB" - + "uildTriggerRequest\032\035.google.longrunning.Operation\"\367\001\312A\037\n" - + "\005Build\022\026BuildOperationMe" - + "tadata\332A\034project_id,trigger_id,source\202\323\344" - + "\223\002t\"3/v1/projects/{project_id}/triggers/" - + "{trigger_id}:run:\006sourceZ5\"0/v1/{name=pr" - + "ojects/*/locations/*/triggers/*}:run:\001*\212\323\344\223\0026\0224\n" + + "\022UpdateBuildTrigger\0228.google.devtools.cloudbu" + + "ild.v1.UpdateBuildTriggerRequest\032+.googl" + + "e.devtools.cloudbuild.v1.BuildTrigger\"\370\001" + + "\332A\035project_id,trigger_id,trigger\202\323\344\223\002\204\0012" + + "//v1/projects/{project_id}/triggers/{trigger_id}:\007triggerZH2=/v1/{trigger.resour" + + "ce_name=projects/*/locations/*/triggers/*}:\007trigger\212\323\344\223\002G\022E\n" + + "\025trigger.resource_na" + + "me\022,projects/*/locations/{location=*}/triggers/*\022\341\002\n" + + "\017RunBuildTrigger\0225.google.devtools.cloudbuild.v1.RunBuildTriggerRequ" + + "est\032\035.google.longrunning.Operation\"\367\001\312A\037\n" + + "\005Build\022\026BuildOperationMetadata\332A\034projec" + + "t_id,trigger_id,source\202\323\344\223\002t\"3/v1/projec" + + "ts/{project_id}/triggers/{trigger_id}:ru" + + "n:\006sourceZ5\"0/v1/{name=projects/*/locations/*/triggers/*}:run:\001*\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\225\002\n" - + "\025ReceiveTriggerWebhook\022;.google.devtools.cloudbuild.v1.Re" - + "ceiveTriggerWebhookRequest\032<.google.devtools.cloudbuild.v1.ReceiveTriggerWebhook" - + "Response\"\200\001\202\323\344\223\002z\"4/v1/projects/{project" - + "_id}/triggers/{trigger}:webhook:\004bodyZ<\"" - + "4/v1/{name=projects/*/locations/*/triggers/*}:webhook:\004body\022\271\002\n" - + "\020CreateWorkerPool\0226.google.devtools.cloudbuild.v1.CreateW" - + "orkerPoolRequest\032\035.google.longrunning.Operation\"\315\001\312A/\n\n" - + "WorkerPool\022!CreateWorkerPoolOperationMetadata\332A!parent,worker_poo" - + "l,worker_pool_id\202\323\344\223\002>\"//v1/{parent=proj" - + "ects/*/locations/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + + "\025ReceiveTriggerWebhook\022;.google.devtools.cloudbuild.v1.ReceiveTriggerWeb" + + "hookRequest\032<.google.devtools.cloudbuild" + + ".v1.ReceiveTriggerWebhookResponse\"\200\001\202\323\344\223" + + "\002z\"4/v1/projects/{project_id}/triggers/{" + + "trigger}:webhook:\004bodyZ<\"4/v1/{name=proj" + + "ects/*/locations/*/triggers/*}:webhook:\004body\022\271\002\n" + + "\020CreateWorkerPool\0226.google.devto" + + "ols.cloudbuild.v1.CreateWorkerPoolRequest\032\035.google.longrunning.Operation\"\315\001\312A/\n\n" + + "WorkerPool\022!CreateWorkerPoolOperationMetadata\332A!parent,worker_pool,worker_pool_i" + + "d\202\323\344\223\002>\"//v1/{parent=projects/*/locations/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\356\001\n\r" - + "GetWorkerPool\0223.google.devtools.cloudbuild.v1.GetWorkerPoolR" - + "equest\032).google.devtools.cloudbuild.v1.W" - + "orkerPool\"}\332A\004name\202\323\344\223\0021\022//v1/{name=proj" - + "ects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + + "GetWorkerPool\0223.google.devtools.cloudbuild.v1.GetWorkerPoolRequest\032).google" + + ".devtools.cloudbuild.v1.WorkerPool\"}\332A\004n" + + "ame\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + "\004name\022/projects/*/locations/{location=*}/workerPools/*\022\246\002\n" - + "\020DeleteWorkerPool\0226.google.devtools.cloudbuild.v1.DeleteWork" - + "erPoolRequest\032\035.google.longrunning.Operation\"\272\001\312A:\n" - + "\025google.protobuf.Empty\022!Delet" - + "eWorkerPoolOperationMetadata\332A\004name\202\323\344\223\002" - + "1*//v1/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + + "\020DeleteWorkerPool\0226.google.devtools" + + ".cloudbuild.v1.DeleteWorkerPoolRequest\032\035.google.longrunning.Operation\"\272\001\312A:\n" + + "\025google.protobuf.Empty\022!DeleteWorkerPoolOper" + + "ationMetadata\332A\004name\202\323\344\223\0021*//v1/{name=pr" + + "ojects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + "\004name\022/projects/*/locations/{location=*}/workerPools/*\022\323\002\n" - + "\020UpdateWorkerPool\0226.google.devtools.cloudbu" - + "ild.v1.UpdateWorkerPoolRequest\032\035.google.longrunning.Operation\"\347\001\312A/\n\n" - + "WorkerPool\022!UpdateWorkerPoolOperationMetadata\332A\027wor" - + "ker_pool,update_mask\202\323\344\223\002J2;/v1/{worker_" - + "pool.name=projects/*/locations/*/workerPools/*}:\013worker_pool\212\323\344\223\002E\022C\n" + + "\020UpdateWorkerPool\0226.google.devtools.cloudbuild.v1.UpdateWo" + + "rkerPoolRequest\032\035.google.longrunning.Operation\"\347\001\312A/\n\n" + + "WorkerPool\022!UpdateWorkerPoolOperationMetadata\332A\027worker_pool,update" + + "_mask\202\323\344\223\002J2;/v1/{worker_pool.name=proje" + + "cts/*/locations/*/workerPools/*}:\013worker_pool\212\323\344\223\002E\022C\n" + "\020worker_pool.name\022/projects/*/locations/{location=*}/workerPools/*\022\365\001\n" - + "\017ListWorkerPools\0225.google.devtools.cloudbuild.v1.ListWorkerPo" - + "olsRequest\0326.google.devtools.cloudbuild." - + "v1.ListWorkerPoolsResponse\"s\332A\006parent\202\323\344" - + "\223\0021\022//v1/{parent=projects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" + + "\017ListWorkerPools\0225.google.devtools.cloudbuild.v1.ListWorkerPoolsRequest\0326.go" + + "ogle.devtools.cloudbuild.v1.ListWorkerPo" + + "olsResponse\"s\332A\006parent\202\323\344\223\0021\022//v1/{paren" + + "t=projects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\240\002\n" - + "\030GetDefaultServiceAccount\022>.google.devtools.cloudbuil" - + "d.v1.GetDefaultServiceAccountRequest\0324.google.devtools.cloudbuild.v1.DefaultServ" - + "iceAccount\"\215\001\332A\004name\202\323\344\223\0029\0227/v1/{name=pr" - + "ojects/*/locations/*/defaultServiceAccount}\212\323\344\223\002A\022?\n" - + "\004name\0227projects/*/locations/{location=*}/defaultServiceAccount\032M\312A\031c" - + "loudbuild.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\256\n\n" - + "\030com.google.cloudbuild.v1P\001ZAcloud.google.c" - + "om/go/cloudbuild/apiv1/v2/cloudbuildpb;c" - + "loudbuildpb\242\002\003GCB\252\002\032Google.Cloud.CloudBu" - + "ild.V1\312\002\025Google\\Cloud\\Build\\V1\352\002\030Google::Cloud::Build::V1\352AN\n" - + "\036compute.googleapis" - + ".com/Network\022,projects/{project}/global/networks/{network}\352AY\n" - + "!iam.googleapis.co" - + "m/ServiceAccount\0224projects/{project}/serviceAccounts/{service_account}\352AJ\n" + + "\030GetDefaultServiceAccount\022>.google.devtools.cloudbuild.v1.GetDefault" + + "ServiceAccountRequest\0324.google.devtools." + + "cloudbuild.v1.DefaultServiceAccount\"\215\001\332A" + + "\004name\202\323\344\223\0029\0227/v1/{name=projects/*/locations/*/defaultServiceAccount}\212\323\344\223\002A\022?\n" + + "\004name\0227projects/*/locations/{location=*}/de" + + "faultServiceAccount\032M\312A\031cloudbuild.googl" + + "eapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\256\n\n" + + "\030com.google.cloudbuild.v1P\001ZAcloud.google.com/go/cloudbuil" + + "d/apiv1/v2/cloudbuildpb;cloudbuildpb\242\002\003G" + + "CB\252\002\032Google.Cloud.CloudBuild.V1\312\002\025Google" + + "\\Cloud\\Build\\V1\352\002\030Google::Cloud::Build::V1\352AN\n" + + "\036compute.googleapis.com/Network\022,p" + + "rojects/{project}/global/networks/{network}\352AY\n" + + "!iam.googleapis.com/ServiceAccoun" + + "t\0224projects/{project}/serviceAccounts/{service_account}\352AJ\n" + "#secretmanager.googleapis.com/Secret\022#projects/{project}/secrets/{secret}\352Ad\n" - + "*secretmanager.googleapis.com/SecretVersion\0226proj" - + "ects/{project}/secrets/{secret}/versions/{version}\352Af\n" - + " gkehub.googleapis.com/Mem" - + "bership\022Bprojects/{project}/locations/{location}/memberships/{cluster_name}\352Ap\n" - + "!cloudkms.googleapis.com/CryptoKey\022Kproje" - + "cts/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}\352AU\n" - + "\"pubsub.googleapis.com/Subscription\022/projects/" - + "{project}/subscriptions/{subscription}\352A@\n" + + "*secretmanager.googleapi" + + "s.com/SecretVersion\0226projects/{project}/secrets/{secret}/versions/{version}\352Af\n" + + " gkehub.googleapis.com/Membership\022Bprojec" + + "ts/{project}/locations/{location}/memberships/{cluster_name}\352Ap\n" + + "!cloudkms.googleapis.com/CryptoKey\022Kprojects/{project}/l" + + "ocations/{location}/keyRings/{keyring}/cryptoKeys/{key}\352AU\n" + + "\"pubsub.googleapis.co" + + "m/Subscription\022/projects/{project}/subscriptions/{subscription}\352A@\n" + "\033pubsub.googleapis.com/Topic\022!projects/{project}/topics/{topic}\352Av\n" - + "(compute.googleapis.com/NetworkAttachment\022Jprojects" - + "/{project}/regions/{region}/networkAttachments/{networkattachment}\352A\236\001\n" - + "1developerconnect.googleapis.com/GitRepositoryLin" - + "k\022iprojects/{project}/locations/{locatio" - + "n}/connections/{connection}/gitRepositoryLinks/{git_repository_link}\352A\202\001\n" - + "$cloudbuild.googleapis.com/Repository\022Zprojects" - + "/{project}/locations/{location}/connections/{connection}/repositories/{repositor" - + "y}b\006proto3" + + "(compute.googleapis.com/NetworkAttachment\022Jprojects/{project}/regi" + + "ons/{region}/networkAttachments/{networkattachment}\352A\236\001\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{pr" + + "oject}/locations/{location}/connections/" + + "{connection}/gitRepositoryLinks/{git_repository_link}\352A\202\001\n" + + "$cloudbuild.googleapis.com/Repository\022Zprojects/{project}/loca" + + "tions/{location}/connections/{connection}/repositories/{repository}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1632,7 +1630,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Dependency_GitSourceDependency_descriptor, new java.lang.String[] { - "Repository", "Revision", "RecurseSubmodules", "Depth", "DestPath", + "Repository", "Revision", "RecurseSubmodules", "Depth", "DestPath", "FetchTags", }); internal_static_google_devtools_cloudbuild_v1_Dependency_GitSourceRepository_descriptor = internal_static_google_devtools_cloudbuild_v1_Dependency_descriptor.getNestedType(1); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Dependency.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Dependency.java index cdbe49eea25f..878e4c7df34d 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Dependency.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Dependency.java @@ -195,6 +195,22 @@ public interface GitSourceDependencyOrBuilder * @return The bytes for destPath. */ com.google.protobuf.ByteString getDestPathBytes(); + + /** + * + * + *
+     * Optional. True if remote tags should be fetched too (default false).
+     * Note: when depth is 1 (default), git fetch only retrieves tags pointing
+     * to commits within the shallow boundary. Set depth to -1 to fetch all
+     * historical tags.
+     * 
+ * + * bool fetch_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fetchTags. + */ + boolean getFetchTags(); } /** @@ -453,6 +469,28 @@ public com.google.protobuf.ByteString getDestPathBytes() { } } + public static final int FETCH_TAGS_FIELD_NUMBER = 6; + private boolean fetchTags_ = false; + + /** + * + * + *
+     * Optional. True if remote tags should be fetched too (default false).
+     * Note: when depth is 1 (default), git fetch only retrieves tags pointing
+     * to commits within the shallow boundary. Set depth to -1 to fetch all
+     * historical tags.
+     * 
+ * + * bool fetch_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fetchTags. + */ + @java.lang.Override + public boolean getFetchTags() { + return fetchTags_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -482,6 +520,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destPath_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, destPath_); } + if (fetchTags_ != false) { + output.writeBool(6, fetchTags_); + } getUnknownFields().writeTo(output); } @@ -506,6 +547,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destPath_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, destPath_); } + if (fetchTags_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, fetchTags_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -530,6 +574,7 @@ public boolean equals(final java.lang.Object obj) { if (getRecurseSubmodules() != other.getRecurseSubmodules()) return false; if (getDepth() != other.getDepth()) return false; if (!getDestPath().equals(other.getDestPath())) return false; + if (getFetchTags() != other.getFetchTags()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -553,6 +598,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDepth()); hash = (37 * hash) + DEST_PATH_FIELD_NUMBER; hash = (53 * hash) + getDestPath().hashCode(); + hash = (37 * hash) + FETCH_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFetchTags()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -712,6 +759,7 @@ public Builder clear() { recurseSubmodules_ = false; depth_ = 0L; destPath_ = ""; + fetchTags_ = false; return this; } @@ -766,6 +814,9 @@ private void buildPartial0(com.google.cloudbuild.v1.Dependency.GitSourceDependen if (((from_bitField0_ & 0x00000010) != 0)) { result.destPath_ = destPath_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.fetchTags_ = fetchTags_; + } result.bitField0_ |= to_bitField0_; } @@ -801,6 +852,9 @@ public Builder mergeFrom(com.google.cloudbuild.v1.Dependency.GitSourceDependency bitField0_ |= 0x00000010; onChanged(); } + if (other.getFetchTags() != false) { + setFetchTags(other.getFetchTags()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -858,6 +912,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 48: + { + fetchTags_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1431,6 +1491,71 @@ public Builder setDestPathBytes(com.google.protobuf.ByteString value) { return this; } + private boolean fetchTags_; + + /** + * + * + *
+       * Optional. True if remote tags should be fetched too (default false).
+       * Note: when depth is 1 (default), git fetch only retrieves tags pointing
+       * to commits within the shallow boundary. Set depth to -1 to fetch all
+       * historical tags.
+       * 
+ * + * bool fetch_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fetchTags. + */ + @java.lang.Override + public boolean getFetchTags() { + return fetchTags_; + } + + /** + * + * + *
+       * Optional. True if remote tags should be fetched too (default false).
+       * Note: when depth is 1 (default), git fetch only retrieves tags pointing
+       * to commits within the shallow boundary. Set depth to -1 to fetch all
+       * historical tags.
+       * 
+ * + * bool fetch_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fetchTags to set. + * @return This builder for chaining. + */ + public Builder setFetchTags(boolean value) { + + fetchTags_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. True if remote tags should be fetched too (default false).
+       * Note: when depth is 1 (default), git fetch only retrieves tags pointing
+       * to commits within the shallow boundary. Set depth to -1 to fetch all
+       * historical tags.
+       * 
+ * + * bool fetch_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFetchTags() { + bitField0_ = (bitField0_ & ~0x00000020); + fetchTags_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.Dependency.GitSourceDependency) } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java index be35bd0f1e62..e94f26eaded2 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java @@ -135,7 +135,7 @@ public EventCase getEventCase() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2146 * @return The installationId. */ @java.lang.Override @@ -834,7 +834,7 @@ public Builder clearEvent() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2146 * @return The installationId. */ @java.lang.Override @@ -853,7 +853,7 @@ public long getInstallationId() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2146 * @param value The installationId to set. * @return This builder for chaining. */ @@ -876,7 +876,7 @@ public Builder setInstallationId(long value) { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2146 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java index fc40232d3a53..a4873de4f116 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java @@ -36,7 +36,7 @@ public interface GitHubEventsConfigOrBuilder * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2146 * @return The installationId. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto index 194fefc3d5d2..f67f368f9dd9 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto @@ -1312,6 +1312,12 @@ message Dependency { // Required. Where should the files be placed on the worker. string dest_path = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. True if remote tags should be fetched too (default false). + // Note: when depth is 1 (default), git fetch only retrieves tags pointing + // to commits within the shallow boundary. Set depth to -1 to fetch all + // historical tags. + bool fetch_tags = 6 [(google.api.field_behavior) = OPTIONAL]; } // A repository for a git source. diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/SupportEventSubscription.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/SupportEventSubscription.java index 9e8eb7890dc1..943426e33d10 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/SupportEventSubscription.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/SupportEventSubscription.java @@ -25,6 +25,19 @@ * *
  * A support event subscription.
+ *
+ * You can also manage support event subscriptions using other tools:
+ *
+ * * [`gcloud support
+ * support-event-subscriptions`](/sdk/gcloud/reference/support/support-event-subscriptions)
+ * (or [`gcloud
+ * beta`](/sdk/gcloud/reference/beta/support/support-event-subscriptions)
+ * for beta)
+ * * [Terraform
+ * `google_cloud_support_support_event_subscription`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_support_support_event_subscription)
+ * (or [google-beta
+ * provider](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/cloud_support_support_event_subscription)
+ * for beta)
  * 
* * Protobuf type {@code google.cloud.support.v2.SupportEventSubscription} @@ -1135,6 +1148,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * *
    * A support event subscription.
+   *
+   * You can also manage support event subscriptions using other tools:
+   *
+   * * [`gcloud support
+   * support-event-subscriptions`](/sdk/gcloud/reference/support/support-event-subscriptions)
+   * (or [`gcloud
+   * beta`](/sdk/gcloud/reference/beta/support/support-event-subscriptions)
+   * for beta)
+   * * [Terraform
+   * `google_cloud_support_support_event_subscription`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_support_support_event_subscription)
+   * (or [google-beta
+   * provider](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/cloud_support_support_event_subscription)
+   * for beta)
    * 
* * Protobuf type {@code google.cloud.support.v2.SupportEventSubscription} diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/support_event_subscription.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/support_event_subscription.proto index 5ba4585f680b..a27a868ca7ae 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/support_event_subscription.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/support_event_subscription.proto @@ -29,6 +29,19 @@ option php_namespace = "Google\\Cloud\\Support\\V2"; option ruby_package = "Google::Cloud::Support::V2"; // A support event subscription. +// +// You can also manage support event subscriptions using other tools: +// +// * [`gcloud support +// support-event-subscriptions`](/sdk/gcloud/reference/support/support-event-subscriptions) +// (or [`gcloud +// beta`](/sdk/gcloud/reference/beta/support/support-event-subscriptions) +// for beta) +// * [Terraform +// `google_cloud_support_support_event_subscription`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_support_support_event_subscription) +// (or [google-beta +// provider](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/cloud_support_support_event_subscription) +// for beta) message SupportEventSubscription { option (google.api.resource) = { type: "cloudsupport.googleapis.com/SupportEventSubscription" diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscription.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscription.java index a6cb009d5a99..51c0f9e19863 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscription.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscription.java @@ -25,6 +25,19 @@ * *
  * A support event subscription.
+ *
+ * You can also manage support event subscriptions using other tools:
+ *
+ * * [`gcloud support
+ * support-event-subscriptions`](/sdk/gcloud/reference/support/support-event-subscriptions)
+ * (or [`gcloud
+ * beta`](/sdk/gcloud/reference/beta/support/support-event-subscriptions)
+ * for beta)
+ * * [Terraform
+ * `google_cloud_support_support_event_subscription`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_support_support_event_subscription)
+ * (or [google-beta
+ * provider](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/cloud_support_support_event_subscription)
+ * for beta)
  * 
* * Protobuf type {@code google.cloud.support.v2beta.SupportEventSubscription} @@ -1136,6 +1149,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * *
    * A support event subscription.
+   *
+   * You can also manage support event subscriptions using other tools:
+   *
+   * * [`gcloud support
+   * support-event-subscriptions`](/sdk/gcloud/reference/support/support-event-subscriptions)
+   * (or [`gcloud
+   * beta`](/sdk/gcloud/reference/beta/support/support-event-subscriptions)
+   * for beta)
+   * * [Terraform
+   * `google_cloud_support_support_event_subscription`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_support_support_event_subscription)
+   * (or [google-beta
+   * provider](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/cloud_support_support_event_subscription)
+   * for beta)
    * 
* * Protobuf type {@code google.cloud.support.v2beta.SupportEventSubscription} diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/support_event_subscription.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/support_event_subscription.proto index dc47136abe6d..bfc0aa4a940d 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/support_event_subscription.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/support_event_subscription.proto @@ -29,6 +29,19 @@ option php_namespace = "Google\\Cloud\\Support\\V2beta"; option ruby_package = "Google::Cloud::Support::V2beta"; // A support event subscription. +// +// You can also manage support event subscriptions using other tools: +// +// * [`gcloud support +// support-event-subscriptions`](/sdk/gcloud/reference/support/support-event-subscriptions) +// (or [`gcloud +// beta`](/sdk/gcloud/reference/beta/support/support-event-subscriptions) +// for beta) +// * [Terraform +// `google_cloud_support_support_event_subscription`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_support_support_event_subscription) +// (or [google-beta +// provider](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/cloud_support_support_event_subscription) +// for beta) message SupportEventSubscription { option (google.api.resource) = { type: "cloudsupport.googleapis.com/SupportEventSubscription"